]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
1c710c3c DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 184 | do |
5213506e RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 228 | else |
5213506e RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
1c710c3c | 233 | fi |
5213506e RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
1c710c3c | 263 | |
5213506e RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
5213506e | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
5213506e RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
1c710c3c | 391 | |
5213506e | 392 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
1c710c3c | 410 | |
2aeb72e9 DD |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 417 | |
1c710c3c | 418 | |
5213506e RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
1c710c3c | 428 | sed ' |
5213506e RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
1c710c3c | 433 | N |
5213506e RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 436 | t loop |
5213506e | 437 | s/-\n.*// |
1c710c3c | 438 | ' >$as_me.lineno && |
5213506e RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
1c710c3c DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
5213506e RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
1c710c3c DJ |
461 | esac |
462 | ||
5213506e RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 466 | else |
5213506e RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 469 | fi |
5213506e RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 472 | as_ln_s='ln -s' |
5213506e RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
2aeb72e9 | 483 | fi |
1c710c3c DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
5213506e RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
5213506e | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
5213506e RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
0b0dc272 | 519 | |
1c710c3c DJ |
520 | # Sed expression to map a string onto a valid CPP name. |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
5213506e | 527 | exec 7<&0 </dev/null 6>&1 |
1c710c3c DJ |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
1c710c3c DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
671aa708 | 537 | ac_default_prefix=/usr/local |
5213506e | 538 | ac_clean_files= |
1c710c3c | 539 | ac_config_libobj_dir=. |
5213506e | 540 | LIBOBJS= |
1c710c3c DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
2aeb72e9 | 545 | |
1c710c3c DJ |
546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
5213506e | 552 | PACKAGE_URL= |
1c710c3c DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
5213506e RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
459260ec | 559 | host_shared |
5213506e RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
e7a82751 | 574 | READELF_FOR_TARGET |
5213506e RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
9bccfdf5 | 577 | OBJCOPY_FOR_TARGET |
5213506e RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
632e2a07 | 584 | GOC_FOR_TARGET |
5213506e | 585 | GFORTRAN_FOR_TARGET |
5213506e RW |
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 | 617 | GFORTRAN_FOR_BUILD |
5213506e RW |
618 | DLLTOOL_FOR_BUILD |
619 | CXX_FOR_BUILD | |
620 | CXXFLAGS_FOR_BUILD | |
621 | CFLAGS_FOR_BUILD | |
622 | CC_FOR_BUILD | |
623 | AS_FOR_BUILD | |
624 | AR_FOR_BUILD | |
aae29963 | 625 | target_configdirs |
5213506e | 626 | configdirs |
5213506e | 627 | build_configdirs |
5213506e RW |
628 | INSTALL_GDB_TK |
629 | GDB_TK | |
630 | CONFIGURE_GDB_TK | |
631 | build_tooldir | |
632 | tooldir | |
633 | GCC_SHLIB_SUBDIR | |
634 | RPATH_ENVVAR | |
ffedf511 RW |
635 | target_configargs |
636 | host_configargs | |
637 | build_configargs | |
e12c4094 | 638 | BUILD_CONFIG |
6f57bdf6 | 639 | LDFLAGS_FOR_TARGET |
5213506e RW |
640 | CXXFLAGS_FOR_TARGET |
641 | CFLAGS_FOR_TARGET | |
642 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
643 | SYSROOT_CFLAGS_FOR_TARGET | |
3c36aa6b | 644 | get_gcc_base_ver |
1c01ebf6 | 645 | extra_host_zlib_configure_flags |
d7f09764 | 646 | extra_host_libiberty_configure_flags |
fca38047 | 647 | stage1_languages |
45b3824d TS |
648 | extra_linker_plugin_flags |
649 | extra_linker_plugin_configure_flags | |
33ad93b9 | 650 | islinc |
eae1a5d4 | 651 | isllibs |
1e050c90 | 652 | islver |
5213506e | 653 | poststage1_ldflags |
ed2eaa9f | 654 | poststage1_libs |
5213506e | 655 | stage1_ldflags |
0b21f5d3 | 656 | stage1_libs |
0ff2d841 | 657 | extra_isl_gmp_configure_flags |
5213506e RW |
658 | extra_mpc_mpfr_configure_flags |
659 | extra_mpc_gmp_configure_flags | |
660 | extra_mpfr_configure_flags | |
661 | gmpinc | |
662 | gmplibs | |
663 | do_compare | |
664 | GNATMAKE | |
665 | GNATBIND | |
666 | ac_ct_CXX | |
667 | CXXFLAGS | |
668 | CXX | |
669 | OBJEXT | |
670 | EXEEXT | |
671 | ac_ct_CC | |
672 | CPPFLAGS | |
673 | LDFLAGS | |
674 | CFLAGS | |
675 | CC | |
5f520819 | 676 | extra_liboffloadmic_configure_flags |
5213506e RW |
677 | target_subdir |
678 | host_subdir | |
679 | build_subdir | |
680 | build_libsubdir | |
87264276 PB |
681 | AWK |
682 | SED | |
5213506e RW |
683 | LN_S |
684 | LN | |
685 | INSTALL_DATA | |
686 | INSTALL_SCRIPT | |
687 | INSTALL_PROGRAM | |
688 | target_os | |
689 | target_vendor | |
690 | target_cpu | |
691 | target | |
692 | host_os | |
693 | host_vendor | |
694 | host_cpu | |
695 | host | |
696 | target_noncanonical | |
697 | host_noncanonical | |
698 | build_noncanonical | |
699 | build_os | |
700 | build_vendor | |
701 | build_cpu | |
702 | build | |
703 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
704 | target_alias | |
705 | host_alias | |
706 | build_alias | |
707 | LIBS | |
708 | ECHO_T | |
709 | ECHO_N | |
710 | ECHO_C | |
711 | DEFS | |
712 | mandir | |
713 | localedir | |
714 | libdir | |
715 | psdir | |
716 | pdfdir | |
717 | dvidir | |
718 | htmldir | |
719 | infodir | |
720 | docdir | |
721 | oldincludedir | |
722 | includedir | |
723 | localstatedir | |
724 | sharedstatedir | |
725 | sysconfdir | |
726 | datadir | |
727 | datarootdir | |
728 | libexecdir | |
729 | sbindir | |
730 | bindir | |
731 | program_transform_name | |
732 | prefix | |
733 | exec_prefix | |
734 | PACKAGE_URL | |
735 | PACKAGE_BUGREPORT | |
736 | PACKAGE_STRING | |
737 | PACKAGE_VERSION | |
738 | PACKAGE_TARNAME | |
739 | PACKAGE_NAME | |
740 | PATH_SEPARATOR | |
741 | SHELL' | |
742 | ac_subst_files='serialization_dependencies | |
743 | host_makefile_frag | |
744 | target_makefile_frag | |
745 | alphaieee_frag | |
746 | ospace_frag' | |
747 | ac_user_opts=' | |
748 | enable_option_checking | |
749 | with_build_libsubdir | |
a05c2c75 | 750 | with_system_zlib |
85c64bbe BS |
751 | enable_as_accelerator_for |
752 | enable_offload_targets | |
5213506e | 753 | enable_gold |
21539e2e | 754 | enable_ld |
78edb32f | 755 | enable_compressed_debug_sections |
87e6d9dc TB |
756 | enable_libquadmath |
757 | enable_libquadmath_support | |
5213506e RW |
758 | enable_libada |
759 | enable_libssp | |
1873ec0c | 760 | enable_libstdcxx |
5f520819 | 761 | enable_liboffloadmic |
ff3ac0f4 | 762 | enable_bootstrap |
5213506e RW |
763 | with_mpc |
764 | with_mpc_include | |
765 | with_mpc_lib | |
766 | with_mpfr_dir | |
767 | with_mpfr | |
768 | with_mpfr_include | |
769 | with_mpfr_lib | |
770 | with_gmp_dir | |
771 | with_gmp | |
772 | with_gmp_include | |
773 | with_gmp_lib | |
5213506e | 774 | with_stage1_libs |
0b21f5d3 | 775 | with_stage1_ldflags |
5213506e | 776 | with_boot_libs |
ed2eaa9f | 777 | with_boot_ldflags |
33ad93b9 RG |
778 | with_isl |
779 | with_isl_include | |
780 | with_isl_lib | |
781 | enable_isl_version_check | |
d7f09764 | 782 | enable_lto |
45b3824d TS |
783 | enable_linker_plugin_configure_flags |
784 | enable_linker_plugin_flags | |
5213506e | 785 | enable_stage1_languages |
43c40f3e | 786 | enable_objc_gc |
114bf3f1 MK |
787 | with_target_bdw_gc |
788 | with_target_bdw_gc_include | |
789 | with_target_bdw_gc_lib | |
3c36aa6b | 790 | with_gcc_major_version_only |
5213506e RW |
791 | with_build_sysroot |
792 | with_debug_prefix_map | |
5646b7b9 | 793 | with_build_config |
beeda1d9 | 794 | enable_vtable_verify |
5213506e RW |
795 | enable_serial_configure |
796 | with_build_time_tools | |
797 | enable_maintainer_mode | |
798 | enable_stage1_checking | |
799 | enable_werror | |
459260ec | 800 | enable_host_shared |
5213506e RW |
801 | ' |
802 | ac_precious_vars='build_alias | |
803 | host_alias | |
804 | target_alias | |
805 | CC | |
806 | CFLAGS | |
807 | LDFLAGS | |
808 | LIBS | |
809 | CPPFLAGS | |
810 | CXX | |
811 | CXXFLAGS | |
812 | CCC | |
ffedf511 RW |
813 | build_configargs |
814 | host_configargs | |
815 | target_configargs | |
5213506e RW |
816 | AR |
817 | AS | |
818 | DLLTOOL | |
819 | LD | |
820 | LIPO | |
821 | NM | |
822 | RANLIB | |
823 | STRIP | |
824 | WINDRES | |
825 | WINDMC | |
826 | OBJCOPY | |
827 | OBJDUMP | |
e7a82751 | 828 | READELF |
5213506e RW |
829 | CC_FOR_TARGET |
830 | CXX_FOR_TARGET | |
831 | GCC_FOR_TARGET | |
5213506e | 832 | GFORTRAN_FOR_TARGET |
632e2a07 | 833 | GOC_FOR_TARGET |
5213506e RW |
834 | AR_FOR_TARGET |
835 | AS_FOR_TARGET | |
836 | DLLTOOL_FOR_TARGET | |
837 | LD_FOR_TARGET | |
838 | LIPO_FOR_TARGET | |
839 | NM_FOR_TARGET | |
9bccfdf5 | 840 | OBJCOPY_FOR_TARGET |
5213506e RW |
841 | OBJDUMP_FOR_TARGET |
842 | RANLIB_FOR_TARGET | |
e7a82751 | 843 | READELF_FOR_TARGET |
5213506e RW |
844 | STRIP_FOR_TARGET |
845 | WINDRES_FOR_TARGET | |
846 | WINDMC_FOR_TARGET' | |
847 | ||
671aa708 NN |
848 | |
849 | # Initialize some variables set by options. | |
1c710c3c DJ |
850 | ac_init_help= |
851 | ac_init_version=false | |
5213506e RW |
852 | ac_unrecognized_opts= |
853 | ac_unrecognized_sep= | |
671aa708 NN |
854 | # The variables have the same names as the options, with |
855 | # dashes changed to underlines. | |
1c710c3c | 856 | cache_file=/dev/null |
671aa708 | 857 | exec_prefix=NONE |
671aa708 | 858 | no_create= |
671aa708 NN |
859 | no_recursion= |
860 | prefix=NONE | |
861 | program_prefix=NONE | |
862 | program_suffix=NONE | |
863 | program_transform_name=s,x,x, | |
864 | silent= | |
865 | site= | |
866 | srcdir= | |
671aa708 NN |
867 | verbose= |
868 | x_includes=NONE | |
869 | x_libraries=NONE | |
1c710c3c DJ |
870 | |
871 | # Installation directory options. | |
872 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
873 | # and all the variables that are supposed to be based on exec_prefix | |
874 | # by default will actually change. | |
875 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 876 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
877 | bindir='${exec_prefix}/bin' |
878 | sbindir='${exec_prefix}/sbin' | |
879 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
880 | datarootdir='${prefix}/share' |
881 | datadir='${datarootdir}' | |
671aa708 NN |
882 | sysconfdir='${prefix}/etc' |
883 | sharedstatedir='${prefix}/com' | |
884 | localstatedir='${prefix}/var' | |
671aa708 NN |
885 | includedir='${prefix}/include' |
886 | oldincludedir='/usr/include' | |
5213506e RW |
887 | docdir='${datarootdir}/doc/${PACKAGE}' |
888 | infodir='${datarootdir}/info' | |
889 | htmldir='${docdir}' | |
890 | dvidir='${docdir}' | |
891 | pdfdir='${docdir}' | |
892 | psdir='${docdir}' | |
893 | libdir='${exec_prefix}/lib' | |
894 | localedir='${datarootdir}/locale' | |
895 | mandir='${datarootdir}/man' | |
79c06341 | 896 | |
671aa708 | 897 | ac_prev= |
5213506e | 898 | ac_dashdash= |
671aa708 NN |
899 | for ac_option |
900 | do | |
671aa708 NN |
901 | # If the previous option needs an argument, assign it. |
902 | if test -n "$ac_prev"; then | |
5213506e | 903 | eval $ac_prev=\$ac_option |
671aa708 NN |
904 | ac_prev= |
905 | continue | |
906 | fi | |
79c06341 | 907 | |
5213506e RW |
908 | case $ac_option in |
909 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
910 | *) ac_optarg=yes ;; | |
911 | esac | |
671aa708 NN |
912 | |
913 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
914 | ||
5213506e RW |
915 | case $ac_dashdash$ac_option in |
916 | --) | |
917 | ac_dashdash=yes ;; | |
671aa708 NN |
918 | |
919 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
920 | ac_prev=bindir ;; | |
921 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 922 | bindir=$ac_optarg ;; |
671aa708 NN |
923 | |
924 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 925 | ac_prev=build_alias ;; |
671aa708 | 926 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 927 | build_alias=$ac_optarg ;; |
671aa708 NN |
928 | |
929 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
930 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
931 | ac_prev=cache_file ;; | |
932 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
933 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
934 | cache_file=$ac_optarg ;; |
935 | ||
936 | --config-cache | -C) | |
937 | cache_file=config.cache ;; | |
671aa708 | 938 | |
5213506e | 939 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 940 | ac_prev=datadir ;; |
5213506e | 941 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 942 | datadir=$ac_optarg ;; |
671aa708 | 943 | |
5213506e RW |
944 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
945 | | --dataroo | --dataro | --datar) | |
946 | ac_prev=datarootdir ;; | |
947 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
948 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
949 | datarootdir=$ac_optarg ;; | |
950 | ||
671aa708 | 951 | -disable-* | --disable-*) |
5213506e | 952 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 953 | # Reject names that are not valid shell variable names. |
5213506e RW |
954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 | as_fn_error "invalid feature name: $ac_useropt" | |
956 | ac_useropt_orig=$ac_useropt | |
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
958 | case $ac_user_opts in | |
959 | *" | |
960 | "enable_$ac_useropt" | |
961 | "*) ;; | |
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
963 | ac_unrecognized_sep=', ';; | |
964 | esac | |
965 | eval enable_$ac_useropt=no ;; | |
966 | ||
967 | -docdir | --docdir | --docdi | --doc | --do) | |
968 | ac_prev=docdir ;; | |
969 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
970 | docdir=$ac_optarg ;; | |
971 | ||
972 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
973 | ac_prev=dvidir ;; | |
974 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
975 | dvidir=$ac_optarg ;; | |
671aa708 NN |
976 | |
977 | -enable-* | --enable-*) | |
5213506e | 978 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 979 | # Reject names that are not valid shell variable names. |
5213506e RW |
980 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
981 | as_fn_error "invalid feature name: $ac_useropt" | |
982 | ac_useropt_orig=$ac_useropt | |
983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
984 | case $ac_user_opts in | |
985 | *" | |
986 | "enable_$ac_useropt" | |
987 | "*) ;; | |
988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
989 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 990 | esac |
5213506e | 991 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
992 | |
993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
995 | | --exec | --exe | --ex) | |
996 | ac_prev=exec_prefix ;; | |
997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
999 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 1000 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
1001 | |
1002 | -gas | --gas | --ga | --g) | |
1003 | # Obsolete; use --with-gas. | |
1004 | with_gas=yes ;; | |
1005 | ||
1c710c3c DJ |
1006 | -help | --help | --hel | --he | -h) |
1007 | ac_init_help=long ;; | |
1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1009 | ac_init_help=recursive ;; | |
1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1011 | ac_init_help=short ;; | |
671aa708 NN |
1012 | |
1013 | -host | --host | --hos | --ho) | |
1c710c3c | 1014 | ac_prev=host_alias ;; |
671aa708 | 1015 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1016 | host_alias=$ac_optarg ;; |
671aa708 | 1017 | |
5213506e RW |
1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1019 | ac_prev=htmldir ;; | |
1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1021 | | --ht=*) | |
1022 | htmldir=$ac_optarg ;; | |
1023 | ||
671aa708 NN |
1024 | -includedir | --includedir | --includedi | --included | --include \ |
1025 | | --includ | --inclu | --incl | --inc) | |
1026 | ac_prev=includedir ;; | |
1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1029 | includedir=$ac_optarg ;; |
671aa708 NN |
1030 | |
1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1032 | ac_prev=infodir ;; | |
1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1034 | infodir=$ac_optarg ;; |
671aa708 NN |
1035 | |
1036 | -libdir | --libdir | --libdi | --libd) | |
1037 | ac_prev=libdir ;; | |
1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1039 | libdir=$ac_optarg ;; |
671aa708 NN |
1040 | |
1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1042 | | --libexe | --libex | --libe) | |
1043 | ac_prev=libexecdir ;; | |
1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1045 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1046 | libexecdir=$ac_optarg ;; |
671aa708 | 1047 | |
5213506e RW |
1048 | -localedir | --localedir | --localedi | --localed | --locale) |
1049 | ac_prev=localedir ;; | |
1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1051 | localedir=$ac_optarg ;; | |
1052 | ||
671aa708 | 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1055 | ac_prev=localstatedir ;; |
1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1058 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1059 | |
1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1061 | ac_prev=mandir ;; | |
1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1063 | mandir=$ac_optarg ;; |
671aa708 NN |
1064 | |
1065 | -nfp | --nfp | --nf) | |
1066 | # Obsolete; use --without-fp. | |
1067 | with_fp=no ;; | |
1068 | ||
1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1070 | | --no-cr | --no-c | -n) |
671aa708 NN |
1071 | no_create=yes ;; |
1072 | ||
1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1075 | no_recursion=yes ;; | |
1076 | ||
1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1079 | | --oldin | --oldi | --old | --ol | --o) | |
1080 | ac_prev=oldincludedir ;; | |
1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1084 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1085 | |
1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1087 | ac_prev=prefix ;; | |
1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1089 | prefix=$ac_optarg ;; |
671aa708 NN |
1090 | |
1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1092 | | --program-pre | --program-pr | --program-p) | |
1093 | ac_prev=program_prefix ;; | |
1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1096 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1097 | |
1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1099 | | --program-suf | --program-su | --program-s) | |
1100 | ac_prev=program_suffix ;; | |
1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1103 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1104 | |
1105 | -program-transform-name | --program-transform-name \ | |
1106 | | --program-transform-nam | --program-transform-na \ | |
1107 | | --program-transform-n | --program-transform- \ | |
1108 | | --program-transform | --program-transfor \ | |
1109 | | --program-transfo | --program-transf \ | |
1110 | | --program-trans | --program-tran \ | |
1111 | | --progr-tra | --program-tr | --program-t) | |
1112 | ac_prev=program_transform_name ;; | |
1113 | -program-transform-name=* | --program-transform-name=* \ | |
1114 | | --program-transform-nam=* | --program-transform-na=* \ | |
1115 | | --program-transform-n=* | --program-transform-=* \ | |
1116 | | --program-transform=* | --program-transfor=* \ | |
1117 | | --program-transfo=* | --program-transf=* \ | |
1118 | | --program-trans=* | --program-tran=* \ | |
1119 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1120 | program_transform_name=$ac_optarg ;; |
671aa708 | 1121 | |
5213506e RW |
1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1123 | ac_prev=pdfdir ;; | |
1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1125 | pdfdir=$ac_optarg ;; | |
1126 | ||
1127 | -psdir | --psdir | --psdi | --psd | --ps) | |
1128 | ac_prev=psdir ;; | |
1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1130 | psdir=$ac_optarg ;; | |
1131 | ||
671aa708 NN |
1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1133 | | -silent | --silent | --silen | --sile | --sil) | |
1134 | silent=yes ;; | |
1135 | ||
1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
1c710c3c | 1140 | sbindir=$ac_optarg ;; |
671aa708 NN |
1141 | |
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
1c710c3c | 1151 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1152 | |
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1156 | site=$ac_optarg ;; |
671aa708 NN |
1157 | |
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1161 | srcdir=$ac_optarg ;; |
671aa708 NN |
1162 | |
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1168 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1169 | |
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1171 | ac_prev=target_alias ;; |
671aa708 | 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1173 | target_alias=$ac_optarg ;; |
671aa708 NN |
1174 | |
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
1c710c3c DJ |
1178 | -version | --version | --versio | --versi | --vers | -V) |
1179 | ac_init_version=: ;; | |
671aa708 NN |
1180 | |
1181 | -with-* | --with-*) | |
5213506e | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1183 | # Reject names that are not valid shell variable names. |
5213506e RW |
1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | as_fn_error "invalid package name: $ac_useropt" | |
1186 | ac_useropt_orig=$ac_useropt | |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1194 | esac |
5213506e | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1196 | |
1197 | -without-* | --without-*) | |
5213506e | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1199 | # Reject names that are not valid shell variable names. |
5213506e RW |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | as_fn_error "invalid package name: $ac_useropt" | |
1202 | ac_useropt_orig=$ac_useropt | |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1222 | x_includes=$ac_optarg ;; |
671aa708 NN |
1223 | |
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1229 | x_libraries=$ac_optarg ;; |
671aa708 | 1230 | |
5213506e RW |
1231 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information." | |
671aa708 NN |
1233 | ;; |
1234 | ||
1c710c3c DJ |
1235 | *=*) |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1240 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1241 | esac | |
1242 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1243 | export $ac_envvar ;; |
1244 | ||
671aa708 | 1245 | *) |
1c710c3c | 1246 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1c710c3c | 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
671aa708 NN |
1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
1c710c3c | 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1258 | as_fn_error "missing argument to $ac_option" |
af71363e | 1259 | fi |
af71363e | 1260 | |
5213506e RW |
1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
1264 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
2aeb72e9 | 1266 | esac |
5213506e | 1267 | fi |
2aeb72e9 | 1268 | |
5213506e RW |
1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1273 | libdir localedir mandir | |
2aeb72e9 | 1274 | do |
5213506e RW |
1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1283 | case $ac_val in |
5213506e RW |
1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1286 | esac |
5213506e | 1287 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1288 | done |
1289 | ||
1c710c3c DJ |
1290 | # There might be people who depend on the old broken behavior: `$host' |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
0b0dc272 | 1296 | |
1c710c3c DJ |
1297 | # FIXME: To remove some day. |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
5213506e | 1301 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1c710c3c DJ |
1302 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1303 | elif test "x$build_alias" != "x$host_alias"; then | |
1304 | cross_compiling=yes | |
1305 | fi | |
1306 | fi | |
1307 | ||
1308 | ac_tool_prefix= | |
1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1310 | ||
1311 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1312 | |
671aa708 | 1313 | |
5213506e RW |
1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1315 | ac_ls_di=`ls -di .` && | |
1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1317 | as_fn_error "working directory cannot be determined" | |
1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1319 | as_fn_error "pwd does not report name of working directory" | |
1320 | ||
1321 | ||
671aa708 NN |
1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
5213506e RW |
1325 | # Try the directory containing this script, then the parent directory. |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1331 | $as_echo X"$as_myself" | | |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
671aa708 | 1349 | srcdir=$ac_confdir |
5213506e | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
5213506e RW |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1358 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1359 | fi | |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1361 | ac_abs_confdir=`( | |
1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1363 | pwd)` | |
1364 | # When building in place, set srcdir=. | |
1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1366 | srcdir=. | |
1367 | fi | |
1368 | # Remove unnecessary trailing slashes from srcdir. | |
1369 | # Double slashes in file names in object file debugging info | |
1370 | # mess up M-x gdb in Emacs. | |
1371 | case $srcdir in | |
1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1373 | esac | |
87841584 AM |
1374 | case $srcdir in |
1375 | *" "*) | |
1376 | as_fn_error "path to source, $srcdir, contains spaces" | |
1377 | ;; | |
1378 | esac | |
ac9e6043 RW |
1379 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1380 | ||
5213506e RW |
1381 | for ac_var in $ac_precious_vars; do |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
1c710c3c DJ |
1387 | |
1388 | # | |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
1395 | \`configure' configures this package to adapt to many kinds of systems. | |
1396 | ||
1397 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | ||
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | ||
1402 | Defaults for the options are specified in brackets. | |
1403 | ||
1404 | Configuration: | |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
1409 | -q, --quiet, --silent do not print \`checking...' messages | |
1410 | --cache-file=FILE cache test results in FILE [disabled] | |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
1c710c3c DJ |
1415 | Installation directories: |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1417 | [$ac_default_prefix] |
1c710c3c | 1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1419 | [PREFIX] |
1c710c3c DJ |
1420 | |
1421 | By default, \`make install' will install all the files in | |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
1425 | ||
1426 | For better control, use the options below. | |
1427 | ||
1428 | Fine tuning of the installation directories: | |
5213506e RW |
1429 | --bindir=DIR user executables [EPREFIX/bin] |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1444 | --htmldir=DIR html documentation [DOCDIR] | |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1448 | _ACEOF |
1449 | ||
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Program names: | |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | ||
1457 | System types: | |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1461 | _ACEOF | |
1462 | fi | |
1463 | ||
1464 | if test -n "$ac_init_help"; then | |
1465 | ||
1466 | cat <<\_ACEOF | |
1467 | ||
1468 | Optional Features: | |
5213506e | 1469 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85c64bbe BS |
1472 | --enable-as-accelerator-for=ARG |
1473 | build as offload target compiler. Specify offload | |
1474 | host triple by ARG | |
1475 | --enable-offload-targets=LIST | |
1476 | enable offloading to devices from comma-separated | |
1477 | LIST of TARGET[=DIR]. Use optional path to find | |
1478 | offload target compiler during the build | |
21539e2e | 1479 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1480 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
324402a0 | 1481 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
78edb32f L |
1482 | Enable compressed debug sections for gas, gold or ld |
1483 | by default | |
87e6d9dc TB |
1484 | --disable-libquadmath do not build libquadmath directory |
1485 | --disable-libquadmath-support | |
1486 | disable libquadmath support for Fortran | |
30b74385 RW |
1487 | --enable-libada build libada directory |
1488 | --enable-libssp build libssp directory | |
1873ec0c | 1489 | --disable-libstdcxx do not build libstdc++-v3 directory |
5f520819 KY |
1490 | --enable-liboffloadmic=ARG |
1491 | build liboffloadmic [ARG={no,host,target}] | |
ff3ac0f4 | 1492 | --enable-bootstrap enable bootstrapping [yes if native build] |
33ad93b9 | 1493 | --disable-isl-version-check |
560d18d3 | 1494 | disable check for isl version |
d7f09764 | 1495 | --enable-lto enable link time optimization support |
45b3824d TS |
1496 | --enable-linker-plugin-configure-flags=FLAGS |
1497 | additional flags for configuring linker plugins | |
1498 | [none] | |
1499 | --enable-linker-plugin-flags=FLAGS | |
1500 | additional flags for configuring and building linker | |
1501 | plugins [none] | |
33e39b66 AS |
1502 | --enable-stage1-languages[=all] |
1503 | choose additional languages to build during stage1. | |
1504 | Mostly useful for compiler development | |
43c40f3e RO |
1505 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU |
1506 | Objective-C runtime | |
318a4e6d | 1507 | --enable-vtable-verify Enable vtable verification feature |
30b74385 | 1508 | --enable-serial-[{host,target,build}-]configure |
33e39b66 AS |
1509 | force sequential configuration of sub-packages for |
1510 | the host, target or build machine, or all | |
1511 | sub-packages | |
1512 | --enable-maintainer-mode | |
1513 | enable make rules and dependencies not useful (and | |
1514 | sometimes confusing) to the casual installer | |
1515 | --enable-stage1-checking[=all] | |
1516 | choose additional checking for stage1 of the | |
1517 | compiler | |
1c710c3c | 1518 | --enable-werror enable -Werror in bootstrap stage2 and later |
459260ec | 1519 | --enable-host-shared build host code as shared libraries |
1c710c3c DJ |
1520 | |
1521 | Optional Packages: | |
1522 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1523 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1524 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
a05c2c75 | 1525 | --with-system-zlib use installed libz |
33e39b66 AS |
1526 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1527 | Equivalent to --with-mpc-include=PATH/include plus | |
1528 | --with-mpc-lib=PATH/lib | |
1529 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1530 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1531 | --with-mpfr-dir=PATH this option has been REMOVED |
1532 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1533 | Equivalent to --with-mpfr-include=PATH/include plus |
1534 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1535 | --with-mpfr-include=PATH |
30b74385 RW |
1536 | specify directory for installed MPFR include files |
1537 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1538 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1539 | --with-gmp=PATH specify prefix directory for the installed GMP |
1540 | package. Equivalent to | |
1541 | --with-gmp-include=PATH/include plus | |
1542 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1543 | --with-gmp-include=PATH specify directory for installed GMP include files |
1544 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
0b21f5d3 | 1545 | --with-stage1-libs=LIBS libraries for stage1 |
33e39b66 AS |
1546 | --with-stage1-ldflags=FLAGS |
1547 | linker flags for stage1 | |
33e39b66 AS |
1548 | --with-boot-libs=LIBS libraries for stage2 and later |
1549 | --with-boot-ldflags=FLAGS | |
1550 | linker flags for stage2 and later | |
e357a5e0 | 1551 | --with-isl=PATH Specify prefix directory for the installed isl |
33e39b66 | 1552 | package. Equivalent to |
33ad93b9 RG |
1553 | --with-isl-include=PATH/include plus |
1554 | --with-isl-lib=PATH/lib | |
560d18d3 AK |
1555 | --with-isl-include=PATH Specify directory for installed isl include files |
1556 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
114bf3f1 MK |
1557 | --with-target-bdw-gc=PATHLIST |
1558 | specify prefix directory for installed bdw-gc | |
1559 | package. Equivalent to | |
1560 | --with-target-bdw-gc-include=PATH/include plus | |
1561 | --with-target-bdw-gc-lib=PATH/lib | |
1562 | --with-target-bdw-gc-include=PATHLIST | |
1563 | specify directories for installed bdw-gc include | |
1564 | files | |
1565 | --with-target-bdw-gc-lib=PATHLIST | |
1566 | specify directories for installed bdw-gc library | |
3c36aa6b JJ |
1567 | --with-gcc-major-version-only |
1568 | use only GCC major number in filesystem paths | |
30b74385 | 1569 | --with-build-sysroot=SYSROOT |
1c710c3c | 1570 | use sysroot as the system root during the build |
c8aea42c | 1571 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1572 | map A to B, C to D ... in debug information |
1573 | --with-build-config='NAME NAME2...' | |
1574 | use config/NAME.mk build configuration | |
30b74385 | 1575 | --with-build-time-tools=PATH |
1c710c3c | 1576 | use given path to find target tools during the build |
1c710c3c DJ |
1577 | |
1578 | Some influential environment variables: | |
1579 | CC C compiler command | |
1580 | CFLAGS C compiler flags | |
1581 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1582 | nonstandard directory <lib dir> | |
5213506e RW |
1583 | LIBS libraries to pass to the linker, e.g. -l<library> |
1584 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1585 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1586 | CXX C++ compiler command |
1587 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1588 | build_configargs |
1589 | additional configure arguments for build directories | |
1590 | host_configargs | |
1591 | additional configure arguments for host directories | |
1592 | target_configargs | |
1593 | additional configure arguments for target directories | |
278a7a38 AO |
1594 | AR AR for the host |
1595 | AS AS for the host | |
1596 | DLLTOOL DLLTOOL for the host | |
1597 | LD LD for the host | |
1598 | LIPO LIPO for the host | |
1599 | NM NM for the host | |
1600 | RANLIB RANLIB for the host | |
1601 | STRIP STRIP for the host | |
1602 | WINDRES WINDRES for the host | |
901119ae | 1603 | WINDMC WINDMC for the host |
278a7a38 AO |
1604 | OBJCOPY OBJCOPY for the host |
1605 | OBJDUMP OBJDUMP for the host | |
e7a82751 | 1606 | READELF READELF for the host |
278a7a38 AO |
1607 | CC_FOR_TARGET |
1608 | CC for the target | |
1609 | CXX_FOR_TARGET | |
1610 | CXX for the target | |
1611 | GCC_FOR_TARGET | |
1612 | GCC for the target | |
278a7a38 AO |
1613 | GFORTRAN_FOR_TARGET |
1614 | GFORTRAN for the target | |
632e2a07 ILT |
1615 | GOC_FOR_TARGET |
1616 | GOC for the target | |
278a7a38 AO |
1617 | AR_FOR_TARGET |
1618 | AR for the target | |
1619 | AS_FOR_TARGET | |
1620 | AS for the target | |
1621 | DLLTOOL_FOR_TARGET | |
1622 | DLLTOOL for the target | |
1623 | LD_FOR_TARGET | |
1624 | LD for the target | |
1625 | LIPO_FOR_TARGET | |
1626 | LIPO for the target | |
1627 | NM_FOR_TARGET | |
1628 | NM for the target | |
9bccfdf5 AP |
1629 | OBJCOPY_FOR_TARGET |
1630 | OBJCOPY for the target | |
278a7a38 AO |
1631 | OBJDUMP_FOR_TARGET |
1632 | OBJDUMP for the target | |
1633 | RANLIB_FOR_TARGET | |
1634 | RANLIB for the target | |
e7a82751 RM |
1635 | READELF_FOR_TARGET |
1636 | READELF for the target | |
278a7a38 AO |
1637 | STRIP_FOR_TARGET |
1638 | STRIP for the target | |
1639 | WINDRES_FOR_TARGET | |
1640 | WINDRES for the target | |
901119ae KT |
1641 | WINDMC_FOR_TARGET |
1642 | WINDMC for the target | |
1c710c3c DJ |
1643 | |
1644 | Use these variables to override the choices made by `configure' or to help | |
1645 | it to find libraries and programs with nonstandard names/locations. | |
1646 | ||
5213506e | 1647 | Report bugs to the package provider. |
1c710c3c | 1648 | _ACEOF |
5213506e | 1649 | ac_status=$? |
1c710c3c DJ |
1650 | fi |
1651 | ||
1652 | if test "$ac_init_help" = "recursive"; then | |
1653 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1654 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1655 | test -d "$ac_dir" || |
1656 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1657 | continue | |
1c710c3c DJ |
1658 | ac_builddir=. |
1659 | ||
5213506e RW |
1660 | case "$ac_dir" in |
1661 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1662 | *) | |
1663 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1664 | # A ".." for each directory in $ac_dir_suffix. | |
1665 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1666 | case $ac_top_builddir_sub in | |
1667 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1668 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1669 | esac ;; | |
1670 | esac | |
1671 | ac_abs_top_builddir=$ac_pwd | |
1672 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1673 | # for backward compatibility: | |
1674 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1675 | |
1676 | case $srcdir in | |
5213506e | 1677 | .) # We are building in place. |
1c710c3c | 1678 | ac_srcdir=. |
5213506e RW |
1679 | ac_top_srcdir=$ac_top_builddir_sub |
1680 | ac_abs_top_srcdir=$ac_pwd ;; | |
1681 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1682 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1683 | ac_top_srcdir=$srcdir |
1684 | ac_abs_top_srcdir=$srcdir ;; | |
1685 | *) # Relative name. | |
1686 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1687 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1688 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1689 | esac |
5213506e RW |
1690 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1691 | ||
1692 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1693 | # Check for guested configure. | |
1694 | if test -f "$ac_srcdir/configure.gnu"; then | |
1695 | echo && | |
1696 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1697 | elif test -f "$ac_srcdir/configure"; then | |
1698 | echo && | |
1699 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1700 | else |
5213506e RW |
1701 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1702 | fi || ac_status=$? | |
1703 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1704 | done |
1705 | fi | |
1706 | ||
5213506e | 1707 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1708 | if $ac_init_version; then |
1709 | cat <<\_ACEOF | |
5213506e RW |
1710 | configure |
1711 | generated by GNU Autoconf 2.64 | |
1c710c3c | 1712 | |
5213506e | 1713 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
1714 | This configure script is free software; the Free Software Foundation |
1715 | gives unlimited permission to copy, distribute and modify it. | |
1716 | _ACEOF | |
5213506e | 1717 | exit |
0b0dc272 | 1718 | fi |
5213506e RW |
1719 | |
1720 | ## ------------------------ ## | |
1721 | ## Autoconf initialization. ## | |
1722 | ## ------------------------ ## | |
1723 | ||
1724 | # ac_fn_c_try_compile LINENO | |
1725 | # -------------------------- | |
1726 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1727 | ac_fn_c_try_compile () | |
1728 | { | |
1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1730 | rm -f conftest.$ac_objext | |
1731 | if { { ac_try="$ac_compile" | |
1732 | case "(($ac_try" in | |
1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1734 | *) ac_try_echo=$ac_try;; | |
1735 | esac | |
1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1737 | $as_echo "$ac_try_echo"; } >&5 | |
1738 | (eval "$ac_compile") 2>conftest.err | |
1739 | ac_status=$? | |
1740 | if test -s conftest.err; then | |
1741 | grep -v '^ *+' conftest.err >conftest.er1 | |
1742 | cat conftest.er1 >&5 | |
1743 | mv -f conftest.er1 conftest.err | |
1744 | fi | |
1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1746 | test $ac_status = 0; } && { | |
1747 | test -z "$ac_c_werror_flag" || | |
1748 | test ! -s conftest.err | |
1749 | } && test -s conftest.$ac_objext; then : | |
1750 | ac_retval=0 | |
1751 | else | |
1752 | $as_echo "$as_me: failed program was:" >&5 | |
1753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1754 | ||
1755 | ac_retval=1 | |
1756 | fi | |
1757 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1758 | return $ac_retval | |
1759 | ||
1760 | } # ac_fn_c_try_compile | |
1761 | ||
1762 | # ac_fn_cxx_try_compile LINENO | |
1763 | # ---------------------------- | |
1764 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1765 | ac_fn_cxx_try_compile () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | rm -f conftest.$ac_objext | |
1769 | if { { ac_try="$ac_compile" | |
1770 | case "(($ac_try" in | |
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 | *) ac_try_echo=$ac_try;; | |
1773 | esac | |
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 | $as_echo "$ac_try_echo"; } >&5 | |
1776 | (eval "$ac_compile") 2>conftest.err | |
1777 | ac_status=$? | |
1778 | if test -s conftest.err; then | |
1779 | grep -v '^ *+' conftest.err >conftest.er1 | |
1780 | cat conftest.er1 >&5 | |
1781 | mv -f conftest.er1 conftest.err | |
1782 | fi | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; } && { | |
1785 | test -z "$ac_cxx_werror_flag" || | |
1786 | test ! -s conftest.err | |
1787 | } && test -s conftest.$ac_objext; then : | |
1788 | ac_retval=0 | |
1789 | else | |
1790 | $as_echo "$as_me: failed program was:" >&5 | |
1791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1792 | ||
1793 | ac_retval=1 | |
1794 | fi | |
1795 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1796 | return $ac_retval | |
1797 | ||
1798 | } # ac_fn_cxx_try_compile | |
1799 | ||
0b21f5d3 EB |
1800 | # ac_fn_cxx_try_link LINENO |
1801 | # ------------------------- | |
1802 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1803 | ac_fn_cxx_try_link () | |
1804 | { | |
1805 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1807 | if { { ac_try="$ac_link" | |
1808 | case "(($ac_try" in | |
1809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1810 | *) ac_try_echo=$ac_try;; | |
1811 | esac | |
1812 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1813 | $as_echo "$ac_try_echo"; } >&5 | |
1814 | (eval "$ac_link") 2>conftest.err | |
1815 | ac_status=$? | |
1816 | if test -s conftest.err; then | |
1817 | grep -v '^ *+' conftest.err >conftest.er1 | |
1818 | cat conftest.er1 >&5 | |
1819 | mv -f conftest.er1 conftest.err | |
1820 | fi | |
1821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1822 | test $ac_status = 0; } && { | |
1823 | test -z "$ac_cxx_werror_flag" || | |
1824 | test ! -s conftest.err | |
1825 | } && test -s conftest$ac_exeext && { | |
1826 | test "$cross_compiling" = yes || | |
1827 | $as_test_x conftest$ac_exeext | |
1828 | }; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_retval=1 | |
1835 | fi | |
1836 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1837 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1838 | # interfere with the next link command; also delete a directory that is | |
1839 | # left behind by Apple's compiler. We do this before executing the actions. | |
1840 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1841 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1842 | return $ac_retval | |
1843 | ||
1844 | } # ac_fn_cxx_try_link | |
1845 | ||
5213506e RW |
1846 | # ac_fn_c_try_link LINENO |
1847 | # ----------------------- | |
1848 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1849 | ac_fn_c_try_link () | |
1850 | { | |
1851 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1853 | if { { ac_try="$ac_link" | |
1854 | case "(($ac_try" in | |
1855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1856 | *) ac_try_echo=$ac_try;; | |
1857 | esac | |
1858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1859 | $as_echo "$ac_try_echo"; } >&5 | |
1860 | (eval "$ac_link") 2>conftest.err | |
1861 | ac_status=$? | |
1862 | if test -s conftest.err; then | |
1863 | grep -v '^ *+' conftest.err >conftest.er1 | |
1864 | cat conftest.er1 >&5 | |
1865 | mv -f conftest.er1 conftest.err | |
1866 | fi | |
1867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1868 | test $ac_status = 0; } && { | |
1869 | test -z "$ac_c_werror_flag" || | |
1870 | test ! -s conftest.err | |
1871 | } && test -s conftest$ac_exeext && { | |
1872 | test "$cross_compiling" = yes || | |
1873 | $as_test_x conftest$ac_exeext | |
1874 | }; then : | |
1875 | ac_retval=0 | |
1876 | else | |
1877 | $as_echo "$as_me: failed program was:" >&5 | |
1878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1879 | ||
1880 | ac_retval=1 | |
1881 | fi | |
1882 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1883 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1884 | # interfere with the next link command; also delete a directory that is | |
1885 | # left behind by Apple's compiler. We do this before executing the actions. | |
1886 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1887 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1888 | return $ac_retval | |
1889 | ||
1890 | } # ac_fn_c_try_link | |
1891 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1892 | This file contains any messages produced by compilers while |
1893 | running configure, to aid debugging if configure makes a mistake. | |
1894 | ||
1895 | It was created by $as_me, which was | |
5213506e | 1896 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
1897 | |
1898 | $ $0 $@ | |
1899 | ||
1900 | _ACEOF | |
5213506e | 1901 | exec 5>>config.log |
1c710c3c DJ |
1902 | { |
1903 | cat <<_ASUNAME | |
1904 | ## --------- ## | |
1905 | ## Platform. ## | |
1906 | ## --------- ## | |
1907 | ||
1908 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1909 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1910 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1911 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1912 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1913 | ||
1914 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1915 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1916 | ||
1917 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1918 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1919 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1920 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1921 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1922 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1923 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1924 | ||
1925 | _ASUNAME | |
1926 | ||
1927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1928 | for as_dir in $PATH | |
1929 | do | |
1930 | IFS=$as_save_IFS | |
1931 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1932 | $as_echo "PATH: $as_dir" |
1933 | done | |
1934 | IFS=$as_save_IFS | |
1c710c3c DJ |
1935 | |
1936 | } >&5 | |
1937 | ||
1938 | cat >&5 <<_ACEOF | |
1939 | ||
1940 | ||
1941 | ## ----------- ## | |
1942 | ## Core tests. ## | |
1943 | ## ----------- ## | |
1944 | ||
1945 | _ACEOF | |
1946 | ||
1947 | ||
1948 | # Keep a trace of the command line. | |
1949 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1950 | # Strip out --silent because we don't want to record it for future runs. | |
1951 | # Also quote any args containing shell meta-characters. | |
1952 | # Make two passes to allow for proper duplicate-argument suppression. | |
1953 | ac_configure_args= | |
1954 | ac_configure_args0= | |
1955 | ac_configure_args1= | |
1c710c3c DJ |
1956 | ac_must_keep_next=false |
1957 | for ac_pass in 1 2 | |
1958 | do | |
1959 | for ac_arg | |
1960 | do | |
1961 | case $ac_arg in | |
1962 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1963 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1964 | | -silent | --silent | --silen | --sile | --sil) | |
1965 | continue ;; | |
5213506e RW |
1966 | *\'*) |
1967 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1968 | esac |
1969 | case $ac_pass in | |
5213506e | 1970 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 1971 | 2) |
5213506e | 1972 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
1973 | if test $ac_must_keep_next = true; then |
1974 | ac_must_keep_next=false # Got value, back to normal. | |
1975 | else | |
1976 | case $ac_arg in | |
1977 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1978 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1979 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1980 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1981 | case "$ac_configure_args0 " in | |
1982 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1983 | esac | |
1984 | ;; | |
1985 | -* ) ac_must_keep_next=true ;; | |
1986 | esac | |
1987 | fi | |
5213506e | 1988 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
1989 | ;; |
1990 | esac | |
1991 | done | |
1992 | done | |
5213506e RW |
1993 | { ac_configure_args0=; unset ac_configure_args0;} |
1994 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
1995 | |
1996 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1997 | # config.log. We remove comments because anyway the quotes in there | |
1998 | # would cause problems or look ugly. | |
5213506e RW |
1999 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2000 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
2001 | trap 'exit_status=$? |
2002 | # Save into config.log some information that might help in debugging. | |
2003 | { | |
2004 | echo | |
2005 | ||
2006 | cat <<\_ASBOX | |
2007 | ## ---------------- ## | |
2008 | ## Cache variables. ## | |
2009 | ## ---------------- ## | |
2010 | _ASBOX | |
2011 | echo | |
2012 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
2013 | ( |
2014 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2015 | eval ac_val=\$$ac_var | |
2016 | case $ac_val in #( | |
2017 | *${as_nl}*) | |
2018 | case $ac_var in #( | |
2019 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2020 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2021 | esac | |
2022 | case $ac_var in #( | |
2023 | _ | IFS | as_nl) ;; #( | |
2024 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2025 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2026 | esac ;; | |
2027 | esac | |
2028 | done | |
1c710c3c | 2029 | (set) 2>&1 | |
5213506e RW |
2030 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2031 | *${as_nl}ac_space=\ *) | |
1c710c3c | 2032 | sed -n \ |
5213506e RW |
2033 | "s/'\''/'\''\\\\'\'''\''/g; |
2034 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2035 | ;; #( | |
1c710c3c | 2036 | *) |
5213506e | 2037 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 2038 | ;; |
5213506e RW |
2039 | esac | |
2040 | sort | |
2041 | ) | |
1c710c3c DJ |
2042 | echo |
2043 | ||
2044 | cat <<\_ASBOX | |
2045 | ## ----------------- ## | |
2046 | ## Output variables. ## | |
2047 | ## ----------------- ## | |
2048 | _ASBOX | |
2049 | echo | |
2050 | for ac_var in $ac_subst_vars | |
2051 | do | |
5213506e RW |
2052 | eval ac_val=\$$ac_var |
2053 | case $ac_val in | |
2054 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2055 | esac | |
2056 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2057 | done | sort |
2058 | echo | |
2059 | ||
2060 | if test -n "$ac_subst_files"; then | |
2061 | cat <<\_ASBOX | |
5213506e RW |
2062 | ## ------------------- ## |
2063 | ## File substitutions. ## | |
2064 | ## ------------------- ## | |
1c710c3c DJ |
2065 | _ASBOX |
2066 | echo | |
2067 | for ac_var in $ac_subst_files | |
2068 | do | |
5213506e RW |
2069 | eval ac_val=\$$ac_var |
2070 | case $ac_val in | |
2071 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2072 | esac | |
2073 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
2074 | done | sort |
2075 | echo | |
2076 | fi | |
2077 | ||
2078 | if test -s confdefs.h; then | |
2079 | cat <<\_ASBOX | |
2080 | ## ----------- ## | |
2081 | ## confdefs.h. ## | |
2082 | ## ----------- ## | |
2083 | _ASBOX | |
2084 | echo | |
5213506e | 2085 | cat confdefs.h |
1c710c3c DJ |
2086 | echo |
2087 | fi | |
2088 | test "$ac_signal" != 0 && | |
5213506e RW |
2089 | $as_echo "$as_me: caught signal $ac_signal" |
2090 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2091 | } >&5 |
5213506e RW |
2092 | rm -f core *.core core.conftest.* && |
2093 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2094 | exit $exit_status |
5213506e | 2095 | ' 0 |
1c710c3c | 2096 | for ac_signal in 1 2 13 15; do |
5213506e | 2097 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2098 | done |
2099 | ac_signal=0 | |
2100 | ||
2101 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2102 | rm -f -r conftest* confdefs.h |
2103 | ||
2104 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2105 | |
2106 | # Predefined preprocessor variables. | |
2107 | ||
2108 | cat >>confdefs.h <<_ACEOF | |
2109 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2110 | _ACEOF | |
2111 | ||
1c710c3c DJ |
2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2114 | _ACEOF | |
2115 | ||
1c710c3c DJ |
2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2118 | _ACEOF | |
0b0dc272 | 2119 | |
1c710c3c DJ |
2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2122 | _ACEOF | |
2123 | ||
1c710c3c DJ |
2124 | cat >>confdefs.h <<_ACEOF |
2125 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2126 | _ACEOF | |
2127 | ||
5213506e RW |
2128 | cat >>confdefs.h <<_ACEOF |
2129 | #define PACKAGE_URL "$PACKAGE_URL" | |
2130 | _ACEOF | |
2131 | ||
1c710c3c DJ |
2132 | |
2133 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2134 | # Prefer an explicitly selected file to automatically selected ones. |
2135 | ac_site_file1=NONE | |
2136 | ac_site_file2=NONE | |
2137 | if test -n "$CONFIG_SITE"; then | |
2138 | ac_site_file1=$CONFIG_SITE | |
2139 | elif test "x$prefix" != xNONE; then | |
2140 | ac_site_file1=$prefix/share/config.site | |
2141 | ac_site_file2=$prefix/etc/config.site | |
2142 | else | |
2143 | ac_site_file1=$ac_default_prefix/share/config.site | |
2144 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2145 | fi |
5213506e RW |
2146 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2147 | do | |
2148 | test "x$ac_site_file" = xNONE && continue | |
671aa708 | 2149 | if test -r "$ac_site_file"; then |
5213506e RW |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2151 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2152 | sed 's/^/| /' "$ac_site_file" >&5 |
671aa708 NN |
2153 | . "$ac_site_file" |
2154 | fi | |
2155 | done | |
2156 | ||
2157 | if test -r "$cache_file"; then | |
1c710c3c DJ |
2158 | # Some versions of bash will fail to source /dev/null (special |
2159 | # files actually), so we avoid doing that. | |
2160 | if test -f "$cache_file"; then | |
5213506e RW |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2162 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2163 | case $cache_file in |
5213506e RW |
2164 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2165 | *) . "./$cache_file";; | |
1c710c3c DJ |
2166 | esac |
2167 | fi | |
671aa708 | 2168 | else |
5213506e RW |
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2170 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2171 | >$cache_file |
2172 | fi | |
2173 | ||
2174 | # Check that the precious variables saved in the cache have kept the same | |
2175 | # value. | |
2176 | ac_cache_corrupted=false | |
5213506e | 2177 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2178 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2179 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2180 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2181 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2182 | case $ac_old_set,$ac_new_set in |
2183 | set,) | |
5213506e RW |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2185 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2186 | ac_cache_corrupted=: ;; |
2187 | ,set) | |
5213506e RW |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2189 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2190 | ac_cache_corrupted=: ;; |
2191 | ,);; | |
2192 | *) | |
2193 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2194 | # differences in whitespace do not lead to failure. |
2195 | ac_old_val_w=`echo x $ac_old_val` | |
2196 | ac_new_val_w=`echo x $ac_new_val` | |
2197 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2199 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2200 | ac_cache_corrupted=: | |
2201 | else | |
2202 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2203 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2204 | eval $ac_var=\$ac_old_val | |
2205 | fi | |
2206 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2207 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2208 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2209 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2210 | fi;; |
2211 | esac | |
2212 | # Pass precious variables to config.status. | |
2213 | if test "$ac_new_set" = set; then | |
2214 | case $ac_new_val in | |
5213506e | 2215 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2216 | *) ac_arg=$ac_var=$ac_new_val ;; |
2217 | esac | |
2218 | case " $ac_configure_args " in | |
2219 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2220 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2221 | esac |
2222 | fi | |
2223 | done | |
2224 | if $ac_cache_corrupted; then | |
5213506e RW |
2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2226 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2228 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2229 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
671aa708 | 2230 | fi |
5213506e RW |
2231 | ## -------------------- ## |
2232 | ## Main body of script. ## | |
2233 | ## -------------------- ## | |
671aa708 | 2234 | |
2aeb72e9 DD |
2235 | ac_ext=c |
2236 | ac_cpp='$CPP $CPPFLAGS' | |
2237 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2238 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2239 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2240 | ||
1c710c3c DJ |
2241 | |
2242 | ||
2243 | ||
1c710c3c DJ |
2244 | |
2245 | ||
0115d4a3 | 2246 | |
1c710c3c | 2247 | |
ad33ff57 RW |
2248 | |
2249 | progname=$0 | |
2250 | # if PWD already has a value, it is probably wrong. | |
2251 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2252 | ||
2253 | # Export original configure arguments for use by sub-configures. | |
2254 | # Quote arguments with shell meta charatcers. | |
2255 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2256 | set -- "$progname" "$@" | |
2257 | for ac_arg | |
2258 | do | |
2259 | case "$ac_arg" in | |
2260 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2261 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2262 | # if the argument is of the form -foo=baz, quote the baz part only | |
2263 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2264 | *) ;; | |
2265 | esac | |
2266 | # Add the quoted argument to the list. | |
2267 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2268 | done | |
2269 | if test "$silent" = yes; then | |
2270 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2271 | fi | |
2272 | # Remove the initial space we just introduced and, as these will be | |
2273 | # expanded by make, quote '$'. | |
2274 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2275 | ||
1c710c3c DJ |
2276 | |
2277 | # Find the build, host, and target systems. | |
671aa708 | 2278 | ac_aux_dir= |
5213506e RW |
2279 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2280 | for ac_t in install-sh install.sh shtool; do | |
2281 | if test -f "$ac_dir/$ac_t"; then | |
2282 | ac_aux_dir=$ac_dir | |
2283 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2284 | break 2 | |
2285 | fi | |
2286 | done | |
671aa708 NN |
2287 | done |
2288 | if test -z "$ac_aux_dir"; then | |
5213506e | 2289 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2290 | fi |
5213506e RW |
2291 | |
2292 | # These three variables are undocumented and unsupported, | |
2293 | # and are intended to be withdrawn in a future Autoconf release. | |
2294 | # They can cause serious problems if a builder's source tree is in a directory | |
2295 | # whose full name contains unusual characters. | |
2296 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2297 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2298 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2299 | ||
671aa708 | 2300 | |
1c710c3c | 2301 | # Make sure we can run config.sub. |
5213506e RW |
2302 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2303 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2304 | ||
2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2306 | $as_echo_n "checking build system type... " >&6; } | |
2307 | if test "${ac_cv_build+set}" = set; then : | |
2308 | $as_echo_n "(cached) " >&6 | |
2309 | else | |
2310 | ac_build_alias=$build_alias | |
2311 | test "x$ac_build_alias" = x && | |
2312 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2313 | test "x$ac_build_alias" = x && | |
2314 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2315 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2316 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2317 | ||
2318 | fi | |
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2320 | $as_echo "$ac_cv_build" >&6; } | |
2321 | case $ac_cv_build in | |
2322 | *-*-*) ;; | |
2323 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2324 | esac | |
1c710c3c | 2325 | build=$ac_cv_build |
5213506e RW |
2326 | ac_save_IFS=$IFS; IFS='-' |
2327 | set x $ac_cv_build | |
2328 | shift | |
2329 | build_cpu=$1 | |
2330 | build_vendor=$2 | |
2331 | shift; shift | |
2332 | # Remember, the first character of IFS is used to create $*, | |
2333 | # except with old shells: | |
2334 | build_os=$* | |
2335 | IFS=$ac_save_IFS | |
2336 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2337 | |
671aa708 | 2338 | |
1c710c3c DJ |
2339 | case ${build_alias} in |
2340 | "") build_noncanonical=${build} ;; | |
2341 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2342 | esac |
2343 | ||
2344 | ||
af71363e | 2345 | |
1c710c3c DJ |
2346 | case ${host_alias} in |
2347 | "") host_noncanonical=${build_noncanonical} ;; | |
2348 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2349 | esac |
2350 | ||
af71363e | 2351 | |
1c710c3c DJ |
2352 | |
2353 | case ${target_alias} in | |
2354 | "") target_noncanonical=${host_noncanonical} ;; | |
2355 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2356 | esac |
2357 | ||
af71363e | 2358 | |
1c710c3c DJ |
2359 | |
2360 | ||
2361 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2362 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2363 | NONENONEs,x,x, && | |
1c710c3c | 2364 | program_transform_name=s,y,y, |
af71363e | 2365 | |
5213506e RW |
2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2367 | $as_echo_n "checking host system type... " >&6; } | |
2368 | if test "${ac_cv_host+set}" = set; then : | |
2369 | $as_echo_n "(cached) " >&6 | |
af71363e | 2370 | else |
5213506e RW |
2371 | if test "x$host_alias" = x; then |
2372 | ac_cv_host=$ac_cv_build | |
2373 | else | |
2374 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2375 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2376 | fi | |
1c710c3c | 2377 | |
af71363e | 2378 | fi |
5213506e RW |
2379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2380 | $as_echo "$ac_cv_host" >&6; } | |
2381 | case $ac_cv_host in | |
2382 | *-*-*) ;; | |
2383 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2384 | esac | |
1c710c3c | 2385 | host=$ac_cv_host |
5213506e RW |
2386 | ac_save_IFS=$IFS; IFS='-' |
2387 | set x $ac_cv_host | |
2388 | shift | |
2389 | host_cpu=$1 | |
2390 | host_vendor=$2 | |
2391 | shift; shift | |
2392 | # Remember, the first character of IFS is used to create $*, | |
2393 | # except with old shells: | |
2394 | host_os=$* | |
2395 | IFS=$ac_save_IFS | |
2396 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2397 | |
2398 | ||
5213506e RW |
2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2400 | $as_echo_n "checking target system type... " >&6; } | |
2401 | if test "${ac_cv_target+set}" = set; then : | |
2402 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 2403 | else |
5213506e RW |
2404 | if test "x$target_alias" = x; then |
2405 | ac_cv_target=$ac_cv_host | |
2406 | else | |
2407 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2408 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2409 | fi | |
1c710c3c DJ |
2410 | |
2411 | fi | |
5213506e RW |
2412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2413 | $as_echo "$ac_cv_target" >&6; } | |
2414 | case $ac_cv_target in | |
2415 | *-*-*) ;; | |
2416 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2417 | esac | |
1c710c3c | 2418 | target=$ac_cv_target |
5213506e RW |
2419 | ac_save_IFS=$IFS; IFS='-' |
2420 | set x $ac_cv_target | |
2421 | shift | |
2422 | target_cpu=$1 | |
2423 | target_vendor=$2 | |
2424 | shift; shift | |
2425 | # Remember, the first character of IFS is used to create $*, | |
2426 | # except with old shells: | |
2427 | target_os=$* | |
2428 | IFS=$ac_save_IFS | |
2429 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2430 | |
2431 | ||
2432 | # The aliases save the names the user supplied, while $host etc. | |
2433 | # will get canonicalized. | |
2434 | test -n "$target_alias" && | |
2435 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2436 | NONENONEs,x,x, && | |
2437 | program_prefix=${target_alias}- | |
5213506e | 2438 | |
671aa708 | 2439 | test "$program_prefix" != NONE && |
5213506e | 2440 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2441 | # Use a double $ so make ignores it. |
2442 | test "$program_suffix" != NONE && | |
5213506e RW |
2443 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2444 | # Double any \ or $. | |
1c710c3c | 2445 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2446 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2447 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2448 | |
671aa708 NN |
2449 | |
2450 | ||
775956d0 NN |
2451 | # Get 'install' or 'install-sh' and its variants. |
2452 | # Find a good install program. We prefer a C program (faster), | |
2453 | # so one script is as good as another. But avoid the broken or | |
2454 | # incompatible versions: | |
2455 | # SysV /etc/install, /usr/sbin/install | |
2456 | # SunOS /usr/etc/install | |
2457 | # IRIX /sbin/install | |
2458 | # AIX /bin/install | |
1c710c3c | 2459 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2460 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2461 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2462 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2463 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2464 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2465 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2467 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2468 | if test -z "$INSTALL"; then |
5213506e RW |
2469 | if test "${ac_cv_path_install+set}" = set; then : |
2470 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
2471 | else |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2473 | for as_dir in $PATH | |
2474 | do | |
2475 | IFS=$as_save_IFS | |
2476 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2477 | # Account for people who put trailing slashes in PATH elements. |
2478 | case $as_dir/ in #(( | |
2479 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2480 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2481 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2482 | /usr/ucb/* ) ;; |
2483 | *) | |
2484 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2485 | # Don't use installbsd from OSF since it installs stuff as root | |
2486 | # by default. | |
2487 | for ac_prog in ginstall scoinst install; do | |
2488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2489 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2490 | if test $ac_prog = install && |
1c710c3c | 2491 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2492 | # AIX install. It has an incompatible calling convention. |
2493 | : | |
1c710c3c DJ |
2494 | elif test $ac_prog = install && |
2495 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2496 | # program-specific install script used by HP pwplus--don't use. | |
2497 | : | |
775956d0 | 2498 | else |
38d24731 RW |
2499 | rm -rf conftest.one conftest.two conftest.dir |
2500 | echo one > conftest.one | |
2501 | echo two > conftest.two | |
2502 | mkdir conftest.dir | |
2503 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2504 | test -s conftest.one && test -s conftest.two && | |
2505 | test -s conftest.dir/conftest.one && | |
2506 | test -s conftest.dir/conftest.two | |
2507 | then | |
2508 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2509 | break 3 | |
2510 | fi | |
775956d0 NN |
2511 | fi |
2512 | fi | |
2513 | done | |
1c710c3c DJ |
2514 | done |
2515 | ;; | |
2516 | esac | |
5213506e RW |
2517 | |
2518 | done | |
2519 | IFS=$as_save_IFS | |
1c710c3c | 2520 | |
38d24731 | 2521 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2522 | |
2523 | fi | |
2524 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2525 | INSTALL=$ac_cv_path_install |
775956d0 | 2526 | else |
38d24731 RW |
2527 | # As a last resort, use the slow shell script. Don't cache a |
2528 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2529 | # break other packages using the cache if that directory is |
38d24731 | 2530 | # removed, or if the value is a relative name. |
1c710c3c | 2531 | INSTALL=$ac_install_sh |
775956d0 NN |
2532 | fi |
2533 | fi | |
5213506e RW |
2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2535 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2536 | |
2537 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2538 | # It thinks the first close brace ends the variable substitution. | |
2539 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2540 | ||
1c710c3c | 2541 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2542 | |
2543 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2544 | ||
5213506e RW |
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2546 | $as_echo_n "checking whether ln works... " >&6; } | |
2547 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2548 | $as_echo_n "(cached) " >&6 | |
ad6717df PB |
2549 | else |
2550 | rm -f conftestdata_t | |
2551 | echo >conftestdata_f | |
2552 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2553 | then | |
2554 | acx_cv_prog_LN=ln | |
2555 | else | |
2556 | acx_cv_prog_LN=no | |
2557 | fi | |
2558 | rm -f conftestdata_f conftestdata_t | |
2559 | ||
2560 | fi | |
2561 | if test $acx_cv_prog_LN = no; then | |
2562 | LN="cp" | |
5213506e RW |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2564 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2565 | else |
2566 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2568 | $as_echo "yes" >&6; } | |
ad6717df PB |
2569 | fi |
2570 | ||
5213506e RW |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2572 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2573 | LN_S=$as_ln_s |
2574 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2576 | $as_echo "yes" >&6; } | |
fb0103e5 | 2577 | else |
5213506e RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2579 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2580 | fi |
2581 | ||
87264276 PB |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2583 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2584 | if test "${ac_cv_path_SED+set}" = set; then : | |
2585 | $as_echo_n "(cached) " >&6 | |
2586 | else | |
2587 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2588 | for ac_i in 1 2 3 4 5 6 7; do | |
2589 | ac_script="$ac_script$as_nl$ac_script" | |
2590 | done | |
2591 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2592 | { ac_script=; unset ac_script;} | |
2593 | if test -z "$SED"; then | |
2594 | ac_path_SED_found=false | |
2595 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2597 | for as_dir in $PATH | |
2598 | do | |
2599 | IFS=$as_save_IFS | |
2600 | test -z "$as_dir" && as_dir=. | |
2601 | for ac_prog in sed gsed; do | |
2602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2603 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2604 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2605 | # Check for GNU ac_path_SED and select it if it is found. | |
2606 | # Check for GNU $ac_path_SED | |
2607 | case `"$ac_path_SED" --version 2>&1` in | |
2608 | *GNU*) | |
2609 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2610 | *) | |
2611 | ac_count=0 | |
2612 | $as_echo_n 0123456789 >"conftest.in" | |
2613 | while : | |
2614 | do | |
2615 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2616 | mv "conftest.tmp" "conftest.in" | |
2617 | cp "conftest.in" "conftest.nl" | |
2618 | $as_echo '' >> "conftest.nl" | |
2619 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2620 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2621 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2622 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2623 | # Best one so far, save it but keep looking for a better one | |
2624 | ac_cv_path_SED="$ac_path_SED" | |
2625 | ac_path_SED_max=$ac_count | |
2626 | fi | |
2627 | # 10*(2^10) chars as input seems more than enough | |
2628 | test $ac_count -gt 10 && break | |
2629 | done | |
2630 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2631 | esac | |
2632 | ||
2633 | $ac_path_SED_found && break 3 | |
2634 | done | |
2635 | done | |
2636 | done | |
2637 | IFS=$as_save_IFS | |
2638 | if test -z "$ac_cv_path_SED"; then | |
2639 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2640 | fi | |
2641 | else | |
2642 | ac_cv_path_SED=$SED | |
2643 | fi | |
2644 | ||
2645 | fi | |
2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2647 | $as_echo "$ac_cv_path_SED" >&6; } | |
2648 | SED="$ac_cv_path_SED" | |
2649 | rm -f conftest.sed | |
2650 | ||
2651 | for ac_prog in gawk mawk nawk awk | |
2652 | do | |
2653 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2654 | set dummy $ac_prog; ac_word=$2 | |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2656 | $as_echo_n "checking for $ac_word... " >&6; } | |
2657 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2658 | $as_echo_n "(cached) " >&6 | |
2659 | else | |
2660 | if test -n "$AWK"; then | |
2661 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2662 | else | |
2663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2664 | for as_dir in $PATH | |
2665 | do | |
2666 | IFS=$as_save_IFS | |
2667 | test -z "$as_dir" && as_dir=. | |
2668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2670 | ac_cv_prog_AWK="$ac_prog" | |
2671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2672 | break 2 | |
2673 | fi | |
2674 | done | |
2675 | done | |
2676 | IFS=$as_save_IFS | |
2677 | ||
2678 | fi | |
2679 | fi | |
2680 | AWK=$ac_cv_prog_AWK | |
2681 | if test -n "$AWK"; then | |
2682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2683 | $as_echo "$AWK" >&6; } | |
2684 | else | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2686 | $as_echo "no" >&6; } | |
2687 | fi | |
2688 | ||
2689 | ||
2690 | test -n "$AWK" && break | |
2691 | done | |
2692 | ||
775956d0 | 2693 | |
ee6a22df L |
2694 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2695 | ||
2696 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2697 | # a relative path. | |
2698 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2699 | INSTALL="${srcpwd}/install-sh -c" | |
2700 | fi | |
2701 | ||
671aa708 NN |
2702 | # Set srcdir to "." if that's what it is. |
2703 | # This is important for multilib support. | |
2704 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2705 | if test "${pwd}" = "${srcpwd}" ; then |
2706 | srcdir=. | |
79c06341 JL |
2707 | fi |
2708 | ||
671aa708 | 2709 | topsrcdir=$srcpwd |
5d4a5ee6 | 2710 | |
671aa708 | 2711 | extra_host_args= |
afabd8e6 | 2712 | |
671aa708 NN |
2713 | ### To add a new directory to the tree, first choose whether it is a target |
2714 | ### or a host dependent tool. Then put it into the appropriate list | |
2715 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2716 | |
1c710c3c | 2717 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2718 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2719 | |
1c710c3c DJ |
2720 | # Dependency sorting is only needed when *configuration* must be done in |
2721 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2722 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2723 | |
671aa708 NN |
2724 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2725 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2726 | |
23f6b2f9 PB |
2727 | # these library is used by various programs built for the build |
2728 | # environment | |
2729 | # | |
929315a9 | 2730 | build_libs="build-libiberty build-libcpp" |
23f6b2f9 PB |
2731 | |
2732 | # these tools are built for the build environment | |
85bfb75e | 2733 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2734 | |
671aa708 | 2735 | # these libraries are used by various programs built for the host environment |
eae1a5d4 | 2736 | #f |
4a9bb2aa | 2737 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" |
671aa708 | 2738 | |
671aa708 NN |
2739 | # these tools are built for the host environment |
2740 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2741 | # know that we are building the simulator. | |
2742 | # binutils, gas and ld appear in that order because it makes sense to run | |
2743 | # "make check" in that particular order. | |
38e3d868 | 2744 | # If --enable-gold is used, "gold" may replace "ld". |
bf1de3f0 | 2745 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
671aa708 | 2746 | |
671aa708 NN |
2747 | # these libraries are built for the target environment, and are built after |
2748 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2749 | # Note that libiberty is not a target library. |
291f172e | 2750 | target_libraries="target-libgcc \ |
eff02e4f | 2751 | target-libbacktrace \ |
671aa708 NN |
2752 | target-libgloss \ |
2753 | target-newlib \ | |
6d3b5aea | 2754 | target-libgomp \ |
3038054c | 2755 | target-libcilkrts \ |
5f520819 | 2756 | target-liboffloadmic \ |
48310492 | 2757 | target-libatomic \ |
0a35513e | 2758 | target-libitm \ |
cb543528 | 2759 | target-libstdc++-v3 \ |
f35db108 | 2760 | target-libsanitizer \ |
2077db1b | 2761 | target-libvtv \ |
5373cd33 | 2762 | target-libmpx \ |
77008252 | 2763 | target-libssp \ |
1ec601bf | 2764 | target-libquadmath \ |
6de9cd9a | 2765 | target-libgfortran \ |
012447ea | 2766 | target-libffi \ |
d9cdb878 | 2767 | target-libobjc \ |
632e2a07 ILT |
2768 | target-libada \ |
2769 | target-libgo" | |
671aa708 | 2770 | |
4dbda6f0 NN |
2771 | # these tools are built using the target libraries, and are intended to |
2772 | # run only in the target environment | |
671aa708 | 2773 | # |
4dbda6f0 | 2774 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2775 | # list belongs in this list. |
671aa708 | 2776 | # |
85bfb75e | 2777 | target_tools="target-rda" |
79c06341 | 2778 | |
671aa708 | 2779 | ################################################################################ |
79c06341 | 2780 | |
671aa708 NN |
2781 | ## All tools belong in one of the four categories, and are assigned above |
2782 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2783 | ## is important because configure will choke if they ever get through. | |
2784 | ## ${configdirs} is directories we build using the host tools. | |
2785 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2786 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2787 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2788 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2789 | |
ac9e6043 RW |
2790 | |
2791 | ||
671aa708 | 2792 | ################################################################################ |
79c06341 | 2793 | |
671aa708 | 2794 | srcname="gnu development package" |
79c06341 | 2795 | |
671aa708 NN |
2796 | # This gets set non-empty for some net releases of packages. |
2797 | appdirs="" | |
79c06341 | 2798 | |
671aa708 NN |
2799 | # Define is_cross_compiler to save on calls to 'test'. |
2800 | is_cross_compiler= | |
2801 | if test x"${host}" = x"${target}" ; then | |
2802 | is_cross_compiler=no | |
79c06341 | 2803 | else |
671aa708 | 2804 | is_cross_compiler=yes |
1c710c3c | 2805 | fi |
79c06341 | 2806 | |
b4acb5ef | 2807 | # Find the build and target subdir names. |
8b87bb96 | 2808 | |
2e9e6f68 DJ |
2809 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2810 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2811 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2812 | # However, they still use the build modules, because the corresponding | |
2813 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2814 | # finishes. So: | |
2815 | # - build_subdir is where we find build modules, and never changes. | |
2816 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2817 | ||
2818 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2819 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2820 | |
5213506e RW |
2821 | # Check whether --with-build-libsubdir was given. |
2822 | if test "${with_build_libsubdir+set}" = set; then : | |
2823 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2824 | else |
2825 | build_libsubdir="$build_subdir" | |
5213506e RW |
2826 | fi |
2827 | ||
215c351a PB |
2828 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2829 | if ( test $srcdir = . && test -d gcc ) \ | |
2830 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2831 | host_subdir="host-${host_noncanonical}" | |
2832 | else | |
2833 | host_subdir=. | |
2834 | fi | |
8b87bb96 NN |
2835 | # No prefix. |
2836 | target_subdir=${target_noncanonical} | |
1c710c3c | 2837 | |
0db770bd RW |
2838 | # Be sure to cover against remnants of an in-tree build. |
2839 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2840 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2841 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2842 | fi | |
79c06341 | 2843 | |
671aa708 NN |
2844 | # Skipdirs are removed silently. |
2845 | skipdirs= | |
2846 | # Noconfigdirs are removed loudly. | |
2847 | noconfigdirs="" | |
79c06341 | 2848 | |
671aa708 NN |
2849 | use_gnu_ld= |
2850 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2851 | if test x$with_gnu_ld = xno ; then | |
2852 | use_gnu_ld=no | |
5afab7ad | 2853 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2854 | fi |
2855 | ||
671aa708 NN |
2856 | use_gnu_as= |
2857 | # Make sure we don't let GNU as be added if we didn't want it. | |
2858 | if test x$with_gnu_as = xno ; then | |
2859 | use_gnu_as=no | |
2860 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2861 | fi |
2862 | ||
d7f09764 | 2863 | use_included_zlib= |
a05c2c75 L |
2864 | |
2865 | # Check whether --with-system-zlib was given. | |
2866 | if test "${with_system_zlib+set}" = set; then : | |
2867 | withval=$with_system_zlib; | |
2868 | fi | |
2869 | ||
d7f09764 DN |
2870 | # Make sure we don't let ZLIB be added if we didn't want it. |
2871 | if test x$with_system_zlib = xyes ; then | |
2872 | use_included_zlib=no | |
2873 | noconfigdirs="$noconfigdirs zlib" | |
2874 | fi | |
2875 | ||
1c710c3c | 2876 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2877 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2878 | |
671aa708 NN |
2879 | case ${with_x} in |
2880 | yes | "") ;; # the default value for this tree is that X11 is available | |
2881 | no) | |
b4f96efe | 2882 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2883 | # We won't be able to build gdbtk without X. |
1c710c3c | 2884 | enable_gdbtk=no |
671aa708 NN |
2885 | ;; |
2886 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2887 | esac | |
79c06341 | 2888 | |
1bcce263 | 2889 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2890 | # Remove these if host=target. |
2891 | cross_only="target-libgloss target-newlib target-opcodes" | |
2892 | ||
2893 | case $is_cross_compiler in | |
2894 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2895 | esac |
79c06341 | 2896 | |
671aa708 NN |
2897 | # If both --with-headers and --with-libs are specified, default to |
2898 | # --without-newlib. | |
ee6a22df L |
2899 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2900 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2901 | if test x"${with_newlib}" = x ; then |
2902 | with_newlib=no | |
2903 | fi | |
79c06341 JL |
2904 | fi |
2905 | ||
671aa708 NN |
2906 | # Recognize --with-newlib/--without-newlib. |
2907 | case ${with_newlib} in | |
2908 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2909 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2910 | esac | |
79c06341 | 2911 | |
85c64bbe BS |
2912 | # Check whether --enable-as-accelerator-for was given. |
2913 | if test "${enable_as_accelerator_for+set}" = set; then : | |
4b4f2e35 | 2914 | enableval=$enable_as_accelerator_for; |
85c64bbe BS |
2915 | fi |
2916 | ||
2917 | ||
2918 | # Check whether --enable-offload-targets was given. | |
2919 | if test "${enable_offload_targets+set}" = set; then : | |
2920 | enableval=$enable_offload_targets; | |
2921 | if test x"$enable_offload_targets" = x; then | |
2922 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2923 | fi | |
2924 | ||
2925 | else | |
2926 | enable_offload_targets= | |
2927 | fi | |
2928 | ||
2929 | ||
21539e2e MK |
2930 | # Handle --enable-gold, --enable-ld. |
2931 | # --disable-gold [--enable-ld] | |
2932 | # Build only ld. Default option. | |
9580395f L |
2933 | # --enable-gold [--enable-ld] |
2934 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2935 | # as "ld.bfd" and "ld". | |
2936 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2937 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2938 | # install ld as "ld.bfd". | |
2939 | # --enable-gold[=default] --disable-ld | |
2940 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2941 | # --enable-gold --enable-ld=default | |
9580395f L |
2942 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2943 | # and ld.bfd). | |
21539e2e MK |
2944 | # In other words, ld is default |
2945 | # --enable-gold=default --enable-ld=default | |
2946 | # Error. | |
2947 | ||
2948 | default_ld= | |
5213506e RW |
2949 | # Check whether --enable-gold was given. |
2950 | if test "${enable_gold+set}" = set; then : | |
2951 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2952 | else |
2953 | ENABLE_GOLD=no | |
5213506e RW |
2954 | fi |
2955 | ||
21539e2e MK |
2956 | case "${ENABLE_GOLD}" in |
2957 | yes|default) | |
38e3d868 RM |
2958 | # Check for ELF target. |
2959 | is_elf=no | |
2960 | case "${target}" in | |
2961 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
0e76460f | 2962 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
8c6d158a | 2963 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
ff4b7a7e | 2964 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
38e3d868 RM |
2965 | case "${target}" in |
2966 | *-*-linux*aout* | *-*-linux*oldld*) | |
2967 | ;; | |
2968 | *) | |
2969 | is_elf=yes | |
2970 | ;; | |
2971 | esac | |
2972 | esac | |
2973 | ||
2974 | if test "$is_elf" = "yes"; then | |
2975 | # Check for target supported by gold. | |
5afab7ad | 2976 | case "${target}" in |
7705dfd1 | 2977 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
1b858e76 | 2978 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
21539e2e MK |
2979 | configdirs="$configdirs gold" |
2980 | if test x${ENABLE_GOLD} = xdefault; then | |
2981 | default_ld=gold | |
2982 | fi | |
38e3d868 | 2983 | ENABLE_GOLD=yes |
5afab7ad ILT |
2984 | ;; |
2985 | esac | |
38e3d868 RM |
2986 | fi |
2987 | ;; | |
2988 | no) | |
2989 | ;; | |
2990 | *) | |
2991 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2992 | ;; | |
21539e2e MK |
2993 | esac |
2994 | ||
2995 | # Check whether --enable-ld was given. | |
2996 | if test "${enable_ld+set}" = set; then : | |
2997 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2998 | else | |
2999 | ENABLE_LD=yes | |
3000 | fi | |
3001 | ||
3002 | ||
3003 | case "${ENABLE_LD}" in | |
3004 | default) | |
9580395f | 3005 | if test x${default_ld} != x; then |
21539e2e MK |
3006 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3007 | fi | |
3008 | ;; | |
3009 | yes) | |
3010 | ;; | |
3011 | no) | |
3012 | if test x${ENABLE_GOLD} != xyes; then | |
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3014 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3015 | fi | |
3016 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3017 | ;; | |
3018 | *) | |
3019 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3020 | ;; | |
3021 | esac | |
5afab7ad | 3022 | |
78edb32f L |
3023 | # PR gas/19109 |
3024 | # Decide the default method for compressing debug sections. | |
3025 | # Provide a configure time option to override our default. | |
3026 | # Check whether --enable-compressed_debug_sections was given. | |
3027 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3028 | enableval=$enable_compressed_debug_sections; | |
3029 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3030 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3031 | fi | |
3032 | ||
3033 | else | |
3034 | enable_compressed_debug_sections= | |
3035 | fi | |
3036 | ||
3037 | ||
671aa708 | 3038 | # Configure extra directories which are host specific |
79c06341 | 3039 | |
671aa708 NN |
3040 | case "${host}" in |
3041 | *-cygwin*) | |
3042 | configdirs="$configdirs libtermcap" ;; | |
3043 | esac | |
79c06341 | 3044 | |
4fab7234 HPN |
3045 | # A target can indicate whether a language isn't supported for some reason. |
3046 | # Only spaces may be used in this macro; not newlines or tabs. | |
3047 | unsupported_languages= | |
3048 | ||
1c710c3c | 3049 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
3050 | # target this usually means that a port of the program doesn't |
3051 | # exist yet. | |
ec8d6ddc | 3052 | |
671aa708 | 3053 | case "${host}" in |
111eeb6e | 3054 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 3055 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 3056 | ;; |
671aa708 | 3057 | esac |
ec8d6ddc | 3058 | |
6de9cd9a | 3059 | |
87e6d9dc TB |
3060 | # Check whether --enable-libquadmath was given. |
3061 | if test "${enable_libquadmath+set}" = set; then : | |
3062 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3063 | else | |
3064 | ENABLE_LIBQUADMATH=yes | |
3065 | fi | |
3066 | ||
3067 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3068 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3069 | fi | |
3070 | ||
3071 | ||
3072 | # Check whether --enable-libquadmath-support was given. | |
3073 | if test "${enable_libquadmath_support+set}" = set; then : | |
3074 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3075 | else | |
3076 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3077 | fi | |
3078 | ||
3079 | enable_libquadmath_support= | |
3080 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3081 | enable_libquadmath_support=no | |
3082 | fi | |
3083 | ||
3084 | ||
5213506e RW |
3085 | # Check whether --enable-libada was given. |
3086 | if test "${enable_libada+set}" = set; then : | |
3087 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
3088 | else |
3089 | ENABLE_LIBADA=yes | |
5213506e RW |
3090 | fi |
3091 | ||
d9cdb878 | 3092 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 3093 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
3094 | fi |
3095 | ||
5213506e RW |
3096 | # Check whether --enable-libssp was given. |
3097 | if test "${enable_libssp+set}" = set; then : | |
3098 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
3099 | else |
3100 | ENABLE_LIBSSP=yes | |
5213506e RW |
3101 | fi |
3102 | ||
ef0087a7 | 3103 | |
1873ec0c L |
3104 | # Check whether --enable-libstdcxx was given. |
3105 | if test "${enable_libstdcxx+set}" = set; then : | |
3106 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3107 | else | |
3108 | ENABLE_LIBSTDCXX=default | |
3109 | fi | |
3110 | ||
3111 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1007a55c | 3112 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
1873ec0c L |
3113 | fi |
3114 | ||
5f520819 KY |
3115 | # If this is accelerator compiler and its target is intelmic we enable |
3116 | # target liboffloadmic by default. If this is compiler with offloading | |
3117 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3118 | # liboffloadmic is disabled by default. | |
3119 | # Check whether --enable-liboffloadmic was given. | |
3120 | if test "${enable_liboffloadmic+set}" = set; then : | |
3121 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3122 | no | host | target) | |
3123 | enable_liboffloadmic=$enableval ;; | |
3124 | *) | |
3125 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3126 | esac | |
3127 | else | |
4b4f2e35 | 3128 | if test x"$enable_as_accelerator_for" != x; then |
5f520819 KY |
3129 | case "${target}" in |
3130 | *-intelmic-* | *-intelmicemul-*) | |
3131 | enable_liboffloadmic=target | |
3132 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3133 | ;; | |
3134 | *) | |
3135 | enable_liboffloadmic=no | |
3136 | ;; | |
3137 | esac | |
3138 | else | |
3139 | case "${enable_offload_targets}" in | |
3140 | *-intelmic-* | *-intelmicemul-*) | |
3141 | enable_liboffloadmic=host | |
3142 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3143 | ;; | |
3144 | *) | |
3145 | enable_liboffloadmic=no | |
3146 | ;; | |
3147 | esac | |
3148 | fi | |
3149 | fi | |
3150 | ||
3151 | ||
3152 | ||
44a7d18d | 3153 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
27079765 | 3154 | if test x$enable_libgomp = x ; then |
953ff289 | 3155 | case "${target}" in |
416ac4d4 | 3156 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3157 | ;; |
8c6d158a | 3158 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3159 | ;; |
b24513a1 | 3160 | *-*-solaris2* | *-*-hpux11*) |
953ff289 | 3161 | ;; |
cac90078 | 3162 | *-*-darwin* | *-*-aix*) |
953ff289 | 3163 | ;; |
44a7d18d TS |
3164 | nvptx*-*-*) |
3165 | ;; | |
953ff289 DN |
3166 | *) |
3167 | noconfigdirs="$noconfigdirs target-libgomp" | |
3168 | ;; | |
3169 | esac | |
27079765 | 3170 | fi |
953ff289 | 3171 | |
48310492 RH |
3172 | # Disable libatomic on unsupported systems. |
3173 | if test -d ${srcdir}/libatomic; then | |
3174 | if test x$enable_libatomic = x; then | |
3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3176 | $as_echo_n "checking for libatomic support... " >&6; } | |
3177 | if (srcdir=${srcdir}/libatomic; \ | |
3178 | . ${srcdir}/configure.tgt; \ | |
3179 | test -n "$UNSUPPORTED") | |
3180 | then | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3182 | $as_echo "no" >&6; } | |
3183 | noconfigdirs="$noconfigdirs target-libatomic" | |
3184 | else | |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3186 | $as_echo "yes" >&6; } | |
3187 | fi | |
3188 | fi | |
3189 | fi | |
3190 | ||
3038054c BI |
3191 | # Disable libcilkrts on unsupported systems. |
3192 | if test -d ${srcdir}/libcilkrts; then | |
3193 | if test x$enable_libcilkrts = x; then | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3195 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3196 | if (srcdir=${srcdir}/libcilkrts; \ | |
3197 | . ${srcdir}/configure.tgt; \ | |
3198 | test -n "$UNSUPPORTED") | |
3199 | then | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3201 | $as_echo "no" >&6; } | |
3202 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3203 | else | |
3204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3205 | $as_echo "yes" >&6; } | |
3206 | fi | |
3207 | fi | |
3208 | fi | |
3209 | ||
5f520819 KY |
3210 | # Disable liboffloadmic on unsupported systems. |
3211 | if test -d ${srcdir}/liboffloadmic; then | |
3212 | if test x$enable_liboffloadmic != xno; then | |
3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3214 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3215 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3216 | . ${srcdir}/configure.tgt; \ | |
3217 | test -n "$UNSUPPORTED") | |
3218 | then | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3220 | $as_echo "no" >&6; } | |
3221 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3222 | else | |
3223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3224 | $as_echo "yes" >&6; } | |
3225 | fi | |
3226 | fi | |
3227 | fi | |
3228 | ||
e948157d RH |
3229 | # Disable libitm on unsupported systems. |
3230 | if test -d ${srcdir}/libitm; then | |
3231 | if test x$enable_libitm = x; then | |
3232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
01f3428c | 3233 | $as_echo_n "checking for libitm support... " >&6; } |
e948157d RH |
3234 | if (srcdir=${srcdir}/libitm; \ |
3235 | . ${srcdir}/configure.tgt; \ | |
3236 | test -n "$UNSUPPORTED") | |
3237 | then | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
01f3428c | 3239 | $as_echo "no" >&6; } |
e948157d RH |
3240 | noconfigdirs="$noconfigdirs target-libitm" |
3241 | else | |
3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
01f3428c | 3243 | $as_echo "yes" >&6; } |
e948157d RH |
3244 | fi |
3245 | fi | |
0a35513e AH |
3246 | fi |
3247 | ||
93bf5390 RH |
3248 | # Disable libsanitizer on unsupported systems. |
3249 | if test -d ${srcdir}/libsanitizer; then | |
3250 | if test x$enable_libsanitizer = x; then | |
3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3252 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3253 | if (srcdir=${srcdir}/libsanitizer; \ | |
3254 | . ${srcdir}/configure.tgt; \ | |
3255 | test -n "$UNSUPPORTED") | |
3256 | then | |
3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3258 | $as_echo "no" >&6; } | |
3259 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3260 | else | |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3262 | $as_echo "yes" >&6; } | |
3263 | fi | |
3264 | fi | |
3265 | fi | |
3266 | ||
2077db1b CT |
3267 | # Disable libvtv on unsupported systems. |
3268 | if test -d ${srcdir}/libvtv; then | |
3269 | if test x$enable_libvtv = x; then | |
3270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3271 | $as_echo_n "checking for libvtv support... " >&6; } | |
3272 | if (srcdir=${srcdir}/libvtv; \ | |
3273 | . ${srcdir}/configure.tgt; \ | |
1e74b850 | 3274 | test "$VTV_SUPPORTED" != "yes") |
2077db1b CT |
3275 | then |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3277 | $as_echo "no" >&6; } | |
3278 | noconfigdirs="$noconfigdirs target-libvtv" | |
3279 | else | |
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3281 | $as_echo "yes" >&6; } | |
3282 | fi | |
3283 | fi | |
3284 | fi | |
3285 | ||
5373cd33 IE |
3286 | |
3287 | # Enable libmpx on supported systems by request. | |
3288 | if test -d ${srcdir}/libmpx; then | |
54985c70 | 3289 | if test x$enable_libmpx = x; then |
5373cd33 IE |
3290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3291 | $as_echo_n "checking for libmpx support... " >&6; } | |
3292 | if (srcdir=${srcdir}/libmpx; \ | |
3293 | . ${srcdir}/configure.tgt; \ | |
3294 | test "$LIBMPX_SUPPORTED" != "yes") | |
3295 | then | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3297 | $as_echo "no" >&6; } | |
3298 | noconfigdirs="$noconfigdirs target-libmpx" | |
3299 | else | |
3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3301 | $as_echo "yes" >&6; } | |
3302 | fi | |
5373cd33 IE |
3303 | fi |
3304 | fi | |
3305 | ||
3306 | ||
3307 | ||
d91491e5 SE |
3308 | # Disable libquadmath for some systems. |
3309 | case "${target}" in | |
e7fae550 DE |
3310 | avr-*-*) |
3311 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3312 | ;; | |
d91491e5 SE |
3313 | # libquadmath is unused on AIX and libquadmath build process use of |
3314 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3315 | powerpc-*-aix* | rs6000-*-aix*) | |
3316 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3317 | ;; | |
3318 | esac | |
3319 | ||
1e9e0e23 JM |
3320 | # Disable libssp for some systems. |
3321 | case "${target}" in | |
3322 | avr-*-*) | |
b318fb4b | 3323 | # No hosted I/O support. |
1e9e0e23 JM |
3324 | noconfigdirs="$noconfigdirs target-libssp" |
3325 | ;; | |
3326 | powerpc-*-aix* | rs6000-*-aix*) | |
3327 | noconfigdirs="$noconfigdirs target-libssp" | |
85b8555e DD |
3328 | ;; |
3329 | rl78-*-*) | |
7cb62ef1 EB |
3330 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3331 | # doesn't fault for those - instead, it gives a build-time error | |
3332 | # for explicit misaligned loads. | |
85b8555e | 3333 | noconfigdirs="$noconfigdirs target-libssp" |
1e9e0e23 | 3334 | ;; |
0969ec7d EB |
3335 | visium-*-*) |
3336 | # No hosted I/O support. | |
3337 | noconfigdirs="$noconfigdirs target-libssp" | |
3338 | ;; | |
1e9e0e23 JM |
3339 | esac |
3340 | ||
1e9e0e23 | 3341 | # Disable libstdc++-v3 for some systems. |
1873ec0c L |
3342 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3343 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3344 | case "${target}" in | |
3345 | *-*-vxworks*) | |
3346 | # VxWorks uses the Dinkumware C++ library. | |
3347 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3348 | ;; | |
3349 | arm*-wince-pe*) | |
3350 | # the C++ libraries don't build on top of CE's C libraries | |
3351 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3352 | ;; | |
3353 | avr-*-*) | |
3354 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3355 | ;; | |
fef939d6 JB |
3356 | ft32-*-*) |
3357 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3358 | ;; | |
1873ec0c L |
3359 | esac |
3360 | fi | |
1e9e0e23 JM |
3361 | |
3362 | # Disable Fortran for some systems. | |
3363 | case "${target}" in | |
3364 | mmix-*-*) | |
3365 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3366 | unsupported_languages="$unsupported_languages fortran" | |
3367 | ;; | |
3368 | esac | |
3369 | ||
012447ea JJ |
3370 | # Disable libffi for some systems. |
3371 | case "${target}" in | |
3372 | powerpc-*-darwin*) | |
3373 | ;; | |
3374 | i[3456789]86-*-darwin*) | |
3375 | ;; | |
3376 | x86_64-*-darwin[912]*) | |
3377 | ;; | |
3378 | *-*-darwin*) | |
3379 | noconfigdirs="$noconfigdirs target-libffi" | |
3380 | ;; | |
3381 | *-*-netware*) | |
3382 | noconfigdirs="$noconfigdirs target-libffi" | |
3383 | ;; | |
3384 | *-*-phoenix*) | |
3385 | noconfigdirs="$noconfigdirs target-libffi" | |
3386 | ;; | |
3387 | *-*-rtems*) | |
3388 | noconfigdirs="$noconfigdirs target-libffi" | |
3389 | ;; | |
3390 | *-*-tpf*) | |
3391 | noconfigdirs="$noconfigdirs target-libffi" | |
3392 | ;; | |
3393 | *-*-uclinux*) | |
3394 | noconfigdirs="$noconfigdirs target-libffi" | |
3395 | ;; | |
3396 | *-*-vxworks*) | |
3397 | noconfigdirs="$noconfigdirs target-libffi" | |
3398 | ;; | |
b20e7532 AT |
3399 | aarch64*-*-freebsd*) |
3400 | noconfigdirs="$noconfigdirs target-libffi" | |
3401 | ;; | |
012447ea JJ |
3402 | alpha*-*-*vms*) |
3403 | noconfigdirs="$noconfigdirs target-libffi" | |
3404 | ;; | |
3405 | arm*-*-freebsd*) | |
3406 | noconfigdirs="$noconfigdirs target-libffi" | |
3407 | ;; | |
3408 | arm-wince-pe) | |
3409 | noconfigdirs="$noconfigdirs target-libffi" | |
3410 | ;; | |
3411 | arm*-*-symbianelf*) | |
3412 | noconfigdirs="$noconfigdirs target-libffi" | |
3413 | ;; | |
3414 | cris-*-* | crisv32-*-*) | |
3415 | case "${target}" in | |
3416 | *-*-linux*) | |
3417 | ;; | |
3418 | *) # See PR46792 regarding target-libffi. | |
3419 | noconfigdirs="$noconfigdirs target-libffi";; | |
3420 | esac | |
3421 | ;; | |
3422 | hppa*64*-*-hpux*) | |
3423 | noconfigdirs="$noconfigdirs target-libffi" | |
3424 | ;; | |
3425 | hppa*-hp-hpux11*) | |
3426 | ;; | |
3427 | hppa*-*-hpux*) | |
3428 | noconfigdirs="$noconfigdirs target-libffi" | |
3429 | ;; | |
3430 | ia64*-*-*vms*) | |
3431 | noconfigdirs="$noconfigdirs target-libffi" | |
3432 | ;; | |
3433 | i[3456789]86-w64-mingw*) | |
3434 | noconfigdirs="$noconfigdirs target-libffi" | |
3435 | ;; | |
3436 | i[3456789]86-*-mingw*) | |
3437 | noconfigdirs="$noconfigdirs target-libffi" | |
3438 | ;; | |
3439 | x86_64-*-mingw*) | |
3440 | noconfigdirs="$noconfigdirs target-libffi" | |
3441 | ;; | |
3442 | mmix-*-*) | |
3443 | noconfigdirs="$noconfigdirs target-libffi" | |
3444 | ;; | |
3445 | powerpc-*-aix*) | |
3446 | # copied from rs6000-*-* entry | |
3447 | noconfigdirs="$noconfigdirs target-libffi" | |
3448 | ;; | |
3449 | rs6000-*-aix*) | |
3450 | noconfigdirs="$noconfigdirs target-libffi" | |
3451 | ;; | |
3452 | ft32-*-*) | |
3453 | noconfigdirs="$noconfigdirs target-libffi" | |
3454 | ;; | |
3455 | *-*-lynxos*) | |
3456 | noconfigdirs="$noconfigdirs target-libffi" | |
3457 | ;; | |
3458 | esac | |
3459 | ||
3460 | # Disable the go frontend on systems where it is known to not work. Please keep | |
3461 | # this in sync with contrib/config-list.mk. | |
3462 | case "${target}" in | |
3463 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3464 | unsupported_languages="$unsupported_languages go" | |
3465 | ;; | |
3466 | esac | |
3467 | ||
cdbc9e92 ILT |
3468 | # Disable libgo for some systems where it is known to not work. |
3469 | # For testing, you can easily override this with --enable-libgo. | |
3470 | if test x$enable_libgo = x; then | |
3471 | case "${target}" in | |
3472 | *-*-darwin*) | |
3473 | # PR 46986 | |
3474 | noconfigdirs="$noconfigdirs target-libgo" | |
3475 | ;; | |
3476 | *-*-cygwin* | *-*-mingw*) | |
3477 | noconfigdirs="$noconfigdirs target-libgo" | |
3478 | ;; | |
3479 | *-*-aix*) | |
3480 | noconfigdirs="$noconfigdirs target-libgo" | |
3481 | ;; | |
3482 | esac | |
3483 | fi | |
3484 | ||
c03353e2 RIL |
3485 | # Default libgloss CPU subdirectory. |
3486 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3487 | |
fbcf0dca JM |
3488 | case "${target}" in |
3489 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3490 | libgloss_dir=wince | |
3491 | ;; | |
4dddfc74 YZ |
3492 | aarch64*-*-* ) |
3493 | libgloss_dir=aarch64 | |
3494 | ;; | |
fbcf0dca JM |
3495 | arm*-*-*) |
3496 | libgloss_dir=arm | |
3497 | ;; | |
3498 | cris-*-* | crisv32-*-*) | |
3499 | libgloss_dir=cris | |
3500 | ;; | |
3501 | hppa*-*-*) | |
3502 | libgloss_dir=pa | |
3503 | ;; | |
3504 | i[3456789]86-*-*) | |
3505 | libgloss_dir=i386 | |
3506 | ;; | |
3507 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3508 | libgloss_dir=m68hc11 | |
3509 | ;; | |
3510 | m68*-*-* | fido-*-*) | |
3511 | libgloss_dir=m68k | |
3512 | ;; | |
3513 | mips*-*-*) | |
3514 | libgloss_dir=mips | |
3515 | ;; | |
3516 | powerpc*-*-*) | |
3517 | libgloss_dir=rs6000 | |
3518 | ;; | |
3519 | sparc*-*-*) | |
3520 | libgloss_dir=sparc | |
3521 | ;; | |
3522 | esac | |
3523 | ||
6a789d5e | 3524 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3525 | case "${target}" in |
6a789d5e JM |
3526 | alpha*-dec-osf*) |
3527 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3528 | ;; | |
3529 | i[3456789]86-*-linux*) | |
3530 | # This section makes it possible to build newlib natively on linux. | |
3531 | # If we are using a cross compiler then don't configure newlib. | |
3532 | if test x${is_cross_compiler} != xno ; then | |
3533 | noconfigdirs="$noconfigdirs target-newlib" | |
3534 | fi | |
3535 | noconfigdirs="$noconfigdirs target-libgloss" | |
3536 | # If we are not using a cross compiler, do configure newlib. | |
3537 | # Note however, that newlib will only be configured in this situation | |
3538 | # if the --with-newlib option has been given, because otherwise | |
3539 | # 'target-newlib' will appear in skipdirs. | |
3540 | ;; | |
3541 | i[3456789]86-*-rdos*) | |
3542 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3543 | ;; | |
3544 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3545 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3546 | ;; | |
3547 | sparc-*-sunos4*) | |
3548 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3549 | ;; | |
3550 | *-*-aix*) | |
3551 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3552 | ;; | |
3553 | *-*-beos*) | |
3554 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3555 | ;; | |
671aa708 | 3556 | *-*-chorusos) |
0036370f | 3557 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3558 | ;; |
6a789d5e JM |
3559 | *-*-dragonfly*) |
3560 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3561 | ;; | |
3562 | *-*-freebsd*) | |
3563 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3564 | ;; | |
3565 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3566 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3567 | ;; | |
3568 | *-*-lynxos*) | |
3569 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3570 | ;; | |
3571 | *-*-mingw*) | |
3572 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3573 | ;; | |
3574 | *-*-netbsd*) | |
3575 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3576 | ;; | |
3577 | *-*-netware*) | |
3578 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3579 | ;; | |
3580 | *-*-tpf*) | |
3581 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3582 | ;; | |
3583 | *-*-uclinux*) | |
3584 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3585 | ;; | |
3586 | *-*-vxworks*) | |
3587 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3588 | ;; | |
3589 | esac | |
3590 | ||
3591 | case "${target}" in | |
3592 | *-*-chorusos) | |
3593 | ;; | |
3be96231 TG |
3594 | aarch64-*-darwin*) |
3595 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3596 | noconfigdirs="$noconfigdirs sim target-rda" | |
3597 | ;; | |
3598 | arm-*-darwin*) | |
3599 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3600 | noconfigdirs="$noconfigdirs sim target-rda" | |
3601 | ;; | |
75eeae1a | 3602 | powerpc-*-darwin*) |
e1514c3f | 3603 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3604 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3605 | ;; |
354ebf88 RW |
3606 | i[3456789]86-*-darwin*) |
3607 | noconfigdirs="$noconfigdirs ld gprof" | |
3608 | noconfigdirs="$noconfigdirs sim target-rda" | |
3609 | ;; | |
3610 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3611 | noconfigdirs="$noconfigdirs ld gas gprof" |
3612 | noconfigdirs="$noconfigdirs sim target-rda" | |
3613 | ;; | |
42c1cd8a AT |
3614 | *-*-darwin*) |
3615 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3616 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3617 | ;; |
8c6d158a | 3618 | *-*-dragonfly*) |
8c6d158a | 3619 | ;; |
c3f84f61 | 3620 | *-*-freebsd*) |
6de9cd9a DN |
3621 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3622 | && test -f /usr/local/include/gmp.h; then | |
3623 | with_gmp=/usr/local | |
3624 | fi | |
6de9cd9a | 3625 | ;; |
ef4e7569 US |
3626 | *-*-kaos*) |
3627 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3628 | noconfigdirs="$noconfigdirs target-libgloss" |
3629 | ;; | |
671aa708 | 3630 | *-*-netbsd*) |
671aa708 | 3631 | ;; |
61fec9ff | 3632 | *-*-netware*) |
671aa708 | 3633 | ;; |
fd6487af JS |
3634 | *-*-phoenix*) |
3635 | noconfigdirs="$noconfigdirs target-libgloss" | |
3636 | ;; | |
671aa708 | 3637 | *-*-rtems*) |
2909494b | 3638 | noconfigdirs="$noconfigdirs target-libgloss" |
d896cc4d JBG |
3639 | # this is not caught below because this stanza matches earlier |
3640 | case $target in | |
3641 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3642 | esac | |
671aa708 | 3643 | ;; |
a8ba31f2 EC |
3644 | # The tpf target doesn't support gdb yet. |
3645 | *-*-tpf*) | |
6a789d5e | 3646 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3647 | ;; |
5785c0ed | 3648 | *-*-uclinux*) |
6a789d5e | 3649 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3650 | ;; |
671aa708 | 3651 | *-*-vxworks*) |
671aa708 NN |
3652 | ;; |
3653 | alpha*-dec-osf*) | |
3654 | # ld works, but does not support shared libraries. | |
671aa708 | 3655 | # gas doesn't generate exception information. |
6a789d5e | 3656 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3657 | ;; |
3658 | alpha*-*-*vms*) | |
2909494b | 3659 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3660 | ;; |
671aa708 NN |
3661 | alpha*-*-*) |
3662 | # newlib is not 64 bit ready | |
2909494b | 3663 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3664 | ;; |
671aa708 | 3665 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3666 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 | 3667 | ;; |
2fd88f4f AK |
3668 | arc*-*-*) |
3669 | noconfigdirs="$noconfigdirs sim" | |
3670 | ;; | |
671aa708 | 3671 | arm-*-pe*) |
2909494b | 3672 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3673 | ;; |
671aa708 | 3674 | arm-*-riscix*) |
0036370f | 3675 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3676 | ;; |
b588ae30 GJL |
3677 | avr-*-*) |
3678 | if test x${with_avrlibc} != xno; then | |
3679 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3680 | fi | |
3681 | ;; | |
671aa708 | 3682 | c4x-*-* | tic4x-*-*) |
0036370f | 3683 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3684 | ;; |
0036370f JM |
3685 | tic54x-*-*) |
3686 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3687 | ;; |
671aa708 | 3688 | d10v-*-*) |
0036370f | 3689 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3690 | ;; |
3691 | d30v-*-*) | |
0036370f | 3692 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3693 | ;; |
3694 | fr30-*-elf*) | |
2909494b | 3695 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3696 | ;; |
a05c2c75 L |
3697 | ft32-*-*) |
3698 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3699 | ;; | |
55f2d967 | 3700 | moxie-*-*) |
a05c2c75 | 3701 | noconfigdirs="$noconfigdirs" |
55f2d967 | 3702 | ;; |
671aa708 | 3703 | h8300*-*-*) |
2909494b | 3704 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3705 | ;; |
3706 | h8500-*-*) | |
0036370f | 3707 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3708 | ;; |
ee6a22df | 3709 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3710 | ;; |
a05c2c75 L |
3711 | hppa*64*-*-hpux*) |
3712 | noconfigdirs="$noconfigdirs gdb" | |
3713 | ;; | |
3714 | hppa*-*-hpux11*) | |
3715 | noconfigdirs="$noconfigdirs gdb ld" | |
3716 | ;; | |
4569f85e | 3717 | hppa*64*-*-linux*) |
671aa708 | 3718 | ;; |
56f8587a | 3719 | hppa*-*-linux*) |
3e732ba0 | 3720 | ;; |
671aa708 | 3721 | hppa*-*-*elf* | \ |
671aa708 NN |
3722 | hppa*-*-lites* | \ |
3723 | hppa*-*-openbsd* | \ | |
3724 | hppa*64*-*-*) | |
671aa708 | 3725 | ;; |
c03353e2 | 3726 | hppa*-*-pro*) |
c03353e2 | 3727 | ;; |
671aa708 | 3728 | hppa*-*-*) |
2909494b | 3729 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3730 | ;; |
fb87ad5d | 3731 | i960-*-*) |
0036370f | 3732 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3733 | ;; |
671aa708 NN |
3734 | ia64*-*-elf*) |
3735 | # No gdb support yet. | |
1bcce263 | 3736 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3737 | ;; |
3738 | ia64*-**-hpux*) | |
5a2931d1 | 3739 | # No ld support yet. |
a05c2c75 | 3740 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
671aa708 | 3741 | ;; |
52535a64 | 3742 | ia64*-*-*vms*) |
091fe9ca TG |
3743 | # No ld support yet. |
3744 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
52535a64 | 3745 | ;; |
ef4c4300 | 3746 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3747 | ;; |
3748 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3749 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3750 | ;; |
671aa708 NN |
3751 | *-*-cygwin*) |
3752 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3753 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3754 | # always build newlib if winsup directory is present. |
b91f0a41 | 3755 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3756 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3757 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3758 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3759 | fi |
1c710c3c | 3760 | ;; |
f2a0e225 | 3761 | i[3456789]86-*-pe) |
ebb9f8b0 | 3762 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3763 | ;; |
f2a0e225 | 3764 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3765 | # The linker does not yet know about weak symbols in COFF, |
3766 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3767 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3768 | ;; |
f2a0e225 | 3769 | i[3456789]86-*-sco*) |
0036370f | 3770 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3771 | ;; |
fbdd5d87 | 3772 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3773 | noconfigdirs="$noconfigdirs target-libgloss" |
3774 | ;; | |
f2a0e225 | 3775 | i[3456789]86-*-sysv4*) |
0036370f | 3776 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3777 | ;; |
f2a0e225 | 3778 | i[3456789]86-*-beos*) |
6a789d5e | 3779 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3780 | ;; |
d1f8db0c | 3781 | i[3456789]86-*-rdos*) |
6a789d5e | 3782 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3783 | ;; |
671aa708 | 3784 | mmix-*-*) |
2909494b | 3785 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3786 | ;; |
ab34901f | 3787 | mt-*-*) |
79dd769c AH |
3788 | noconfigdirs="$noconfigdirs sim" |
3789 | ;; | |
671aa708 NN |
3790 | powerpc-*-aix*) |
3791 | # copied from rs6000-*-* entry | |
6a789d5e | 3792 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3793 | ;; |
4569f85e | 3794 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3795 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3796 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3797 | # always build newlib. |
3798 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3799 | ;; | |
3800 | # This is temporary until we can link against shared libraries | |
3801 | powerpcle-*-solaris*) | |
0036370f | 3802 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3803 | ;; |
3804 | powerpc-*-beos*) | |
6a789d5e | 3805 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3806 | ;; |
671aa708 | 3807 | rs6000-*-lynxos*) |
6a789d5e | 3808 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3809 | ;; |
3810 | rs6000-*-aix*) | |
6a789d5e | 3811 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3812 | ;; |
3813 | rs6000-*-*) | |
2909494b | 3814 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3815 | ;; |
3816 | m68k-apollo-*) | |
0036370f | 3817 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3818 | ;; |
ca9fe997 | 3819 | microblaze*) |
2909494b | 3820 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3821 | ;; |
d896cc4d | 3822 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
d9dced13 RS |
3823 | if test x$with_newlib = xyes; then |
3824 | noconfigdirs="$noconfigdirs gprof" | |
3825 | fi | |
d9dced13 | 3826 | ;; |
671aa708 | 3827 | mips*-*-irix5*) |
0036370f | 3828 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3829 | ;; |
3830 | mips*-*-irix6*) | |
2909494b | 3831 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3832 | ;; |
671aa708 | 3833 | mips*-*-bsd*) |
bc98bcc4 | 3834 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
671aa708 | 3835 | ;; |
671aa708 | 3836 | mips*-*-linux*) |
671aa708 | 3837 | ;; |
bc98bcc4 JBG |
3838 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3839 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3840 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3841 | ;; | |
671aa708 | 3842 | mips*-*-*) |
2909494b | 3843 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3844 | ;; |
738f2522 | 3845 | nvptx*-*-*) |
738f2522 BS |
3846 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3847 | ;; | |
d896cc4d JBG |
3848 | or1k*-*-*) |
3849 | noconfigdirs="$noconfigdirs gdb" | |
3850 | ;; | |
bc6d9014 | 3851 | sh-*-*) |
ea2002ba CB |
3852 | case "${target}" in |
3853 | sh*-*-elf) | |
2909494b | 3854 | ;; |
ea2002ba | 3855 | *) |
2909494b | 3856 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3857 | esac |
671aa708 | 3858 | ;; |
671aa708 | 3859 | sparc-*-sunos4*) |
6a789d5e | 3860 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3861 | use_gnu_ld=no |
3862 | fi | |
3863 | ;; | |
b42f0d7e | 3864 | tic6x-*-*) |
0d557ff8 | 3865 | noconfigdirs="$noconfigdirs sim" |
b42f0d7e | 3866 | ;; |
341c653c | 3867 | tilepro*-*-* | tilegx*-*-*) |
db1d217c WL |
3868 | noconfigdirs="$noconfigdirs sim" |
3869 | ;; | |
671aa708 | 3870 | v810-*-*) |
0036370f | 3871 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3872 | ;; |
3873 | vax-*-*) | |
2909494b | 3874 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3875 | ;; |
671aa708 | 3876 | esac |
79c06341 | 3877 | |
671aa708 NN |
3878 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3879 | # depends upon some newlib header files. | |
3880 | case "${noconfigdirs}" in | |
3881 | *target-libgloss*) ;; | |
3882 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3883 | esac | |
3884 | ||
671aa708 | 3885 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3886 | host_makefile_frag=/dev/null |
3887 | if test -d ${srcdir}/config ; then | |
3888 | case "${host}" in | |
f2a0e225 | 3889 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3890 | host_makefile_frag="config/mh-djgpp" |
3891 | ;; | |
3892 | *-cygwin*) | |
2a79c47f | 3893 | |
5213506e RW |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3895 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3896 | echo a >cygwin-cat-check |
e25a8c82 | 3897 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3898 | rm cygwin-cat-check |
5213506e RW |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3900 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3901 | else |
3902 | rm cygwin-cat-check | |
5213506e RW |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3904 | $as_echo "no" >&6; } | |
3905 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
3906 | Please either mount the build directory in binary mode or run the following |
3907 | commands before running any configure script: | |
3908 | set -o igncr | |
3909 | export SHELLOPTS | |
5213506e | 3910 | " "$LINENO" 5 |
2a79c47f NC |
3911 | fi |
3912 | ||
671aa708 NN |
3913 | host_makefile_frag="config/mh-cygwin" |
3914 | ;; | |
c53a18d3 | 3915 | *-mingw*) |
1f5a6b84 | 3916 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3917 | ;; |
cabb9d59 | 3918 | alpha*-linux*) |
13be44ed UB |
3919 | host_makefile_frag="config/mh-alpha-linux" |
3920 | ;; | |
efd41714 | 3921 | hppa*-hp-hpux10*) |
efd41714 | 3922 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3923 | ;; |
111eeb6e | 3924 | hppa*-hp-hpux*) |
efd41714 PB |
3925 | host_makefile_frag="config/mh-pa" |
3926 | ;; | |
3927 | hppa*-*) | |
3928 | host_makefile_frag="config/mh-pa" | |
3929 | ;; | |
d8ed14ce IS |
3930 | *-*-darwin*) |
3931 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3932 | ;; |
d19bca38 PB |
3933 | powerpc-*-aix*) |
3934 | host_makefile_frag="config/mh-ppc-aix" | |
3935 | ;; | |
3936 | rs6000-*-aix*) | |
3937 | host_makefile_frag="config/mh-ppc-aix" | |
3938 | ;; | |
671aa708 NN |
3939 | esac |
3940 | fi | |
3941 | ||
55ffb5ed | 3942 | if test "${build}" != "${host}" ; then |
0999159b PB |
3943 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3944 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 3945 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b | 3946 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
0999159b | 3947 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} |
632e2a07 | 3948 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
3949 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3950 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3951 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3952 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3953 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3954 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3955 | else | |
3956 | AR_FOR_BUILD="\$(AR)" | |
3957 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 3958 | CC_FOR_BUILD="\$(CC)" |
0999159b | 3959 | CXX_FOR_BUILD="\$(CXX)" |
0999159b | 3960 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" |
632e2a07 | 3961 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
3962 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3963 | LD_FOR_BUILD="\$(LD)" | |
3964 | NM_FOR_BUILD="\$(NM)" | |
3965 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3966 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3967 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
3968 | fi |
3969 | ||
3970 | ac_ext=c | |
1c710c3c DJ |
3971 | ac_cpp='$CPP $CPPFLAGS' |
3972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3975 | if test -n "$ac_tool_prefix"; then | |
3976 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3977 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3979 | $as_echo_n "checking for $ac_word... " >&6; } | |
3980 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3981 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3982 | else |
3983 | if test -n "$CC"; then | |
3984 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3985 | else | |
3986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3987 | for as_dir in $PATH | |
3988 | do | |
3989 | IFS=$as_save_IFS | |
3990 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3991 | for ac_exec_ext in '' $ac_executable_extensions; do |
3992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3993 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3995 | break 2 |
3996 | fi | |
3997 | done | |
5213506e RW |
3998 | done |
3999 | IFS=$as_save_IFS | |
1c710c3c DJ |
4000 | |
4001 | fi | |
4002 | fi | |
4003 | CC=$ac_cv_prog_CC | |
4004 | if test -n "$CC"; then | |
5213506e RW |
4005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4006 | $as_echo "$CC" >&6; } | |
1c710c3c | 4007 | else |
5213506e RW |
4008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4009 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4010 | fi |
4011 | ||
5213506e | 4012 | |
1c710c3c DJ |
4013 | fi |
4014 | if test -z "$ac_cv_prog_CC"; then | |
4015 | ac_ct_CC=$CC | |
fb0103e5 RG |
4016 | # Extract the first word of "gcc", so it can be a program name with args. |
4017 | set dummy gcc; ac_word=$2 | |
5213506e RW |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4019 | $as_echo_n "checking for $ac_word... " >&6; } | |
4020 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4021 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
4022 | else |
4023 | if test -n "$ac_ct_CC"; then | |
4024 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4025 | else | |
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4027 | for as_dir in $PATH | |
4028 | do | |
4029 | IFS=$as_save_IFS | |
4030 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4031 | for ac_exec_ext in '' $ac_executable_extensions; do |
4032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4033 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 4034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4035 | break 2 |
4036 | fi | |
4037 | done | |
5213506e RW |
4038 | done |
4039 | IFS=$as_save_IFS | |
1c710c3c DJ |
4040 | |
4041 | fi | |
4042 | fi | |
4043 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4044 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4046 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 4047 | else |
5213506e RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4049 | $as_echo "no" >&6; } | |
1c710c3c DJ |
4050 | fi |
4051 | ||
5213506e RW |
4052 | if test "x$ac_ct_CC" = x; then |
4053 | CC="" | |
4054 | else | |
4055 | case $cross_compiling:$ac_tool_warned in | |
4056 | yes:) | |
4057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4058 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4059 | ac_tool_warned=yes ;; | |
4060 | esac | |
4061 | CC=$ac_ct_CC | |
4062 | fi | |
1c710c3c DJ |
4063 | else |
4064 | CC="$ac_cv_prog_CC" | |
4065 | fi | |
4066 | ||
4067 | if test -z "$CC"; then | |
5213506e RW |
4068 | if test -n "$ac_tool_prefix"; then |
4069 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 4070 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4072 | $as_echo_n "checking for $ac_word... " >&6; } | |
4073 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4074 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4075 | else |
4076 | if test -n "$CC"; then | |
4077 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4078 | else | |
1c710c3c DJ |
4079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4080 | for as_dir in $PATH | |
4081 | do | |
4082 | IFS=$as_save_IFS | |
4083 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4084 | for ac_exec_ext in '' $ac_executable_extensions; do |
4085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4086 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 4087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4088 | break 2 |
4089 | fi | |
4090 | done | |
5213506e RW |
4091 | done |
4092 | IFS=$as_save_IFS | |
1c710c3c | 4093 | |
0b0dc272 | 4094 | fi |
0b0dc272 | 4095 | fi |
1c710c3c | 4096 | CC=$ac_cv_prog_CC |
af71363e | 4097 | if test -n "$CC"; then |
5213506e RW |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4099 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 4100 | else |
5213506e RW |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4102 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
4103 | fi |
4104 | ||
2aeb72e9 | 4105 | |
5213506e | 4106 | fi |
1c710c3c | 4107 | fi |
55ffb5ed NN |
4108 | if test -z "$CC"; then |
4109 | # Extract the first word of "cc", so it can be a program name with args. | |
4110 | set dummy cc; ac_word=$2 | |
5213506e RW |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4112 | $as_echo_n "checking for $ac_word... " >&6; } | |
4113 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4114 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4115 | else |
4116 | if test -n "$CC"; then | |
4117 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4118 | else | |
0b0dc272 | 4119 | ac_prog_rejected=no |
1c710c3c DJ |
4120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4121 | for as_dir in $PATH | |
4122 | do | |
4123 | IFS=$as_save_IFS | |
4124 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4125 | for ac_exec_ext in '' $ac_executable_extensions; do |
4126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
4127 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4128 | ac_prog_rejected=yes | |
4129 | continue | |
4130 | fi | |
4131 | ac_cv_prog_CC="cc" | |
5213506e | 4132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4133 | break 2 |
4134 | fi | |
4135 | done | |
5213506e RW |
4136 | done |
4137 | IFS=$as_save_IFS | |
1c710c3c | 4138 | |
55ffb5ed NN |
4139 | if test $ac_prog_rejected = yes; then |
4140 | # We found a bogon in the path, so make sure we never use it. | |
4141 | set dummy $ac_cv_prog_CC | |
4142 | shift | |
1c710c3c | 4143 | if test $# != 0; then |
55ffb5ed NN |
4144 | # We chose a different compiler from the bogus one. |
4145 | # However, it has the same basename, so the bogon will be chosen | |
4146 | # first if we set CC to just the basename; use the full file name. | |
4147 | shift | |
1c710c3c | 4148 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
4149 | fi |
4150 | fi | |
4151 | fi | |
4152 | fi | |
1c710c3c | 4153 | CC=$ac_cv_prog_CC |
55ffb5ed | 4154 | if test -n "$CC"; then |
5213506e RW |
4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4156 | $as_echo "$CC" >&6; } | |
55ffb5ed | 4157 | else |
5213506e RW |
4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4159 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4160 | fi |
4161 | ||
5213506e | 4162 | |
1c710c3c DJ |
4163 | fi |
4164 | if test -z "$CC"; then | |
4165 | if test -n "$ac_tool_prefix"; then | |
5213506e | 4166 | for ac_prog in cl.exe |
1c710c3c DJ |
4167 | do |
4168 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4169 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4171 | $as_echo_n "checking for $ac_word... " >&6; } | |
4172 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4173 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4174 | else |
4175 | if test -n "$CC"; then | |
4176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4177 | else | |
1c710c3c DJ |
4178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4179 | for as_dir in $PATH | |
4180 | do | |
4181 | IFS=$as_save_IFS | |
4182 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4183 | for ac_exec_ext in '' $ac_executable_extensions; do |
4184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4185 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 4186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4187 | break 2 |
4188 | fi | |
4189 | done | |
5213506e RW |
4190 | done |
4191 | IFS=$as_save_IFS | |
1c710c3c | 4192 | |
55ffb5ed NN |
4193 | fi |
4194 | fi | |
1c710c3c | 4195 | CC=$ac_cv_prog_CC |
55ffb5ed | 4196 | if test -n "$CC"; then |
5213506e RW |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4198 | $as_echo "$CC" >&6; } | |
a4b9e93e | 4199 | else |
5213506e RW |
4200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4201 | $as_echo "no" >&6; } | |
fb0103e5 | 4202 | fi |
af71363e | 4203 | |
5213506e | 4204 | |
1c710c3c DJ |
4205 | test -n "$CC" && break |
4206 | done | |
af71363e | 4207 | fi |
1c710c3c DJ |
4208 | if test -z "$CC"; then |
4209 | ac_ct_CC=$CC | |
5213506e | 4210 | for ac_prog in cl.exe |
1c710c3c DJ |
4211 | do |
4212 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4213 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4215 | $as_echo_n "checking for $ac_word... " >&6; } | |
4216 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4217 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 4218 | else |
1c710c3c DJ |
4219 | if test -n "$ac_ct_CC"; then |
4220 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 4221 | else |
1c710c3c DJ |
4222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4223 | for as_dir in $PATH | |
4224 | do | |
4225 | IFS=$as_save_IFS | |
4226 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4227 | for ac_exec_ext in '' $ac_executable_extensions; do |
4228 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4229 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 4230 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4231 | break 2 |
4232 | fi | |
4233 | done | |
5213506e RW |
4234 | done |
4235 | IFS=$as_save_IFS | |
1c710c3c | 4236 | |
af71363e AS |
4237 | fi |
4238 | fi | |
1c710c3c DJ |
4239 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4240 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4242 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 4243 | else |
5213506e RW |
4244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4245 | $as_echo "no" >&6; } | |
af71363e | 4246 | fi |
0b0dc272 | 4247 | |
5213506e | 4248 | |
1c710c3c DJ |
4249 | test -n "$ac_ct_CC" && break |
4250 | done | |
4251 | ||
5213506e RW |
4252 | if test "x$ac_ct_CC" = x; then |
4253 | CC="" | |
4254 | else | |
4255 | case $cross_compiling:$ac_tool_warned in | |
4256 | yes:) | |
4257 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4258 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4259 | ac_tool_warned=yes ;; | |
4260 | esac | |
4261 | CC=$ac_ct_CC | |
4262 | fi | |
1c710c3c DJ |
4263 | fi |
4264 | ||
4265 | fi | |
4266 | ||
4267 | ||
5213506e RW |
4268 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4269 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4270 | as_fn_error "no acceptable C compiler found in \$PATH | |
4271 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
4272 | |
4273 | # Provide some information about the compiler. | |
5213506e RW |
4274 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4275 | set X $ac_compile | |
4276 | ac_compiler=$2 | |
4277 | for ac_option in --version -v -V -qversion; do | |
4278 | { { ac_try="$ac_compiler $ac_option >&5" | |
4279 | case "(($ac_try" in | |
4280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4281 | *) ac_try_echo=$ac_try;; | |
4282 | esac | |
4283 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4284 | $as_echo "$ac_try_echo"; } >&5 | |
4285 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4286 | ac_status=$? |
5213506e RW |
4287 | if test -s conftest.err; then |
4288 | sed '10a\ | |
4289 | ... rest of stderr output deleted ... | |
4290 | 10q' conftest.err >conftest.er1 | |
4291 | cat conftest.er1 >&5 | |
4292 | rm -f conftest.er1 conftest.err | |
4293 | fi | |
4294 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4295 | test $ac_status = 0; } | |
4296 | done | |
1c710c3c | 4297 | |
5213506e | 4298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4299 | /* end confdefs.h. */ |
4300 | ||
4301 | int | |
4302 | main () | |
4303 | { | |
4304 | ||
4305 | ; | |
4306 | return 0; | |
4307 | } | |
4308 | _ACEOF | |
4309 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4310 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4311 | # Try to create an executable without -o first, disregard a.out. |
4312 | # It will help us diagnose broken compilers, and finding out an intuition | |
4313 | # of exeext. | |
5213506e RW |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4315 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4316 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4317 | ||
4318 | # The possible output files: | |
4319 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4320 | ||
4321 | ac_rmfiles= | |
4322 | for ac_file in $ac_files | |
4323 | do | |
4324 | case $ac_file in | |
4325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4326 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4327 | esac | |
4328 | done | |
4329 | rm -f $ac_rmfiles | |
4330 | ||
4331 | if { { ac_try="$ac_link_default" | |
4332 | case "(($ac_try" in | |
4333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4334 | *) ac_try_echo=$ac_try;; | |
4335 | esac | |
4336 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4337 | $as_echo "$ac_try_echo"; } >&5 | |
4338 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4339 | ac_status=$? |
5213506e RW |
4340 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4341 | test $ac_status = 0; }; then : | |
4342 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4343 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4344 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4345 | # so that the user can short-circuit this test for compilers unknown to | |
4346 | # Autoconf. | |
4347 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4348 | do |
4349 | test -f "$ac_file" || continue | |
4350 | case $ac_file in | |
5213506e | 4351 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4352 | ;; |
4353 | [ab].out ) | |
4354 | # We found the default executable, but exeext='' is most | |
4355 | # certainly right. | |
4356 | break;; | |
4357 | *.* ) | |
5213506e RW |
4358 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4359 | then :; else | |
4360 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4361 | fi | |
4362 | # We set ac_cv_exeext here because the later test for it is not | |
4363 | # safe: cross compilers may not add the suffix if given an `-o' | |
4364 | # argument, so we may need to know it at that point already. | |
4365 | # Even if this section looks crufty: it has the advantage of | |
4366 | # actually working. | |
1c710c3c DJ |
4367 | break;; |
4368 | * ) | |
4369 | break;; | |
4370 | esac | |
4371 | done | |
5213506e RW |
4372 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4373 | ||
1c710c3c | 4374 | else |
5213506e RW |
4375 | ac_file='' |
4376 | fi | |
4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4378 | $as_echo "$ac_file" >&6; } | |
4379 | if test -z "$ac_file"; then : | |
4380 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4381 | sed 's/^/| /' conftest.$ac_ext >&5 |
4382 | ||
5213506e RW |
4383 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4384 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4385 | { as_fn_set_status 77 | |
4386 | as_fn_error "C compiler cannot create executables | |
4387 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4388 | fi |
1c710c3c | 4389 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4390 | |
5213506e | 4391 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4392 | # the compiler is broken, or we cross compile. |
5213506e RW |
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4394 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4395 | # If not cross compiling, check that we can run a simple program. |
4396 | if test "$cross_compiling" != yes; then | |
4397 | if { ac_try='./$ac_file' | |
5213506e RW |
4398 | { { case "(($ac_try" in |
4399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4400 | *) ac_try_echo=$ac_try;; | |
4401 | esac | |
4402 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4403 | $as_echo "$ac_try_echo"; } >&5 | |
4404 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4405 | ac_status=$? |
5213506e RW |
4406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4407 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4408 | cross_compiling=no |
4409 | else | |
4410 | if test "$cross_compiling" = maybe; then | |
4411 | cross_compiling=yes | |
4412 | else | |
5213506e RW |
4413 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4414 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4415 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4416 | If you meant to cross compile, use \`--host'. |
5213506e | 4417 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4418 | fi |
4419 | fi | |
4420 | fi | |
5213506e RW |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4422 | $as_echo "yes" >&6; } | |
1c710c3c | 4423 | |
5213506e | 4424 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4425 | ac_clean_files=$ac_clean_files_save |
5213506e | 4426 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4427 | # the compiler is broken, or we cross compile. |
5213506e RW |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4429 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4431 | $as_echo "$cross_compiling" >&6; } | |
4432 | ||
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4434 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4435 | if { { ac_try="$ac_link" | |
4436 | case "(($ac_try" in | |
4437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4438 | *) ac_try_echo=$ac_try;; | |
4439 | esac | |
4440 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4441 | $as_echo "$ac_try_echo"; } >&5 | |
4442 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4443 | ac_status=$? |
5213506e RW |
4444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4445 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4446 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4447 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4448 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4449 | # `rm'. | |
4450 | for ac_file in conftest.exe conftest conftest.*; do | |
4451 | test -f "$ac_file" || continue | |
4452 | case $ac_file in | |
5213506e | 4453 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4454 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4455 | break;; |
4456 | * ) break;; | |
4457 | esac | |
4458 | done | |
af71363e | 4459 | else |
5213506e RW |
4460 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4461 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4462 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4463 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4464 | fi |
1c710c3c | 4465 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4467 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4468 | |
4469 | rm -f conftest.$ac_ext | |
4470 | EXEEXT=$ac_cv_exeext | |
4471 | ac_exeext=$EXEEXT | |
5213506e RW |
4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4473 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4474 | if test "${ac_cv_objext+set}" = set; then : | |
4475 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4476 | else |
5213506e | 4477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4478 | /* end confdefs.h. */ |
4479 | ||
4480 | int | |
4481 | main () | |
4482 | { | |
4483 | ||
4484 | ; | |
4485 | return 0; | |
4486 | } | |
4487 | _ACEOF | |
4488 | rm -f conftest.o conftest.obj | |
5213506e RW |
4489 | if { { ac_try="$ac_compile" |
4490 | case "(($ac_try" in | |
4491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4492 | *) ac_try_echo=$ac_try;; | |
4493 | esac | |
4494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4495 | $as_echo "$ac_try_echo"; } >&5 | |
4496 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4497 | ac_status=$? |
5213506e RW |
4498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4499 | test $ac_status = 0; }; then : | |
4500 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4501 | test -f "$ac_file" || continue; | |
1c710c3c | 4502 | case $ac_file in |
5213506e | 4503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4504 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4505 | break;; | |
4506 | esac | |
4507 | done | |
4508 | else | |
5213506e | 4509 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4510 | sed 's/^/| /' conftest.$ac_ext >&5 |
4511 | ||
5213506e RW |
4512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4514 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4515 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4516 | fi |
1c710c3c DJ |
4517 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4518 | fi | |
5213506e RW |
4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4520 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4521 | OBJEXT=$ac_cv_objext |
4522 | ac_objext=$OBJEXT | |
5213506e RW |
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4524 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4525 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4526 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4527 | else |
5213506e | 4528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4529 | /* end confdefs.h. */ |
4530 | ||
4531 | int | |
4532 | main () | |
4533 | { | |
4534 | #ifndef __GNUC__ | |
4535 | choke me | |
4536 | #endif | |
4537 | ||
4538 | ; | |
4539 | return 0; | |
4540 | } | |
4541 | _ACEOF | |
5213506e | 4542 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4543 | ac_compiler_gnu=yes |
4544 | else | |
5213506e | 4545 | ac_compiler_gnu=no |
1c710c3c | 4546 | fi |
5213506e | 4547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4548 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4549 | ||
4550 | fi | |
5213506e RW |
4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4552 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4553 | if test $ac_compiler_gnu = yes; then | |
4554 | GCC=yes | |
4555 | else | |
4556 | GCC= | |
4557 | fi | |
1c710c3c DJ |
4558 | ac_test_CFLAGS=${CFLAGS+set} |
4559 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4561 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4562 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4563 | $as_echo_n "(cached) " >&6 | |
4564 | else | |
4565 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4566 | ac_c_werror_flag=yes | |
4567 | ac_cv_prog_cc_g=no | |
4568 | CFLAGS="-g" | |
4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4570 | /* end confdefs.h. */ |
4571 | ||
4572 | int | |
4573 | main () | |
4574 | { | |
4575 | ||
4576 | ; | |
4577 | return 0; | |
4578 | } | |
4579 | _ACEOF | |
5213506e | 4580 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4581 | ac_cv_prog_cc_g=yes |
4582 | else | |
5213506e RW |
4583 | CFLAGS="" |
4584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4585 | /* end confdefs.h. */ | |
4586 | ||
4587 | int | |
4588 | main () | |
4589 | { | |
4590 | ||
4591 | ; | |
4592 | return 0; | |
4593 | } | |
4594 | _ACEOF | |
4595 | if ac_fn_c_try_compile "$LINENO"; then : | |
4596 | ||
4597 | else | |
4598 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4599 | CFLAGS="-g" | |
4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4601 | /* end confdefs.h. */ | |
af71363e | 4602 | |
5213506e RW |
4603 | int |
4604 | main () | |
4605 | { | |
4606 | ||
4607 | ; | |
4608 | return 0; | |
4609 | } | |
4610 | _ACEOF | |
4611 | if ac_fn_c_try_compile "$LINENO"; then : | |
4612 | ac_cv_prog_cc_g=yes | |
4613 | fi | |
4614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4615 | fi |
5213506e | 4616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4617 | fi |
5213506e RW |
4618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4619 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4620 | fi | |
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4622 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4623 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4624 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4625 | elif test $ac_cv_prog_cc_g = yes; then |
4626 | if test "$GCC" = yes; then | |
4627 | CFLAGS="-g -O2" | |
4628 | else | |
4629 | CFLAGS="-g" | |
4630 | fi | |
4631 | else | |
4632 | if test "$GCC" = yes; then | |
4633 | CFLAGS="-O2" | |
4634 | else | |
4635 | CFLAGS= | |
4636 | fi | |
4637 | fi | |
5213506e RW |
4638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4639 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4640 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4641 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4642 | else |
5213506e | 4643 | ac_cv_prog_cc_c89=no |
1c710c3c | 4644 | ac_save_CC=$CC |
5213506e | 4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4646 | /* end confdefs.h. */ |
4647 | #include <stdarg.h> | |
4648 | #include <stdio.h> | |
4649 | #include <sys/types.h> | |
4650 | #include <sys/stat.h> | |
4651 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4652 | struct buf { int x; }; | |
4653 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4654 | static char *e (p, i) | |
4655 | char **p; | |
4656 | int i; | |
4657 | { | |
4658 | return p[i]; | |
4659 | } | |
4660 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4661 | { | |
4662 | char *s; | |
4663 | va_list v; | |
4664 | va_start (v,p); | |
4665 | s = g (p, va_arg (v,int)); | |
4666 | va_end (v); | |
4667 | return s; | |
4668 | } | |
4669 | ||
4670 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4671 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4672 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4673 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4674 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4675 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4676 | that's true only with -std. */ |
1c710c3c DJ |
4677 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4678 | ||
5213506e RW |
4679 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4680 | inside strings and character constants. */ | |
4681 | #define FOO(x) 'x' | |
4682 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4683 | ||
1c710c3c DJ |
4684 | int test (int i, double x); |
4685 | struct s1 {int (*f) (int a);}; | |
4686 | struct s2 {int (*f) (double a);}; | |
4687 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4688 | int argc; | |
4689 | char **argv; | |
4690 | int | |
4691 | main () | |
4692 | { | |
4693 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4694 | ; | |
4695 | return 0; | |
4696 | } | |
4697 | _ACEOF | |
5213506e RW |
4698 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4699 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4700 | do |
4701 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4702 | if ac_fn_c_try_compile "$LINENO"; then : |
4703 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4704 | fi |
5213506e RW |
4705 | rm -f core conftest.err conftest.$ac_objext |
4706 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4707 | done |
5213506e | 4708 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4709 | CC=$ac_save_CC |
4710 | ||
4711 | fi | |
5213506e RW |
4712 | # AC_CACHE_VAL |
4713 | case "x$ac_cv_prog_cc_c89" in | |
4714 | x) | |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4716 | $as_echo "none needed" >&6; } ;; | |
4717 | xno) | |
4718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4719 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4720 | *) |
5213506e RW |
4721 | CC="$CC $ac_cv_prog_cc_c89" |
4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4723 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4724 | esac |
5213506e | 4725 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4726 | |
2aeb72e9 DD |
4727 | fi |
4728 | ||
2aeb72e9 DD |
4729 | ac_ext=c |
4730 | ac_cpp='$CPP $CPPFLAGS' | |
4731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4734 | ||
5213506e | 4735 | ac_ext=cpp |
2aeb72e9 DD |
4736 | ac_cpp='$CXXCPP $CPPFLAGS' |
4737 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4738 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4739 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4740 | if test -z "$CXX"; then |
4741 | if test -n "$CCC"; then | |
4742 | CXX=$CCC | |
4743 | else | |
4744 | if test -n "$ac_tool_prefix"; then | |
4745 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4746 | do |
4747 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4748 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4750 | $as_echo_n "checking for $ac_word... " >&6; } | |
4751 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4752 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4753 | else |
4754 | if test -n "$CXX"; then | |
4755 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4756 | else | |
4757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4758 | for as_dir in $PATH | |
4759 | do | |
4760 | IFS=$as_save_IFS | |
4761 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4762 | for ac_exec_ext in '' $ac_executable_extensions; do |
4763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4764 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4766 | break 2 |
4767 | fi | |
4768 | done | |
5213506e RW |
4769 | done |
4770 | IFS=$as_save_IFS | |
55ffb5ed | 4771 | |
c3a86da9 DJ |
4772 | fi |
4773 | fi | |
4774 | CXX=$ac_cv_prog_CXX | |
4775 | if test -n "$CXX"; then | |
5213506e RW |
4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4777 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4778 | else |
5213506e RW |
4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4780 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4781 | fi |
4782 | ||
5213506e | 4783 | |
c3a86da9 DJ |
4784 | test -n "$CXX" && break |
4785 | done | |
4786 | fi | |
4787 | if test -z "$CXX"; then | |
4788 | ac_ct_CXX=$CXX | |
5213506e | 4789 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4790 | do |
4791 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4792 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4794 | $as_echo_n "checking for $ac_word... " >&6; } | |
4795 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4796 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4797 | else |
4798 | if test -n "$ac_ct_CXX"; then | |
4799 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4800 | else | |
4801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4802 | for as_dir in $PATH | |
4803 | do | |
4804 | IFS=$as_save_IFS | |
4805 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4806 | for ac_exec_ext in '' $ac_executable_extensions; do |
4807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4808 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4810 | break 2 |
4811 | fi | |
4812 | done | |
5213506e RW |
4813 | done |
4814 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4815 | |
4816 | fi | |
4817 | fi | |
4818 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4819 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4821 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4822 | else |
5213506e RW |
4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4824 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4825 | fi |
4826 | ||
5213506e | 4827 | |
c3a86da9 DJ |
4828 | test -n "$ac_ct_CXX" && break |
4829 | done | |
c3a86da9 | 4830 | |
5213506e RW |
4831 | if test "x$ac_ct_CXX" = x; then |
4832 | CXX="g++" | |
4833 | else | |
4834 | case $cross_compiling:$ac_tool_warned in | |
4835 | yes:) | |
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4838 | ac_tool_warned=yes ;; | |
4839 | esac | |
4840 | CXX=$ac_ct_CXX | |
4841 | fi | |
c3a86da9 DJ |
4842 | fi |
4843 | ||
5213506e RW |
4844 | fi |
4845 | fi | |
c3a86da9 | 4846 | # Provide some information about the compiler. |
5213506e RW |
4847 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4848 | set X $ac_compile | |
4849 | ac_compiler=$2 | |
4850 | for ac_option in --version -v -V -qversion; do | |
4851 | { { ac_try="$ac_compiler $ac_option >&5" | |
4852 | case "(($ac_try" in | |
4853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4854 | *) ac_try_echo=$ac_try;; | |
4855 | esac | |
4856 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4857 | $as_echo "$ac_try_echo"; } >&5 | |
4858 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4859 | ac_status=$? |
5213506e RW |
4860 | if test -s conftest.err; then |
4861 | sed '10a\ | |
4862 | ... rest of stderr output deleted ... | |
4863 | 10q' conftest.err >conftest.er1 | |
4864 | cat conftest.er1 >&5 | |
4865 | rm -f conftest.er1 conftest.err | |
4866 | fi | |
4867 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4868 | test $ac_status = 0; } | |
4869 | done | |
c3a86da9 | 4870 | |
5213506e RW |
4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4872 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4873 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4874 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4875 | else |
5213506e | 4876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4877 | /* end confdefs.h. */ |
4878 | ||
4879 | int | |
4880 | main () | |
4881 | { | |
4882 | #ifndef __GNUC__ | |
4883 | choke me | |
4884 | #endif | |
4885 | ||
4886 | ; | |
4887 | return 0; | |
4888 | } | |
4889 | _ACEOF | |
5213506e | 4890 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4891 | ac_compiler_gnu=yes |
4892 | else | |
5213506e | 4893 | ac_compiler_gnu=no |
c3a86da9 | 4894 | fi |
5213506e | 4895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4896 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4897 | ||
4898 | fi | |
5213506e RW |
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4900 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4901 | if test $ac_compiler_gnu = yes; then | |
4902 | GXX=yes | |
4903 | else | |
4904 | GXX= | |
4905 | fi | |
c3a86da9 DJ |
4906 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4907 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4909 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4910 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4911 | $as_echo_n "(cached) " >&6 | |
4912 | else | |
4913 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4914 | ac_cxx_werror_flag=yes | |
4915 | ac_cv_prog_cxx_g=no | |
4916 | CXXFLAGS="-g" | |
4917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
4918 | /* end confdefs.h. */ |
4919 | ||
4920 | int | |
4921 | main () | |
4922 | { | |
4923 | ||
4924 | ; | |
4925 | return 0; | |
4926 | } | |
4927 | _ACEOF | |
5213506e | 4928 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4929 | ac_cv_prog_cxx_g=yes |
4930 | else | |
5213506e RW |
4931 | CXXFLAGS="" |
4932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4933 | /* end confdefs.h. */ |
5213506e | 4934 | |
c3a86da9 DJ |
4935 | int |
4936 | main () | |
4937 | { | |
5213506e | 4938 | |
c3a86da9 DJ |
4939 | ; |
4940 | return 0; | |
4941 | } | |
4942 | _ACEOF | |
5213506e | 4943 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 4944 | |
5213506e RW |
4945 | else |
4946 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4947 | CXXFLAGS="-g" | |
4948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4949 | /* end confdefs.h. */ |
5213506e | 4950 | |
c3a86da9 DJ |
4951 | int |
4952 | main () | |
4953 | { | |
5213506e | 4954 | |
c3a86da9 DJ |
4955 | ; |
4956 | return 0; | |
4957 | } | |
4958 | _ACEOF | |
5213506e RW |
4959 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4960 | ac_cv_prog_cxx_g=yes | |
11a67599 | 4961 | fi |
5213506e RW |
4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4963 | fi | |
4964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4965 | fi | |
4966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4967 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4968 | fi | |
4969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4970 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4971 | if test "$ac_test_CXXFLAGS" = set; then | |
4972 | CXXFLAGS=$ac_save_CXXFLAGS | |
4973 | elif test $ac_cv_prog_cxx_g = yes; then | |
4974 | if test "$GXX" = yes; then | |
4975 | CXXFLAGS="-g -O2" | |
4976 | else | |
4977 | CXXFLAGS="-g" | |
4978 | fi | |
4979 | else | |
4980 | if test "$GXX" = yes; then | |
4981 | CXXFLAGS="-O2" | |
4982 | else | |
4983 | CXXFLAGS= | |
4984 | fi | |
c3a86da9 | 4985 | fi |
c3a86da9 DJ |
4986 | ac_ext=c |
4987 | ac_cpp='$CPP $CPPFLAGS' | |
4988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4991 | ||
4992 | ||
4993 | # We must set the default linker to the linker used by gcc for the correct | |
4994 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4995 | # set the LD default to the ld used by gcc. | |
4996 | if test -z "$LD"; then | |
4997 | if test "$GCC" = yes; then | |
4998 | case $build in | |
4999 | *-*-mingw*) | |
5000 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5001 | *) | |
5002 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5003 | esac | |
5004 | case $gcc_prog_ld in | |
5005 | # Accept absolute paths. | |
5006 | [\\/]* | [A-Za-z]:[\\/]*) | |
5007 | LD="$gcc_prog_ld" ;; | |
5008 | esac | |
5009 | fi | |
23f6b2f9 PB |
5010 | fi |
5011 | ||
0b21f5d3 EB |
5012 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5013 | have_static_libs=no | |
5014 | if test "$GCC" = yes; then | |
5015 | saved_LDFLAGS="$LDFLAGS" | |
5016 | ||
5017 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5019 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5020 | ac_ext=cpp | |
5021 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5022 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5023 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5024 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5025 | ||
5026 | ||
5027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5028 | /* end confdefs.h. */ | |
0d6414b2 EB |
5029 | |
5030 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5031 | #error -static-libstdc++ not implemented | |
5032 | #endif | |
0b21f5d3 EB |
5033 | int main() {} |
5034 | _ACEOF | |
5035 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5037 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5038 | else | |
5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5040 | $as_echo "no" >&6; } | |
5041 | fi | |
5042 | rm -f core conftest.err conftest.$ac_objext \ | |
5043 | conftest$ac_exeext conftest.$ac_ext | |
5044 | ac_ext=c | |
5045 | ac_cpp='$CPP $CPPFLAGS' | |
5046 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5047 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5048 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5049 | ||
5050 | ||
5051 | LDFLAGS="$saved_LDFLAGS" | |
5052 | fi | |
5053 | ||
23f6b2f9 PB |
5054 | |
5055 | ||
55ffb5ed | 5056 | |
1c710c3c DJ |
5057 | if test -n "$ac_tool_prefix"; then |
5058 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 5059 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5061 | $as_echo_n "checking for $ac_word... " >&6; } | |
5062 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5063 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5064 | else |
5065 | if test -n "$GNATBIND"; then | |
5066 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
5067 | else | |
1c710c3c DJ |
5068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5069 | for as_dir in $PATH | |
5070 | do | |
5071 | IFS=$as_save_IFS | |
5072 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5073 | for ac_exec_ext in '' $ac_executable_extensions; do |
5074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5075 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 5076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5077 | break 2 |
5078 | fi | |
5079 | done | |
5213506e RW |
5080 | done |
5081 | IFS=$as_save_IFS | |
1c710c3c | 5082 | |
55ffb5ed NN |
5083 | fi |
5084 | fi | |
1c710c3c | 5085 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 5086 | if test -n "$GNATBIND"; then |
5213506e RW |
5087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5088 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 5089 | else |
5213506e RW |
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5091 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5092 | fi |
5093 | ||
5213506e | 5094 | |
1c710c3c | 5095 | fi |
55ffb5ed | 5096 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 5097 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
5098 | # Extract the first word of "gnatbind", so it can be a program name with args. |
5099 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
5100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5101 | $as_echo_n "checking for $ac_word... " >&6; } | |
5102 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5103 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 5104 | else |
1c710c3c DJ |
5105 | if test -n "$ac_ct_GNATBIND"; then |
5106 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 5107 | else |
1c710c3c DJ |
5108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5109 | for as_dir in $PATH | |
5110 | do | |
5111 | IFS=$as_save_IFS | |
5112 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5113 | for ac_exec_ext in '' $ac_executable_extensions; do |
5114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5115 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 5116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5117 | break 2 |
5118 | fi | |
5119 | done | |
5213506e RW |
5120 | done |
5121 | IFS=$as_save_IFS | |
1c710c3c | 5122 | |
55ffb5ed NN |
5123 | fi |
5124 | fi | |
1c710c3c DJ |
5125 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5126 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5128 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 5129 | else |
5213506e RW |
5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5131 | $as_echo "no" >&6; } | |
55ffb5ed NN |
5132 | fi |
5133 | ||
5213506e RW |
5134 | if test "x$ac_ct_GNATBIND" = x; then |
5135 | GNATBIND="no" | |
5136 | else | |
5137 | case $cross_compiling:$ac_tool_warned in | |
5138 | yes:) | |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5140 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5141 | ac_tool_warned=yes ;; | |
5142 | esac | |
5143 | GNATBIND=$ac_ct_GNATBIND | |
5144 | fi | |
55ffb5ed | 5145 | else |
1c710c3c | 5146 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
5147 | fi |
5148 | ||
1c710c3c DJ |
5149 | if test -n "$ac_tool_prefix"; then |
5150 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 5151 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5153 | $as_echo_n "checking for $ac_word... " >&6; } | |
5154 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5155 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
5156 | else |
5157 | if test -n "$GNATMAKE"; then | |
5158 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
5159 | else | |
1c710c3c DJ |
5160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5161 | for as_dir in $PATH | |
5162 | do | |
5163 | IFS=$as_save_IFS | |
5164 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5165 | for ac_exec_ext in '' $ac_executable_extensions; do |
5166 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5167 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 5168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5169 | break 2 |
5170 | fi | |
5171 | done | |
5213506e RW |
5172 | done |
5173 | IFS=$as_save_IFS | |
1c710c3c | 5174 | |
5305be7e RG |
5175 | fi |
5176 | fi | |
1c710c3c | 5177 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 5178 | if test -n "$GNATMAKE"; then |
5213506e RW |
5179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5180 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 5181 | else |
5213506e RW |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5183 | $as_echo "no" >&6; } | |
5305be7e RG |
5184 | fi |
5185 | ||
5213506e | 5186 | |
1c710c3c | 5187 | fi |
5305be7e | 5188 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 5189 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
5190 | # Extract the first word of "gnatmake", so it can be a program name with args. |
5191 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5193 | $as_echo_n "checking for $ac_word... " >&6; } | |
5194 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5195 | $as_echo_n "(cached) " >&6 | |
5305be7e | 5196 | else |
1c710c3c DJ |
5197 | if test -n "$ac_ct_GNATMAKE"; then |
5198 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 5199 | else |
1c710c3c DJ |
5200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5201 | for as_dir in $PATH | |
5202 | do | |
5203 | IFS=$as_save_IFS | |
5204 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
5205 | for ac_exec_ext in '' $ac_executable_extensions; do |
5206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 5207 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 5208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
5209 | break 2 |
5210 | fi | |
5211 | done | |
5213506e RW |
5212 | done |
5213 | IFS=$as_save_IFS | |
1c710c3c | 5214 | |
5305be7e RG |
5215 | fi |
5216 | fi | |
1c710c3c DJ |
5217 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5218 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5220 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 5221 | else |
5213506e RW |
5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5223 | $as_echo "no" >&6; } | |
5305be7e RG |
5224 | fi |
5225 | ||
5213506e RW |
5226 | if test "x$ac_ct_GNATMAKE" = x; then |
5227 | GNATMAKE="no" | |
5228 | else | |
5229 | case $cross_compiling:$ac_tool_warned in | |
5230 | yes:) | |
5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5233 | ac_tool_warned=yes ;; | |
5234 | esac | |
5235 | GNATMAKE=$ac_ct_GNATMAKE | |
5236 | fi | |
5305be7e | 5237 | else |
1c710c3c | 5238 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
5239 | fi |
5240 | ||
5213506e RW |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5242 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5243 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5244 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
5245 | else |
5246 | cat >conftest.adb <<EOF | |
5247 | procedure conftest is begin null; end conftest; | |
5248 | EOF | |
5249 | acx_cv_cc_gcc_supports_ada=no | |
5250 | # There is a bug in old released versions of GCC which causes the | |
5251 | # driver to exit successfully when the appropriate language module | |
5252 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5253 | # Therefore we must check for the error message as well as an | |
5254 | # unsuccessful exit. | |
1db673ca RO |
5255 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5256 | # given a .adb file, but produce no object file. So we must check | |
5257 | # if an object file was really produced to guard against this. | |
55ffb5ed | 5258 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 5259 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 5260 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
5261 | fi |
5262 | rm -f conftest.* | |
5263 | fi | |
5213506e RW |
5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5265 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 5266 | |
7cb62ef1 | 5267 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
5268 | have_gnat=yes |
5269 | else | |
5270 | have_gnat=no | |
5271 | fi | |
5272 | ||
5213506e RW |
5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5274 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5275 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5276 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
5277 | else |
5278 | echo abfoo >t1 | |
5279 | echo cdfoo >t2 | |
b55e6680 | 5280 | gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' |
6cf1ac42 PB |
5281 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5282 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5283 | : | |
5284 | else | |
5285 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5286 | fi | |
5287 | fi | |
a76494aa PB |
5288 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5289 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 5290 | : |
a76494aa PB |
5291 | else |
5292 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5293 | fi | |
5294 | fi | |
5295 | rm t1 t2 | |
5296 | ||
5297 | fi | |
5213506e RW |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5299 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
5300 | do_compare="$gcc_cv_prog_cmp_skip" |
5301 | ||
5302 | ||
55ffb5ed | 5303 | |
ff3ac0f4 ILT |
5304 | # Check whether --enable-bootstrap was given. |
5305 | if test "${enable_bootstrap+set}" = set; then : | |
5306 | enableval=$enable_bootstrap; | |
5307 | else | |
5308 | enable_bootstrap=default | |
5309 | fi | |
5310 | ||
5311 | ||
5312 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
bf03b9ff ILT |
5313 | if test -r $srcdir/gcc/configure; then |
5314 | have_compiler=yes | |
5315 | else | |
5316 | have_compiler=no | |
5317 | fi | |
ff3ac0f4 ILT |
5318 | |
5319 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5320 | *:*:*:no) ;; | |
5321 | ||
5322 | # Default behavior. Enable bootstrap if we have a compiler | |
5323 | # and we are in a native configuration. | |
5324 | yes:$build:$build:default) | |
5325 | enable_bootstrap=yes ;; | |
5326 | ||
5327 | *:*:*:default) | |
5328 | enable_bootstrap=no ;; | |
5329 | ||
5330 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5331 | yes:$build:$build:yes) | |
5332 | ;; | |
5333 | ||
5334 | # Other configurations, but we have a compiler. Assume the user knows | |
5335 | # what he's doing. | |
5336 | yes:*:*:yes) | |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5338 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5339 | ;; | |
5340 | ||
5341 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5342 | no:*:*:yes) | |
5343 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5344 | ||
5345 | # Fail if wrong command line | |
5346 | *) | |
5347 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5348 | ;; | |
5349 | esac | |
5350 | ||
46070488 JM |
5351 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5352 | # C++98 compiler can still start the bootstrap. | |
5353 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
8ca528d9 | 5354 | CXX="$CXX -std=gnu++98" |
46070488 JM |
5355 | fi |
5356 | ||
592c90ff KG |
5357 | # Used for setting $lt_cv_objdir |
5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5359 | $as_echo_n "checking for objdir... " >&6; } | |
5360 | if test "${lt_cv_objdir+set}" = set; then : | |
5361 | $as_echo_n "(cached) " >&6 | |
5362 | else | |
5363 | rm -f .libs 2>/dev/null | |
5364 | mkdir .libs 2>/dev/null | |
5365 | if test -d .libs; then | |
5366 | lt_cv_objdir=.libs | |
5367 | else | |
5368 | # MS-DOS does not allow filenames that begin with a dot. | |
5369 | lt_cv_objdir=_libs | |
5370 | fi | |
5371 | rmdir .libs 2>/dev/null | |
5372 | fi | |
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5374 | $as_echo "$lt_cv_objdir" >&6; } | |
5375 | objdir=$lt_cv_objdir | |
5376 | ||
5377 | ||
5378 | ||
5379 | ||
5380 | ||
5381 | cat >>confdefs.h <<_ACEOF | |
5382 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5383 | _ACEOF | |
5384 | ||
5385 | ||
5386 | ||
acd26225 | 5387 | # Check for GMP, MPFR and MPC |
3a5729ea | 5388 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5389 | gmpinc= |
e69bf64b | 5390 | have_gmp=no |
acd26225 KG |
5391 | |
5392 | # Specify a location for mpc | |
5393 | # check for this first so it ends up on the link line before mpfr. | |
5394 | ||
5213506e RW |
5395 | # Check whether --with-mpc was given. |
5396 | if test "${with_mpc+set}" = set; then : | |
5397 | withval=$with_mpc; | |
5398 | fi | |
acd26225 | 5399 | |
acd26225 | 5400 | |
9965e3cd | 5401 | # Check whether --with-mpc-include was given. |
5213506e RW |
5402 | if test "${with_mpc_include+set}" = set; then : |
5403 | withval=$with_mpc_include; | |
5404 | fi | |
acd26225 | 5405 | |
acd26225 | 5406 | |
9965e3cd | 5407 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5408 | if test "${with_mpc_lib+set}" = set; then : |
5409 | withval=$with_mpc_lib; | |
5410 | fi | |
acd26225 | 5411 | |
acd26225 KG |
5412 | |
5413 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5414 | gmplibs="-L$with_mpc/lib $gmplibs" |
5415 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5416 | fi |
5417 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5418 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5419 | fi |
5420 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5421 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5422 | fi |
5423 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5424 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5425 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5426 | # Do not test the mpc version. Assume that it is sufficient, since |
5427 | # it is in the source tree, and the library has not been built yet | |
5428 | # but it would be included on the link line in the version check below | |
5429 | # hence making the test fail. | |
3a5729ea | 5430 | have_gmp=yes |
acd26225 | 5431 | fi |
e69bf64b | 5432 | |
bebf829d PB |
5433 | # Specify a location for mpfr |
5434 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5435 | |
5213506e RW |
5436 | # Check whether --with-mpfr-dir was given. |
5437 | if test "${with_mpfr_dir+set}" = set; then : | |
5438 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5439 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5440 | fi | |
5441 | ||
bebf829d PB |
5442 | |
5443 | ||
5213506e RW |
5444 | # Check whether --with-mpfr was given. |
5445 | if test "${with_mpfr+set}" = set; then : | |
5446 | withval=$with_mpfr; | |
5447 | fi | |
1c710c3c | 5448 | |
bebf829d | 5449 | |
9965e3cd | 5450 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5451 | if test "${with_mpfr_include+set}" = set; then : |
5452 | withval=$with_mpfr_include; | |
5453 | fi | |
1c710c3c | 5454 | |
8a877c9c | 5455 | |
9965e3cd | 5456 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5457 | if test "${with_mpfr_lib+set}" = set; then : |
5458 | withval=$with_mpfr_lib; | |
5459 | fi | |
8a877c9c | 5460 | |
bebf829d PB |
5461 | |
5462 | if test "x$with_mpfr" != x; then | |
5463 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5464 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5465 | fi |
8a877c9c | 5466 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5467 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5468 | fi |
5469 | if test "x$with_mpfr_lib" != x; then | |
5470 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5471 | fi | |
e69bf64b | 5472 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
8f3675f8 MR |
5473 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5474 | if ! test -d ${srcdir}/mpfr/src; then | |
5475 | as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5 | |
5476 | fi | |
00f35794 BE |
5477 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" |
5478 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5479 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
e69bf64b PB |
5480 | # Do not test the mpfr version. Assume that it is sufficient, since |
5481 | # it is in the source tree, and the library has not been built yet | |
5482 | # but it would be included on the link line in the version check below | |
5483 | # hence making the test fail. | |
5484 | have_gmp=yes | |
5485 | fi | |
bebf829d | 5486 | |
6de9cd9a | 5487 | # Specify a location for gmp |
1c710c3c | 5488 | |
5213506e RW |
5489 | # Check whether --with-gmp-dir was given. |
5490 | if test "${with_gmp_dir+set}" = set; then : | |
5491 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5492 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5493 | fi | |
5494 | ||
6de9cd9a | 5495 | |
6de9cd9a | 5496 | |
5213506e RW |
5497 | # Check whether --with-gmp was given. |
5498 | if test "${with_gmp+set}" = set; then : | |
5499 | withval=$with_gmp; | |
5500 | fi | |
1c710c3c | 5501 | |
6de9cd9a | 5502 | |
9965e3cd | 5503 | # Check whether --with-gmp-include was given. |
5213506e RW |
5504 | if test "${with_gmp_include+set}" = set; then : |
5505 | withval=$with_gmp_include; | |
5506 | fi | |
1c710c3c | 5507 | |
8a877c9c | 5508 | |
9965e3cd | 5509 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5510 | if test "${with_gmp_lib+set}" = set; then : |
5511 | withval=$with_gmp_lib; | |
5512 | fi | |
8a877c9c KG |
5513 | |
5514 | ||
6de9cd9a | 5515 | |
bebf829d PB |
5516 | if test "x$with_gmp" != x; then |
5517 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5518 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5519 | fi |
8a877c9c KG |
5520 | if test "x$with_gmp_include" != x; then |
5521 | gmpinc="-I$with_gmp_include $gmpinc" | |
5522 | fi | |
5523 | if test "x$with_gmp_lib" != x; then | |
5524 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5525 | fi | |
e69bf64b | 5526 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5527 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5528 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5529 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5530 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
0ff2d841 | 5531 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
e69bf64b PB |
5532 | # Do not test the gmp version. Assume that it is sufficient, since |
5533 | # it is in the source tree, and the library has not been built yet | |
5534 | # but it would be included on the link line in the version check below | |
5535 | # hence making the test fail. | |
5536 | have_gmp=yes | |
5537 | fi | |
6de9cd9a | 5538 | |
d943d7c4 | 5539 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5540 | have_gmp=yes |
5541 | saved_CFLAGS="$CFLAGS" | |
5542 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5543 | # Check for the recommended and required versions of GMP. |
5544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5545 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5546 | |
5547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5548 | /* end confdefs.h. */ |
5549 | #include "gmp.h" | |
5550 | int | |
5551 | main () | |
5552 | { | |
5553 | ||
5554 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5555 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
385c0681 | 5556 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
362c6d2f KG |
5557 | choke me |
5558 | #endif | |
5559 | ||
5560 | ; | |
5561 | return 0; | |
5562 | } | |
5563 | _ACEOF | |
5564 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5566 | /* end confdefs.h. */ |
362c6d2f | 5567 | #include <gmp.h> |
1c710c3c DJ |
5568 | int |
5569 | main () | |
5570 | { | |
6de9cd9a | 5571 | |
362c6d2f KG |
5572 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5573 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5574 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5575 | choke me |
5576 | #endif | |
1c710c3c DJ |
5577 | |
5578 | ; | |
5579 | return 0; | |
5580 | } | |
5581 | _ACEOF | |
5213506e RW |
5582 | if ac_fn_c_try_compile "$LINENO"; then : |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5584 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5585 | else |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5587 | $as_echo "buggy but acceptable" >&6; } | |
5588 | fi | |
5589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5590 | else |
5213506e RW |
5591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5592 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5593 | fi |
5213506e | 5594 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5595 | |
acd26225 | 5596 | # If we have GMP, check the MPFR version. |
e69bf64b | 5597 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5598 | # Check for the recommended and required versions of MPFR. |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5600 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5602 | /* end confdefs.h. */ |
70ec446f | 5603 | #include <gmp.h> |
e69bf64b | 5604 | #include <mpfr.h> |
1c710c3c DJ |
5605 | int |
5606 | main () | |
5607 | { | |
e48d66a9 | 5608 | |
f7d6bc01 | 5609 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
e69bf64b PB |
5610 | choke me |
5611 | #endif | |
1c710c3c DJ |
5612 | |
5613 | ; | |
5614 | return 0; | |
5615 | } | |
5616 | _ACEOF | |
5213506e RW |
5617 | if ac_fn_c_try_compile "$LINENO"; then : |
5618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5619 | /* end confdefs.h. */ |
a3993f33 | 5620 | #include <gmp.h> |
e69bf64b | 5621 | #include <mpfr.h> |
1c710c3c DJ |
5622 | int |
5623 | main () | |
5624 | { | |
a3993f33 | 5625 | |
362c6d2f | 5626 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5627 | choke me |
5628 | #endif | |
acd26225 KG |
5629 | |
5630 | ; | |
5631 | return 0; | |
5632 | } | |
5633 | _ACEOF | |
5213506e RW |
5634 | if ac_fn_c_try_compile "$LINENO"; then : |
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5636 | $as_echo "yes" >&6; } | |
acd26225 | 5637 | else |
5213506e RW |
5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5639 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5640 | fi |
5213506e | 5641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5642 | else |
5213506e RW |
5643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5644 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5645 | fi |
5213506e | 5646 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5647 | fi |
5648 | ||
5649 | # Check for the MPC header version. | |
3a5729ea | 5650 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5651 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5653 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5655 | /* end confdefs.h. */ |
5656 | #include <mpc.h> | |
5657 | int | |
5658 | main () | |
5659 | { | |
5660 | ||
362c6d2f KG |
5661 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5662 | choke me | |
5663 | #endif | |
5664 | ||
5665 | ; | |
5666 | return 0; | |
5667 | } | |
5668 | _ACEOF | |
5669 | if ac_fn_c_try_compile "$LINENO"; then : | |
5670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5671 | /* end confdefs.h. */ | |
5672 | #include <mpc.h> | |
5673 | int | |
5674 | main () | |
5675 | { | |
5676 | ||
5677 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5678 | choke me |
5679 | #endif | |
5680 | ||
5681 | ; | |
5682 | return 0; | |
5683 | } | |
5684 | _ACEOF | |
5213506e RW |
5685 | if ac_fn_c_try_compile "$LINENO"; then : |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5687 | $as_echo "yes" >&6; } |
362c6d2f KG |
5688 | else |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5690 | $as_echo "buggy but acceptable" >&6; } | |
5691 | fi | |
5692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5693 | else |
5213506e | 5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5695 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5696 | fi |
5213506e | 5697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5698 | fi |
5699 | ||
5700 | # Now check the MPFR library. | |
5701 | if test x"$have_gmp" = xyes; then | |
5702 | saved_LIBS="$LIBS" | |
5703 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5705 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5707 | /* end confdefs.h. */ |
3a5729ea | 5708 | #include <mpc.h> |
acd26225 KG |
5709 | int |
5710 | main () | |
5711 | { | |
5712 | ||
5713 | mpfr_t n; | |
5714 | mpfr_t x; | |
3a5729ea | 5715 | mpc_t c; |
acd26225 KG |
5716 | int t; |
5717 | mpfr_init (n); | |
5718 | mpfr_init (x); | |
5719 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5720 | mpfr_erfc (n, x, GMP_RNDN); | |
5721 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5722 | mpfr_clear(n); |
5723 | mpfr_clear(x); | |
5724 | mpc_init2 (c, 53); | |
5725 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5726 | mpc_cosh (c, c, MPC_RNDNN); | |
5727 | mpc_pow (c, c, c, MPC_RNDNN); | |
5728 | mpc_acosh (c, c, MPC_RNDNN); | |
5729 | mpc_clear (c); | |
1c710c3c DJ |
5730 | |
5731 | ; | |
5732 | return 0; | |
5733 | } | |
5734 | _ACEOF | |
5213506e RW |
5735 | if ac_fn_c_try_link "$LINENO"; then : |
5736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5737 | $as_echo "yes" >&6; } | |
1c710c3c | 5738 | else |
5213506e RW |
5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5740 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5741 | fi |
5213506e RW |
5742 | rm -f core conftest.err conftest.$ac_objext \ |
5743 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5744 | LIBS="$saved_LIBS" |
5745 | fi | |
5746 | ||
e69bf64b | 5747 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5748 | |
362c6d2f KG |
5749 | # The library versions listed in the error message below should match |
5750 | # the HARD-minimums enforced above. | |
e69bf64b | 5751 | if test x$have_gmp != xyes; then |
f7d6bc01 | 5752 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
3a5729ea KG |
5753 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5754 | their locations. Source code for these libraries can be found at | |
5755 | their respective hosting sites as well as at | |
5756 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5757 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5758 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5759 | make sure that you have installed both the libraries and the header | |
5760 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5761 | fi |
70ec446f KG |
5762 | fi |
5763 | ||
acd26225 KG |
5764 | # Flags needed for both GMP, MPFR and/or MPC. |
5765 | ||
5766 | ||
6de9cd9a DN |
5767 | |
5768 | ||
5769 | ||
9e3eba15 | 5770 | |
0ff2d841 | 5771 | |
0b21f5d3 | 5772 | # Libraries to use for stage1 or when not bootstrapping. |
00020c16 | 5773 | |
0b21f5d3 EB |
5774 | # Check whether --with-stage1-libs was given. |
5775 | if test "${with_stage1_libs+set}" = set; then : | |
5776 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5777 | stage1_libs= | |
00020c16 | 5778 | else |
0b21f5d3 | 5779 | stage1_libs=$withval |
00020c16 ILT |
5780 | fi |
5781 | else | |
5dc85f7e | 5782 | stage1_libs= |
5213506e RW |
5783 | fi |
5784 | ||
00020c16 ILT |
5785 | |
5786 | ||
0b21f5d3 | 5787 | # Linker flags to use for stage1 or when not bootstrapping. |
00020c16 | 5788 | |
0b21f5d3 EB |
5789 | # Check whether --with-stage1-ldflags was given. |
5790 | if test "${with_stage1_ldflags+set}" = set; then : | |
5791 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5792 | stage1_ldflags= | |
00020c16 | 5793 | else |
0b21f5d3 | 5794 | stage1_ldflags=$withval |
00020c16 ILT |
5795 | fi |
5796 | else | |
0b21f5d3 EB |
5797 | stage1_ldflags= |
5798 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5799 | # if supported. But if the user explicitly specified the libraries to use, | |
5800 | # trust that they are doing what they want. | |
5801 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5802 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5803 | fi | |
5213506e RW |
5804 | fi |
5805 | ||
00020c16 ILT |
5806 | |
5807 | ||
5dc85f7e | 5808 | # Libraries to use for stage2 and later builds. |
00020c16 | 5809 | |
5213506e RW |
5810 | # Check whether --with-boot-libs was given. |
5811 | if test "${with_boot_libs+set}" = set; then : | |
5812 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5813 | poststage1_libs= |
5814 | else | |
5815 | poststage1_libs=$withval | |
5816 | fi | |
5817 | else | |
5dc85f7e | 5818 | poststage1_libs= |
5213506e RW |
5819 | fi |
5820 | ||
00020c16 ILT |
5821 | |
5822 | ||
ed2eaa9f ILT |
5823 | # Linker flags to use for stage2 and later builds. |
5824 | ||
5825 | # Check whether --with-boot-ldflags was given. | |
5826 | if test "${with_boot_ldflags+set}" = set; then : | |
5827 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5828 | poststage1_ldflags= | |
5829 | else | |
5830 | poststage1_ldflags=$withval | |
5831 | fi | |
5832 | else | |
5833 | poststage1_ldflags= | |
bec93d73 ILT |
5834 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5835 | # statically. But if the user explicitly specified the libraries to | |
5836 | # use, trust that they are doing what they want. | |
5837 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5838 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5839 | fi | |
5840 | fi | |
5841 | ||
5842 | ||
5843 | ||
e357a5e0 | 5844 | # GCC GRAPHITE dependency isl. |
4a9bb2aa | 5845 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
f8bf9252 SP |
5846 | |
5847 | ||
33ad93b9 RG |
5848 | # Check whether --with-isl was given. |
5849 | if test "${with_isl+set}" = set; then : | |
5850 | withval=$with_isl; | |
5213506e | 5851 | fi |
f8bf9252 | 5852 | |
f8bf9252 | 5853 | |
eae1a5d4 | 5854 | # Treat --without-isl as a request to disable |
625afa23 | 5855 | # GRAPHITE support and skip all following checks. |
eae1a5d4 | 5856 | if test "x$with_isl" != "xno"; then |
e357a5e0 | 5857 | # Check for isl |
625afa23 RG |
5858 | |
5859 | ||
33ad93b9 RG |
5860 | # Check whether --with-isl-include was given. |
5861 | if test "${with_isl_include+set}" = set; then : | |
5862 | withval=$with_isl_include; | |
5213506e RW |
5863 | fi |
5864 | ||
f8bf9252 | 5865 | |
33ad93b9 RG |
5866 | # Check whether --with-isl-lib was given. |
5867 | if test "${with_isl_lib+set}" = set; then : | |
5868 | withval=$with_isl_lib; | |
5213506e | 5869 | fi |
f8bf9252 | 5870 | |
f8bf9252 | 5871 | |
33ad93b9 RG |
5872 | # Check whether --enable-isl-version-check was given. |
5873 | if test "${enable_isl_version_check+set}" = set; then : | |
5874 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5875 | else | |
5876 | ENABLE_ISL_CHECK=yes | |
7d32a440 SP |
5877 | fi |
5878 | ||
5879 | ||
33ad93b9 RG |
5880 | # Initialize isllibs and islinc. |
5881 | case $with_isl in | |
5882 | no) | |
5883 | isllibs= | |
5884 | islinc= | |
5885 | ;; | |
5886 | "" | yes) | |
5887 | ;; | |
5888 | *) | |
5889 | isllibs="-L$with_isl/lib" | |
5890 | islinc="-I$with_isl/include" | |
5891 | ;; | |
5892 | esac | |
5893 | if test "x${with_isl_include}" != x ; then | |
5894 | islinc="-I$with_isl_include" | |
5895 | fi | |
5896 | if test "x${with_isl_lib}" != x; then | |
5897 | isllibs="-L$with_isl_lib" | |
5898 | fi | |
5899 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5900 | && test -d ${srcdir}/isl; then | |
5901 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5902 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5903 | ENABLE_ISL_CHECK=no | |
560d18d3 AK |
5904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
5905 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
33ad93b9 | 5906 | fi |
7d32a440 | 5907 | |
eae1a5d4 RG |
5908 | isllibs="${isllibs} -lisl" |
5909 | ||
7d32a440 | 5910 | |
7d32a440 | 5911 | |
9847828b RB |
5912 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5913 | _isl_saved_CFLAGS=$CFLAGS | |
5914 | _isl_saved_LDFLAGS=$LDFLAGS | |
5915 | _isl_saved_LIBS=$LIBS | |
5916 | ||
5917 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
70decafb NS |
5918 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
5919 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
9847828b | 5920 | |
c661a43d SP |
5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
5922 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
e0c0c325 | 5923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
622dbadf | 5924 | /* end confdefs.h. */ |
560d18d3 | 5925 | #include <isl/ctx.h> |
622dbadf BC |
5926 | int |
5927 | main () | |
5928 | { | |
560d18d3 | 5929 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
622dbadf BC |
5930 | ; |
5931 | return 0; | |
5932 | } | |
5933 | _ACEOF | |
5934 | if ac_fn_c_try_link "$LINENO"; then : | |
9847828b | 5935 | gcc_cv_isl=yes |
622dbadf BC |
5936 | else |
5937 | gcc_cv_isl=no | |
5938 | fi | |
5939 | rm -f core conftest.err conftest.$ac_objext \ | |
5940 | conftest$ac_exeext conftest.$ac_ext | |
9847828b RB |
5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5942 | $as_echo "$gcc_cv_isl" >&6; } | |
5943 | ||
560d18d3 | 5944 | if test "${gcc_cv_isl}" = no ; then |
c661a43d SP |
5945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 |
5946 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
560d18d3 AK |
5947 | fi |
5948 | ||
c661a43d SP |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 |
5950 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
1e050c90 AK |
5951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5952 | /* end confdefs.h. */ | |
5953 | #include <isl/schedule.h> | |
5954 | int | |
5955 | main () | |
5956 | { | |
5957 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
5958 | ; | |
5959 | return 0; | |
5960 | } | |
5961 | _ACEOF | |
5962 | if ac_fn_c_try_link "$LINENO"; then : | |
5963 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
5964 | else | |
5965 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
5966 | fi | |
5967 | rm -f core conftest.err conftest.$ac_objext \ | |
5968 | conftest$ac_exeext conftest.$ac_ext | |
5969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
5970 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
5971 | ||
5972 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
5973 | islver="0.15" | |
5974 | ||
5975 | fi | |
5976 | ||
9847828b RB |
5977 | CFLAGS=$_isl_saved_CFLAGS |
5978 | LDFLAGS=$_isl_saved_LDFLAGS | |
5979 | LIBS=$_isl_saved_LIBS | |
5980 | fi | |
5981 | ||
5982 | ||
f8bf9252 | 5983 | |
f8bf9252 | 5984 | |
33ad93b9 RG |
5985 | |
5986 | ||
33ad93b9 RG |
5987 | if test "x${with_isl}" = xno; then |
5988 | graphite_requested=no | |
5989 | elif test "x${with_isl}" != x \ | |
5990 | || test "x${with_isl_include}" != x \ | |
5991 | || test "x${with_isl_lib}" != x ; then | |
5992 | graphite_requested=yes | |
5993 | else | |
5994 | graphite_requested=no | |
7d32a440 | 5995 | fi |
d789184e | 5996 | |
d789184e SP |
5997 | |
5998 | ||
33ad93b9 RG |
5999 | if test "${gcc_cv_isl}" = no ; then |
6000 | isllibs= | |
6001 | islinc= | |
6002 | fi | |
6003 | ||
6004 | if test "${graphite_requested}" = yes \ | |
6005 | && test "x${isllibs}" = x \ | |
6006 | && test "x${islinc}" = x ; then | |
f8bf9252 | 6007 | |
e357a5e0 | 6008 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
33ad93b9 | 6009 | fi |
f8bf9252 | 6010 | |
d32ef397 | 6011 | |
d32ef397 AS |
6012 | fi |
6013 | ||
e357a5e0 | 6014 | # If the isl check failed, disable builds of in-tree variant of isl |
625afa23 | 6015 | if test "x$with_isl" = xno || |
625afa23 | 6016 | test "x$gcc_cv_isl" = xno; then |
4a9bb2aa | 6017 | noconfigdirs="$noconfigdirs isl" |
625afa23 | 6018 | islinc= |
32d024bf RG |
6019 | fi |
6020 | ||
625afa23 RG |
6021 | |
6022 | ||
6023 | ||
d7f09764 DN |
6024 | # Check for LTO support. |
6025 | # Check whether --enable-lto was given. | |
6026 | if test "${enable_lto+set}" = set; then : | |
6027 | enableval=$enable_lto; enable_lto=$enableval | |
6028 | else | |
6029 | enable_lto=yes; default_enable_lto=yes | |
6030 | fi | |
6031 | ||
6032 | ||
7413962d | 6033 | |
9a02962b DK |
6034 | |
6035 | ||
6036 | target_elf=no | |
6037 | case $target in | |
6038 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6039 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
8f56cb51 | 6040 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
8ae12d71 | 6041 | nvptx-*-none) |
9a02962b DK |
6042 | target_elf=no |
6043 | ;; | |
6044 | *) | |
6045 | target_elf=yes | |
6046 | ;; | |
6047 | esac | |
6048 | ||
6049 | if test $target_elf = yes; then : | |
48215350 DK |
6050 | # ELF platforms build the lto-plugin always. |
6051 | build_lto_plugin=yes | |
9a02962b | 6052 | |
9a02962b DK |
6053 | else |
6054 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6055 | case $target in |
9e530bcd | 6056 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
48215350 | 6057 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6058 | *) enable_lto=no ;; |
6059 | esac | |
9a02962b | 6060 | else |
db50fe7d IS |
6061 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6062 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6063 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6064 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6065 | # -flto it won't be needed until after installation anyway. | |
6066 | case $target in | |
9e530bcd | 6067 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
9a02962b DK |
6068 | *) if test x"$enable_lto" = x"yes"; then |
6069 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6070 | fi | |
6071 | ;; | |
6072 | esac | |
6073 | fi | |
1cd0b716 | 6074 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6075 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6076 | case $target in |
48215350 | 6077 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6078 | *) ;; |
6079 | esac | |
48215350 | 6080 | |
9a02962b DK |
6081 | fi |
6082 | ||
d7f09764 | 6083 | |
45b3824d TS |
6084 | # Check whether --enable-linker-plugin-configure-flags was given. |
6085 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6086 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6087 | else | |
6088 | extra_linker_plugin_configure_flags= | |
6089 | fi | |
6090 | ||
6091 | ||
6092 | # Check whether --enable-linker-plugin-flags was given. | |
6093 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6094 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6095 | else | |
6096 | extra_linker_plugin_flags= | |
6097 | fi | |
6098 | ||
6099 | ||
6100 | ||
f8bf9252 | 6101 | |
0823efed | 6102 | # By default, C and C++ are the only stage 1 languages. |
e1888513 | 6103 | stage1_languages=,c, |
2805b53a | 6104 | |
00020c16 | 6105 | # Target libraries that we bootstrap. |
ad1e5170 | 6106 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6107 | |
55ffb5ed NN |
6108 | # Figure out what language subdirectories are present. |
6109 | # Look if the user specified --enable-languages="..."; if not, use | |
6110 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6111 | # go away some day. | |
6112 | # NB: embedded tabs in this IF block -- do not untabify | |
6113 | if test -d ${srcdir}/gcc; then | |
6114 | if test x"${enable_languages+set}" != xset; then | |
6115 | if test x"${LANGUAGES+set}" = xset; then | |
6116 | enable_languages="${LANGUAGES}" | |
6b1786aa | 6117 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
55ffb5ed NN |
6118 | else |
6119 | enable_languages=all | |
6120 | fi | |
6121 | else | |
6122 | if test x"${enable_languages}" = x || | |
6123 | test x"${enable_languages}" = xyes; | |
6124 | then | |
6b1786aa | 6125 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
55ffb5ed NN |
6126 | exit 1 |
6127 | fi | |
6128 | fi | |
6129 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6130 | ||
7f26dfa3 FXC |
6131 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6132 | # and make the substitution. | |
6133 | case ,${enable_languages}, in | |
6134 | *,f95,*) | |
6b1786aa | 6135 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
7f26dfa3 FXC |
6136 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6137 | ;; | |
6138 | esac | |
6139 | ||
0823efed DN |
6140 | # If bootstrapping, C++ must be enabled. |
6141 | case ",$enable_languages,:$enable_bootstrap" in | |
6142 | *,c++,*:*) ;; | |
6143 | *:yes) | |
ff3ac0f4 ILT |
6144 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6145 | enable_languages="${enable_languages},c++" | |
6146 | else | |
0823efed | 6147 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ff3ac0f4 ILT |
6148 | fi |
6149 | ;; | |
6150 | esac | |
6151 | ||
55ffb5ed NN |
6152 | # First scan to see if an enabled language requires some other language. |
6153 | # We assume that a given config-lang.in will list all the language | |
6154 | # front ends it requires, even if some are required indirectly. | |
6155 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6156 | case ${lang_frag} in | |
6157 | ..) ;; | |
6158 | # The odd quoting in the next line works around | |
6159 | # an apparent bug in bash 1.12 on linux. | |
6160 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6161 | *) | |
69ecd18f ILT |
6162 | # From the config-lang.in, get $language, $lang_requires, and |
6163 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6164 | language= |
6165 | lang_requires= | |
69ecd18f | 6166 | lang_requires_boot_languages= |
55ffb5ed | 6167 | . ${lang_frag} |
69ecd18f | 6168 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6169 | case ,${enable_languages}, in |
6170 | *,$other,*) ;; | |
6171 | *,all,*) ;; | |
6172 | *,$language,*) | |
6173 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6174 | enable_languages="${enable_languages},${other}" | |
6175 | ;; | |
6176 | esac | |
6177 | done | |
69ecd18f ILT |
6178 | for other in ${lang_requires_boot_languages} ; do |
6179 | if test "$other" != "c"; then | |
6180 | case ,${enable_stage1_languages}, in | |
6181 | *,$other,*) ;; | |
6182 | *,all,*) ;; | |
6183 | *) | |
6184 | case ,${enable_languages}, in | |
6185 | *,$language,*) | |
6186 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6187 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6188 | ;; | |
6189 | esac | |
6190 | ;; | |
6191 | esac | |
6192 | fi | |
6193 | done | |
55ffb5ed NN |
6194 | ;; |
6195 | esac | |
6196 | done | |
6197 | ||
e1888513 | 6198 | new_enable_languages=,c, |
d7f09764 DN |
6199 | |
6200 | # If LTO is enabled, add the LTO front end. | |
d7f09764 | 6201 | if test "$enable_lto" = "yes" ; then |
e4c5bd48 RW |
6202 | case ,${enable_languages}, in |
6203 | *,lto,*) ;; | |
6204 | *) enable_languages="${enable_languages},lto" ;; | |
6205 | esac | |
1cd0b716 | 6206 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 | 6207 | configdirs="$configdirs lto-plugin" |
d7f09764 DN |
6208 | fi |
6209 | fi | |
6210 | ||
426c1eb0 TS |
6211 | # If we're building an offloading compiler, add the LTO front end. |
6212 | if test x"$enable_as_accelerator_for" != x ; then | |
6213 | case ,${enable_languages}, in | |
6214 | *,lto,*) ;; | |
6215 | *) enable_languages="${enable_languages},lto" ;; | |
6216 | esac | |
6217 | fi | |
6218 | ||
55ffb5ed | 6219 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6220 | potential_languages=,c, |
55ffb5ed | 6221 | |
4da3b0f8 ILT |
6222 | enabled_target_libs= |
6223 | disabled_target_libs= | |
6224 | ||
55ffb5ed NN |
6225 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6226 | case ${lang_frag} in | |
6227 | ..) ;; | |
6228 | # The odd quoting in the next line works around | |
6229 | # an apparent bug in bash 1.12 on linux. | |
6230 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6231 | *) | |
1c710c3c | 6232 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6233 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6234 | language= |
6235 | target_libs= | |
6236 | lang_dirs= | |
1546bb64 | 6237 | subdir_requires= |
e1888513 PB |
6238 | boot_language=no |
6239 | build_by_default=yes | |
55ffb5ed | 6240 | . ${lang_frag} |
e1888513 PB |
6241 | if test x${language} = x; then |
6242 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6243 | exit 1 | |
6244 | fi | |
6245 | ||
78767fd9 | 6246 | if test "$language" = "c++"; then |
0823efed | 6247 | boot_language=yes |
00020c16 ILT |
6248 | fi |
6249 | ||
178f875a | 6250 | add_this_lang=no |
e1888513 PB |
6251 | case ,${enable_languages}, in |
6252 | *,${language},*) | |
d4a10d0a SB |
6253 | # Language was explicitly selected; include it |
6254 | # unless it is C, which is enabled by default. | |
6255 | if test "$language" != "c"; then | |
6256 | add_this_lang=yes | |
6257 | fi | |
55ffb5ed | 6258 | ;; |
e1888513 PB |
6259 | *,all,*) |
6260 | # 'all' was selected, select it if it is a default language | |
178f875a JM |
6261 | if test "$language" != "c"; then |
6262 | add_this_lang=${build_by_default} | |
6263 | fi | |
55ffb5ed NN |
6264 | ;; |
6265 | esac | |
6de9cd9a | 6266 | |
1546bb64 | 6267 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6268 | for i in $subdir_requires; do |
b6348cb3 | 6269 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6270 | case ,${enable_languages}, in |
6271 | *,${language},*) | |
6272 | # Specifically requested language; tell them. | |
5213506e | 6273 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6274 | ;; |
6275 | *) | |
6276 | # Silently disable. | |
e1888513 | 6277 | add_this_lang=unsupported |
1546bb64 PB |
6278 | ;; |
6279 | esac | |
6280 | done | |
6281 | ||
e1888513 PB |
6282 | # Disable Ada if no preexisting GNAT is available. |
6283 | case ,${enable_languages},:${language}:${have_gnat} in | |
6284 | *,${language},*:ada:no) | |
6285 | # Specifically requested language; tell them. | |
5213506e | 6286 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6287 | ;; |
6288 | *:ada:no) | |
6289 | # Silently disable. | |
6290 | add_this_lang=unsupported | |
6291 | ;; | |
6292 | esac | |
6293 | ||
4fab7234 HPN |
6294 | # Disable a language that is unsupported by the target. |
6295 | case " $unsupported_languages " in | |
6296 | *" $language "*) | |
e1888513 | 6297 | add_this_lang=unsupported |
4fab7234 HPN |
6298 | ;; |
6299 | esac | |
6300 | ||
6de9cd9a | 6301 | case $add_this_lang in |
e1888513 | 6302 | unsupported) |
55ffb5ed | 6303 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6304 | disabled_target_libs="$disabled_target_libs $target_libs" |
6305 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6306 | ;; |
e1888513 PB |
6307 | no) |
6308 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6309 | disabled_target_libs="$disabled_target_libs $target_libs" |
6310 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6311 | potential_languages="${potential_languages}${language}," |
6312 | ;; | |
6313 | yes) | |
6314 | new_enable_languages="${new_enable_languages}${language}," | |
6315 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6316 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6317 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6318 | case "${boot_language}:,$enable_stage1_languages," in |
6319 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6320 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6321 | case ",$stage1_languages," in |
6322 | *,$language,* | ,yes, | ,all,) ;; | |
6323 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6324 | esac | |
00020c16 ILT |
6325 | # We need to bootstrap any supporting libraries. |
6326 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6327 | ;; |
6328 | esac | |
6329 | ;; | |
55ffb5ed NN |
6330 | esac |
6331 | ;; | |
6332 | esac | |
6333 | done | |
6334 | ||
4da3b0f8 ILT |
6335 | # Add target libraries which are only needed for disabled languages |
6336 | # to noconfigdirs. | |
6337 | if test -n "$disabled_target_libs"; then | |
6338 | for dir in $disabled_target_libs; do | |
6339 | case " $enabled_target_libs " in | |
6340 | *" ${dir} "*) ;; | |
6341 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6342 | esac | |
6343 | done | |
6344 | fi | |
6345 | ||
5213506e RW |
6346 | # Check whether --enable-stage1-languages was given. |
6347 | if test "${enable_stage1_languages+set}" = set; then : | |
6348 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6349 | ,no,|,,) |
6350 | # Set it to something that will have no effect in the loop below | |
6351 | enable_stage1_languages=c ;; | |
6352 | ,yes,) | |
6353 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6354 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6355 | *,all,*) | |
6356 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6357 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6358 | esac | |
6359 | ||
6360 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6361 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6362 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6363 | case $potential_languages in | |
6364 | *,$i,*) | |
6365 | case $stage1_languages in | |
6366 | *,$i,*) ;; | |
6367 | *) stage1_languages="$stage1_languages$i," ;; | |
6368 | esac ;; | |
6369 | *) | |
6370 | case $missing_languages in | |
6371 | *,$i,*) ;; | |
6372 | *) missing_languages="$missing_languages$i," ;; | |
6373 | esac ;; | |
6374 | esac | |
6375 | done | |
5213506e RW |
6376 | fi |
6377 | ||
e1888513 PB |
6378 | |
6379 | # Remove leading/trailing commas that were added for simplicity | |
6380 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6381 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6382 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6383 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6384 | ||
55ffb5ed | 6385 | if test "x$missing_languages" != x; then |
5213506e | 6386 | as_fn_error " |
0cf085e4 | 6387 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6388 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6389 | fi |
55ffb5ed NN |
6390 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6391 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6392 | enable_languages="$new_enable_languages" |
55ffb5ed | 6393 | fi |
e1888513 | 6394 | |
1c710c3c | 6395 | |
b2eaac4a | 6396 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6397 | fi |
6398 | ||
27079765 AH |
6399 | # Handle --disable-<component> generically. |
6400 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6401 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6402 | varname=`echo $dirname | sed -e s/+/_/g` |
6403 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6404 | noconfigdirs="$noconfigdirs $dir" |
6405 | fi | |
6406 | done | |
6407 | ||
43c40f3e RO |
6408 | # Check for Boehm's garbage collector |
6409 | # Check whether --enable-objc-gc was given. | |
6410 | if test "${enable_objc_gc+set}" = set; then : | |
114bf3f1 MK |
6411 | enableval=$enable_objc_gc; |
6412 | fi | |
6413 | ||
6414 | ||
6415 | # Check whether --with-target-bdw-gc was given. | |
6416 | if test "${with_target_bdw_gc+set}" = set; then : | |
6417 | withval=$with_target_bdw_gc; | |
6418 | fi | |
6419 | ||
6420 | ||
6421 | # Check whether --with-target-bdw-gc-include was given. | |
6422 | if test "${with_target_bdw_gc_include+set}" = set; then : | |
6423 | withval=$with_target_bdw_gc_include; | |
6424 | fi | |
6425 | ||
6426 | ||
6427 | # Check whether --with-target-bdw-gc-lib was given. | |
6428 | if test "${with_target_bdw_gc_lib+set}" = set; then : | |
6429 | withval=$with_target_bdw_gc_lib; | |
6430 | fi | |
6431 | ||
6432 | ||
6433 | case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto) | |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5 | |
6435 | $as_echo_n "checking for bdw garbage collector... " >&6; } | |
6436 | if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then | |
825fba52 MK |
6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5 |
6438 | $as_echo "using bdw-gc in default locations" >&6; } | |
114bf3f1 MK |
6439 | else |
6440 | if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then | |
6441 | as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5 | |
6442 | elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then | |
6443 | as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5 | |
6444 | else | |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5 | |
6446 | $as_echo "using paths configured with --with-target-bdw-gc options" >&6; } | |
6447 | fi | |
6448 | fi | |
43c40f3e RO |
6449 | esac |
6450 | ||
5f520819 | 6451 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
99776ebd | 6452 | case ,${enable_languages}, in |
1007a55c JW |
6453 | *,c++,*) |
6454 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6455 | case "${noconfigdirs}" in | |
6456 | *target-libstdc++-v3*) | |
6457 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6458 | ;; | |
6459 | *) ;; | |
6460 | esac | |
6461 | ;; | |
99776ebd | 6462 | *) |
5f520819 | 6463 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
99776ebd RH |
6464 | ;; |
6465 | esac | |
6466 | ||
ee6a22df L |
6467 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6468 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6469 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6470 | ||
6471 | notsupp="" | |
6472 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6473 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6474 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6475 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6476 | if test -r $srcdir/$dirname/configure ; then | |
6477 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6478 | true | |
6479 | else | |
6480 | notsupp="$notsupp $dir" | |
6481 | fi | |
6482 | fi | |
6483 | fi | |
ee6a22df L |
6484 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6485 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6486 | if test -r $srcdir/$dirname/configure ; then | |
6487 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6488 | true | |
6489 | else | |
6490 | notsupp="$notsupp $dir" | |
6491 | fi | |
6492 | fi | |
6493 | fi | |
55ffb5ed NN |
6494 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6495 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6496 | if test -r $srcdir/$dirname/configure ; then | |
6497 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6498 | true | |
6499 | else | |
6500 | notsupp="$notsupp $dir" | |
6501 | fi | |
6502 | fi | |
6503 | fi | |
6504 | done | |
6505 | ||
55ffb5ed NN |
6506 | # Quietly strip out all directories which aren't configurable in this tree. |
6507 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6508 | # is now the case. | |
23f6b2f9 PB |
6509 | build_configdirs_all="$build_configdirs" |
6510 | build_configdirs= | |
6511 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6512 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6513 | if test -f ${srcdir}/$j/configure ; then |
6514 | build_configdirs="${build_configdirs} $i" | |
6515 | fi | |
6516 | done | |
6517 | ||
55ffb5ed NN |
6518 | configdirs_all="$configdirs" |
6519 | configdirs= | |
6520 | for i in ${configdirs_all} ; do | |
6521 | if test -f ${srcdir}/$i/configure ; then | |
6522 | configdirs="${configdirs} $i" | |
6523 | fi | |
6524 | done | |
23f6b2f9 | 6525 | |
55ffb5ed NN |
6526 | target_configdirs_all="$target_configdirs" |
6527 | target_configdirs= | |
6528 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6529 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6530 | if test -f ${srcdir}/$j/configure ; then |
6531 | target_configdirs="${target_configdirs} $i" | |
6532 | fi | |
6533 | done | |
6534 | ||
45b3824d TS |
6535 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6536 | # so we have to add it after the preceding checks. | |
6537 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6538 | then | |
6539 | case " $configdirs " in | |
6540 | *" libiberty "*) | |
6541 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6542 | configdirs="$configdirs libiberty-linker-plugin" | |
6543 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6544 | --with-libiberty=../libiberty-linker-plugin";; | |
6545 | *) | |
6546 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6547 | esac | |
6548 | fi | |
6549 | ||
fca38047 TS |
6550 | # Sometimes we have special requirements for the host libiberty. |
6551 | extra_host_libiberty_configure_flags= | |
1c01ebf6 | 6552 | extra_host_zlib_configure_flags= |
fca38047 TS |
6553 | case " $configdirs " in |
6554 | *" lto-plugin "* | *" libcc1 "*) | |
6555 | # When these are to be built as shared libraries, the same applies to | |
6556 | # libiberty. | |
6557 | extra_host_libiberty_configure_flags=--enable-shared | |
6558 | ;; | |
1c01ebf6 L |
6559 | *" bfd "*) |
6560 | # When bfd is to be built as a shared library, the same applies to | |
6561 | # zlib. | |
6562 | if test "$enable_shared" = "yes"; then | |
6563 | extra_host_zlib_configure_flags=--enable-host-shared | |
6564 | fi | |
6565 | ;; | |
fca38047 TS |
6566 | esac |
6567 | ||
6568 | ||
1c01ebf6 | 6569 | |
55ffb5ed NN |
6570 | # Produce a warning message for the subdirs we can't configure. |
6571 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6572 | # FSF releases, it's important to let people know when their machine isn't | |
6573 | # supported by the one or two programs in a package. | |
6574 | ||
6575 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6576 | # If $appdirs is non-empty, at least one of those directories must still | |
6577 | # be configured, or we error out. (E.g., if the gas release supports a | |
6578 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6579 | # pretend that all is well.) | |
6580 | if test -n "$appdirs" ; then | |
6581 | for dir in $appdirs ; do | |
6582 | if test -r $dir/Makefile.in ; then | |
6583 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6584 | appdirs="" | |
6585 | break | |
6586 | fi | |
23f6b2f9 | 6587 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6588 | appdirs="" |
6589 | break | |
6590 | fi | |
6591 | fi | |
6592 | done | |
6593 | if test -n "$appdirs" ; then | |
6594 | echo "*** This configuration is not supported by this package." 1>&2 | |
6595 | exit 1 | |
6596 | fi | |
6597 | fi | |
6598 | # Okay, some application will build, or we don't care to check. Still | |
6599 | # notify of subdirs not getting built. | |
6600 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6601 | echo " ${notsupp}" 1>&2 | |
6602 | echo " (Any other directories should still work fine.)" 1>&2 | |
6603 | fi | |
6604 | ||
6605 | case "$host" in | |
6606 | *msdosdjgpp*) | |
6607 | enable_gdbtk=no ;; | |
6608 | esac | |
6609 | ||
c3a86da9 DJ |
6610 | # To find our prefix, in gcc_cv_tool_prefix. |
6611 | ||
6612 | # The user is always right. | |
6613 | if test "${PATH_SEPARATOR+set}" != set; then | |
6614 | echo "#! /bin/sh" >conf$$.sh | |
6615 | echo "exit 0" >>conf$$.sh | |
6616 | chmod +x conf$$.sh | |
6617 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6618 | PATH_SEPARATOR=';' | |
6619 | else | |
6620 | PATH_SEPARATOR=: | |
6621 | fi | |
6622 | rm -f conf$$.sh | |
6623 | fi | |
6624 | ||
6625 | ||
3c36aa6b JJ |
6626 | get_gcc_base_ver="cat" |
6627 | ||
6628 | # Check whether --with-gcc-major-version-only was given. | |
6629 | if test "${with_gcc_major_version_only+set}" = set; then : | |
6630 | withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then | |
6631 | get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'" | |
6632 | fi | |
6633 | ||
6634 | fi | |
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | ||
c3a86da9 DJ |
6640 | |
6641 | if test "x$exec_prefix" = xNONE; then | |
6642 | if test "x$prefix" = xNONE; then | |
6643 | gcc_cv_tool_prefix=$ac_default_prefix | |
6644 | else | |
6645 | gcc_cv_tool_prefix=$prefix | |
6646 | fi | |
6647 | else | |
6648 | gcc_cv_tool_prefix=$exec_prefix | |
6649 | fi | |
6650 | ||
6651 | # If there is no compiler in the tree, use the PATH only. In any | |
6652 | # case, if there is no compiler in the tree nobody should use | |
6653 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6654 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
3c36aa6b JJ |
6655 | if test x$with_gcc_major_version_only = xyes ; then |
6656 | gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER` | |
6657 | else | |
6658 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6659 | fi | |
c3a86da9 DJ |
6660 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" |
6661 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6662 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6663 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6664 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6665 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6666 | else | |
6667 | gcc_cv_tool_dirs= | |
6668 | fi | |
6669 | ||
6670 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6671 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6672 | fi | |
6673 | ||
6674 | ||
6675 | ||
55ffb5ed NN |
6676 | copy_dirs= |
6677 | ||
1c710c3c | 6678 | |
5213506e RW |
6679 | # Check whether --with-build-sysroot was given. |
6680 | if test "${with_build_sysroot+set}" = set; then : | |
6681 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6682 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6683 | fi | |
6684 | else | |
6685 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6686 | fi |
526635cb MM |
6687 | |
6688 | ||
c8aea42c | 6689 | |
5213506e RW |
6690 | |
6691 | # Check whether --with-debug-prefix-map was given. | |
6692 | if test "${with_debug_prefix_map+set}" = set; then : | |
6693 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6694 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6695 | for debug_map in $withval; do | |
6696 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6697 | done | |
6698 | fi | |
6699 | else | |
6700 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6701 | fi |
6702 | ||
c8aea42c PB |
6703 | |
6704 | ||
1c8bd6a3 PB |
6705 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6706 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6707 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6708 | # We want to ensure that TARGET libraries (which we know are built with | |
6709 | # gcc) are built with "-O2 -g", so include those options when setting | |
6710 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6711 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6712 | if test "x${is_cross_compiler}" = xyes; then |
6713 | CFLAGS_FOR_TARGET="-g -O2" | |
6714 | else | |
6715 | CFLAGS_FOR_TARGET=$CFLAGS | |
6716 | case " $CFLAGS " in | |
6717 | *" -O2 "*) ;; | |
6718 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6719 | esac | |
6720 | case " $CFLAGS " in | |
6721 | *" -g "* | *" -g3 "*) ;; | |
6722 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6723 | esac | |
6724 | fi | |
1c8bd6a3 PB |
6725 | fi |
6726 | ||
6727 | ||
6728 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
fc30054e AH |
6729 | if test "x${is_cross_compiler}" = xyes; then |
6730 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6731 | else | |
6732 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6733 | case " $CXXFLAGS " in | |
6734 | *" -O2 "*) ;; | |
6735 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6736 | esac | |
6737 | case " $CXXFLAGS " in | |
6738 | *" -g "* | *" -g3 "*) ;; | |
6739 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6740 | esac | |
6741 | fi | |
1c8bd6a3 PB |
6742 | fi |
6743 | ||
6744 | ||
6f57bdf6 DK |
6745 | |
6746 | ||
55ffb5ed NN |
6747 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6748 | # the named directory are copied to $(tooldir)/sys-include. | |
6749 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6750 | if test x${is_cross_compiler} = xno ; then | |
6751 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6752 | exit 1 | |
6753 | fi | |
6754 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6755 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6756 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6757 | fi |
6758 | fi | |
6759 | ||
6760 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6761 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6762 | # are permitted. | |
6763 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6764 | if test x${is_cross_compiler} = xno ; then | |
6765 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6766 | exit 1 | |
6767 | fi | |
6768 | if test x"${with_libs}" != xyes ; then | |
6769 | # Copy the libraries in reverse order, so that files in the first named | |
6770 | # library override files in subsequent libraries. | |
c3a86da9 | 6771 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6772 | for l in ${with_libs}; do |
1c710c3c | 6773 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6774 | done |
6775 | fi | |
6776 | fi | |
6777 | ||
d7f09764 | 6778 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6779 | # |
6780 | # This is done by determining whether or not the appropriate directory | |
6781 | # is available, and by checking whether or not specific configurations | |
6782 | # have requested that this magic not happen. | |
1c710c3c DJ |
6783 | # |
6784 | # The command line options always override the explicit settings in | |
6b1786aa | 6785 | # configure.ac, and the settings in configure.ac override this magic. |
e8b05380 | 6786 | # |
1c710c3c | 6787 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6788 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6789 | # --without-gnu-ld options for the configure script. Similarly, if |
6790 | # the default is to use the included zlib and you don't want to do that, | |
6791 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6792 | |
6793 | if test x${use_gnu_as} = x && | |
6794 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6795 | with_gnu_as=yes | |
6796 | extra_host_args="$extra_host_args --with-gnu-as" | |
6797 | fi | |
6798 | ||
6799 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6800 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6801 | with_gnu_ld=yes |
6802 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6803 | fi | |
6804 | ||
d7f09764 DN |
6805 | if test x${use_included_zlib} = x && |
6806 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6807 | : | |
6808 | else | |
6809 | with_system_zlib=yes | |
6810 | extra_host_args="$extra_host_args --with-system-zlib" | |
6811 | fi | |
6812 | ||
e8b05380 PB |
6813 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6814 | # can detect this case. | |
6815 | ||
6816 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6817 | with_newlib=yes | |
6818 | extra_host_args="$extra_host_args --with-newlib" | |
6819 | fi | |
6820 | ||
55ffb5ed NN |
6821 | # Handle ${copy_dirs} |
6822 | set fnord ${copy_dirs} | |
6823 | shift | |
6824 | while test $# != 0 ; do | |
6825 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6826 | : | |
6827 | else | |
6828 | echo Copying $1 to $2 | |
6829 | ||
6830 | # Use the install script to create the directory and all required | |
6831 | # parent directories. | |
6832 | if test -d $2 ; then | |
6833 | : | |
6834 | else | |
6835 | echo >config.temp | |
6836 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6837 | fi | |
6838 | ||
6839 | # Copy the directory, assuming we have tar. | |
6840 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6841 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6842 | ||
6843 | # It is the responsibility of the user to correctly adjust all | |
6844 | # symlinks. If somebody can figure out how to handle them correctly | |
6845 | # here, feel free to add the code. | |
6846 | ||
6847 | echo $1 > $2/COPIED | |
6848 | fi | |
6849 | shift; shift | |
6850 | done | |
6851 | ||
e8b05380 PB |
6852 | # Determine a target-dependent exec_prefix that the installed |
6853 | # gcc will search in. Keep this list sorted by triplet, with | |
6854 | # the *-*-osname triplets last. | |
6855 | md_exec_prefix= | |
6856 | case "${target}" in | |
30b74385 | 6857 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6858 | md_exec_prefix=/dev/env/DJDIR/bin |
6859 | ;; | |
e8b05380 | 6860 | *-*-hpux* | \ |
e8b05380 | 6861 | *-*-nto-qnx* | \ |
6de66370 | 6862 | *-*-solaris2*) |
e8b05380 PB |
6863 | md_exec_prefix=/usr/ccs/bin |
6864 | ;; | |
6865 | esac | |
6866 | ||
671aa708 NN |
6867 | extra_arflags_for_target= |
6868 | extra_nmflags_for_target= | |
6869 | extra_ranlibflags_for_target= | |
6870 | target_makefile_frag=/dev/null | |
6871 | case "${target}" in | |
58e24147 AM |
6872 | spu-*-*) |
6873 | target_makefile_frag="config/mt-spu" | |
6874 | ;; | |
d896cc4d | 6875 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
4bf6c438 RS |
6876 | target_makefile_frag="config/mt-sde" |
6877 | ;; | |
1ec3b87b RS |
6878 | mipsisa*-*-elfoabi*) |
6879 | target_makefile_frag="config/mt-mips-elfoabi" | |
6880 | ;; | |
08d0963a RS |
6881 | mips*-*-*linux* | mips*-*-gnu*) |
6882 | target_makefile_frag="config/mt-mips-gnu" | |
6883 | ;; | |
707f1839 SL |
6884 | nios2-*-elf*) |
6885 | target_makefile_frag="config/mt-nios2-elf" | |
6886 | ;; | |
416ac4d4 | 6887 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6888 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6889 | ;; |
6890 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6891 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6892 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6893 | # harmless if we're using GNU nm or ar. | |
6894 | extra_arflags_for_target=" -X32_64" | |
6895 | extra_nmflags_for_target=" -B -X32_64" | |
6896 | ;; | |
671aa708 NN |
6897 | esac |
6898 | ||
6899 | alphaieee_frag=/dev/null | |
6900 | case $target in | |
6901 | alpha*-*-*) | |
6902 | # This just makes sure to use the -mieee option to build target libs. | |
6903 | # This should probably be set individually by each library. | |
6904 | alphaieee_frag="config/mt-alphaieee" | |
6905 | ;; | |
6906 | esac | |
6907 | ||
6908 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6909 | # the target libraries, similarly if it is not specified, use -Os | |
6910 | # on selected platforms. | |
6911 | ospace_frag=/dev/null | |
6912 | case "${enable_target_optspace}:${target}" in | |
6913 | yes:*) | |
6914 | ospace_frag="config/mt-ospace" | |
6915 | ;; | |
6916 | :d30v-*) | |
6917 | ospace_frag="config/mt-d30v" | |
6918 | ;; | |
d9063947 | 6919 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
671aa708 NN |
6920 | ospace_frag="config/mt-ospace" |
6921 | ;; | |
6922 | no:* | :*) | |
6923 | ;; | |
6924 | *) | |
6925 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6926 | ;; | |
6927 | esac | |
6928 | ||
671aa708 NN |
6929 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6930 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6931 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6932 | build_tooldir=${tooldir} |
6933 | ||
671aa708 NN |
6934 | # Create a .gdbinit file which runs the one in srcdir |
6935 | # and tells GDB to look there for source files. | |
6936 | ||
6937 | if test -r ${srcdir}/.gdbinit ; then | |
6938 | case ${srcdir} in | |
6939 | .) ;; | |
6940 | *) cat > ./.gdbinit <<EOF | |
6941 | # ${NO_EDIT} | |
6942 | dir ${srcdir} | |
6943 | dir . | |
6944 | source ${srcdir}/.gdbinit | |
6945 | EOF | |
6946 | ;; | |
6947 | esac | |
6948 | fi | |
6949 | ||
671aa708 NN |
6950 | # Make sure that the compiler is able to generate an executable. If it |
6951 | # can't, we are probably in trouble. We don't care whether we can run the | |
6952 | # executable--we might be using a cross compiler--we only care whether it | |
6953 | # can be created. At this point the main configure script has set CC. | |
6954 | we_are_ok=no | |
6955 | echo "int main () { return 0; }" > conftest.c | |
6956 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6957 | if test $? = 0 ; then | |
6958 | if test -s conftest || test -s conftest.exe ; then | |
6959 | we_are_ok=yes | |
6960 | fi | |
1c710c3c | 6961 | fi |
671aa708 NN |
6962 | case $we_are_ok in |
6963 | no) | |
6964 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6965 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6966 | rm -f conftest* | |
6967 | exit 1 | |
6968 | ;; | |
6969 | esac | |
6970 | rm -f conftest* | |
6971 | ||
d89f0ad6 | 6972 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
6973 | case "${host}" in |
6974 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 6975 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 6976 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
6977 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6978 | esac | |
6979 | ||
d89f0ad6 AL |
6980 | # On systems where the dynamic library environment variable is PATH, |
6981 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6982 | # built executables to PATH. | |
6983 | if test "$RPATH_ENVVAR" = PATH; then | |
6984 | GCC_SHLIB_SUBDIR=/shlib | |
6985 | else | |
6986 | GCC_SHLIB_SUBDIR= | |
6987 | fi | |
6988 | ||
beeda1d9 JJ |
6989 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
6990 | case $enable_bootstrap in | |
6991 | yes) | |
6992 | bootstrap_suffix=bootstrap | |
6993 | BUILD_CONFIG=bootstrap-debug | |
6994 | ;; | |
6995 | no) | |
6996 | bootstrap_suffix=no-bootstrap | |
6997 | BUILD_CONFIG= | |
6998 | ;; | |
6999 | esac | |
7000 | ||
7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7002 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7003 | ||
7004 | ||
7005 | # Check whether --with-build-config was given. | |
7006 | if test "${with_build_config+set}" = set; then : | |
7007 | withval=$with_build_config; case $with_build_config in | |
7008 | yes) with_build_config= ;; | |
7009 | no) with_build_config= BUILD_CONFIG= ;; | |
7010 | esac | |
7011 | fi | |
7012 | ||
7013 | ||
7014 | if test "x${with_build_config}" != x; then | |
7015 | BUILD_CONFIG=$with_build_config | |
7016 | else | |
7017 | case $BUILD_CONFIG in | |
7018 | bootstrap-debug) | |
7019 | if echo "int f (void) { return 0; }" > conftest.c && | |
7020 | ${CC} -c conftest.c && | |
7021 | mv conftest.o conftest.o.g0 && | |
7022 | ${CC} -c -g conftest.c && | |
7023 | mv conftest.o conftest.o.g && | |
7024 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7025 | : | |
7026 | else | |
7027 | BUILD_CONFIG= | |
7028 | fi | |
7029 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7030 | ;; | |
7031 | esac | |
7032 | fi | |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7034 | $as_echo "$BUILD_CONFIG" >&6; } | |
7035 | ||
7036 | ||
7037 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7039 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7040 | # Check whether --enable-vtable-verify was given. | |
7041 | if test "${enable_vtable_verify+set}" = set; then : | |
7042 | enableval=$enable_vtable_verify; case "$enableval" in | |
7043 | yes) enable_vtable_verify=yes ;; | |
7044 | no) enable_vtable_verify=no ;; | |
7045 | *) enable_vtable_verify=no;; | |
7046 | esac | |
7047 | else | |
7048 | enable_vtable_verify=no | |
7049 | fi | |
7050 | ||
7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7052 | $as_echo "$enable_vtable_verify" >&6; } | |
7053 | ||
671aa708 NN |
7054 | # Record target_configdirs and the configure arguments for target and |
7055 | # build configuration in Makefile. | |
7056 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 7057 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
9e1c8fc1 | 7058 | bootstrap_fixincludes=no |
671aa708 | 7059 | |
ad1e5170 JR |
7060 | # If we are building libgomp, bootstrap it. |
7061 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7062 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7063 | fi | |
7064 | ||
beeda1d9 JJ |
7065 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7066 | # or bootstrap-ubsan, bootstrap it. | |
7067 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7068 | case "$BUILD_CONFIG" in | |
7069 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7070 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
9e1c8fc1 | 7071 | bootstrap_fixincludes=yes |
beeda1d9 JJ |
7072 | ;; |
7073 | esac | |
ac8701fe L |
7074 | fi |
7075 | ||
beeda1d9 JJ |
7076 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7077 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7078 | test "$enable_vtable_verify" != no; then | |
2077db1b CT |
7079 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7080 | fi | |
7081 | ||
c21fdaa1 JJ |
7082 | # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx, |
7083 | # bootstrap it. | |
5373cd33 | 7084 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then |
c21fdaa1 JJ |
7085 | case "$BUILD_CONFIG" in |
7086 | *bootstrap-mpx* ) | |
7087 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7088 | ;; | |
7089 | esac | |
5373cd33 IE |
7090 | fi |
7091 | ||
671aa708 NN |
7092 | # Determine whether gdb needs tk/tcl or not. |
7093 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7094 | # and in that case we want gdb to be built without tk. Ugh! | |
7095 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7096 | # so we should be able to put the 'maybe's in unconditionally and | |
7097 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7098 | # 100% sure that that's safe though. | |
e914a571 | 7099 | |
b4f96efe | 7100 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
7101 | case "$enable_gdbtk" in |
7102 | no) | |
7103 | GDB_TK="" ;; | |
e914a571 AC |
7104 | yes) |
7105 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 7106 | *) |
e914a571 AC |
7107 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7108 | # distro. Eventually someone will fix this and move Insight, nee | |
7109 | # gdbtk to a separate directory. | |
7110 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7111 | GDB_TK="${gdb_tk}" | |
7112 | else | |
7113 | GDB_TK="" | |
7114 | fi | |
7115 | ;; | |
671aa708 | 7116 | esac |
ef9db8d5 DJ |
7117 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7118 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 7119 | |
60975492 | 7120 | # Strip out unwanted targets. |
8b87bb96 NN |
7121 | |
7122 | # While at that, we remove Makefiles if we were started for recursive | |
7123 | # configuration, so that the top-level Makefile reconfigures them, | |
7124 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 7125 | |
3e54529c RW |
7126 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7127 | # but now we're fixing up the Makefile ourselves with the additional | |
7128 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7129 | # extrasub-{build,host,target} not because there is any reason to split | |
7130 | # the substitutions up that way, but only to remain below the limit of | |
7131 | # 99 commands in a script, for HP-UX sed. | |
7132 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 7133 | |
79cd2b23 RW |
7134 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7135 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7136 | yes:yes:*\ gold\ *:*) | |
7137 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7138 | ;; | |
7139 | esac | |
7140 | ||
3e54529c | 7141 | extrasub_build= |
23f6b2f9 | 7142 | for module in ${build_configdirs} ; do |
5607edfd PB |
7143 | if test -z "${no_recursion}" \ |
7144 | && test -f ${build_subdir}/${module}/Makefile; then | |
7145 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7146 | rm -f ${build_subdir}/${module}/Makefile | |
7147 | fi | |
3e54529c | 7148 | extrasub_build="$extrasub_build |
5607edfd PB |
7149 | /^@if build-$module\$/d |
7150 | /^@endif build-$module\$/d | |
7151 | /^@if build-$module-$bootstrap_suffix\$/d | |
7152 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7153 | done | |
3e54529c | 7154 | extrasub_host= |
5607edfd | 7155 | for module in ${configdirs} ; do |
a6fbc1e2 | 7156 | if test -z "${no_recursion}"; then |
f063a9ed | 7157 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7158 | if test -f ${file}; then |
7159 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7160 | rm -f ${file} | |
7161 | fi | |
7162 | done | |
5607edfd | 7163 | fi |
9e1c8fc1 JJ |
7164 | case ${module},${bootstrap_fixincludes} in |
7165 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7166 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7167 | esac | |
3e54529c | 7168 | extrasub_host="$extrasub_host |
5607edfd PB |
7169 | /^@if $module\$/d |
7170 | /^@endif $module\$/d | |
9e1c8fc1 JJ |
7171 | /^@if $module-$host_bootstrap_suffix\$/d |
7172 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
5607edfd | 7173 | done |
3e54529c | 7174 | extrasub_target= |
5607edfd PB |
7175 | for module in ${target_configdirs} ; do |
7176 | if test -z "${no_recursion}" \ | |
7177 | && test -f ${target_subdir}/${module}/Makefile; then | |
7178 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7179 | rm -f ${target_subdir}/${module}/Makefile | |
7180 | fi | |
00020c16 ILT |
7181 | |
7182 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7183 | case $bootstrap_target_libs in | |
7184 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7185 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7186 | esac | |
7187 | ||
3e54529c | 7188 | extrasub_target="$extrasub_target |
5607edfd PB |
7189 | /^@if target-$module\$/d |
7190 | /^@endif target-$module\$/d | |
00020c16 ILT |
7191 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7192 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7193 | done |
7194 | ||
3e54529c RW |
7195 | # Do the final fixup along with target modules. |
7196 | extrasub_target="$extrasub_target | |
60975492 | 7197 | /^@if /,/^@endif /d" |
671aa708 NN |
7198 | |
7199 | # Create the serialization dependencies. This uses a temporary file. | |
7200 | ||
5213506e RW |
7201 | # Check whether --enable-serial-configure was given. |
7202 | if test "${enable_serial_configure+set}" = set; then : | |
7203 | enableval=$enable_serial_configure; | |
7204 | fi | |
ade82b16 AO |
7205 | |
7206 | ||
bf1d3e81 NN |
7207 | case ${enable_serial_configure} in |
7208 | yes) | |
7209 | enable_serial_build_configure=yes | |
7210 | enable_serial_host_configure=yes | |
7211 | enable_serial_target_configure=yes | |
7212 | ;; | |
7213 | esac | |
7214 | ||
671aa708 NN |
7215 | # These force 'configure's to be done one at a time, to avoid problems |
7216 | # with contention over a shared config.cache. | |
7217 | rm -f serdep.tmp | |
ade82b16 | 7218 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7219 | olditem= |
bf1d3e81 | 7220 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7221 | for item in ${build_configdirs} ; do |
7222 | case ${olditem} in | |
7223 | "") ;; | |
ade82b16 | 7224 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7225 | esac |
7226 | olditem=${item} | |
7227 | done | |
7228 | olditem= | |
bf1d3e81 | 7229 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7230 | for item in ${configdirs} ; do |
7231 | case ${olditem} in | |
7232 | "") ;; | |
ade82b16 | 7233 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7234 | esac |
7235 | olditem=${item} | |
7236 | done | |
7237 | olditem= | |
bf1d3e81 | 7238 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7239 | for item in ${target_configdirs} ; do |
7240 | case ${olditem} in | |
7241 | "") ;; | |
ade82b16 | 7242 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7243 | esac |
7244 | olditem=${item} | |
7245 | done | |
7246 | serialization_dependencies=serdep.tmp | |
7247 | ||
7248 | ||
ade82b16 | 7249 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7250 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7251 | # might not want to pass down to subconfigures. The exception being |
7252 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7253 | # files altogether, and which should be passed on to subconfigures. | |
7254 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7255 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7256 | baseargs= |
29a63921 | 7257 | tbaseargs= |
1c710c3c DJ |
7258 | keep_next=no |
7259 | skip_next=no | |
7260 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7261 | for ac_arg |
7262 | do | |
1c710c3c DJ |
7263 | if test X"$skip_next" = X"yes"; then |
7264 | skip_next=no | |
7265 | continue | |
7266 | fi | |
7267 | if test X"$keep_next" = X"yes"; then | |
7268 | case $ac_arg in | |
7269 | *\'*) | |
7270 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7271 | esac | |
7272 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7273 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7274 | keep_next=no |
7275 | continue | |
7276 | fi | |
7277 | ||
7278 | # Handle separated arguments. Based on the logic generated by | |
7279 | # autoconf 2.59. | |
7280 | case $ac_arg in | |
7281 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7282 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7283 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7284 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7285 | separate_arg=no | |
7286 | ;; | |
7287 | -*) | |
7288 | separate_arg=yes | |
7289 | ;; | |
7290 | *) | |
7291 | separate_arg=no | |
7292 | ;; | |
7293 | esac | |
7294 | ||
29a63921 AO |
7295 | skip_targ=no |
7296 | case $ac_arg in | |
7297 | ||
7298 | --with-* | --without-*) | |
7299 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7300 | ||
7301 | case $libopt in | |
7302 | *[-_]include) | |
7303 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7304 | ;; | |
7305 | *[-_]lib) | |
7306 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7307 | ;; | |
7308 | *) | |
7309 | lib=$libopt | |
7310 | ;; | |
7311 | esac | |
7312 | ||
7313 | ||
7314 | case $lib in | |
4a9bb2aa | 7315 | mpc | mpfr | gmp | isl) |
29a63921 AO |
7316 | # If we're processing --with-$lib, --with-$lib-include or |
7317 | # --with-$lib-lib, for one of the libs above, and target is | |
7318 | # different from host, don't pass the current argument to any | |
7319 | # target library's configure. | |
7320 | if test x$is_cross_compiler = xyes; then | |
7321 | skip_targ=yes | |
7322 | fi | |
7323 | ;; | |
7324 | esac | |
7325 | ;; | |
7326 | esac | |
7327 | ||
1c710c3c | 7328 | case "$ac_arg" in |
f1a036e4 NC |
7329 | --cache-file=/dev/null | \ |
7330 | -cache-file=/dev/null ) | |
7331 | # Handled here to avoid the test to skip args below. | |
7332 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7333 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7334 | # Assert: $separate_arg should always be no. |
7335 | keep_next=$separate_arg | |
7336 | ;; | |
1c710c3c DJ |
7337 | --no*) |
7338 | continue | |
7339 | ;; | |
7340 | --c* | \ | |
7341 | --sr* | \ | |
7342 | --ho* | \ | |
7343 | --bu* | \ | |
7344 | --t* | \ | |
7345 | --program-* | \ | |
7346 | -cache_file* | \ | |
7347 | -srcdir* | \ | |
7348 | -host* | \ | |
7349 | -build* | \ | |
7350 | -target* | \ | |
7351 | -program-prefix* | \ | |
7352 | -program-suffix* | \ | |
7353 | -program-transform-name* ) | |
7354 | skip_next=$separate_arg | |
7355 | continue | |
7356 | ;; | |
7357 | -*) | |
7358 | # An option. Add it. | |
7359 | case $ac_arg in | |
7360 | *\'*) | |
7361 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7362 | esac | |
7363 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7364 | if test X"$skip_targ" = Xno; then |
7365 | tbaseargs="$tbaseargs '$ac_arg'" | |
7366 | fi | |
1c710c3c DJ |
7367 | keep_next=$separate_arg |
7368 | ;; | |
7369 | *) | |
7370 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7371 | # pass it down; let the Makefile handle this. | |
7372 | continue | |
7373 | ;; | |
7374 | esac | |
7375 | done | |
7376 | # Remove the initial space we just introduced and, as these will be | |
7377 | # expanded by make, quote '$'. | |
7378 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7379 | |
43bb47c2 DJ |
7380 | # Add in --program-transform-name, after --program-prefix and |
7381 | # --program-suffix have been applied to it. Autoconf has already | |
7382 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7383 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7384 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7385 | # Also, because we want to override the logic in subdir configure scripts to |
7386 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7387 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7388 | ${program_transform_name} | |
7389 | EOF_SED | |
7390 | gcc_transform_name=`cat conftestsed.out` | |
7391 | rm -f conftestsed.out | |
7392 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7393 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7394 | if test "$silent" = yes; then |
7395 | baseargs="$baseargs --silent" | |
29a63921 | 7396 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7397 | fi |
0115d4a3 | 7398 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7399 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7400 | |
ffedf511 RW |
7401 | # Record and document user additions to sub configure arguments. |
7402 | ||
7403 | ||
7404 | ||
7405 | ||
671aa708 NN |
7406 | # For the build-side libraries, we just need to pretend we're native, |
7407 | # and not use the same cache file. Multilibs are neither needed nor | |
3d96b0d0 HPN |
7408 | # desired. We can't even use the same cache file for all build-side |
7409 | # libraries, as they're compiled differently; some with C, some with | |
7410 | # C++ or with different feature-enabling options. | |
7411 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
671aa708 NN |
7412 | |
7413 | # For host modules, accept cache file option, or specification as blank. | |
7414 | case "${cache_file}" in | |
7415 | "") # empty | |
7416 | cache_file_option="" ;; | |
7417 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7418 | cache_file_option="--cache-file=${cache_file}" ;; | |
7419 | *) # relative path | |
7420 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7421 | esac | |
7422 | ||
09438bde NN |
7423 | # Host dirs don't like to share a cache file either, horribly enough. |
7424 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7425 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7426 | |
29a63921 | 7427 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7428 | |
7429 | # Passing a --with-cross-host argument lets the target libraries know | |
7430 | # whether they are being built with a cross-compiler or being built | |
7431 | # native. However, it would be better to use other mechanisms to make the | |
7432 | # sorts of decisions they want to make on this basis. Please consider | |
7433 | # this option to be deprecated. FIXME. | |
7434 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7435 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7436 | fi |
7437 | ||
79e0604d FXC |
7438 | # Special user-friendly check for native x86_64-linux build, if |
7439 | # multilib is not explicitly enabled. | |
7440 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7441 | x86_64-*linux*:yes:$build:$build:) | |
e640447c | 7442 | # Make sure we have a development environment that handles 32-bit |
79e0604d FXC |
7443 | dev64=no |
7444 | echo "int main () { return 0; }" > conftest.c | |
7445 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7446 | if test $? = 0 ; then | |
7447 | if test -s conftest || test -s conftest.exe ; then | |
7448 | dev64=yes | |
7449 | fi | |
7450 | fi | |
7451 | rm -f conftest* | |
7452 | if test x${dev64} != xyes ; then | |
e640447c | 7453 | as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
79e0604d FXC |
7454 | fi |
7455 | ;; | |
7456 | esac | |
7457 | ||
dc683a3f RW |
7458 | # Default to --enable-multilib. |
7459 | if test x${enable_multilib} = x ; then | |
671aa708 | 7460 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7461 | fi |
671aa708 NN |
7462 | |
7463 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7464 | # changed from the earlier setting of with_newlib. | |
7465 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7466 | target_configargs="--with-newlib ${target_configargs}" | |
7467 | fi | |
7468 | ||
6b9eb62c NN |
7469 | # Different target subdirs use different values of certain variables |
7470 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7471 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7472 | # it doesn't automatically accept command-line overrides of them. | |
7473 | # This means it's not safe for target subdirs to share a cache file, | |
7474 | # which is disgusting, but there you have it. Hopefully this can be | |
7475 | # fixed in future. It's still worthwhile to use a cache file for each | |
7476 | # directory. I think. | |
7477 | ||
bebcd931 MS |
7478 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7479 | # We need to pass --target, as newer autoconf's requires consistency | |
7480 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7481 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7482 | |
671aa708 NN |
7483 | FLAGS_FOR_TARGET= |
7484 | case " $target_configdirs " in | |
7485 | *" newlib "*) | |
7486 | case " $target_configargs " in | |
7487 | *" --with-newlib "*) | |
7488 | case "$target" in | |
5d571eaa | 7489 | *-cygwin*) |
443e6238 | 7490 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
5d571eaa | 7491 | ;; |
671aa708 NN |
7492 | esac |
7493 | ||
7494 | # If we're not building GCC, don't discard standard headers. | |
7495 | if test -d ${srcdir}/gcc; then | |
7496 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7497 | ||
7498 | if test "${build}" != "${host}"; then | |
7499 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7500 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7501 | # to it. This is right: we don't want to search that directory | |
7502 | # for binaries, but we want the header files in there, so add | |
7503 | # them explicitly. | |
0463992b | 7504 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7505 | |
7506 | # Someone might think of using the pre-installed headers on | |
7507 | # Canadian crosses, in case the installed compiler is not fully | |
7508 | # compatible with the compiler being built. In this case, it | |
7509 | # would be better to flag an error than risking having | |
7510 | # incompatible object files being constructed. We can't | |
7511 | # guarantee that an error will be flagged, but let's hope the | |
7512 | # compiler will do it, when presented with incompatible header | |
7513 | # files. | |
7514 | fi | |
7515 | fi | |
7516 | ||
7517 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7518 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7519 | # Here host == target, so we don't need to build gcc, |
7520 | # so we don't want to discard standard headers. | |
7521 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7522 | ;; | |
7523 | *) | |
7524 | # If we're building newlib, use its generic headers last, but search | |
7525 | # for any libc-related directories first (so make it the last -B | |
7526 | # switch). | |
7527 | 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 |
7528 | |
7529 | # If we're building libgloss, find the startup file, simulator library | |
7530 | # and linker script. | |
7531 | case " $target_configdirs " in | |
7532 | *" libgloss "*) | |
7533 | # Look for startup file, simulator library and maybe linker script. | |
7534 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7535 | # Look for libnosys.a in case the target needs it. | |
7536 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7537 | # Most targets have the linker script in the source directory. | |
7538 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7539 | ;; | |
7540 | esac | |
671aa708 NN |
7541 | ;; |
7542 | esac | |
7543 | ;; | |
7544 | esac | |
7545 | ;; | |
7546 | esac | |
5d571eaa | 7547 | |
b91f0a41 | 7548 | case "$target" in |
5d571eaa OS |
7549 | x86_64-*mingw* | *-w64-mingw*) |
7550 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7551 | # however, use a symlink named 'mingw' in ${prefix} . | |
7552 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7553 | ;; | |
7554 | *-mingw*) | |
7555 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7556 | 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' | |
7557 | ;; | |
b91f0a41 | 7558 | esac |
671aa708 | 7559 | |
6691a79e ME |
7560 | # Allow the user to override the flags for |
7561 | # our build compiler if desired. | |
f019adc1 MF |
7562 | if test x"${build}" = x"${host}" ; then |
7563 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7564 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7565 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7566 | fi | |
6691a79e | 7567 | |
671aa708 NN |
7568 | # On Canadian crosses, we'll be searching the right directories for |
7569 | # the previously-installed cross compiler, so don't bother to add | |
7570 | # flags for directories within the install tree of the compiler | |
7571 | # being built; programs in there won't even run. | |
7572 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7573 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7574 | 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 |
7575 | fi |
7576 | ||
7577 | if test "x${use_gnu_ld}" = x && | |
7578 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7579 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7580 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7581 | fi |
7582 | ||
e88a2c09 DD |
7583 | # Search for other target-specific linker scripts and such. |
7584 | case "${target}" in | |
3e19841a PB |
7585 | mep*) |
7586 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7587 | ;; | |
e88a2c09 DD |
7588 | esac |
7589 | ||
671aa708 | 7590 | # Makefile fragments. |
7b61653a PE |
7591 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7592 | do | |
7593 | eval fragval=\$$frag | |
7594 | if test $fragval != /dev/null; then | |
7595 | eval $frag=${srcdir}/$fragval | |
7596 | fi | |
7597 | done | |
671aa708 NN |
7598 | |
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | # Miscellanea: directories, flags, etc. | |
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
d89f0ad6 | 7611 | |
23f6b2f9 | 7612 | # Build module lists & subconfigure args. |
671aa708 NN |
7613 | |
7614 | ||
7615 | ||
2abefe3d PB |
7616 | # Host module lists & subconfigure args. |
7617 | ||
7618 | ||
7619 | ||
aae29963 | 7620 | |
2abefe3d PB |
7621 | # Target module lists & subconfigure args. |
7622 | ||
7623 | ||
7624 | ||
7625 | # Build tools. | |
7626 | ||
7627 | ||
7628 | ||
0999159b PB |
7629 | |
7630 | ||
7631 | ||
7632 | ||
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
2abefe3d PB |
7642 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7643 | # on the build machine. These are used if the Makefile can't locate these | |
7644 | # programs in objdir. | |
7645 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7646 | ||
7647 | for ac_prog in 'bison -y' byacc yacc | |
7648 | do | |
1c710c3c | 7649 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7650 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7652 | $as_echo_n "checking for $ac_word... " >&6; } | |
7653 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7654 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7655 | else |
7656 | if test -n "$YACC"; then | |
7657 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7658 | else | |
1c710c3c DJ |
7659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7660 | for as_dir in $PATH | |
7661 | do | |
7662 | IFS=$as_save_IFS | |
7663 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7664 | for ac_exec_ext in '' $ac_executable_extensions; do |
7665 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7666 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7667 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7668 | break 2 |
7669 | fi | |
7670 | done | |
5213506e RW |
7671 | done |
7672 | IFS=$as_save_IFS | |
1c710c3c | 7673 | |
2abefe3d PB |
7674 | fi |
7675 | fi | |
1c710c3c | 7676 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7677 | if test -n "$YACC"; then |
5213506e RW |
7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7679 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7680 | else |
5213506e RW |
7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7682 | $as_echo "no" >&6; } | |
2abefe3d PB |
7683 | fi |
7684 | ||
5213506e | 7685 | |
1c710c3c | 7686 | test -n "$YACC" && break |
2abefe3d PB |
7687 | done |
7688 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7689 | ||
7690 | case " $build_configdirs " in | |
7691 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7692 | esac |
7693 | ||
7694 | for ac_prog in bison | |
7695 | do | |
1c710c3c | 7696 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7697 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7699 | $as_echo_n "checking for $ac_word... " >&6; } | |
7700 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7701 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7702 | else |
7703 | if test -n "$BISON"; then | |
7704 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7705 | else | |
1c710c3c DJ |
7706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7707 | for as_dir in $PATH | |
7708 | do | |
7709 | IFS=$as_save_IFS | |
7710 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7711 | for ac_exec_ext in '' $ac_executable_extensions; do |
7712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7713 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7715 | break 2 |
7716 | fi | |
7717 | done | |
5213506e RW |
7718 | done |
7719 | IFS=$as_save_IFS | |
1c710c3c | 7720 | |
2abefe3d PB |
7721 | fi |
7722 | fi | |
1c710c3c | 7723 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7724 | if test -n "$BISON"; then |
5213506e RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7726 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7727 | else |
5213506e RW |
7728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7729 | $as_echo "no" >&6; } | |
2abefe3d PB |
7730 | fi |
7731 | ||
5213506e | 7732 | |
1c710c3c | 7733 | test -n "$BISON" && break |
2abefe3d PB |
7734 | done |
7735 | test -n "$BISON" || BISON="$MISSING bison" | |
7736 | ||
7737 | case " $build_configdirs " in | |
7738 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7739 | esac | |
7740 | ||
7741 | for ac_prog in gm4 gnum4 m4 | |
7742 | do | |
1c710c3c | 7743 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7744 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7746 | $as_echo_n "checking for $ac_word... " >&6; } | |
7747 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7748 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7749 | else |
7750 | if test -n "$M4"; then | |
7751 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7752 | else | |
1c710c3c DJ |
7753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7754 | for as_dir in $PATH | |
7755 | do | |
7756 | IFS=$as_save_IFS | |
7757 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7758 | for ac_exec_ext in '' $ac_executable_extensions; do |
7759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7760 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7762 | break 2 |
7763 | fi | |
7764 | done | |
5213506e RW |
7765 | done |
7766 | IFS=$as_save_IFS | |
1c710c3c | 7767 | |
2abefe3d PB |
7768 | fi |
7769 | fi | |
1c710c3c | 7770 | M4=$ac_cv_prog_M4 |
2abefe3d | 7771 | if test -n "$M4"; then |
5213506e RW |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7773 | $as_echo "$M4" >&6; } | |
2abefe3d | 7774 | else |
5213506e RW |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7776 | $as_echo "no" >&6; } | |
2abefe3d PB |
7777 | fi |
7778 | ||
5213506e | 7779 | |
1c710c3c | 7780 | test -n "$M4" && break |
2abefe3d PB |
7781 | done |
7782 | test -n "$M4" || M4="$MISSING m4" | |
7783 | ||
7784 | case " $build_configdirs " in | |
7785 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7786 | esac | |
7787 | ||
7788 | for ac_prog in flex lex | |
7789 | do | |
1c710c3c | 7790 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7791 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7793 | $as_echo_n "checking for $ac_word... " >&6; } | |
7794 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7795 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7796 | else |
7797 | if test -n "$LEX"; then | |
7798 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7799 | else | |
1c710c3c DJ |
7800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7801 | for as_dir in $PATH | |
7802 | do | |
7803 | IFS=$as_save_IFS | |
7804 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7805 | for ac_exec_ext in '' $ac_executable_extensions; do |
7806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7807 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7809 | break 2 |
7810 | fi | |
7811 | done | |
5213506e RW |
7812 | done |
7813 | IFS=$as_save_IFS | |
1c710c3c | 7814 | |
2abefe3d PB |
7815 | fi |
7816 | fi | |
1c710c3c | 7817 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7818 | if test -n "$LEX"; then |
5213506e RW |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7820 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7821 | else |
5213506e RW |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7823 | $as_echo "no" >&6; } | |
2abefe3d PB |
7824 | fi |
7825 | ||
5213506e | 7826 | |
1c710c3c | 7827 | test -n "$LEX" && break |
2abefe3d PB |
7828 | done |
7829 | test -n "$LEX" || LEX="$MISSING flex" | |
7830 | ||
7831 | case " $build_configdirs " in | |
7832 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7833 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7834 | esac | |
7835 | ||
7836 | for ac_prog in flex | |
7837 | do | |
1c710c3c | 7838 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7839 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7841 | $as_echo_n "checking for $ac_word... " >&6; } | |
7842 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7843 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7844 | else |
7845 | if test -n "$FLEX"; then | |
7846 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7847 | else | |
1c710c3c DJ |
7848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7849 | for as_dir in $PATH | |
7850 | do | |
7851 | IFS=$as_save_IFS | |
7852 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7853 | for ac_exec_ext in '' $ac_executable_extensions; do |
7854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7855 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7857 | break 2 |
7858 | fi | |
7859 | done | |
5213506e RW |
7860 | done |
7861 | IFS=$as_save_IFS | |
1c710c3c | 7862 | |
2abefe3d PB |
7863 | fi |
7864 | fi | |
1c710c3c | 7865 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7866 | if test -n "$FLEX"; then |
5213506e RW |
7867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7868 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7869 | else |
5213506e RW |
7870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7871 | $as_echo "no" >&6; } | |
2abefe3d PB |
7872 | fi |
7873 | ||
5213506e | 7874 | |
1c710c3c | 7875 | test -n "$FLEX" && break |
2abefe3d PB |
7876 | done |
7877 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7878 | ||
7879 | case " $build_configdirs " in | |
7880 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7881 | esac | |
7882 | ||
7883 | for ac_prog in makeinfo | |
7884 | do | |
1c710c3c | 7885 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7886 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7888 | $as_echo_n "checking for $ac_word... " >&6; } | |
7889 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7890 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7891 | else |
7892 | if test -n "$MAKEINFO"; then | |
7893 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7894 | else | |
1c710c3c DJ |
7895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7896 | for as_dir in $PATH | |
7897 | do | |
7898 | IFS=$as_save_IFS | |
7899 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7900 | for ac_exec_ext in '' $ac_executable_extensions; do |
7901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7902 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7904 | break 2 |
7905 | fi | |
7906 | done | |
5213506e RW |
7907 | done |
7908 | IFS=$as_save_IFS | |
1c710c3c | 7909 | |
2abefe3d PB |
7910 | fi |
7911 | fi | |
1c710c3c | 7912 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7913 | if test -n "$MAKEINFO"; then |
5213506e RW |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7915 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7916 | else |
5213506e RW |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7918 | $as_echo "no" >&6; } | |
2abefe3d PB |
7919 | fi |
7920 | ||
5213506e | 7921 | |
1c710c3c | 7922 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7923 | done |
7924 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7925 | ||
7926 | case " $build_configdirs " in | |
7927 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7928 | *) | |
7929 | ||
d18ff35a | 7930 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7931 | # higher, else we use the "missing" dummy. |
7932 | if ${MAKEINFO} --version \ | |
d18ff35a | 7933 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7934 | : |
7935 | else | |
7936 | MAKEINFO="$MISSING makeinfo" | |
7937 | fi | |
7938 | ;; | |
7939 | ||
7940 | esac | |
671aa708 | 7941 | |
2abefe3d | 7942 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 7943 | |
2abefe3d PB |
7944 | for ac_prog in expect |
7945 | do | |
1c710c3c | 7946 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7947 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7949 | $as_echo_n "checking for $ac_word... " >&6; } | |
7950 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7951 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7952 | else |
7953 | if test -n "$EXPECT"; then | |
7954 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7955 | else | |
1c710c3c DJ |
7956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7957 | for as_dir in $PATH | |
7958 | do | |
7959 | IFS=$as_save_IFS | |
7960 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7961 | for ac_exec_ext in '' $ac_executable_extensions; do |
7962 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7963 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 7964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7965 | break 2 |
7966 | fi | |
7967 | done | |
5213506e RW |
7968 | done |
7969 | IFS=$as_save_IFS | |
1c710c3c | 7970 | |
2abefe3d PB |
7971 | fi |
7972 | fi | |
1c710c3c | 7973 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 7974 | if test -n "$EXPECT"; then |
5213506e RW |
7975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7976 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 7977 | else |
5213506e RW |
7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7979 | $as_echo "no" >&6; } | |
2abefe3d | 7980 | fi |
671aa708 | 7981 | |
5213506e | 7982 | |
1c710c3c | 7983 | test -n "$EXPECT" && break |
2abefe3d PB |
7984 | done |
7985 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 7986 | |
2abefe3d PB |
7987 | case " $configdirs " in |
7988 | *" expect "*) | |
7989 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7990 | ;; | |
7991 | esac | |
671aa708 | 7992 | |
2abefe3d PB |
7993 | for ac_prog in runtest |
7994 | do | |
1c710c3c | 7995 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7996 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7998 | $as_echo_n "checking for $ac_word... " >&6; } | |
7999 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8000 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8001 | else |
8002 | if test -n "$RUNTEST"; then | |
8003 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 8004 | else |
1c710c3c DJ |
8005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8006 | for as_dir in $PATH | |
8007 | do | |
8008 | IFS=$as_save_IFS | |
8009 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8010 | for ac_exec_ext in '' $ac_executable_extensions; do |
8011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8012 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 8013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8014 | break 2 |
8015 | fi | |
8016 | done | |
5213506e RW |
8017 | done |
8018 | IFS=$as_save_IFS | |
1c710c3c | 8019 | |
2abefe3d PB |
8020 | fi |
8021 | fi | |
1c710c3c | 8022 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 8023 | if test -n "$RUNTEST"; then |
5213506e RW |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8025 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 8026 | else |
5213506e RW |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8028 | $as_echo "no" >&6; } | |
2abefe3d | 8029 | fi |
671aa708 | 8030 | |
5213506e | 8031 | |
1c710c3c | 8032 | test -n "$RUNTEST" && break |
2abefe3d PB |
8033 | done |
8034 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 8035 | |
2abefe3d PB |
8036 | case " $configdirs " in |
8037 | *" dejagnu "*) | |
c394e891 | 8038 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
8039 | ;; |
8040 | esac | |
671aa708 NN |
8041 | |
8042 | ||
671aa708 | 8043 | # Host tools. |
ca9f4b81 AO |
8044 | ncn_tool_prefix= |
8045 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8046 | ncn_target_tool_prefix= | |
8047 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8048 | ||
278a7a38 AO |
8049 | |
8050 | ||
8051 | if test -n "$AR"; then | |
8052 | ac_cv_prog_AR=$AR | |
8053 | elif test -n "$ac_cv_prog_AR"; then | |
8054 | AR=$ac_cv_prog_AR | |
8055 | fi | |
8056 | ||
8057 | if test -n "$ac_cv_prog_AR"; then | |
8058 | for ncn_progname in ar; do | |
8059 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8060 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8062 | $as_echo_n "checking for $ac_word... " >&6; } | |
8063 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8064 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8065 | else |
8066 | if test -n "$AR"; then | |
8067 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8068 | else | |
8069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8070 | for as_dir in $PATH | |
8071 | do | |
8072 | IFS=$as_save_IFS | |
8073 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8074 | for ac_exec_ext in '' $ac_executable_extensions; do |
8075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8076 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8078 | break 2 |
8079 | fi | |
8080 | done | |
5213506e RW |
8081 | done |
8082 | IFS=$as_save_IFS | |
278a7a38 AO |
8083 | |
8084 | fi | |
8085 | fi | |
8086 | AR=$ac_cv_prog_AR | |
8087 | if test -n "$AR"; then | |
5213506e RW |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8089 | $as_echo "$AR" >&6; } | |
278a7a38 | 8090 | else |
5213506e RW |
8091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8092 | $as_echo "no" >&6; } | |
278a7a38 AO |
8093 | fi |
8094 | ||
5213506e | 8095 | |
278a7a38 AO |
8096 | done |
8097 | fi | |
8098 | ||
8099 | for ncn_progname in ar; do | |
2693c0b0 PB |
8100 | if test -n "$ncn_tool_prefix"; then |
8101 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8102 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8104 | $as_echo_n "checking for $ac_word... " >&6; } | |
8105 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8106 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8107 | else |
8108 | if test -n "$AR"; then | |
8109 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8110 | else | |
1c710c3c DJ |
8111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8112 | for as_dir in $PATH | |
8113 | do | |
8114 | IFS=$as_save_IFS | |
8115 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8116 | for ac_exec_ext in '' $ac_executable_extensions; do |
8117 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8118 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8120 | break 2 |
8121 | fi | |
8122 | done | |
5213506e RW |
8123 | done |
8124 | IFS=$as_save_IFS | |
1c710c3c | 8125 | |
ca9f4b81 AO |
8126 | fi |
8127 | fi | |
1c710c3c | 8128 | AR=$ac_cv_prog_AR |
ca9f4b81 | 8129 | if test -n "$AR"; then |
5213506e RW |
8130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8131 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8132 | else |
5213506e RW |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8134 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8135 | fi |
8136 | ||
5213506e | 8137 | |
2693c0b0 PB |
8138 | fi |
8139 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8140 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8141 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8143 | $as_echo_n "checking for $ac_word... " >&6; } | |
8144 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8145 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8146 | else |
2693c0b0 | 8147 | if test -n "$AR"; then |
af71363e AS |
8148 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8149 | else | |
1c710c3c DJ |
8150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8151 | for as_dir in $PATH | |
8152 | do | |
8153 | IFS=$as_save_IFS | |
8154 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8155 | for ac_exec_ext in '' $ac_executable_extensions; do |
8156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8157 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8159 | break 2 |
8160 | fi | |
8161 | done | |
5213506e RW |
8162 | done |
8163 | IFS=$as_save_IFS | |
1c710c3c | 8164 | |
ca9f4b81 AO |
8165 | fi |
8166 | fi | |
1c710c3c | 8167 | AR=$ac_cv_prog_AR |
2693c0b0 | 8168 | if test -n "$AR"; then |
5213506e RW |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8170 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8171 | else |
5213506e RW |
8172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8173 | $as_echo "no" >&6; } | |
ca9f4b81 | 8174 | fi |
1c710c3c | 8175 | |
5213506e | 8176 | |
2693c0b0 PB |
8177 | fi |
8178 | test -n "$ac_cv_prog_AR" && break | |
8179 | done | |
8180 | ||
8181 | if test -z "$ac_cv_prog_AR" ; then | |
8182 | set dummy ar | |
8183 | if test $build = $host ; then | |
8184 | AR="$2" | |
ca9f4b81 | 8185 | else |
2693c0b0 | 8186 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8187 | fi |
ca9f4b81 AO |
8188 | fi |
8189 | ||
278a7a38 AO |
8190 | |
8191 | ||
8192 | if test -n "$AS"; then | |
8193 | ac_cv_prog_AS=$AS | |
8194 | elif test -n "$ac_cv_prog_AS"; then | |
8195 | AS=$ac_cv_prog_AS | |
8196 | fi | |
8197 | ||
8198 | if test -n "$ac_cv_prog_AS"; then | |
8199 | for ncn_progname in as; do | |
8200 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8201 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8203 | $as_echo_n "checking for $ac_word... " >&6; } | |
8204 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8205 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8206 | else |
8207 | if test -n "$AS"; then | |
8208 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8209 | else | |
8210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8211 | for as_dir in $PATH | |
8212 | do | |
8213 | IFS=$as_save_IFS | |
8214 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8215 | for ac_exec_ext in '' $ac_executable_extensions; do |
8216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8217 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8219 | break 2 |
8220 | fi | |
8221 | done | |
5213506e RW |
8222 | done |
8223 | IFS=$as_save_IFS | |
278a7a38 AO |
8224 | |
8225 | fi | |
8226 | fi | |
8227 | AS=$ac_cv_prog_AS | |
8228 | if test -n "$AS"; then | |
5213506e RW |
8229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8230 | $as_echo "$AS" >&6; } | |
278a7a38 | 8231 | else |
5213506e RW |
8232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8233 | $as_echo "no" >&6; } | |
278a7a38 AO |
8234 | fi |
8235 | ||
5213506e | 8236 | |
278a7a38 AO |
8237 | done |
8238 | fi | |
8239 | ||
8240 | for ncn_progname in as; do | |
2693c0b0 PB |
8241 | if test -n "$ncn_tool_prefix"; then |
8242 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8243 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8245 | $as_echo_n "checking for $ac_word... " >&6; } | |
8246 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8247 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8248 | else |
8249 | if test -n "$AS"; then | |
8250 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8251 | else |
1c710c3c DJ |
8252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8253 | for as_dir in $PATH | |
8254 | do | |
8255 | IFS=$as_save_IFS | |
8256 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8257 | for ac_exec_ext in '' $ac_executable_extensions; do |
8258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8259 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8261 | break 2 |
8262 | fi | |
8263 | done | |
5213506e RW |
8264 | done |
8265 | IFS=$as_save_IFS | |
1c710c3c | 8266 | |
ca9f4b81 AO |
8267 | fi |
8268 | fi | |
1c710c3c | 8269 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8270 | if test -n "$AS"; then |
5213506e RW |
8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8272 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8273 | else |
5213506e RW |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8275 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8276 | fi |
8277 | ||
5213506e | 8278 | |
2693c0b0 PB |
8279 | fi |
8280 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8281 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8282 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8284 | $as_echo_n "checking for $ac_word... " >&6; } | |
8285 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8286 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8287 | else |
2693c0b0 PB |
8288 | if test -n "$AS"; then |
8289 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8290 | else |
1c710c3c DJ |
8291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8292 | for as_dir in $PATH | |
8293 | do | |
8294 | IFS=$as_save_IFS | |
8295 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8296 | for ac_exec_ext in '' $ac_executable_extensions; do |
8297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8298 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8300 | break 2 |
8301 | fi | |
8302 | done | |
5213506e RW |
8303 | done |
8304 | IFS=$as_save_IFS | |
1c710c3c | 8305 | |
ca9f4b81 AO |
8306 | fi |
8307 | fi | |
1c710c3c | 8308 | AS=$ac_cv_prog_AS |
2693c0b0 | 8309 | if test -n "$AS"; then |
5213506e RW |
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8311 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8312 | else |
5213506e RW |
8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8314 | $as_echo "no" >&6; } | |
ca9f4b81 | 8315 | fi |
1c710c3c | 8316 | |
5213506e | 8317 | |
2693c0b0 PB |
8318 | fi |
8319 | test -n "$ac_cv_prog_AS" && break | |
8320 | done | |
8321 | ||
8322 | if test -z "$ac_cv_prog_AS" ; then | |
8323 | set dummy as | |
8324 | if test $build = $host ; then | |
8325 | AS="$2" | |
ca9f4b81 | 8326 | else |
2693c0b0 | 8327 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8328 | fi |
ca9f4b81 AO |
8329 | fi |
8330 | ||
278a7a38 AO |
8331 | |
8332 | ||
8333 | if test -n "$DLLTOOL"; then | |
8334 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8335 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8336 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8337 | fi | |
8338 | ||
8339 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8340 | for ncn_progname in dlltool; do | |
8341 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8342 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8344 | $as_echo_n "checking for $ac_word... " >&6; } | |
8345 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8346 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8347 | else |
8348 | if test -n "$DLLTOOL"; then | |
8349 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8350 | else | |
8351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8352 | for as_dir in $PATH | |
8353 | do | |
8354 | IFS=$as_save_IFS | |
8355 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8356 | for ac_exec_ext in '' $ac_executable_extensions; do |
8357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8358 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8360 | break 2 |
8361 | fi | |
8362 | done | |
5213506e RW |
8363 | done |
8364 | IFS=$as_save_IFS | |
278a7a38 AO |
8365 | |
8366 | fi | |
8367 | fi | |
8368 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8369 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8371 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8372 | else |
5213506e RW |
8373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8374 | $as_echo "no" >&6; } | |
278a7a38 AO |
8375 | fi |
8376 | ||
5213506e | 8377 | |
278a7a38 AO |
8378 | done |
8379 | fi | |
8380 | ||
8381 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8382 | if test -n "$ncn_tool_prefix"; then |
8383 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8384 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8386 | $as_echo_n "checking for $ac_word... " >&6; } | |
8387 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8388 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8389 | else |
8390 | if test -n "$DLLTOOL"; then | |
8391 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8392 | else | |
1c710c3c DJ |
8393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8394 | for as_dir in $PATH | |
8395 | do | |
8396 | IFS=$as_save_IFS | |
8397 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8398 | for ac_exec_ext in '' $ac_executable_extensions; do |
8399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8400 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8402 | break 2 |
8403 | fi | |
8404 | done | |
5213506e RW |
8405 | done |
8406 | IFS=$as_save_IFS | |
1c710c3c | 8407 | |
ca9f4b81 AO |
8408 | fi |
8409 | fi | |
1c710c3c | 8410 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8411 | if test -n "$DLLTOOL"; then |
5213506e RW |
8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8413 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8414 | else |
5213506e RW |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8416 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8417 | fi |
8418 | ||
5213506e | 8419 | |
2693c0b0 PB |
8420 | fi |
8421 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8422 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8423 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8425 | $as_echo_n "checking for $ac_word... " >&6; } | |
8426 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8427 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8428 | else |
2693c0b0 PB |
8429 | if test -n "$DLLTOOL"; then |
8430 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8431 | else |
1c710c3c DJ |
8432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8433 | for as_dir in $PATH | |
8434 | do | |
8435 | IFS=$as_save_IFS | |
8436 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8437 | for ac_exec_ext in '' $ac_executable_extensions; do |
8438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8439 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8441 | break 2 |
8442 | fi | |
8443 | done | |
5213506e RW |
8444 | done |
8445 | IFS=$as_save_IFS | |
1c710c3c | 8446 | |
ca9f4b81 AO |
8447 | fi |
8448 | fi | |
1c710c3c | 8449 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8450 | if test -n "$DLLTOOL"; then |
5213506e RW |
8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8452 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8453 | else |
5213506e RW |
8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8455 | $as_echo "no" >&6; } | |
ca9f4b81 | 8456 | fi |
1c710c3c | 8457 | |
5213506e | 8458 | |
2693c0b0 PB |
8459 | fi |
8460 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8461 | done | |
8462 | ||
8463 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8464 | set dummy dlltool | |
8465 | if test $build = $host ; then | |
8466 | DLLTOOL="$2" | |
ca9f4b81 | 8467 | else |
2693c0b0 | 8468 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8469 | fi |
ca9f4b81 AO |
8470 | fi |
8471 | ||
278a7a38 AO |
8472 | |
8473 | ||
8474 | if test -n "$LD"; then | |
8475 | ac_cv_prog_LD=$LD | |
8476 | elif test -n "$ac_cv_prog_LD"; then | |
8477 | LD=$ac_cv_prog_LD | |
8478 | fi | |
8479 | ||
8480 | if test -n "$ac_cv_prog_LD"; then | |
8481 | for ncn_progname in ld; do | |
8482 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8483 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8485 | $as_echo_n "checking for $ac_word... " >&6; } | |
8486 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8487 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8488 | else |
8489 | if test -n "$LD"; then | |
8490 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8491 | else | |
8492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8493 | for as_dir in $PATH | |
8494 | do | |
8495 | IFS=$as_save_IFS | |
8496 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8497 | for ac_exec_ext in '' $ac_executable_extensions; do |
8498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8499 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8501 | break 2 |
8502 | fi | |
8503 | done | |
5213506e RW |
8504 | done |
8505 | IFS=$as_save_IFS | |
278a7a38 AO |
8506 | |
8507 | fi | |
8508 | fi | |
8509 | LD=$ac_cv_prog_LD | |
8510 | if test -n "$LD"; then | |
5213506e RW |
8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8512 | $as_echo "$LD" >&6; } | |
278a7a38 | 8513 | else |
5213506e RW |
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8515 | $as_echo "no" >&6; } | |
278a7a38 AO |
8516 | fi |
8517 | ||
5213506e | 8518 | |
278a7a38 AO |
8519 | done |
8520 | fi | |
8521 | ||
8522 | for ncn_progname in ld; do | |
2693c0b0 PB |
8523 | if test -n "$ncn_tool_prefix"; then |
8524 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8525 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8527 | $as_echo_n "checking for $ac_word... " >&6; } | |
8528 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8529 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8530 | else |
8531 | if test -n "$LD"; then | |
8532 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8533 | else | |
1c710c3c DJ |
8534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8535 | for as_dir in $PATH | |
8536 | do | |
8537 | IFS=$as_save_IFS | |
8538 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8539 | for ac_exec_ext in '' $ac_executable_extensions; do |
8540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8541 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8543 | break 2 |
8544 | fi | |
8545 | done | |
5213506e RW |
8546 | done |
8547 | IFS=$as_save_IFS | |
1c710c3c | 8548 | |
ca9f4b81 AO |
8549 | fi |
8550 | fi | |
1c710c3c | 8551 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8552 | if test -n "$LD"; then |
5213506e RW |
8553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8554 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8555 | else |
5213506e RW |
8556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8557 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8558 | fi |
8559 | ||
5213506e | 8560 | |
2693c0b0 PB |
8561 | fi |
8562 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8563 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8564 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8566 | $as_echo_n "checking for $ac_word... " >&6; } | |
8567 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8568 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8569 | else |
2693c0b0 PB |
8570 | if test -n "$LD"; then |
8571 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8572 | else |
1c710c3c DJ |
8573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8574 | for as_dir in $PATH | |
8575 | do | |
8576 | IFS=$as_save_IFS | |
8577 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8578 | for ac_exec_ext in '' $ac_executable_extensions; do |
8579 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8580 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8582 | break 2 |
8583 | fi | |
8584 | done | |
5213506e RW |
8585 | done |
8586 | IFS=$as_save_IFS | |
1c710c3c | 8587 | |
ca9f4b81 AO |
8588 | fi |
8589 | fi | |
1c710c3c | 8590 | LD=$ac_cv_prog_LD |
2693c0b0 | 8591 | if test -n "$LD"; then |
5213506e RW |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8593 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8594 | else |
5213506e RW |
8595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8596 | $as_echo "no" >&6; } | |
ca9f4b81 | 8597 | fi |
1c710c3c | 8598 | |
5213506e | 8599 | |
2693c0b0 PB |
8600 | fi |
8601 | test -n "$ac_cv_prog_LD" && break | |
8602 | done | |
8603 | ||
8604 | if test -z "$ac_cv_prog_LD" ; then | |
8605 | set dummy ld | |
8606 | if test $build = $host ; then | |
8607 | LD="$2" | |
ca9f4b81 | 8608 | else |
2693c0b0 | 8609 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8610 | fi |
ca9f4b81 AO |
8611 | fi |
8612 | ||
278a7a38 AO |
8613 | |
8614 | ||
8615 | if test -n "$LIPO"; then | |
8616 | ac_cv_prog_LIPO=$LIPO | |
8617 | elif test -n "$ac_cv_prog_LIPO"; then | |
8618 | LIPO=$ac_cv_prog_LIPO | |
8619 | fi | |
8620 | ||
8621 | if test -n "$ac_cv_prog_LIPO"; then | |
8622 | for ncn_progname in lipo; do | |
8623 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8624 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8626 | $as_echo_n "checking for $ac_word... " >&6; } | |
8627 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8628 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8629 | else |
8630 | if test -n "$LIPO"; then | |
8631 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8632 | else | |
8633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8634 | for as_dir in $PATH | |
8635 | do | |
8636 | IFS=$as_save_IFS | |
8637 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8638 | for ac_exec_ext in '' $ac_executable_extensions; do |
8639 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8640 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8642 | break 2 |
8643 | fi | |
8644 | done | |
5213506e RW |
8645 | done |
8646 | IFS=$as_save_IFS | |
278a7a38 AO |
8647 | |
8648 | fi | |
8649 | fi | |
8650 | LIPO=$ac_cv_prog_LIPO | |
8651 | if test -n "$LIPO"; then | |
5213506e RW |
8652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8653 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8654 | else |
5213506e RW |
8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8656 | $as_echo "no" >&6; } | |
278a7a38 AO |
8657 | fi |
8658 | ||
5213506e | 8659 | |
278a7a38 AO |
8660 | done |
8661 | fi | |
8662 | ||
8663 | for ncn_progname in lipo; do | |
2abefe3d PB |
8664 | if test -n "$ncn_tool_prefix"; then |
8665 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8666 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8668 | $as_echo_n "checking for $ac_word... " >&6; } | |
8669 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8670 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8671 | else |
8672 | if test -n "$LIPO"; then | |
8673 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8674 | else | |
1c710c3c DJ |
8675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8676 | for as_dir in $PATH | |
8677 | do | |
8678 | IFS=$as_save_IFS | |
8679 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8680 | for ac_exec_ext in '' $ac_executable_extensions; do |
8681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8682 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8684 | break 2 |
8685 | fi | |
8686 | done | |
5213506e RW |
8687 | done |
8688 | IFS=$as_save_IFS | |
1c710c3c | 8689 | |
2abefe3d PB |
8690 | fi |
8691 | fi | |
1c710c3c | 8692 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8693 | if test -n "$LIPO"; then |
5213506e RW |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8695 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8696 | else |
5213506e RW |
8697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8698 | $as_echo "no" >&6; } | |
2abefe3d PB |
8699 | fi |
8700 | ||
5213506e | 8701 | |
2abefe3d PB |
8702 | fi |
8703 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8704 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8705 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8707 | $as_echo_n "checking for $ac_word... " >&6; } | |
8708 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8709 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8710 | else |
8711 | if test -n "$LIPO"; then | |
8712 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8713 | else | |
1c710c3c DJ |
8714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8715 | for as_dir in $PATH | |
8716 | do | |
8717 | IFS=$as_save_IFS | |
8718 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8719 | for ac_exec_ext in '' $ac_executable_extensions; do |
8720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8721 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8723 | break 2 |
8724 | fi | |
8725 | done | |
5213506e RW |
8726 | done |
8727 | IFS=$as_save_IFS | |
1c710c3c | 8728 | |
2abefe3d PB |
8729 | fi |
8730 | fi | |
1c710c3c | 8731 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8732 | if test -n "$LIPO"; then |
5213506e RW |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8734 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8735 | else |
5213506e RW |
8736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8737 | $as_echo "no" >&6; } | |
2abefe3d | 8738 | fi |
1c710c3c | 8739 | |
5213506e | 8740 | |
2abefe3d PB |
8741 | fi |
8742 | test -n "$ac_cv_prog_LIPO" && break | |
8743 | done | |
8744 | ||
8745 | if test -z "$ac_cv_prog_LIPO" ; then | |
8746 | set dummy lipo | |
8747 | if test $build = $host ; then | |
8748 | LIPO="$2" | |
8749 | else | |
8750 | LIPO="${ncn_tool_prefix}$2" | |
8751 | fi | |
8752 | fi | |
8753 | ||
278a7a38 AO |
8754 | |
8755 | ||
8756 | if test -n "$NM"; then | |
8757 | ac_cv_prog_NM=$NM | |
8758 | elif test -n "$ac_cv_prog_NM"; then | |
8759 | NM=$ac_cv_prog_NM | |
8760 | fi | |
8761 | ||
8762 | if test -n "$ac_cv_prog_NM"; then | |
8763 | for ncn_progname in nm; do | |
8764 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8765 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8767 | $as_echo_n "checking for $ac_word... " >&6; } | |
8768 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8769 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8770 | else |
8771 | if test -n "$NM"; then | |
8772 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8773 | else | |
1c710c3c DJ |
8774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8775 | for as_dir in $PATH | |
8776 | do | |
8777 | IFS=$as_save_IFS | |
8778 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8779 | for ac_exec_ext in '' $ac_executable_extensions; do |
8780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8781 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8783 | break 2 |
8784 | fi | |
8785 | done | |
5213506e RW |
8786 | done |
8787 | IFS=$as_save_IFS | |
1c710c3c | 8788 | |
ca9f4b81 AO |
8789 | fi |
8790 | fi | |
1c710c3c | 8791 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8792 | if test -n "$NM"; then |
5213506e RW |
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8794 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8795 | else |
5213506e RW |
8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8797 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8798 | fi |
8799 | ||
5213506e | 8800 | |
278a7a38 AO |
8801 | done |
8802 | fi | |
8803 | ||
8804 | for ncn_progname in nm; do | |
8805 | if test -n "$ncn_tool_prefix"; then | |
8806 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8807 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8809 | $as_echo_n "checking for $ac_word... " >&6; } | |
8810 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8811 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8812 | else |
2693c0b0 PB |
8813 | if test -n "$NM"; then |
8814 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8815 | else |
1c710c3c DJ |
8816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8817 | for as_dir in $PATH | |
8818 | do | |
8819 | IFS=$as_save_IFS | |
8820 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8821 | for ac_exec_ext in '' $ac_executable_extensions; do |
8822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8823 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8825 | break 2 |
8826 | fi | |
8827 | done | |
5213506e RW |
8828 | done |
8829 | IFS=$as_save_IFS | |
1c710c3c | 8830 | |
ca9f4b81 AO |
8831 | fi |
8832 | fi | |
1c710c3c | 8833 | NM=$ac_cv_prog_NM |
2693c0b0 | 8834 | if test -n "$NM"; then |
5213506e RW |
8835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8836 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8837 | else |
5213506e RW |
8838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8839 | $as_echo "no" >&6; } | |
ca9f4b81 | 8840 | fi |
1c710c3c | 8841 | |
5213506e | 8842 | |
2693c0b0 | 8843 | fi |
278a7a38 AO |
8844 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8845 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8846 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8848 | $as_echo_n "checking for $ac_word... " >&6; } | |
8849 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8850 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8851 | else |
8852 | if test -n "$NM"; then | |
8853 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8854 | else | |
8855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8856 | for as_dir in $PATH | |
8857 | do | |
8858 | IFS=$as_save_IFS | |
8859 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8860 | for ac_exec_ext in '' $ac_executable_extensions; do |
8861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8862 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8864 | break 2 |
8865 | fi | |
8866 | done | |
5213506e RW |
8867 | done |
8868 | IFS=$as_save_IFS | |
278a7a38 AO |
8869 | |
8870 | fi | |
8871 | fi | |
8872 | NM=$ac_cv_prog_NM | |
8873 | if test -n "$NM"; then | |
5213506e RW |
8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8875 | $as_echo "$NM" >&6; } | |
278a7a38 | 8876 | else |
5213506e RW |
8877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8878 | $as_echo "no" >&6; } | |
278a7a38 AO |
8879 | fi |
8880 | ||
5213506e | 8881 | |
278a7a38 AO |
8882 | fi |
8883 | test -n "$ac_cv_prog_NM" && break | |
8884 | done | |
8885 | ||
8886 | if test -z "$ac_cv_prog_NM" ; then | |
8887 | set dummy nm | |
8888 | if test $build = $host ; then | |
8889 | NM="$2" | |
8890 | else | |
8891 | NM="${ncn_tool_prefix}$2" | |
8892 | fi | |
8893 | fi | |
8894 | ||
8895 | ||
8896 | ||
8897 | if test -n "$RANLIB"; then | |
8898 | ac_cv_prog_RANLIB=$RANLIB | |
8899 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8900 | RANLIB=$ac_cv_prog_RANLIB | |
8901 | fi | |
8902 | ||
8903 | if test -n "$ac_cv_prog_RANLIB"; then | |
8904 | for ncn_progname in ranlib; do | |
8905 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8906 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8908 | $as_echo_n "checking for $ac_word... " >&6; } | |
8909 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8910 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8911 | else |
8912 | if test -n "$RANLIB"; then | |
8913 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8914 | else | |
8915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8916 | for as_dir in $PATH | |
8917 | do | |
8918 | IFS=$as_save_IFS | |
8919 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8920 | for ac_exec_ext in '' $ac_executable_extensions; do |
8921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8922 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8924 | break 2 |
8925 | fi | |
8926 | done | |
5213506e RW |
8927 | done |
8928 | IFS=$as_save_IFS | |
278a7a38 AO |
8929 | |
8930 | fi | |
8931 | fi | |
8932 | RANLIB=$ac_cv_prog_RANLIB | |
8933 | if test -n "$RANLIB"; then | |
5213506e RW |
8934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8935 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8936 | else |
5213506e RW |
8937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8938 | $as_echo "no" >&6; } | |
278a7a38 AO |
8939 | fi |
8940 | ||
5213506e | 8941 | |
278a7a38 AO |
8942 | done |
8943 | fi | |
ca9f4b81 | 8944 | |
278a7a38 | 8945 | for ncn_progname in ranlib; do |
2693c0b0 PB |
8946 | if test -n "$ncn_tool_prefix"; then |
8947 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8948 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8950 | $as_echo_n "checking for $ac_word... " >&6; } | |
8951 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8952 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8953 | else |
8954 | if test -n "$RANLIB"; then | |
8955 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8956 | else | |
1c710c3c DJ |
8957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8958 | for as_dir in $PATH | |
8959 | do | |
8960 | IFS=$as_save_IFS | |
8961 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8962 | for ac_exec_ext in '' $ac_executable_extensions; do |
8963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8964 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8966 | break 2 |
8967 | fi | |
8968 | done | |
5213506e RW |
8969 | done |
8970 | IFS=$as_save_IFS | |
1c710c3c | 8971 | |
ca9f4b81 AO |
8972 | fi |
8973 | fi | |
1c710c3c | 8974 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 8975 | if test -n "$RANLIB"; then |
5213506e RW |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8977 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8978 | else |
5213506e RW |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8980 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8981 | fi |
8982 | ||
5213506e | 8983 | |
2693c0b0 PB |
8984 | fi |
8985 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8986 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8987 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8989 | $as_echo_n "checking for $ac_word... " >&6; } | |
8990 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8991 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8992 | else |
2693c0b0 PB |
8993 | if test -n "$RANLIB"; then |
8994 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 8995 | else |
1c710c3c DJ |
8996 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8997 | for as_dir in $PATH | |
8998 | do | |
8999 | IFS=$as_save_IFS | |
9000 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9001 | for ac_exec_ext in '' $ac_executable_extensions; do |
9002 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9003 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 9004 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9005 | break 2 |
9006 | fi | |
9007 | done | |
5213506e RW |
9008 | done |
9009 | IFS=$as_save_IFS | |
1c710c3c | 9010 | |
ca9f4b81 AO |
9011 | fi |
9012 | fi | |
1c710c3c | 9013 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 9014 | if test -n "$RANLIB"; then |
5213506e RW |
9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9016 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 9017 | else |
5213506e RW |
9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9019 | $as_echo "no" >&6; } | |
ca9f4b81 | 9020 | fi |
1c710c3c | 9021 | |
5213506e | 9022 | |
ca9f4b81 | 9023 | fi |
2693c0b0 PB |
9024 | test -n "$ac_cv_prog_RANLIB" && break |
9025 | done | |
9026 | ||
9027 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 9028 | RANLIB="true" |
ca9f4b81 AO |
9029 | fi |
9030 | ||
278a7a38 AO |
9031 | |
9032 | ||
9033 | if test -n "$STRIP"; then | |
9034 | ac_cv_prog_STRIP=$STRIP | |
9035 | elif test -n "$ac_cv_prog_STRIP"; then | |
9036 | STRIP=$ac_cv_prog_STRIP | |
9037 | fi | |
9038 | ||
9039 | if test -n "$ac_cv_prog_STRIP"; then | |
9040 | for ncn_progname in strip; do | |
9041 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9042 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9044 | $as_echo_n "checking for $ac_word... " >&6; } | |
9045 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9046 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9047 | else |
9048 | if test -n "$STRIP"; then | |
9049 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9050 | else | |
9051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9052 | for as_dir in $PATH | |
9053 | do | |
9054 | IFS=$as_save_IFS | |
9055 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9056 | for ac_exec_ext in '' $ac_executable_extensions; do |
9057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9058 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9060 | break 2 |
9061 | fi | |
9062 | done | |
5213506e RW |
9063 | done |
9064 | IFS=$as_save_IFS | |
278a7a38 AO |
9065 | |
9066 | fi | |
9067 | fi | |
9068 | STRIP=$ac_cv_prog_STRIP | |
9069 | if test -n "$STRIP"; then | |
5213506e RW |
9070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9071 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 9072 | else |
5213506e RW |
9073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9074 | $as_echo "no" >&6; } | |
278a7a38 AO |
9075 | fi |
9076 | ||
5213506e | 9077 | |
278a7a38 AO |
9078 | done |
9079 | fi | |
9080 | ||
9081 | for ncn_progname in strip; do | |
2abefe3d PB |
9082 | if test -n "$ncn_tool_prefix"; then |
9083 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9084 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9086 | $as_echo_n "checking for $ac_word... " >&6; } | |
9087 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9088 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9089 | else |
9090 | if test -n "$STRIP"; then | |
9091 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9092 | else | |
1c710c3c DJ |
9093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9094 | for as_dir in $PATH | |
9095 | do | |
9096 | IFS=$as_save_IFS | |
9097 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9098 | for ac_exec_ext in '' $ac_executable_extensions; do |
9099 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9100 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9101 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9102 | break 2 |
9103 | fi | |
9104 | done | |
5213506e RW |
9105 | done |
9106 | IFS=$as_save_IFS | |
1c710c3c | 9107 | |
2abefe3d PB |
9108 | fi |
9109 | fi | |
1c710c3c | 9110 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9111 | if test -n "$STRIP"; then |
5213506e RW |
9112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9113 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9114 | else |
5213506e RW |
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9116 | $as_echo "no" >&6; } | |
2abefe3d PB |
9117 | fi |
9118 | ||
5213506e | 9119 | |
2abefe3d PB |
9120 | fi |
9121 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9122 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9123 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9125 | $as_echo_n "checking for $ac_word... " >&6; } | |
9126 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9127 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
9128 | else |
9129 | if test -n "$STRIP"; then | |
9130 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9131 | else | |
1c710c3c DJ |
9132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9133 | for as_dir in $PATH | |
9134 | do | |
9135 | IFS=$as_save_IFS | |
9136 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9137 | for ac_exec_ext in '' $ac_executable_extensions; do |
9138 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9139 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 9140 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9141 | break 2 |
9142 | fi | |
9143 | done | |
5213506e RW |
9144 | done |
9145 | IFS=$as_save_IFS | |
1c710c3c | 9146 | |
2abefe3d PB |
9147 | fi |
9148 | fi | |
1c710c3c | 9149 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9150 | if test -n "$STRIP"; then |
5213506e RW |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9152 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9153 | else |
5213506e RW |
9154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9155 | $as_echo "no" >&6; } | |
2abefe3d | 9156 | fi |
1c710c3c | 9157 | |
5213506e | 9158 | |
2abefe3d PB |
9159 | fi |
9160 | test -n "$ac_cv_prog_STRIP" && break | |
9161 | done | |
9162 | ||
9163 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9164 | STRIP="true" |
2abefe3d PB |
9165 | fi |
9166 | ||
278a7a38 AO |
9167 | |
9168 | ||
9169 | if test -n "$WINDRES"; then | |
9170 | ac_cv_prog_WINDRES=$WINDRES | |
9171 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9172 | WINDRES=$ac_cv_prog_WINDRES | |
9173 | fi | |
9174 | ||
9175 | if test -n "$ac_cv_prog_WINDRES"; then | |
9176 | for ncn_progname in windres; do | |
9177 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9178 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9180 | $as_echo_n "checking for $ac_word... " >&6; } | |
9181 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9182 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9183 | else |
9184 | if test -n "$WINDRES"; then | |
9185 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9186 | else | |
9187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9188 | for as_dir in $PATH | |
9189 | do | |
9190 | IFS=$as_save_IFS | |
9191 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9192 | for ac_exec_ext in '' $ac_executable_extensions; do |
9193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9194 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9196 | break 2 |
9197 | fi | |
9198 | done | |
5213506e RW |
9199 | done |
9200 | IFS=$as_save_IFS | |
278a7a38 AO |
9201 | |
9202 | fi | |
9203 | fi | |
9204 | WINDRES=$ac_cv_prog_WINDRES | |
9205 | if test -n "$WINDRES"; then | |
5213506e RW |
9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9207 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9208 | else |
5213506e RW |
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9210 | $as_echo "no" >&6; } | |
278a7a38 AO |
9211 | fi |
9212 | ||
5213506e | 9213 | |
278a7a38 AO |
9214 | done |
9215 | fi | |
9216 | ||
9217 | for ncn_progname in windres; do | |
2693c0b0 PB |
9218 | if test -n "$ncn_tool_prefix"; then |
9219 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9220 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9222 | $as_echo_n "checking for $ac_word... " >&6; } | |
9223 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9224 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9225 | else |
9226 | if test -n "$WINDRES"; then | |
9227 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9228 | else | |
1c710c3c DJ |
9229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9230 | for as_dir in $PATH | |
9231 | do | |
9232 | IFS=$as_save_IFS | |
9233 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9234 | for ac_exec_ext in '' $ac_executable_extensions; do |
9235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9236 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9238 | break 2 |
9239 | fi | |
9240 | done | |
5213506e RW |
9241 | done |
9242 | IFS=$as_save_IFS | |
1c710c3c | 9243 | |
ca9f4b81 AO |
9244 | fi |
9245 | fi | |
1c710c3c | 9246 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9247 | if test -n "$WINDRES"; then |
5213506e RW |
9248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9249 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9250 | else |
5213506e RW |
9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9252 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9253 | fi |
9254 | ||
5213506e | 9255 | |
2693c0b0 PB |
9256 | fi |
9257 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9258 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9259 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9261 | $as_echo_n "checking for $ac_word... " >&6; } | |
9262 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9263 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9264 | else |
2693c0b0 PB |
9265 | if test -n "$WINDRES"; then |
9266 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9267 | else |
1c710c3c DJ |
9268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9269 | for as_dir in $PATH | |
9270 | do | |
9271 | IFS=$as_save_IFS | |
9272 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9273 | for ac_exec_ext in '' $ac_executable_extensions; do |
9274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9275 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9277 | break 2 |
9278 | fi | |
9279 | done | |
5213506e RW |
9280 | done |
9281 | IFS=$as_save_IFS | |
1c710c3c | 9282 | |
ca9f4b81 AO |
9283 | fi |
9284 | fi | |
1c710c3c | 9285 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9286 | if test -n "$WINDRES"; then |
5213506e RW |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9288 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9289 | else |
5213506e RW |
9290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9291 | $as_echo "no" >&6; } | |
ca9f4b81 | 9292 | fi |
1c710c3c | 9293 | |
5213506e | 9294 | |
2693c0b0 PB |
9295 | fi |
9296 | test -n "$ac_cv_prog_WINDRES" && break | |
9297 | done | |
9298 | ||
9299 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9300 | set dummy windres | |
9301 | if test $build = $host ; then | |
9302 | WINDRES="$2" | |
ca9f4b81 | 9303 | else |
2693c0b0 | 9304 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9305 | fi |
ca9f4b81 AO |
9306 | fi |
9307 | ||
278a7a38 AO |
9308 | |
9309 | ||
901119ae KT |
9310 | if test -n "$WINDMC"; then |
9311 | ac_cv_prog_WINDMC=$WINDMC | |
9312 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9313 | WINDMC=$ac_cv_prog_WINDMC | |
9314 | fi | |
9315 | ||
9316 | if test -n "$ac_cv_prog_WINDMC"; then | |
9317 | for ncn_progname in windmc; do | |
9318 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9319 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9321 | $as_echo_n "checking for $ac_word... " >&6; } | |
9322 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9323 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9324 | else |
9325 | if test -n "$WINDMC"; then | |
9326 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9327 | else | |
9328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9329 | for as_dir in $PATH | |
9330 | do | |
9331 | IFS=$as_save_IFS | |
9332 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9333 | for ac_exec_ext in '' $ac_executable_extensions; do |
9334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9335 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9336 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9337 | break 2 |
9338 | fi | |
9339 | done | |
5213506e RW |
9340 | done |
9341 | IFS=$as_save_IFS | |
901119ae KT |
9342 | |
9343 | fi | |
9344 | fi | |
9345 | WINDMC=$ac_cv_prog_WINDMC | |
9346 | if test -n "$WINDMC"; then | |
5213506e RW |
9347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9348 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9349 | else |
5213506e RW |
9350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9351 | $as_echo "no" >&6; } | |
901119ae KT |
9352 | fi |
9353 | ||
5213506e | 9354 | |
901119ae KT |
9355 | done |
9356 | fi | |
9357 | ||
9358 | for ncn_progname in windmc; do | |
9359 | if test -n "$ncn_tool_prefix"; then | |
9360 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9361 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9363 | $as_echo_n "checking for $ac_word... " >&6; } | |
9364 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9365 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9366 | else |
9367 | if test -n "$WINDMC"; then | |
9368 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9369 | else | |
9370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9371 | for as_dir in $PATH | |
9372 | do | |
9373 | IFS=$as_save_IFS | |
9374 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9375 | for ac_exec_ext in '' $ac_executable_extensions; do |
9376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9377 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9379 | break 2 |
9380 | fi | |
9381 | done | |
5213506e RW |
9382 | done |
9383 | IFS=$as_save_IFS | |
901119ae KT |
9384 | |
9385 | fi | |
9386 | fi | |
9387 | WINDMC=$ac_cv_prog_WINDMC | |
9388 | if test -n "$WINDMC"; then | |
5213506e RW |
9389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9390 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9391 | else |
5213506e RW |
9392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9393 | $as_echo "no" >&6; } | |
901119ae KT |
9394 | fi |
9395 | ||
5213506e | 9396 | |
901119ae KT |
9397 | fi |
9398 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9400 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9402 | $as_echo_n "checking for $ac_word... " >&6; } | |
9403 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9404 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9405 | else |
9406 | if test -n "$WINDMC"; then | |
9407 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9408 | else | |
9409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9410 | for as_dir in $PATH | |
9411 | do | |
9412 | IFS=$as_save_IFS | |
9413 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9414 | for ac_exec_ext in '' $ac_executable_extensions; do |
9415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9416 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9418 | break 2 |
9419 | fi | |
9420 | done | |
5213506e RW |
9421 | done |
9422 | IFS=$as_save_IFS | |
901119ae KT |
9423 | |
9424 | fi | |
9425 | fi | |
9426 | WINDMC=$ac_cv_prog_WINDMC | |
9427 | if test -n "$WINDMC"; then | |
5213506e RW |
9428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9429 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9430 | else |
5213506e RW |
9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9432 | $as_echo "no" >&6; } | |
901119ae KT |
9433 | fi |
9434 | ||
5213506e | 9435 | |
901119ae KT |
9436 | fi |
9437 | test -n "$ac_cv_prog_WINDMC" && break | |
9438 | done | |
9439 | ||
9440 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9441 | set dummy windmc | |
9442 | if test $build = $host ; then | |
9443 | WINDMC="$2" | |
9444 | else | |
9445 | WINDMC="${ncn_tool_prefix}$2" | |
9446 | fi | |
9447 | fi | |
9448 | ||
9449 | ||
9450 | ||
278a7a38 AO |
9451 | if test -n "$OBJCOPY"; then |
9452 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9453 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9454 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9455 | fi | |
9456 | ||
9457 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9458 | for ncn_progname in objcopy; do | |
9459 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9460 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9462 | $as_echo_n "checking for $ac_word... " >&6; } | |
9463 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9464 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9465 | else |
9466 | if test -n "$OBJCOPY"; then | |
9467 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9468 | else | |
9469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9470 | for as_dir in $PATH | |
9471 | do | |
9472 | IFS=$as_save_IFS | |
9473 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9474 | for ac_exec_ext in '' $ac_executable_extensions; do |
9475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9476 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9477 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9478 | break 2 |
9479 | fi | |
9480 | done | |
5213506e RW |
9481 | done |
9482 | IFS=$as_save_IFS | |
278a7a38 AO |
9483 | |
9484 | fi | |
9485 | fi | |
9486 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9487 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9489 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9490 | else |
5213506e RW |
9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9492 | $as_echo "no" >&6; } | |
278a7a38 AO |
9493 | fi |
9494 | ||
5213506e | 9495 | |
278a7a38 AO |
9496 | done |
9497 | fi | |
9498 | ||
9499 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9500 | if test -n "$ncn_tool_prefix"; then |
9501 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9502 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9504 | $as_echo_n "checking for $ac_word... " >&6; } | |
9505 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9506 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9507 | else |
9508 | if test -n "$OBJCOPY"; then | |
9509 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9510 | else | |
1c710c3c DJ |
9511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9512 | for as_dir in $PATH | |
9513 | do | |
9514 | IFS=$as_save_IFS | |
9515 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9516 | for ac_exec_ext in '' $ac_executable_extensions; do |
9517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9518 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9520 | break 2 |
9521 | fi | |
9522 | done | |
5213506e RW |
9523 | done |
9524 | IFS=$as_save_IFS | |
1c710c3c | 9525 | |
ca9f4b81 AO |
9526 | fi |
9527 | fi | |
1c710c3c | 9528 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9529 | if test -n "$OBJCOPY"; then |
5213506e RW |
9530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9531 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9532 | else |
5213506e RW |
9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9534 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9535 | fi |
9536 | ||
5213506e | 9537 | |
2693c0b0 PB |
9538 | fi |
9539 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9540 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9541 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9543 | $as_echo_n "checking for $ac_word... " >&6; } | |
9544 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9545 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9546 | else |
2693c0b0 PB |
9547 | if test -n "$OBJCOPY"; then |
9548 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9549 | else |
1c710c3c DJ |
9550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9551 | for as_dir in $PATH | |
9552 | do | |
9553 | IFS=$as_save_IFS | |
9554 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9555 | for ac_exec_ext in '' $ac_executable_extensions; do |
9556 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9557 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9558 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9559 | break 2 |
9560 | fi | |
9561 | done | |
5213506e RW |
9562 | done |
9563 | IFS=$as_save_IFS | |
1c710c3c | 9564 | |
ca9f4b81 AO |
9565 | fi |
9566 | fi | |
1c710c3c | 9567 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9568 | if test -n "$OBJCOPY"; then |
5213506e RW |
9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9570 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9571 | else |
5213506e RW |
9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9573 | $as_echo "no" >&6; } | |
ca9f4b81 | 9574 | fi |
1c710c3c | 9575 | |
5213506e | 9576 | |
2693c0b0 PB |
9577 | fi |
9578 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9579 | done | |
9580 | ||
9581 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9582 | set dummy objcopy | |
9583 | if test $build = $host ; then | |
9584 | OBJCOPY="$2" | |
ca9f4b81 | 9585 | else |
2693c0b0 | 9586 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9587 | fi |
ca9f4b81 AO |
9588 | fi |
9589 | ||
278a7a38 AO |
9590 | |
9591 | ||
9592 | if test -n "$OBJDUMP"; then | |
9593 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9594 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9595 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9596 | fi | |
9597 | ||
9598 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9599 | for ncn_progname in objdump; do | |
9600 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9601 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9603 | $as_echo_n "checking for $ac_word... " >&6; } | |
9604 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9605 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9606 | else |
9607 | if test -n "$OBJDUMP"; then | |
9608 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9609 | else | |
9610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9611 | for as_dir in $PATH | |
9612 | do | |
9613 | IFS=$as_save_IFS | |
9614 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9615 | for ac_exec_ext in '' $ac_executable_extensions; do |
9616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9617 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9619 | break 2 |
9620 | fi | |
9621 | done | |
5213506e RW |
9622 | done |
9623 | IFS=$as_save_IFS | |
278a7a38 AO |
9624 | |
9625 | fi | |
9626 | fi | |
9627 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9628 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9630 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9631 | else |
5213506e RW |
9632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9633 | $as_echo "no" >&6; } | |
278a7a38 AO |
9634 | fi |
9635 | ||
5213506e | 9636 | |
278a7a38 AO |
9637 | done |
9638 | fi | |
9639 | ||
9640 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9641 | if test -n "$ncn_tool_prefix"; then |
9642 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9643 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9645 | $as_echo_n "checking for $ac_word... " >&6; } | |
9646 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9647 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9648 | else |
9649 | if test -n "$OBJDUMP"; then | |
9650 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9651 | else | |
1c710c3c DJ |
9652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9653 | for as_dir in $PATH | |
9654 | do | |
9655 | IFS=$as_save_IFS | |
9656 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9657 | for ac_exec_ext in '' $ac_executable_extensions; do |
9658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9659 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9661 | break 2 |
9662 | fi | |
9663 | done | |
5213506e RW |
9664 | done |
9665 | IFS=$as_save_IFS | |
1c710c3c | 9666 | |
ca9f4b81 AO |
9667 | fi |
9668 | fi | |
1c710c3c | 9669 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9670 | if test -n "$OBJDUMP"; then |
5213506e RW |
9671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9672 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9673 | else |
5213506e RW |
9674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9675 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9676 | fi |
9677 | ||
5213506e | 9678 | |
2693c0b0 PB |
9679 | fi |
9680 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9681 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9682 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9684 | $as_echo_n "checking for $ac_word... " >&6; } | |
9685 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9686 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9687 | else |
2693c0b0 PB |
9688 | if test -n "$OBJDUMP"; then |
9689 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9690 | else |
1c710c3c DJ |
9691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9692 | for as_dir in $PATH | |
9693 | do | |
9694 | IFS=$as_save_IFS | |
9695 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9696 | for ac_exec_ext in '' $ac_executable_extensions; do |
9697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9698 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9700 | break 2 |
9701 | fi | |
9702 | done | |
5213506e RW |
9703 | done |
9704 | IFS=$as_save_IFS | |
1c710c3c | 9705 | |
ca9f4b81 AO |
9706 | fi |
9707 | fi | |
1c710c3c | 9708 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9709 | if test -n "$OBJDUMP"; then |
5213506e RW |
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9711 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9712 | else |
5213506e RW |
9713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9714 | $as_echo "no" >&6; } | |
ca9f4b81 | 9715 | fi |
1c710c3c | 9716 | |
5213506e | 9717 | |
2693c0b0 PB |
9718 | fi |
9719 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9720 | done | |
9721 | ||
9722 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9723 | set dummy objdump | |
9724 | if test $build = $host ; then | |
9725 | OBJDUMP="$2" | |
ca9f4b81 | 9726 | else |
2693c0b0 | 9727 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9728 | fi |
ca9f4b81 AO |
9729 | fi |
9730 | ||
671aa708 NN |
9731 | |
9732 | ||
e7a82751 RM |
9733 | if test -n "$READELF"; then |
9734 | ac_cv_prog_READELF=$READELF | |
9735 | elif test -n "$ac_cv_prog_READELF"; then | |
9736 | READELF=$ac_cv_prog_READELF | |
9737 | fi | |
9738 | ||
9739 | if test -n "$ac_cv_prog_READELF"; then | |
9740 | for ncn_progname in readelf; do | |
9741 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9742 | set dummy ${ncn_progname}; ac_word=$2 | |
9743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9744 | $as_echo_n "checking for $ac_word... " >&6; } | |
9745 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9746 | $as_echo_n "(cached) " >&6 | |
9747 | else | |
9748 | if test -n "$READELF"; then | |
9749 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9750 | else | |
9751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9752 | for as_dir in $PATH | |
9753 | do | |
9754 | IFS=$as_save_IFS | |
9755 | test -z "$as_dir" && as_dir=. | |
9756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9758 | ac_cv_prog_READELF="${ncn_progname}" | |
9759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9760 | break 2 | |
9761 | fi | |
9762 | done | |
9763 | done | |
9764 | IFS=$as_save_IFS | |
9765 | ||
9766 | fi | |
9767 | fi | |
9768 | READELF=$ac_cv_prog_READELF | |
9769 | if test -n "$READELF"; then | |
9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9771 | $as_echo "$READELF" >&6; } | |
9772 | else | |
9773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9774 | $as_echo "no" >&6; } | |
9775 | fi | |
9776 | ||
9777 | ||
9778 | done | |
9779 | fi | |
9780 | ||
9781 | for ncn_progname in readelf; do | |
9782 | if test -n "$ncn_tool_prefix"; then | |
9783 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9784 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9786 | $as_echo_n "checking for $ac_word... " >&6; } | |
9787 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9788 | $as_echo_n "(cached) " >&6 | |
9789 | else | |
9790 | if test -n "$READELF"; then | |
9791 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9792 | else | |
9793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9794 | for as_dir in $PATH | |
9795 | do | |
9796 | IFS=$as_save_IFS | |
9797 | test -z "$as_dir" && as_dir=. | |
9798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9800 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9802 | break 2 | |
9803 | fi | |
9804 | done | |
9805 | done | |
9806 | IFS=$as_save_IFS | |
9807 | ||
9808 | fi | |
9809 | fi | |
9810 | READELF=$ac_cv_prog_READELF | |
9811 | if test -n "$READELF"; then | |
9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9813 | $as_echo "$READELF" >&6; } | |
9814 | else | |
9815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9816 | $as_echo "no" >&6; } | |
9817 | fi | |
9818 | ||
9819 | ||
9820 | fi | |
9821 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9822 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9823 | set dummy ${ncn_progname}; ac_word=$2 | |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9825 | $as_echo_n "checking for $ac_word... " >&6; } | |
9826 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9827 | $as_echo_n "(cached) " >&6 | |
9828 | else | |
9829 | if test -n "$READELF"; then | |
9830 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9831 | else | |
9832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9833 | for as_dir in $PATH | |
9834 | do | |
9835 | IFS=$as_save_IFS | |
9836 | test -z "$as_dir" && as_dir=. | |
9837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9839 | ac_cv_prog_READELF="${ncn_progname}" | |
9840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9841 | break 2 | |
9842 | fi | |
9843 | done | |
9844 | done | |
9845 | IFS=$as_save_IFS | |
9846 | ||
9847 | fi | |
9848 | fi | |
9849 | READELF=$ac_cv_prog_READELF | |
9850 | if test -n "$READELF"; then | |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9852 | $as_echo "$READELF" >&6; } | |
9853 | else | |
9854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9855 | $as_echo "no" >&6; } | |
9856 | fi | |
9857 | ||
9858 | ||
9859 | fi | |
9860 | test -n "$ac_cv_prog_READELF" && break | |
9861 | done | |
9862 | ||
9863 | if test -z "$ac_cv_prog_READELF" ; then | |
9864 | set dummy readelf | |
9865 | if test $build = $host ; then | |
9866 | READELF="$2" | |
9867 | else | |
9868 | READELF="${ncn_tool_prefix}$2" | |
9869 | fi | |
9870 | fi | |
9871 | ||
9872 | ||
9873 | ||
671aa708 NN |
9874 | |
9875 | ||
9876 | ||
2abefe3d | 9877 | # Target tools. |
1c710c3c | 9878 | |
5213506e RW |
9879 | # Check whether --with-build-time-tools was given. |
9880 | if test "${with_build_time_tools+set}" = set; then : | |
9881 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9882 | x/*) ;; |
9883 | *) | |
9884 | with_build_time_tools= | |
5213506e RW |
9885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9886 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9887 | ;; |
9888 | esac | |
ca9f4b81 | 9889 | else |
e8b05380 | 9890 | with_build_time_tools= |
5213506e RW |
9891 | fi |
9892 | ||
ca9f4b81 | 9893 | |
278a7a38 AO |
9894 | |
9895 | ||
9896 | if test -n "$CC_FOR_TARGET"; then | |
9897 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9898 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9899 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9900 | fi | |
9901 | ||
9902 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9903 | for ncn_progname in cc gcc; do | |
9904 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9905 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9907 | $as_echo_n "checking for $ac_word... " >&6; } | |
9908 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9909 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9910 | else |
9911 | if test -n "$CC_FOR_TARGET"; then | |
9912 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9913 | else | |
9914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9915 | for as_dir in $PATH | |
9916 | do | |
9917 | IFS=$as_save_IFS | |
9918 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9919 | for ac_exec_ext in '' $ac_executable_extensions; do |
9920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9921 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9923 | break 2 |
9924 | fi | |
9925 | done | |
5213506e RW |
9926 | done |
9927 | IFS=$as_save_IFS | |
278a7a38 AO |
9928 | |
9929 | fi | |
9930 | fi | |
9931 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9932 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
9933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9934 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 9935 | else |
5213506e RW |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9937 | $as_echo "no" >&6; } | |
278a7a38 AO |
9938 | fi |
9939 | ||
5213506e | 9940 | |
278a7a38 AO |
9941 | done |
9942 | fi | |
9943 | ||
9944 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9945 | for ncn_progname in cc gcc; do |
5213506e RW |
9946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9947 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9948 | if test -x $with_build_time_tools/${ncn_progname}; then |
9949 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9951 | $as_echo "yes" >&6; } | |
72a7ab82 | 9952 | break |
e8b05380 | 9953 | else |
5213506e RW |
9954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9955 | $as_echo "no" >&6; } | |
72a7ab82 AP |
9956 | fi |
9957 | done | |
4de997d1 PB |
9958 | fi |
9959 | ||
e8b05380 PB |
9960 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9961 | for ncn_progname in cc gcc; do | |
9962 | if test -n "$ncn_target_tool_prefix"; then | |
9963 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9964 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9966 | $as_echo_n "checking for $ac_word... " >&6; } | |
9967 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9968 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9969 | else |
9970 | if test -n "$CC_FOR_TARGET"; then | |
9971 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9972 | else | |
1c710c3c DJ |
9973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9974 | for as_dir in $PATH | |
9975 | do | |
9976 | IFS=$as_save_IFS | |
9977 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9978 | for ac_exec_ext in '' $ac_executable_extensions; do |
9979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9980 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9981 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9982 | break 2 |
9983 | fi | |
9984 | done | |
5213506e RW |
9985 | done |
9986 | IFS=$as_save_IFS | |
1c710c3c | 9987 | |
4de997d1 PB |
9988 | fi |
9989 | fi | |
1c710c3c | 9990 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 9991 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9993 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9994 | else |
5213506e RW |
9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9996 | $as_echo "no" >&6; } | |
4de997d1 PB |
9997 | fi |
9998 | ||
5213506e | 9999 | |
e8b05380 PB |
10000 | fi |
10001 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10002 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10003 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10005 | $as_echo_n "checking for $ac_word... " >&6; } | |
10006 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10007 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10008 | else |
2693c0b0 PB |
10009 | if test -n "$CC_FOR_TARGET"; then |
10010 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10011 | else |
1c710c3c DJ |
10012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10013 | for as_dir in $PATH | |
10014 | do | |
10015 | IFS=$as_save_IFS | |
10016 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10017 | for ac_exec_ext in '' $ac_executable_extensions; do |
10018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10019 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 10020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10021 | break 2 |
10022 | fi | |
10023 | done | |
5213506e RW |
10024 | done |
10025 | IFS=$as_save_IFS | |
1c710c3c | 10026 | |
4de997d1 PB |
10027 | fi |
10028 | fi | |
1c710c3c | 10029 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 10030 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10032 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 10033 | else |
5213506e RW |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10035 | $as_echo "no" >&6; } | |
4de997d1 | 10036 | fi |
1c710c3c | 10037 | |
5213506e | 10038 | |
e8b05380 PB |
10039 | fi |
10040 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10041 | done | |
10042 | fi | |
1c710c3c | 10043 | |
2693c0b0 PB |
10044 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10045 | set dummy cc gcc | |
10046 | if test $build = $target ; then | |
10047 | CC_FOR_TARGET="$2" | |
4de997d1 | 10048 | else |
2693c0b0 | 10049 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10050 | fi |
1c00b503 PB |
10051 | else |
10052 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
10053 | fi |
10054 | ||
278a7a38 AO |
10055 | |
10056 | ||
10057 | if test -n "$CXX_FOR_TARGET"; then | |
10058 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10059 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10060 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10061 | fi | |
10062 | ||
10063 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10064 | for ncn_progname in c++ g++ cxx gxx; do | |
10065 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10066 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10068 | $as_echo_n "checking for $ac_word... " >&6; } | |
10069 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10070 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10071 | else |
10072 | if test -n "$CXX_FOR_TARGET"; then | |
10073 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10074 | else | |
10075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10076 | for as_dir in $PATH | |
10077 | do | |
10078 | IFS=$as_save_IFS | |
10079 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10080 | for ac_exec_ext in '' $ac_executable_extensions; do |
10081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10082 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10084 | break 2 |
10085 | fi | |
10086 | done | |
5213506e RW |
10087 | done |
10088 | IFS=$as_save_IFS | |
278a7a38 AO |
10089 | |
10090 | fi | |
10091 | fi | |
10092 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10093 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10095 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 10096 | else |
5213506e RW |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10098 | $as_echo "no" >&6; } | |
278a7a38 AO |
10099 | fi |
10100 | ||
5213506e | 10101 | |
278a7a38 AO |
10102 | done |
10103 | fi | |
10104 | ||
10105 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10106 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
10107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10108 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10109 | if test -x $with_build_time_tools/${ncn_progname}; then |
10110 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10112 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10113 | break |
10114 | else | |
5213506e RW |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10116 | $as_echo "no" >&6; } | |
e8b05380 PB |
10117 | fi |
10118 | done | |
10119 | fi | |
10120 | ||
10121 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10122 | for ncn_progname in c++ g++ cxx gxx; do | |
10123 | if test -n "$ncn_target_tool_prefix"; then | |
10124 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10125 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10127 | $as_echo_n "checking for $ac_word... " >&6; } | |
10128 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10129 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
10130 | else |
10131 | if test -n "$CXX_FOR_TARGET"; then | |
10132 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10133 | else | |
1c710c3c DJ |
10134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10135 | for as_dir in $PATH | |
10136 | do | |
10137 | IFS=$as_save_IFS | |
10138 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10139 | for ac_exec_ext in '' $ac_executable_extensions; do |
10140 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10141 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10142 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10143 | break 2 |
10144 | fi | |
10145 | done | |
5213506e RW |
10146 | done |
10147 | IFS=$as_save_IFS | |
1c710c3c | 10148 | |
4de997d1 PB |
10149 | fi |
10150 | fi | |
1c710c3c | 10151 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 10152 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10154 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10155 | else |
5213506e RW |
10156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10157 | $as_echo "no" >&6; } | |
4de997d1 PB |
10158 | fi |
10159 | ||
5213506e | 10160 | |
e8b05380 PB |
10161 | fi |
10162 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10163 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10164 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10166 | $as_echo_n "checking for $ac_word... " >&6; } | |
10167 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10168 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10169 | else |
2693c0b0 PB |
10170 | if test -n "$CXX_FOR_TARGET"; then |
10171 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10172 | else |
1c710c3c DJ |
10173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10174 | for as_dir in $PATH | |
10175 | do | |
10176 | IFS=$as_save_IFS | |
10177 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10178 | for ac_exec_ext in '' $ac_executable_extensions; do |
10179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10180 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 10181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10182 | break 2 |
10183 | fi | |
10184 | done | |
5213506e RW |
10185 | done |
10186 | IFS=$as_save_IFS | |
1c710c3c | 10187 | |
4de997d1 PB |
10188 | fi |
10189 | fi | |
1c710c3c | 10190 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 10191 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10193 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 10194 | else |
5213506e RW |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10196 | $as_echo "no" >&6; } | |
4de997d1 | 10197 | fi |
1c710c3c | 10198 | |
5213506e | 10199 | |
e8b05380 PB |
10200 | fi |
10201 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10202 | done | |
10203 | fi | |
1c710c3c | 10204 | |
2693c0b0 PB |
10205 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10206 | set dummy c++ g++ cxx gxx | |
10207 | if test $build = $target ; then | |
10208 | CXX_FOR_TARGET="$2" | |
4de997d1 | 10209 | else |
2693c0b0 | 10210 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 10211 | fi |
1c00b503 PB |
10212 | else |
10213 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
10214 | fi |
10215 | ||
278a7a38 AO |
10216 | |
10217 | ||
10218 | if test -n "$GCC_FOR_TARGET"; then | |
10219 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10220 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10221 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10222 | fi | |
10223 | ||
10224 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10225 | for ncn_progname in gcc; do | |
10226 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10227 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10229 | $as_echo_n "checking for $ac_word... " >&6; } | |
10230 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10231 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10232 | else |
10233 | if test -n "$GCC_FOR_TARGET"; then | |
10234 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10235 | else | |
10236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10237 | for as_dir in $PATH | |
10238 | do | |
10239 | IFS=$as_save_IFS | |
10240 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10241 | for ac_exec_ext in '' $ac_executable_extensions; do |
10242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10243 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10245 | break 2 |
10246 | fi | |
10247 | done | |
5213506e RW |
10248 | done |
10249 | IFS=$as_save_IFS | |
278a7a38 AO |
10250 | |
10251 | fi | |
10252 | fi | |
10253 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10254 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10256 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 10257 | else |
5213506e RW |
10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10259 | $as_echo "no" >&6; } | |
278a7a38 AO |
10260 | fi |
10261 | ||
5213506e | 10262 | |
278a7a38 AO |
10263 | done |
10264 | fi | |
10265 | ||
10266 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10267 | for ncn_progname in gcc; do |
5213506e RW |
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10269 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10270 | if test -x $with_build_time_tools/${ncn_progname}; then |
10271 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10273 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10274 | break |
10275 | else | |
5213506e RW |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10277 | $as_echo "no" >&6; } | |
e8b05380 PB |
10278 | fi |
10279 | done | |
10280 | fi | |
10281 | ||
10282 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10283 | for ncn_progname in gcc; do | |
10284 | if test -n "$ncn_target_tool_prefix"; then | |
10285 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10286 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10288 | $as_echo_n "checking for $ac_word... " >&6; } | |
10289 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10290 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10291 | else |
e8b05380 PB |
10292 | if test -n "$GCC_FOR_TARGET"; then |
10293 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10294 | else |
1c710c3c DJ |
10295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10296 | for as_dir in $PATH | |
10297 | do | |
10298 | IFS=$as_save_IFS | |
10299 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10300 | for ac_exec_ext in '' $ac_executable_extensions; do |
10301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10302 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10304 | break 2 |
10305 | fi | |
10306 | done | |
5213506e RW |
10307 | done |
10308 | IFS=$as_save_IFS | |
1c710c3c | 10309 | |
ca9f4b81 AO |
10310 | fi |
10311 | fi | |
1c710c3c | 10312 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10313 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10315 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10316 | else |
5213506e RW |
10317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10318 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10319 | fi |
10320 | ||
5213506e | 10321 | |
e8b05380 PB |
10322 | fi |
10323 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10324 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10325 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10327 | $as_echo_n "checking for $ac_word... " >&6; } | |
10328 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10329 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10330 | else |
e8b05380 PB |
10331 | if test -n "$GCC_FOR_TARGET"; then |
10332 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10333 | else |
1c710c3c DJ |
10334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10335 | for as_dir in $PATH | |
10336 | do | |
10337 | IFS=$as_save_IFS | |
10338 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10339 | for ac_exec_ext in '' $ac_executable_extensions; do |
10340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10341 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10343 | break 2 |
10344 | fi | |
10345 | done | |
5213506e RW |
10346 | done |
10347 | IFS=$as_save_IFS | |
1c710c3c | 10348 | |
ca9f4b81 AO |
10349 | fi |
10350 | fi | |
1c710c3c | 10351 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10352 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10354 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10355 | else |
5213506e RW |
10356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10357 | $as_echo "no" >&6; } | |
ca9f4b81 | 10358 | fi |
1c710c3c | 10359 | |
5213506e | 10360 | |
e8b05380 PB |
10361 | fi |
10362 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10363 | done | |
10364 | fi | |
1c710c3c | 10365 | |
e8b05380 PB |
10366 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10367 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10368 | else |
10369 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10370 | fi |
10371 | ||
278a7a38 AO |
10372 | |
10373 | ||
278a7a38 AO |
10374 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10375 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10376 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10377 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10378 | fi |
10379 | ||
278a7a38 AO |
10380 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10381 | for ncn_progname in gfortran; do | |
10382 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10383 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10385 | $as_echo_n "checking for $ac_word... " >&6; } | |
10386 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10387 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10388 | else |
278a7a38 AO |
10389 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10390 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10391 | else |
1c710c3c DJ |
10392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10393 | for as_dir in $PATH | |
10394 | do | |
10395 | IFS=$as_save_IFS | |
10396 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10397 | for ac_exec_ext in '' $ac_executable_extensions; do |
10398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10399 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10401 | break 2 |
10402 | fi | |
10403 | done | |
5213506e RW |
10404 | done |
10405 | IFS=$as_save_IFS | |
1c710c3c | 10406 | |
e8b05380 PB |
10407 | fi |
10408 | fi | |
278a7a38 AO |
10409 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10410 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10412 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10413 | else |
5213506e RW |
10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10415 | $as_echo "no" >&6; } | |
e8b05380 | 10416 | fi |
1c710c3c | 10417 | |
5213506e | 10418 | |
e8b05380 PB |
10419 | done |
10420 | fi | |
1c710c3c | 10421 | |
278a7a38 | 10422 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10423 | for ncn_progname in gfortran; do |
5213506e RW |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10425 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10426 | if test -x $with_build_time_tools/${ncn_progname}; then |
10427 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10429 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10430 | break |
10431 | else | |
5213506e RW |
10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10433 | $as_echo "no" >&6; } | |
e8b05380 PB |
10434 | fi |
10435 | done | |
10436 | fi | |
10437 | ||
10438 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10439 | for ncn_progname in gfortran; do | |
10440 | if test -n "$ncn_target_tool_prefix"; then | |
10441 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10442 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10444 | $as_echo_n "checking for $ac_word... " >&6; } | |
10445 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10446 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10447 | else |
10448 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10449 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10450 | else | |
10451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10452 | for as_dir in $PATH | |
10453 | do | |
10454 | IFS=$as_save_IFS | |
10455 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10456 | for ac_exec_ext in '' $ac_executable_extensions; do |
10457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10458 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10460 | break 2 |
10461 | fi | |
10462 | done | |
5213506e RW |
10463 | done |
10464 | IFS=$as_save_IFS | |
1c710c3c | 10465 | |
e8b05380 PB |
10466 | fi |
10467 | fi | |
1c710c3c | 10468 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10469 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10471 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10472 | else |
5213506e RW |
10473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10474 | $as_echo "no" >&6; } | |
e8b05380 PB |
10475 | fi |
10476 | ||
5213506e | 10477 | |
e8b05380 PB |
10478 | fi |
10479 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10480 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10481 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10483 | $as_echo_n "checking for $ac_word... " >&6; } | |
10484 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10485 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10486 | else |
10487 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10488 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10489 | else | |
1c710c3c DJ |
10490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10491 | for as_dir in $PATH | |
10492 | do | |
10493 | IFS=$as_save_IFS | |
10494 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10495 | for ac_exec_ext in '' $ac_executable_extensions; do |
10496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10497 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10499 | break 2 |
10500 | fi | |
10501 | done | |
5213506e RW |
10502 | done |
10503 | IFS=$as_save_IFS | |
1c710c3c | 10504 | |
e8b05380 PB |
10505 | fi |
10506 | fi | |
1c710c3c | 10507 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10508 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10510 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10511 | else |
5213506e RW |
10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10513 | $as_echo "no" >&6; } | |
e8b05380 | 10514 | fi |
1c710c3c | 10515 | |
5213506e | 10516 | |
e8b05380 PB |
10517 | fi |
10518 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10519 | done | |
10520 | fi | |
1c710c3c | 10521 | |
e8b05380 PB |
10522 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10523 | set dummy gfortran | |
2693c0b0 | 10524 | if test $build = $target ; then |
e8b05380 | 10525 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10526 | else |
e8b05380 PB |
10527 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10528 | fi | |
1c00b503 PB |
10529 | else |
10530 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10531 | fi |
10532 | ||
10533 | ||
10534 | ||
632e2a07 ILT |
10535 | if test -n "$GOC_FOR_TARGET"; then |
10536 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10537 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10538 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10539 | fi | |
10540 | ||
10541 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10542 | for ncn_progname in gccgo; do | |
10543 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10544 | set dummy ${ncn_progname}; ac_word=$2 | |
10545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10546 | $as_echo_n "checking for $ac_word... " >&6; } | |
10547 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10548 | $as_echo_n "(cached) " >&6 | |
10549 | else | |
10550 | if test -n "$GOC_FOR_TARGET"; then | |
10551 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10552 | else | |
10553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10554 | for as_dir in $PATH | |
10555 | do | |
10556 | IFS=$as_save_IFS | |
10557 | test -z "$as_dir" && as_dir=. | |
10558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10560 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10562 | break 2 | |
10563 | fi | |
10564 | done | |
10565 | done | |
10566 | IFS=$as_save_IFS | |
10567 | ||
10568 | fi | |
10569 | fi | |
10570 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10571 | if test -n "$GOC_FOR_TARGET"; then | |
10572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10573 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10574 | else | |
10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10576 | $as_echo "no" >&6; } | |
10577 | fi | |
10578 | ||
10579 | ||
10580 | done | |
10581 | fi | |
10582 | ||
10583 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10584 | for ncn_progname in gccgo; do | |
10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10586 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10587 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10588 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10590 | $as_echo "yes" >&6; } | |
10591 | break | |
10592 | else | |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10594 | $as_echo "no" >&6; } | |
10595 | fi | |
10596 | done | |
10597 | fi | |
10598 | ||
10599 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10600 | for ncn_progname in gccgo; do | |
10601 | if test -n "$ncn_target_tool_prefix"; then | |
10602 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10603 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10605 | $as_echo_n "checking for $ac_word... " >&6; } | |
10606 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10607 | $as_echo_n "(cached) " >&6 | |
10608 | else | |
10609 | if test -n "$GOC_FOR_TARGET"; then | |
10610 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10611 | else | |
10612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10613 | for as_dir in $PATH | |
10614 | do | |
10615 | IFS=$as_save_IFS | |
10616 | test -z "$as_dir" && as_dir=. | |
10617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10619 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10620 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10621 | break 2 | |
10622 | fi | |
10623 | done | |
10624 | done | |
10625 | IFS=$as_save_IFS | |
10626 | ||
10627 | fi | |
10628 | fi | |
10629 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10630 | if test -n "$GOC_FOR_TARGET"; then | |
10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10632 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10633 | else | |
10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10635 | $as_echo "no" >&6; } | |
10636 | fi | |
10637 | ||
10638 | ||
10639 | fi | |
10640 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10641 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10642 | set dummy ${ncn_progname}; ac_word=$2 | |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10644 | $as_echo_n "checking for $ac_word... " >&6; } | |
10645 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10646 | $as_echo_n "(cached) " >&6 | |
10647 | else | |
10648 | if test -n "$GOC_FOR_TARGET"; then | |
10649 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10650 | else | |
10651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10652 | for as_dir in $PATH | |
10653 | do | |
10654 | IFS=$as_save_IFS | |
10655 | test -z "$as_dir" && as_dir=. | |
10656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10658 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10660 | break 2 | |
10661 | fi | |
10662 | done | |
10663 | done | |
10664 | IFS=$as_save_IFS | |
10665 | ||
10666 | fi | |
10667 | fi | |
10668 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10669 | if test -n "$GOC_FOR_TARGET"; then | |
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10671 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10672 | else | |
10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10674 | $as_echo "no" >&6; } | |
10675 | fi | |
10676 | ||
10677 | ||
10678 | fi | |
10679 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10680 | done | |
10681 | fi | |
10682 | ||
10683 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10684 | set dummy gccgo | |
10685 | if test $build = $target ; then | |
10686 | GOC_FOR_TARGET="$2" | |
10687 | else | |
10688 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10689 | fi | |
10690 | else | |
10691 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10692 | fi | |
10693 | ||
10694 | ||
10695 | ||
e8b05380 PB |
10696 | cat > conftest.c << \EOF |
10697 | #ifdef __GNUC__ | |
10698 | gcc_yay; | |
10699 | #endif | |
10700 | EOF | |
10701 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10702 | have_gcc_for_target=yes | |
10703 | else | |
10704 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10705 | have_gcc_for_target=no | |
10706 | fi | |
10707 | rm conftest.c | |
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10713 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10715 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10716 | if test -x $with_build_time_tools/ar; then |
10717 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10718 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10720 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10721 | else |
5213506e RW |
10722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10723 | $as_echo "no" >&6; } | |
d1f8db0c | 10724 | fi |
e8b05380 PB |
10725 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10726 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10727 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10728 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10729 | fi |
10730 | fi | |
3e19841a | 10731 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10732 | # Extract the first word of "ar", so it can be a program name with args. |
10733 | set dummy ar; ac_word=$2 | |
5213506e RW |
10734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10735 | $as_echo_n "checking for $ac_word... " >&6; } | |
10736 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10737 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10738 | else |
1c710c3c DJ |
10739 | case $AR_FOR_TARGET in |
10740 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10741 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10742 | ;; | |
e8b05380 | 10743 | *) |
1c710c3c DJ |
10744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10745 | for as_dir in $gcc_cv_tool_dirs | |
10746 | do | |
10747 | IFS=$as_save_IFS | |
10748 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10749 | for ac_exec_ext in '' $ac_executable_extensions; do |
10750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10751 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10753 | break 2 |
10754 | fi | |
10755 | done | |
5213506e RW |
10756 | done |
10757 | IFS=$as_save_IFS | |
1c710c3c | 10758 | |
e8b05380 PB |
10759 | ;; |
10760 | esac | |
10761 | fi | |
1c710c3c | 10762 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10763 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10765 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10766 | else |
5213506e RW |
10767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10768 | $as_echo "no" >&6; } | |
4de997d1 PB |
10769 | fi |
10770 | ||
5213506e | 10771 | |
e8b05380 PB |
10772 | fi |
10773 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10774 | |
10775 | ||
10776 | if test -n "$AR_FOR_TARGET"; then | |
10777 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10778 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10779 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10780 | fi | |
10781 | ||
10782 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10783 | for ncn_progname in ar; do | |
10784 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10785 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10787 | $as_echo_n "checking for $ac_word... " >&6; } | |
10788 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10789 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10790 | else |
10791 | if test -n "$AR_FOR_TARGET"; then | |
10792 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10793 | else | |
10794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10795 | for as_dir in $PATH | |
10796 | do | |
10797 | IFS=$as_save_IFS | |
10798 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10799 | for ac_exec_ext in '' $ac_executable_extensions; do |
10800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10801 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10803 | break 2 |
10804 | fi | |
10805 | done | |
5213506e RW |
10806 | done |
10807 | IFS=$as_save_IFS | |
278a7a38 AO |
10808 | |
10809 | fi | |
10810 | fi | |
10811 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10812 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
10813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10814 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 10815 | else |
5213506e RW |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10817 | $as_echo "no" >&6; } | |
278a7a38 AO |
10818 | fi |
10819 | ||
5213506e | 10820 | |
278a7a38 AO |
10821 | done |
10822 | fi | |
10823 | ||
10824 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10825 | for ncn_progname in ar; do |
5213506e RW |
10826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10827 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10828 | if test -x $with_build_time_tools/${ncn_progname}; then |
10829 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10831 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10832 | break |
10833 | else | |
5213506e RW |
10834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10835 | $as_echo "no" >&6; } | |
e8b05380 PB |
10836 | fi |
10837 | done | |
10838 | fi | |
10839 | ||
10840 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10841 | for ncn_progname in ar; do | |
10842 | if test -n "$ncn_target_tool_prefix"; then | |
10843 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10844 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10846 | $as_echo_n "checking for $ac_word... " >&6; } | |
10847 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10848 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10849 | else |
e8b05380 PB |
10850 | if test -n "$AR_FOR_TARGET"; then |
10851 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10852 | else |
1c710c3c DJ |
10853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10854 | for as_dir in $PATH | |
10855 | do | |
10856 | IFS=$as_save_IFS | |
10857 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10858 | for ac_exec_ext in '' $ac_executable_extensions; do |
10859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10860 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10862 | break 2 |
10863 | fi | |
10864 | done | |
5213506e RW |
10865 | done |
10866 | IFS=$as_save_IFS | |
1c710c3c | 10867 | |
4de997d1 PB |
10868 | fi |
10869 | fi | |
1c710c3c | 10870 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10871 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10873 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 10874 | else |
5213506e RW |
10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10876 | $as_echo "no" >&6; } | |
4de997d1 PB |
10877 | fi |
10878 | ||
5213506e | 10879 | |
e8b05380 PB |
10880 | fi |
10881 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10882 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10883 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10885 | $as_echo_n "checking for $ac_word... " >&6; } | |
10886 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10887 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10888 | else |
10889 | if test -n "$AR_FOR_TARGET"; then | |
10890 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10891 | else | |
1c710c3c DJ |
10892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10893 | for as_dir in $PATH | |
10894 | do | |
10895 | IFS=$as_save_IFS | |
10896 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10897 | for ac_exec_ext in '' $ac_executable_extensions; do |
10898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10899 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10901 | break 2 |
10902 | fi | |
10903 | done | |
5213506e RW |
10904 | done |
10905 | IFS=$as_save_IFS | |
1c710c3c | 10906 | |
e8b05380 PB |
10907 | fi |
10908 | fi | |
1c710c3c | 10909 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10910 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10912 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10913 | else |
5213506e RW |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10915 | $as_echo "no" >&6; } | |
e8b05380 | 10916 | fi |
1c710c3c | 10917 | |
5213506e | 10918 | |
e8b05380 PB |
10919 | fi |
10920 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10921 | done | |
10922 | fi | |
1c710c3c | 10923 | |
e8b05380 PB |
10924 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10925 | set dummy ar | |
10926 | if test $build = $target ; then | |
10927 | AR_FOR_TARGET="$2" | |
10928 | else | |
10929 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 10930 | fi |
1c00b503 PB |
10931 | else |
10932 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
10933 | fi |
10934 | ||
d1f8db0c PB |
10935 | else |
10936 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
10937 | fi |
10938 | ||
10939 | ||
10940 | ||
10941 | ||
10942 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10943 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10945 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10946 | if test -x $with_build_time_tools/as; then |
10947 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10948 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10950 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 10951 | else |
5213506e RW |
10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10953 | $as_echo "no" >&6; } | |
d1f8db0c | 10954 | fi |
e8b05380 PB |
10955 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10956 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
10957 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10958 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
10959 | fi |
10960 | fi | |
3e19841a | 10961 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10962 | # Extract the first word of "as", so it can be a program name with args. |
10963 | set dummy as; ac_word=$2 | |
5213506e RW |
10964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10965 | $as_echo_n "checking for $ac_word... " >&6; } | |
10966 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10967 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10968 | else |
1c710c3c DJ |
10969 | case $AS_FOR_TARGET in |
10970 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10971 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10972 | ;; | |
e8b05380 | 10973 | *) |
1c710c3c DJ |
10974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10975 | for as_dir in $gcc_cv_tool_dirs | |
10976 | do | |
10977 | IFS=$as_save_IFS | |
10978 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10979 | for ac_exec_ext in '' $ac_executable_extensions; do |
10980 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10981 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10982 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10983 | break 2 |
10984 | fi | |
10985 | done | |
5213506e RW |
10986 | done |
10987 | IFS=$as_save_IFS | |
1c710c3c | 10988 | |
e8b05380 PB |
10989 | ;; |
10990 | esac | |
10991 | fi | |
1c710c3c | 10992 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 10993 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10995 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 10996 | else |
5213506e RW |
10997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10998 | $as_echo "no" >&6; } | |
e8b05380 PB |
10999 | fi |
11000 | ||
5213506e | 11001 | |
e8b05380 PB |
11002 | fi |
11003 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
11004 | |
11005 | ||
11006 | if test -n "$AS_FOR_TARGET"; then | |
11007 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11008 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11009 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11010 | fi | |
11011 | ||
11012 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11013 | for ncn_progname in as; do | |
11014 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11015 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11017 | $as_echo_n "checking for $ac_word... " >&6; } | |
11018 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11019 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11020 | else |
11021 | if test -n "$AS_FOR_TARGET"; then | |
11022 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11023 | else | |
11024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11025 | for as_dir in $PATH | |
11026 | do | |
11027 | IFS=$as_save_IFS | |
11028 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11029 | for ac_exec_ext in '' $ac_executable_extensions; do |
11030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11031 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11033 | break 2 |
11034 | fi | |
11035 | done | |
5213506e RW |
11036 | done |
11037 | IFS=$as_save_IFS | |
278a7a38 AO |
11038 | |
11039 | fi | |
11040 | fi | |
11041 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11042 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11044 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 11045 | else |
5213506e RW |
11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11047 | $as_echo "no" >&6; } | |
278a7a38 AO |
11048 | fi |
11049 | ||
5213506e | 11050 | |
278a7a38 AO |
11051 | done |
11052 | fi | |
11053 | ||
11054 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11055 | for ncn_progname in as; do |
5213506e RW |
11056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11057 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11058 | if test -x $with_build_time_tools/${ncn_progname}; then |
11059 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11061 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11062 | break |
11063 | else | |
5213506e RW |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11065 | $as_echo "no" >&6; } | |
e8b05380 PB |
11066 | fi |
11067 | done | |
11068 | fi | |
11069 | ||
11070 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11071 | for ncn_progname in as; do | |
11072 | if test -n "$ncn_target_tool_prefix"; then | |
11073 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11074 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11076 | $as_echo_n "checking for $ac_word... " >&6; } | |
11077 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11078 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
11079 | else |
11080 | if test -n "$AS_FOR_TARGET"; then | |
11081 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11082 | else | |
1c710c3c DJ |
11083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11084 | for as_dir in $PATH | |
11085 | do | |
11086 | IFS=$as_save_IFS | |
11087 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11088 | for ac_exec_ext in '' $ac_executable_extensions; do |
11089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11090 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11092 | break 2 |
11093 | fi | |
11094 | done | |
5213506e RW |
11095 | done |
11096 | IFS=$as_save_IFS | |
1c710c3c | 11097 | |
e8b05380 PB |
11098 | fi |
11099 | fi | |
1c710c3c | 11100 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11101 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11103 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 11104 | else |
5213506e RW |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11106 | $as_echo "no" >&6; } | |
e8b05380 PB |
11107 | fi |
11108 | ||
5213506e | 11109 | |
e8b05380 PB |
11110 | fi |
11111 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11112 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11113 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11115 | $as_echo_n "checking for $ac_word... " >&6; } | |
11116 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11117 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11118 | else |
e8b05380 PB |
11119 | if test -n "$AS_FOR_TARGET"; then |
11120 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11121 | else |
1c710c3c DJ |
11122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11123 | for as_dir in $PATH | |
11124 | do | |
11125 | IFS=$as_save_IFS | |
11126 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11127 | for ac_exec_ext in '' $ac_executable_extensions; do |
11128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11129 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11131 | break 2 |
11132 | fi | |
11133 | done | |
5213506e RW |
11134 | done |
11135 | IFS=$as_save_IFS | |
1c710c3c | 11136 | |
4de997d1 PB |
11137 | fi |
11138 | fi | |
1c710c3c | 11139 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11140 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11142 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11143 | else |
5213506e RW |
11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11145 | $as_echo "no" >&6; } | |
4de997d1 | 11146 | fi |
1c710c3c | 11147 | |
5213506e | 11148 | |
e8b05380 PB |
11149 | fi |
11150 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11151 | done | |
11152 | fi | |
1c710c3c | 11153 | |
e8b05380 PB |
11154 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11155 | set dummy as | |
11156 | if test $build = $target ; then | |
11157 | AS_FOR_TARGET="$2" | |
11158 | else | |
11159 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11160 | fi |
1c00b503 PB |
11161 | else |
11162 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11163 | fi |
2693c0b0 | 11164 | |
d1f8db0c PB |
11165 | else |
11166 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11167 | fi |
11168 | ||
e8b05380 PB |
11169 | |
11170 | ||
11171 | ||
11172 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11173 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11175 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11176 | if test -x $with_build_time_tools/dlltool; then |
11177 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11178 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11180 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11181 | else |
5213506e RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11183 | $as_echo "no" >&6; } | |
d1f8db0c | 11184 | fi |
e8b05380 PB |
11185 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11186 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11187 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11188 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11189 | fi |
11190 | fi | |
3e19841a | 11191 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11192 | # Extract the first word of "dlltool", so it can be a program name with args. |
11193 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11195 | $as_echo_n "checking for $ac_word... " >&6; } | |
11196 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11197 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11198 | else |
1c710c3c DJ |
11199 | case $DLLTOOL_FOR_TARGET in |
11200 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11201 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11202 | ;; | |
e8b05380 | 11203 | *) |
1c710c3c DJ |
11204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11205 | for as_dir in $gcc_cv_tool_dirs | |
11206 | do | |
11207 | IFS=$as_save_IFS | |
11208 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11209 | for ac_exec_ext in '' $ac_executable_extensions; do |
11210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11211 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11212 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11213 | break 2 |
11214 | fi | |
11215 | done | |
5213506e RW |
11216 | done |
11217 | IFS=$as_save_IFS | |
1c710c3c | 11218 | |
e8b05380 PB |
11219 | ;; |
11220 | esac | |
4de997d1 | 11221 | fi |
1c710c3c | 11222 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11223 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11225 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11226 | else |
5213506e RW |
11227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11228 | $as_echo "no" >&6; } | |
4de997d1 PB |
11229 | fi |
11230 | ||
5213506e | 11231 | |
e8b05380 PB |
11232 | fi |
11233 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11234 | |
11235 | ||
11236 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11237 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11238 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11239 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11240 | fi | |
11241 | ||
11242 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11243 | for ncn_progname in dlltool; do | |
11244 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11245 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11247 | $as_echo_n "checking for $ac_word... " >&6; } | |
11248 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11249 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11250 | else |
11251 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11252 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11253 | else | |
11254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11255 | for as_dir in $PATH | |
11256 | do | |
11257 | IFS=$as_save_IFS | |
11258 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11259 | for ac_exec_ext in '' $ac_executable_extensions; do |
11260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11261 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11263 | break 2 |
11264 | fi | |
11265 | done | |
5213506e RW |
11266 | done |
11267 | IFS=$as_save_IFS | |
278a7a38 AO |
11268 | |
11269 | fi | |
11270 | fi | |
11271 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11272 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11274 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11275 | else |
5213506e RW |
11276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11277 | $as_echo "no" >&6; } | |
278a7a38 AO |
11278 | fi |
11279 | ||
5213506e | 11280 | |
278a7a38 AO |
11281 | done |
11282 | fi | |
11283 | ||
11284 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11285 | for ncn_progname in dlltool; do |
5213506e RW |
11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11287 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11288 | if test -x $with_build_time_tools/${ncn_progname}; then |
11289 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11291 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11292 | break |
11293 | else | |
5213506e RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11295 | $as_echo "no" >&6; } | |
e8b05380 PB |
11296 | fi |
11297 | done | |
11298 | fi | |
11299 | ||
11300 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11301 | for ncn_progname in dlltool; do | |
11302 | if test -n "$ncn_target_tool_prefix"; then | |
11303 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11304 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11306 | $as_echo_n "checking for $ac_word... " >&6; } | |
11307 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11308 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11309 | else |
e8b05380 PB |
11310 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11311 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11312 | else |
1c710c3c DJ |
11313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11314 | for as_dir in $PATH | |
11315 | do | |
11316 | IFS=$as_save_IFS | |
11317 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11318 | for ac_exec_ext in '' $ac_executable_extensions; do |
11319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11320 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11322 | break 2 |
11323 | fi | |
11324 | done | |
5213506e RW |
11325 | done |
11326 | IFS=$as_save_IFS | |
1c710c3c | 11327 | |
4de997d1 PB |
11328 | fi |
11329 | fi | |
1c710c3c | 11330 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11331 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11333 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11334 | else |
5213506e RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11336 | $as_echo "no" >&6; } | |
4de997d1 | 11337 | fi |
4de997d1 | 11338 | |
5213506e | 11339 | |
e8b05380 PB |
11340 | fi |
11341 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11342 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11343 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11345 | $as_echo_n "checking for $ac_word... " >&6; } | |
11346 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11347 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11348 | else |
e8b05380 PB |
11349 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11350 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11351 | else |
1c710c3c DJ |
11352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11353 | for as_dir in $PATH | |
11354 | do | |
11355 | IFS=$as_save_IFS | |
11356 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11357 | for ac_exec_ext in '' $ac_executable_extensions; do |
11358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11359 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11361 | break 2 |
11362 | fi | |
11363 | done | |
5213506e RW |
11364 | done |
11365 | IFS=$as_save_IFS | |
1c710c3c | 11366 | |
4de997d1 PB |
11367 | fi |
11368 | fi | |
1c710c3c | 11369 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11370 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11372 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11373 | else |
5213506e RW |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11375 | $as_echo "no" >&6; } | |
4de997d1 | 11376 | fi |
1c710c3c | 11377 | |
5213506e | 11378 | |
e8b05380 PB |
11379 | fi |
11380 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11381 | done | |
11382 | fi | |
1c710c3c | 11383 | |
e8b05380 PB |
11384 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11385 | set dummy dlltool | |
11386 | if test $build = $target ; then | |
11387 | DLLTOOL_FOR_TARGET="$2" | |
11388 | else | |
11389 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11390 | fi | |
1c00b503 PB |
11391 | else |
11392 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11393 | fi |
11394 | ||
d1f8db0c PB |
11395 | else |
11396 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11397 | fi |
11398 | ||
4de997d1 | 11399 | |
e8b05380 PB |
11400 | |
11401 | ||
11402 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11403 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11405 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11406 | if test -x $with_build_time_tools/ld; then |
11407 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11408 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11410 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11411 | else |
5213506e RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11413 | $as_echo "no" >&6; } | |
d1f8db0c | 11414 | fi |
e8b05380 PB |
11415 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11416 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11417 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11418 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11419 | fi |
e8b05380 | 11420 | fi |
3e19841a | 11421 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11422 | # Extract the first word of "ld", so it can be a program name with args. |
11423 | set dummy ld; ac_word=$2 | |
5213506e RW |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11425 | $as_echo_n "checking for $ac_word... " >&6; } | |
11426 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11427 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11428 | else |
1c710c3c DJ |
11429 | case $LD_FOR_TARGET in |
11430 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11431 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11432 | ;; | |
e8b05380 | 11433 | *) |
1c710c3c DJ |
11434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11435 | for as_dir in $gcc_cv_tool_dirs | |
11436 | do | |
11437 | IFS=$as_save_IFS | |
11438 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11439 | for ac_exec_ext in '' $ac_executable_extensions; do |
11440 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11441 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11443 | break 2 |
11444 | fi | |
11445 | done | |
5213506e RW |
11446 | done |
11447 | IFS=$as_save_IFS | |
1c710c3c | 11448 | |
e8b05380 PB |
11449 | ;; |
11450 | esac | |
4de997d1 | 11451 | fi |
1c710c3c | 11452 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11453 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11455 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11456 | else |
5213506e RW |
11457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11458 | $as_echo "no" >&6; } | |
4de997d1 | 11459 | fi |
2693c0b0 | 11460 | |
5213506e | 11461 | |
e8b05380 PB |
11462 | fi |
11463 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11464 | |
11465 | ||
11466 | if test -n "$LD_FOR_TARGET"; then | |
11467 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11468 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11469 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11470 | fi | |
11471 | ||
11472 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11473 | for ncn_progname in ld; do | |
11474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11475 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11477 | $as_echo_n "checking for $ac_word... " >&6; } | |
11478 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11479 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11480 | else |
11481 | if test -n "$LD_FOR_TARGET"; then | |
11482 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11483 | else | |
11484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11485 | for as_dir in $PATH | |
11486 | do | |
11487 | IFS=$as_save_IFS | |
11488 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11489 | for ac_exec_ext in '' $ac_executable_extensions; do |
11490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11491 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11493 | break 2 |
11494 | fi | |
11495 | done | |
5213506e RW |
11496 | done |
11497 | IFS=$as_save_IFS | |
278a7a38 AO |
11498 | |
11499 | fi | |
11500 | fi | |
11501 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11502 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11504 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11505 | else |
5213506e RW |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11507 | $as_echo "no" >&6; } | |
278a7a38 AO |
11508 | fi |
11509 | ||
5213506e | 11510 | |
278a7a38 AO |
11511 | done |
11512 | fi | |
11513 | ||
11514 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11515 | for ncn_progname in ld; do |
5213506e RW |
11516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11517 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11518 | if test -x $with_build_time_tools/${ncn_progname}; then |
11519 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11521 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11522 | break |
11523 | else | |
5213506e RW |
11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11525 | $as_echo "no" >&6; } | |
e8b05380 PB |
11526 | fi |
11527 | done | |
ca9f4b81 AO |
11528 | fi |
11529 | ||
e8b05380 PB |
11530 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11531 | for ncn_progname in ld; do | |
11532 | if test -n "$ncn_target_tool_prefix"; then | |
11533 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11534 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11536 | $as_echo_n "checking for $ac_word... " >&6; } | |
11537 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11538 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11539 | else |
4de997d1 PB |
11540 | if test -n "$LD_FOR_TARGET"; then |
11541 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11542 | else |
1c710c3c DJ |
11543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11544 | for as_dir in $PATH | |
11545 | do | |
11546 | IFS=$as_save_IFS | |
11547 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11548 | for ac_exec_ext in '' $ac_executable_extensions; do |
11549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11550 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11552 | break 2 |
11553 | fi | |
11554 | done | |
5213506e RW |
11555 | done |
11556 | IFS=$as_save_IFS | |
1c710c3c | 11557 | |
ca9f4b81 AO |
11558 | fi |
11559 | fi | |
1c710c3c | 11560 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11561 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11563 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11564 | else |
5213506e RW |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11566 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11567 | fi |
11568 | ||
5213506e | 11569 | |
e8b05380 PB |
11570 | fi |
11571 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11572 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11573 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11575 | $as_echo_n "checking for $ac_word... " >&6; } | |
11576 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11577 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11578 | else |
2693c0b0 PB |
11579 | if test -n "$LD_FOR_TARGET"; then |
11580 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11581 | else |
1c710c3c DJ |
11582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11583 | for as_dir in $PATH | |
11584 | do | |
11585 | IFS=$as_save_IFS | |
11586 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11587 | for ac_exec_ext in '' $ac_executable_extensions; do |
11588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11589 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11591 | break 2 |
11592 | fi | |
11593 | done | |
5213506e RW |
11594 | done |
11595 | IFS=$as_save_IFS | |
1c710c3c | 11596 | |
ca9f4b81 AO |
11597 | fi |
11598 | fi | |
1c710c3c | 11599 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11600 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11602 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11603 | else |
5213506e RW |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11605 | $as_echo "no" >&6; } | |
ca9f4b81 | 11606 | fi |
1c710c3c | 11607 | |
5213506e | 11608 | |
e8b05380 PB |
11609 | fi |
11610 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11611 | done | |
11612 | fi | |
1c710c3c | 11613 | |
2693c0b0 PB |
11614 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11615 | set dummy ld | |
11616 | if test $build = $target ; then | |
11617 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11618 | else |
2693c0b0 | 11619 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11620 | fi |
1c00b503 PB |
11621 | else |
11622 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11623 | fi |
11624 | ||
d1f8db0c PB |
11625 | else |
11626 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11627 | fi |
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11633 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11635 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11636 | if test -x $with_build_time_tools/lipo; then |
11637 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11638 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11640 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11641 | else |
5213506e RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11643 | $as_echo "no" >&6; } | |
d1f8db0c | 11644 | fi |
e8b05380 PB |
11645 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11646 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11647 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11648 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11649 | fi |
11650 | fi | |
278a7a38 AO |
11651 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11652 | # Extract the first word of "lipo", so it can be a program name with args. | |
11653 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11655 | $as_echo_n "checking for $ac_word... " >&6; } | |
11656 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11657 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11658 | else |
11659 | case $LIPO_FOR_TARGET in | |
11660 | [\\/]* | ?:[\\/]*) | |
11661 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11662 | ;; | |
11663 | *) | |
11664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11665 | for as_dir in $gcc_cv_tool_dirs | |
11666 | do | |
11667 | IFS=$as_save_IFS | |
11668 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11669 | for ac_exec_ext in '' $ac_executable_extensions; do |
11670 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11671 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11672 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11673 | break 2 |
11674 | fi | |
11675 | done | |
5213506e RW |
11676 | done |
11677 | IFS=$as_save_IFS | |
278a7a38 AO |
11678 | |
11679 | ;; | |
11680 | esac | |
11681 | fi | |
11682 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11683 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11685 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11686 | else |
5213506e RW |
11687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11688 | $as_echo "no" >&6; } | |
278a7a38 AO |
11689 | fi |
11690 | ||
5213506e | 11691 | |
278a7a38 AO |
11692 | fi |
11693 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11694 | ||
11695 | ||
11696 | if test -n "$LIPO_FOR_TARGET"; then | |
11697 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11698 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11699 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11700 | fi | |
11701 | ||
11702 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11703 | for ncn_progname in lipo; do | |
11704 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11705 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11707 | $as_echo_n "checking for $ac_word... " >&6; } | |
11708 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11709 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11710 | else |
278a7a38 AO |
11711 | if test -n "$LIPO_FOR_TARGET"; then |
11712 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11713 | else | |
11714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11715 | for as_dir in $PATH | |
1c710c3c DJ |
11716 | do |
11717 | IFS=$as_save_IFS | |
11718 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11719 | for ac_exec_ext in '' $ac_executable_extensions; do |
11720 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11721 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11722 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11723 | break 2 |
11724 | fi | |
11725 | done | |
5213506e RW |
11726 | done |
11727 | IFS=$as_save_IFS | |
1c710c3c | 11728 | |
e8b05380 | 11729 | fi |
278a7a38 AO |
11730 | fi |
11731 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 11732 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11734 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 11735 | else |
5213506e RW |
11736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11737 | $as_echo "no" >&6; } | |
e8b05380 PB |
11738 | fi |
11739 | ||
5213506e | 11740 | |
278a7a38 | 11741 | done |
e8b05380 | 11742 | fi |
278a7a38 AO |
11743 | |
11744 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11745 | for ncn_progname in lipo; do |
5213506e RW |
11746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11747 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11748 | if test -x $with_build_time_tools/${ncn_progname}; then |
11749 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11751 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11752 | break |
11753 | else | |
5213506e RW |
11754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11755 | $as_echo "no" >&6; } | |
e8b05380 PB |
11756 | fi |
11757 | done | |
11758 | fi | |
11759 | ||
11760 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11761 | for ncn_progname in lipo; do | |
11762 | if test -n "$ncn_target_tool_prefix"; then | |
11763 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11764 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11766 | $as_echo_n "checking for $ac_word... " >&6; } | |
11767 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11768 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11769 | else |
11770 | if test -n "$LIPO_FOR_TARGET"; then | |
11771 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11772 | else | |
1c710c3c DJ |
11773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11774 | for as_dir in $PATH | |
11775 | do | |
11776 | IFS=$as_save_IFS | |
11777 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11778 | for ac_exec_ext in '' $ac_executable_extensions; do |
11779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11780 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11782 | break 2 |
11783 | fi | |
11784 | done | |
5213506e RW |
11785 | done |
11786 | IFS=$as_save_IFS | |
1c710c3c | 11787 | |
040b1c5a GK |
11788 | fi |
11789 | fi | |
1c710c3c | 11790 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11791 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11793 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11794 | else |
5213506e RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11796 | $as_echo "no" >&6; } | |
040b1c5a GK |
11797 | fi |
11798 | ||
5213506e | 11799 | |
e8b05380 PB |
11800 | fi |
11801 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11802 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11803 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11805 | $as_echo_n "checking for $ac_word... " >&6; } | |
11806 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11807 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11808 | else |
11809 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
11810 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11811 | else | |
1c710c3c DJ |
11812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11813 | for as_dir in $PATH | |
11814 | do | |
11815 | IFS=$as_save_IFS | |
11816 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11817 | for ac_exec_ext in '' $ac_executable_extensions; do |
11818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11819 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11821 | break 2 |
11822 | fi | |
11823 | done | |
5213506e RW |
11824 | done |
11825 | IFS=$as_save_IFS | |
1c710c3c | 11826 | |
040b1c5a GK |
11827 | fi |
11828 | fi | |
1c710c3c | 11829 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11830 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11832 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11833 | else |
5213506e RW |
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11835 | $as_echo "no" >&6; } | |
040b1c5a | 11836 | fi |
1c710c3c | 11837 | |
5213506e | 11838 | |
e8b05380 PB |
11839 | fi |
11840 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11841 | done | |
11842 | fi | |
1c710c3c | 11843 | |
040b1c5a GK |
11844 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11845 | set dummy lipo | |
11846 | if test $build = $target ; then | |
11847 | LIPO_FOR_TARGET="$2" | |
11848 | else | |
11849 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11850 | fi | |
1c00b503 PB |
11851 | else |
11852 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
11853 | fi |
11854 | ||
d1f8db0c PB |
11855 | else |
11856 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
11857 | fi |
11858 | ||
11859 | ||
11860 | ||
11861 | ||
11862 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11863 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11865 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11866 | if test -x $with_build_time_tools/nm; then |
11867 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11868 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11870 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 11871 | else |
5213506e RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11873 | $as_echo "no" >&6; } | |
d1f8db0c | 11874 | fi |
e8b05380 PB |
11875 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11876 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
11877 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11878 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
11879 | fi |
11880 | fi | |
3e19841a | 11881 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11882 | # Extract the first word of "nm", so it can be a program name with args. |
11883 | set dummy nm; ac_word=$2 | |
5213506e RW |
11884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11885 | $as_echo_n "checking for $ac_word... " >&6; } | |
11886 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11887 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11888 | else |
1c710c3c DJ |
11889 | case $NM_FOR_TARGET in |
11890 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11891 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11892 | ;; | |
e8b05380 | 11893 | *) |
1c710c3c DJ |
11894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11895 | for as_dir in $gcc_cv_tool_dirs | |
11896 | do | |
11897 | IFS=$as_save_IFS | |
11898 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11899 | for ac_exec_ext in '' $ac_executable_extensions; do |
11900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11901 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11902 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11903 | break 2 |
11904 | fi | |
11905 | done | |
5213506e RW |
11906 | done |
11907 | IFS=$as_save_IFS | |
1c710c3c | 11908 | |
e8b05380 PB |
11909 | ;; |
11910 | esac | |
11911 | fi | |
1c710c3c | 11912 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 11913 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11915 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 11916 | else |
5213506e RW |
11917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11918 | $as_echo "no" >&6; } | |
e8b05380 PB |
11919 | fi |
11920 | ||
5213506e | 11921 | |
e8b05380 PB |
11922 | fi |
11923 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
11924 | |
11925 | ||
11926 | if test -n "$NM_FOR_TARGET"; then | |
11927 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11928 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11929 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11930 | fi | |
11931 | ||
11932 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11933 | for ncn_progname in nm; do | |
11934 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11935 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11937 | $as_echo_n "checking for $ac_word... " >&6; } | |
11938 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11939 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11940 | else |
11941 | if test -n "$NM_FOR_TARGET"; then | |
11942 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11943 | else | |
11944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11945 | for as_dir in $PATH | |
11946 | do | |
11947 | IFS=$as_save_IFS | |
11948 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11949 | for ac_exec_ext in '' $ac_executable_extensions; do |
11950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11951 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 11952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11953 | break 2 |
11954 | fi | |
11955 | done | |
5213506e RW |
11956 | done |
11957 | IFS=$as_save_IFS | |
278a7a38 AO |
11958 | |
11959 | fi | |
11960 | fi | |
11961 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11962 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11964 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 11965 | else |
5213506e RW |
11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11967 | $as_echo "no" >&6; } | |
278a7a38 AO |
11968 | fi |
11969 | ||
5213506e | 11970 | |
278a7a38 AO |
11971 | done |
11972 | fi | |
11973 | ||
11974 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11975 | for ncn_progname in nm; do |
5213506e RW |
11976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11977 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11978 | if test -x $with_build_time_tools/${ncn_progname}; then |
11979 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11981 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11982 | break |
11983 | else | |
5213506e RW |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11985 | $as_echo "no" >&6; } | |
e8b05380 PB |
11986 | fi |
11987 | done | |
11988 | fi | |
11989 | ||
11990 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11991 | for ncn_progname in nm; do | |
11992 | if test -n "$ncn_target_tool_prefix"; then | |
11993 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11994 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11996 | $as_echo_n "checking for $ac_word... " >&6; } | |
11997 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11998 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11999 | else |
4de997d1 PB |
12000 | if test -n "$NM_FOR_TARGET"; then |
12001 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12002 | else |
1c710c3c DJ |
12003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12004 | for as_dir in $PATH | |
12005 | do | |
12006 | IFS=$as_save_IFS | |
12007 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12008 | for ac_exec_ext in '' $ac_executable_extensions; do |
12009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12010 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12012 | break 2 |
12013 | fi | |
12014 | done | |
5213506e RW |
12015 | done |
12016 | IFS=$as_save_IFS | |
1c710c3c | 12017 | |
ca9f4b81 AO |
12018 | fi |
12019 | fi | |
1c710c3c | 12020 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 12021 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12023 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12024 | else |
5213506e RW |
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12026 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12027 | fi |
12028 | ||
5213506e | 12029 | |
e8b05380 PB |
12030 | fi |
12031 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12032 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12033 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12035 | $as_echo_n "checking for $ac_word... " >&6; } | |
12036 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12037 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12038 | else |
2693c0b0 PB |
12039 | if test -n "$NM_FOR_TARGET"; then |
12040 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12041 | else |
1c710c3c DJ |
12042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12043 | for as_dir in $PATH | |
12044 | do | |
12045 | IFS=$as_save_IFS | |
12046 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12047 | for ac_exec_ext in '' $ac_executable_extensions; do |
12048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12049 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 12050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12051 | break 2 |
12052 | fi | |
12053 | done | |
5213506e RW |
12054 | done |
12055 | IFS=$as_save_IFS | |
1c710c3c | 12056 | |
ca9f4b81 AO |
12057 | fi |
12058 | fi | |
1c710c3c | 12059 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 12060 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12062 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 12063 | else |
5213506e RW |
12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12065 | $as_echo "no" >&6; } | |
ca9f4b81 | 12066 | fi |
1c710c3c | 12067 | |
5213506e | 12068 | |
e8b05380 PB |
12069 | fi |
12070 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12071 | done | |
12072 | fi | |
1c710c3c | 12073 | |
2693c0b0 PB |
12074 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12075 | set dummy nm | |
12076 | if test $build = $target ; then | |
12077 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 12078 | else |
2693c0b0 | 12079 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12080 | fi |
1c00b503 PB |
12081 | else |
12082 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
12083 | fi |
12084 | ||
d1f8db0c PB |
12085 | else |
12086 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
12087 | fi |
12088 | ||
12089 | ||
12090 | ||
12091 | ||
9bccfdf5 AP |
12092 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12093 | if test -n "$with_build_time_tools"; then | |
12094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12095 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12096 | if test -x $with_build_time_tools/objcopy; then | |
12097 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12098 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12100 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12101 | else | |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12103 | $as_echo "no" >&6; } | |
12104 | fi | |
12105 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12106 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12107 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12108 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12109 | fi | |
12110 | fi | |
12111 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12112 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12113 | set dummy objcopy; ac_word=$2 | |
12114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12115 | $as_echo_n "checking for $ac_word... " >&6; } | |
12116 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12117 | $as_echo_n "(cached) " >&6 | |
12118 | else | |
12119 | case $OBJCOPY_FOR_TARGET in | |
12120 | [\\/]* | ?:[\\/]*) | |
12121 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12122 | ;; | |
12123 | *) | |
12124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12125 | for as_dir in $gcc_cv_tool_dirs | |
12126 | do | |
12127 | IFS=$as_save_IFS | |
12128 | test -z "$as_dir" && as_dir=. | |
12129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12131 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12133 | break 2 | |
12134 | fi | |
12135 | done | |
12136 | done | |
12137 | IFS=$as_save_IFS | |
12138 | ||
12139 | ;; | |
12140 | esac | |
12141 | fi | |
12142 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12143 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12145 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12146 | else | |
12147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12148 | $as_echo "no" >&6; } | |
12149 | fi | |
12150 | ||
12151 | ||
12152 | fi | |
12153 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12154 | ||
12155 | ||
12156 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12157 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12158 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12159 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12160 | fi | |
12161 | ||
12162 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12163 | for ncn_progname in objcopy; do | |
12164 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12165 | set dummy ${ncn_progname}; ac_word=$2 | |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12167 | $as_echo_n "checking for $ac_word... " >&6; } | |
12168 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12169 | $as_echo_n "(cached) " >&6 | |
12170 | else | |
12171 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12172 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12173 | else | |
12174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12175 | for as_dir in $PATH | |
12176 | do | |
12177 | IFS=$as_save_IFS | |
12178 | test -z "$as_dir" && as_dir=. | |
12179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12180 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12181 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12182 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12183 | break 2 | |
12184 | fi | |
12185 | done | |
12186 | done | |
12187 | IFS=$as_save_IFS | |
12188 | ||
12189 | fi | |
12190 | fi | |
12191 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12192 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12194 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12195 | else | |
12196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12197 | $as_echo "no" >&6; } | |
12198 | fi | |
12199 | ||
12200 | ||
12201 | done | |
12202 | fi | |
12203 | ||
12204 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12205 | for ncn_progname in objcopy; do | |
12206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12207 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12208 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12209 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12211 | $as_echo "yes" >&6; } | |
12212 | break | |
12213 | else | |
12214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12215 | $as_echo "no" >&6; } | |
12216 | fi | |
12217 | done | |
12218 | fi | |
12219 | ||
12220 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12221 | for ncn_progname in objcopy; do | |
12222 | if test -n "$ncn_target_tool_prefix"; then | |
12223 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12224 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12226 | $as_echo_n "checking for $ac_word... " >&6; } | |
12227 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12228 | $as_echo_n "(cached) " >&6 | |
12229 | else | |
12230 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12231 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12232 | else | |
12233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12234 | for as_dir in $PATH | |
12235 | do | |
12236 | IFS=$as_save_IFS | |
12237 | test -z "$as_dir" && as_dir=. | |
12238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12240 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12242 | break 2 | |
12243 | fi | |
12244 | done | |
12245 | done | |
12246 | IFS=$as_save_IFS | |
12247 | ||
12248 | fi | |
12249 | fi | |
12250 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12251 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12253 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12254 | else | |
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12256 | $as_echo "no" >&6; } | |
12257 | fi | |
12258 | ||
12259 | ||
12260 | fi | |
12261 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12262 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12263 | set dummy ${ncn_progname}; ac_word=$2 | |
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12265 | $as_echo_n "checking for $ac_word... " >&6; } | |
12266 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12267 | $as_echo_n "(cached) " >&6 | |
12268 | else | |
12269 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12270 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12271 | else | |
12272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12273 | for as_dir in $PATH | |
12274 | do | |
12275 | IFS=$as_save_IFS | |
12276 | test -z "$as_dir" && as_dir=. | |
12277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12279 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12281 | break 2 | |
12282 | fi | |
12283 | done | |
12284 | done | |
12285 | IFS=$as_save_IFS | |
12286 | ||
12287 | fi | |
12288 | fi | |
12289 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12290 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12292 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12293 | else | |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12295 | $as_echo "no" >&6; } | |
12296 | fi | |
12297 | ||
12298 | ||
12299 | fi | |
12300 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12301 | done | |
12302 | fi | |
12303 | ||
12304 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12305 | set dummy objcopy | |
12306 | if test $build = $target ; then | |
12307 | OBJCOPY_FOR_TARGET="$2" | |
12308 | else | |
12309 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12310 | fi | |
12311 | else | |
12312 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12313 | fi | |
12314 | ||
12315 | else | |
12316 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12317 | fi | |
12318 | ||
12319 | ||
12320 | ||
12321 | ||
e8b05380 PB |
12322 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12323 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12325 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12326 | if test -x $with_build_time_tools/objdump; then |
12327 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12328 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12330 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 12331 | else |
5213506e RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12333 | $as_echo "no" >&6; } | |
d1f8db0c | 12334 | fi |
e8b05380 PB |
12335 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12336 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
12337 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12338 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12339 | fi |
12340 | fi | |
3e19841a | 12341 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12342 | # Extract the first word of "objdump", so it can be a program name with args. |
12343 | set dummy objdump; ac_word=$2 | |
5213506e RW |
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12345 | $as_echo_n "checking for $ac_word... " >&6; } | |
12346 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12347 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12348 | else |
1c710c3c DJ |
12349 | case $OBJDUMP_FOR_TARGET in |
12350 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12351 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12352 | ;; | |
e8b05380 | 12353 | *) |
1c710c3c DJ |
12354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12355 | for as_dir in $gcc_cv_tool_dirs | |
12356 | do | |
12357 | IFS=$as_save_IFS | |
12358 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12359 | for ac_exec_ext in '' $ac_executable_extensions; do |
12360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12361 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12363 | break 2 |
12364 | fi | |
12365 | done | |
5213506e RW |
12366 | done |
12367 | IFS=$as_save_IFS | |
1c710c3c | 12368 | |
e8b05380 PB |
12369 | ;; |
12370 | esac | |
12371 | fi | |
1c710c3c | 12372 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12373 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12375 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12376 | else |
5213506e RW |
12377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12378 | $as_echo "no" >&6; } | |
e8b05380 PB |
12379 | fi |
12380 | ||
5213506e | 12381 | |
e8b05380 PB |
12382 | fi |
12383 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12384 | |
12385 | ||
12386 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12387 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12388 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12389 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12390 | fi | |
12391 | ||
12392 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12393 | for ncn_progname in objdump; do | |
12394 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12395 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12397 | $as_echo_n "checking for $ac_word... " >&6; } | |
12398 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12399 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12400 | else |
12401 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12402 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12403 | else | |
12404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12405 | for as_dir in $PATH | |
12406 | do | |
12407 | IFS=$as_save_IFS | |
12408 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12409 | for ac_exec_ext in '' $ac_executable_extensions; do |
12410 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12411 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12412 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12413 | break 2 |
12414 | fi | |
12415 | done | |
5213506e RW |
12416 | done |
12417 | IFS=$as_save_IFS | |
278a7a38 AO |
12418 | |
12419 | fi | |
12420 | fi | |
12421 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12422 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12424 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12425 | else |
5213506e RW |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12427 | $as_echo "no" >&6; } | |
278a7a38 AO |
12428 | fi |
12429 | ||
5213506e | 12430 | |
278a7a38 AO |
12431 | done |
12432 | fi | |
12433 | ||
12434 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12435 | for ncn_progname in objdump; do |
5213506e RW |
12436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12437 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12438 | if test -x $with_build_time_tools/${ncn_progname}; then |
12439 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12441 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12442 | break |
12443 | else | |
5213506e RW |
12444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12445 | $as_echo "no" >&6; } | |
e8b05380 PB |
12446 | fi |
12447 | done | |
12448 | fi | |
12449 | ||
12450 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12451 | for ncn_progname in objdump; do | |
12452 | if test -n "$ncn_target_tool_prefix"; then | |
12453 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12454 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12456 | $as_echo_n "checking for $ac_word... " >&6; } | |
12457 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12458 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12459 | else |
12460 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12461 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12462 | else | |
1c710c3c DJ |
12463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12464 | for as_dir in $PATH | |
12465 | do | |
12466 | IFS=$as_save_IFS | |
12467 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12468 | for ac_exec_ext in '' $ac_executable_extensions; do |
12469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12470 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12472 | break 2 |
12473 | fi | |
12474 | done | |
5213506e RW |
12475 | done |
12476 | IFS=$as_save_IFS | |
1c710c3c | 12477 | |
d739199a DJ |
12478 | fi |
12479 | fi | |
1c710c3c | 12480 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12481 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12483 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12484 | else |
5213506e RW |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12486 | $as_echo "no" >&6; } | |
d739199a DJ |
12487 | fi |
12488 | ||
5213506e | 12489 | |
e8b05380 PB |
12490 | fi |
12491 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12492 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12493 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12495 | $as_echo_n "checking for $ac_word... " >&6; } | |
12496 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12497 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12498 | else |
12499 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12500 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12501 | else | |
1c710c3c DJ |
12502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12503 | for as_dir in $PATH | |
12504 | do | |
12505 | IFS=$as_save_IFS | |
12506 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12507 | for ac_exec_ext in '' $ac_executable_extensions; do |
12508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12509 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12511 | break 2 |
12512 | fi | |
12513 | done | |
5213506e RW |
12514 | done |
12515 | IFS=$as_save_IFS | |
1c710c3c | 12516 | |
d739199a DJ |
12517 | fi |
12518 | fi | |
1c710c3c | 12519 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12520 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12522 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12523 | else |
5213506e RW |
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12525 | $as_echo "no" >&6; } | |
d739199a | 12526 | fi |
1c710c3c | 12527 | |
5213506e | 12528 | |
e8b05380 PB |
12529 | fi |
12530 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12531 | done | |
12532 | fi | |
1c710c3c | 12533 | |
d739199a DJ |
12534 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12535 | set dummy objdump | |
12536 | if test $build = $target ; then | |
12537 | OBJDUMP_FOR_TARGET="$2" | |
12538 | else | |
12539 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12540 | fi | |
1c00b503 PB |
12541 | else |
12542 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12543 | fi |
12544 | ||
d1f8db0c PB |
12545 | else |
12546 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12547 | fi |
12548 | ||
12549 | ||
12550 | ||
12551 | ||
12552 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12553 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12555 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12556 | if test -x $with_build_time_tools/ranlib; then |
12557 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12558 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12560 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12561 | else |
5213506e RW |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12563 | $as_echo "no" >&6; } | |
d1f8db0c | 12564 | fi |
e8b05380 PB |
12565 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12566 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12567 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12568 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12569 | fi |
12570 | fi | |
3e19841a | 12571 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12572 | # Extract the first word of "ranlib", so it can be a program name with args. |
12573 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12575 | $as_echo_n "checking for $ac_word... " >&6; } | |
12576 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12577 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12578 | else |
1c710c3c DJ |
12579 | case $RANLIB_FOR_TARGET in |
12580 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12581 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12582 | ;; | |
e8b05380 | 12583 | *) |
1c710c3c DJ |
12584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12585 | for as_dir in $gcc_cv_tool_dirs | |
12586 | do | |
12587 | IFS=$as_save_IFS | |
12588 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12589 | for ac_exec_ext in '' $ac_executable_extensions; do |
12590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12591 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12593 | break 2 |
12594 | fi | |
12595 | done | |
5213506e RW |
12596 | done |
12597 | IFS=$as_save_IFS | |
1c710c3c | 12598 | |
e8b05380 PB |
12599 | ;; |
12600 | esac | |
12601 | fi | |
1c710c3c | 12602 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12603 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12605 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12606 | else |
5213506e RW |
12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12608 | $as_echo "no" >&6; } | |
e8b05380 PB |
12609 | fi |
12610 | ||
5213506e | 12611 | |
e8b05380 PB |
12612 | fi |
12613 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12614 | |
12615 | ||
12616 | if test -n "$RANLIB_FOR_TARGET"; then | |
12617 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12618 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12619 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12620 | fi | |
12621 | ||
12622 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12623 | for ncn_progname in ranlib; do | |
12624 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12625 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12627 | $as_echo_n "checking for $ac_word... " >&6; } | |
12628 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12629 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12630 | else |
12631 | if test -n "$RANLIB_FOR_TARGET"; then | |
12632 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12633 | else | |
12634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12635 | for as_dir in $PATH | |
12636 | do | |
12637 | IFS=$as_save_IFS | |
12638 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12639 | for ac_exec_ext in '' $ac_executable_extensions; do |
12640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12641 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12643 | break 2 |
12644 | fi | |
12645 | done | |
5213506e RW |
12646 | done |
12647 | IFS=$as_save_IFS | |
278a7a38 AO |
12648 | |
12649 | fi | |
12650 | fi | |
12651 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12652 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
12653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12654 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 12655 | else |
5213506e RW |
12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12657 | $as_echo "no" >&6; } | |
278a7a38 AO |
12658 | fi |
12659 | ||
5213506e | 12660 | |
278a7a38 AO |
12661 | done |
12662 | fi | |
12663 | ||
12664 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12665 | for ncn_progname in ranlib; do |
5213506e RW |
12666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12667 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12668 | if test -x $with_build_time_tools/${ncn_progname}; then |
12669 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12671 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12672 | break |
12673 | else | |
5213506e RW |
12674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12675 | $as_echo "no" >&6; } | |
e8b05380 PB |
12676 | fi |
12677 | done | |
12678 | fi | |
12679 | ||
12680 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12681 | for ncn_progname in ranlib; do | |
12682 | if test -n "$ncn_target_tool_prefix"; then | |
12683 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12684 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12686 | $as_echo_n "checking for $ac_word... " >&6; } | |
12687 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12688 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12689 | else |
4de997d1 PB |
12690 | if test -n "$RANLIB_FOR_TARGET"; then |
12691 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12692 | else |
1c710c3c DJ |
12693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12694 | for as_dir in $PATH | |
12695 | do | |
12696 | IFS=$as_save_IFS | |
12697 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12698 | for ac_exec_ext in '' $ac_executable_extensions; do |
12699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12700 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12702 | break 2 |
12703 | fi | |
12704 | done | |
5213506e RW |
12705 | done |
12706 | IFS=$as_save_IFS | |
1c710c3c | 12707 | |
ca9f4b81 AO |
12708 | fi |
12709 | fi | |
1c710c3c | 12710 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12711 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12713 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12714 | else |
5213506e RW |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12716 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12717 | fi |
12718 | ||
5213506e | 12719 | |
e8b05380 PB |
12720 | fi |
12721 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12722 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12723 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12725 | $as_echo_n "checking for $ac_word... " >&6; } | |
12726 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12727 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12728 | else |
2693c0b0 PB |
12729 | if test -n "$RANLIB_FOR_TARGET"; then |
12730 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12731 | else |
1c710c3c DJ |
12732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12733 | for as_dir in $PATH | |
12734 | do | |
12735 | IFS=$as_save_IFS | |
12736 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12737 | for ac_exec_ext in '' $ac_executable_extensions; do |
12738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12739 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12741 | break 2 |
12742 | fi | |
12743 | done | |
5213506e RW |
12744 | done |
12745 | IFS=$as_save_IFS | |
1c710c3c | 12746 | |
ca9f4b81 AO |
12747 | fi |
12748 | fi | |
1c710c3c | 12749 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12750 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12752 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12753 | else |
5213506e RW |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12755 | $as_echo "no" >&6; } | |
ca9f4b81 | 12756 | fi |
1c710c3c | 12757 | |
5213506e | 12758 | |
e8b05380 PB |
12759 | fi |
12760 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12761 | done | |
12762 | fi | |
1c710c3c | 12763 | |
e8b05380 PB |
12764 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12765 | set dummy ranlib | |
12766 | if test $build = $target ; then | |
12767 | RANLIB_FOR_TARGET="$2" | |
12768 | else | |
12769 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12770 | fi |
1c00b503 PB |
12771 | else |
12772 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12773 | fi |
2693c0b0 | 12774 | |
d1f8db0c PB |
12775 | else |
12776 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12777 | fi |
12778 | ||
e8b05380 PB |
12779 | |
12780 | ||
12781 | ||
e7a82751 RM |
12782 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12783 | if test -n "$with_build_time_tools"; then | |
12784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12785 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12786 | if test -x $with_build_time_tools/readelf; then | |
12787 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12788 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12790 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12791 | else | |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12793 | $as_echo "no" >&6; } | |
12794 | fi | |
12795 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12796 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12797 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12798 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12799 | fi | |
12800 | fi | |
12801 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12802 | # Extract the first word of "readelf", so it can be a program name with args. | |
12803 | set dummy readelf; ac_word=$2 | |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12805 | $as_echo_n "checking for $ac_word... " >&6; } | |
12806 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12807 | $as_echo_n "(cached) " >&6 | |
12808 | else | |
12809 | case $READELF_FOR_TARGET in | |
12810 | [\\/]* | ?:[\\/]*) | |
12811 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12812 | ;; | |
12813 | *) | |
12814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12815 | for as_dir in $gcc_cv_tool_dirs | |
12816 | do | |
12817 | IFS=$as_save_IFS | |
12818 | test -z "$as_dir" && as_dir=. | |
12819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12821 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12823 | break 2 | |
12824 | fi | |
12825 | done | |
12826 | done | |
12827 | IFS=$as_save_IFS | |
12828 | ||
12829 | ;; | |
12830 | esac | |
12831 | fi | |
12832 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12833 | if test -n "$READELF_FOR_TARGET"; then | |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12835 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12836 | else | |
12837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12838 | $as_echo "no" >&6; } | |
12839 | fi | |
12840 | ||
12841 | ||
12842 | fi | |
12843 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12844 | ||
12845 | ||
12846 | if test -n "$READELF_FOR_TARGET"; then | |
12847 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12848 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12849 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12850 | fi | |
12851 | ||
12852 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12853 | for ncn_progname in readelf; do | |
12854 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12855 | set dummy ${ncn_progname}; ac_word=$2 | |
12856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12857 | $as_echo_n "checking for $ac_word... " >&6; } | |
12858 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12859 | $as_echo_n "(cached) " >&6 | |
12860 | else | |
12861 | if test -n "$READELF_FOR_TARGET"; then | |
12862 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12863 | else | |
12864 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12865 | for as_dir in $PATH | |
12866 | do | |
12867 | IFS=$as_save_IFS | |
12868 | test -z "$as_dir" && as_dir=. | |
12869 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12870 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12871 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12872 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12873 | break 2 | |
12874 | fi | |
12875 | done | |
12876 | done | |
12877 | IFS=$as_save_IFS | |
12878 | ||
12879 | fi | |
12880 | fi | |
12881 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12882 | if test -n "$READELF_FOR_TARGET"; then | |
12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12884 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12885 | else | |
12886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12887 | $as_echo "no" >&6; } | |
12888 | fi | |
12889 | ||
12890 | ||
12891 | done | |
12892 | fi | |
12893 | ||
12894 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12895 | for ncn_progname in readelf; do | |
12896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12897 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12898 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12899 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12901 | $as_echo "yes" >&6; } | |
12902 | break | |
12903 | else | |
12904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12905 | $as_echo "no" >&6; } | |
12906 | fi | |
12907 | done | |
12908 | fi | |
12909 | ||
12910 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12911 | for ncn_progname in readelf; do | |
12912 | if test -n "$ncn_target_tool_prefix"; then | |
12913 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12914 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12916 | $as_echo_n "checking for $ac_word... " >&6; } | |
12917 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12918 | $as_echo_n "(cached) " >&6 | |
12919 | else | |
12920 | if test -n "$READELF_FOR_TARGET"; then | |
12921 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12922 | else | |
12923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12924 | for as_dir in $PATH | |
12925 | do | |
12926 | IFS=$as_save_IFS | |
12927 | test -z "$as_dir" && as_dir=. | |
12928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12930 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12932 | break 2 | |
12933 | fi | |
12934 | done | |
12935 | done | |
12936 | IFS=$as_save_IFS | |
12937 | ||
12938 | fi | |
12939 | fi | |
12940 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12941 | if test -n "$READELF_FOR_TARGET"; then | |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12943 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12944 | else | |
12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12946 | $as_echo "no" >&6; } | |
12947 | fi | |
12948 | ||
12949 | ||
12950 | fi | |
12951 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12952 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12953 | set dummy ${ncn_progname}; ac_word=$2 | |
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12955 | $as_echo_n "checking for $ac_word... " >&6; } | |
12956 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12957 | $as_echo_n "(cached) " >&6 | |
12958 | else | |
12959 | if test -n "$READELF_FOR_TARGET"; then | |
12960 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12961 | else | |
12962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12963 | for as_dir in $PATH | |
12964 | do | |
12965 | IFS=$as_save_IFS | |
12966 | test -z "$as_dir" && as_dir=. | |
12967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12969 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12971 | break 2 | |
12972 | fi | |
12973 | done | |
12974 | done | |
12975 | IFS=$as_save_IFS | |
12976 | ||
12977 | fi | |
12978 | fi | |
12979 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12980 | if test -n "$READELF_FOR_TARGET"; then | |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12982 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12983 | else | |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12985 | $as_echo "no" >&6; } | |
12986 | fi | |
12987 | ||
12988 | ||
12989 | fi | |
12990 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12991 | done | |
12992 | fi | |
12993 | ||
12994 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12995 | set dummy readelf | |
12996 | if test $build = $target ; then | |
12997 | READELF_FOR_TARGET="$2" | |
12998 | else | |
12999 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13000 | fi | |
13001 | else | |
13002 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13003 | fi | |
13004 | ||
13005 | else | |
13006 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13007 | fi | |
13008 | ||
13009 | ||
13010 | ||
13011 | ||
e8b05380 PB |
13012 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13013 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13015 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13016 | if test -x $with_build_time_tools/strip; then |
13017 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13018 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13020 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 13021 | else |
5213506e RW |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13023 | $as_echo "no" >&6; } | |
d1f8db0c | 13024 | fi |
e8b05380 PB |
13025 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13026 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
13027 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13028 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
13029 | fi |
13030 | fi | |
3e19841a | 13031 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13032 | # Extract the first word of "strip", so it can be a program name with args. |
13033 | set dummy strip; ac_word=$2 | |
5213506e RW |
13034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13035 | $as_echo_n "checking for $ac_word... " >&6; } | |
13036 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13037 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13038 | else |
1c710c3c DJ |
13039 | case $STRIP_FOR_TARGET in |
13040 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13041 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13042 | ;; | |
e8b05380 | 13043 | *) |
1c710c3c DJ |
13044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13045 | for as_dir in $gcc_cv_tool_dirs | |
13046 | do | |
13047 | IFS=$as_save_IFS | |
13048 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13049 | for ac_exec_ext in '' $ac_executable_extensions; do |
13050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13051 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13053 | break 2 |
13054 | fi | |
13055 | done | |
5213506e RW |
13056 | done |
13057 | IFS=$as_save_IFS | |
1c710c3c | 13058 | |
e8b05380 PB |
13059 | ;; |
13060 | esac | |
13061 | fi | |
1c710c3c | 13062 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 13063 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13065 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 13066 | else |
5213506e RW |
13067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13068 | $as_echo "no" >&6; } | |
e8b05380 PB |
13069 | fi |
13070 | ||
5213506e | 13071 | |
e8b05380 PB |
13072 | fi |
13073 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
13074 | |
13075 | ||
13076 | if test -n "$STRIP_FOR_TARGET"; then | |
13077 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13078 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13079 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13080 | fi | |
13081 | ||
13082 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13083 | for ncn_progname in strip; do | |
13084 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13085 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13087 | $as_echo_n "checking for $ac_word... " >&6; } | |
13088 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13089 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13090 | else |
13091 | if test -n "$STRIP_FOR_TARGET"; then | |
13092 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13093 | else | |
13094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13095 | for as_dir in $PATH | |
13096 | do | |
13097 | IFS=$as_save_IFS | |
13098 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13099 | for ac_exec_ext in '' $ac_executable_extensions; do |
13100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13101 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13103 | break 2 |
13104 | fi | |
13105 | done | |
5213506e RW |
13106 | done |
13107 | IFS=$as_save_IFS | |
278a7a38 AO |
13108 | |
13109 | fi | |
13110 | fi | |
13111 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13112 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13114 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 13115 | else |
5213506e RW |
13116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13117 | $as_echo "no" >&6; } | |
278a7a38 AO |
13118 | fi |
13119 | ||
5213506e | 13120 | |
278a7a38 AO |
13121 | done |
13122 | fi | |
13123 | ||
13124 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13125 | for ncn_progname in strip; do |
5213506e RW |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13127 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13128 | if test -x $with_build_time_tools/${ncn_progname}; then |
13129 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13131 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13132 | break |
13133 | else | |
5213506e RW |
13134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13135 | $as_echo "no" >&6; } | |
e8b05380 PB |
13136 | fi |
13137 | done | |
13138 | fi | |
13139 | ||
13140 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13141 | for ncn_progname in strip; do | |
13142 | if test -n "$ncn_target_tool_prefix"; then | |
13143 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13144 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13146 | $as_echo_n "checking for $ac_word... " >&6; } | |
13147 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13148 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
13149 | else |
13150 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
13151 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
13152 | else | |
13153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13154 | for as_dir in $PATH | |
13155 | do | |
13156 | IFS=$as_save_IFS | |
13157 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13158 | for ac_exec_ext in '' $ac_executable_extensions; do |
13159 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13160 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13161 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13162 | break 2 |
13163 | fi | |
13164 | done | |
5213506e RW |
13165 | done |
13166 | IFS=$as_save_IFS | |
1c710c3c | 13167 | |
040b1c5a GK |
13168 | fi |
13169 | fi | |
1c710c3c | 13170 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13171 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13173 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13174 | else |
5213506e RW |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13176 | $as_echo "no" >&6; } | |
040b1c5a GK |
13177 | fi |
13178 | ||
5213506e | 13179 | |
e8b05380 PB |
13180 | fi |
13181 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13182 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 13183 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13185 | $as_echo_n "checking for $ac_word... " >&6; } | |
13186 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13187 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
13188 | else |
13189 | if test -n "$STRIP_FOR_TARGET"; then | |
13190 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13191 | else | |
1c710c3c DJ |
13192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13193 | for as_dir in $PATH | |
13194 | do | |
13195 | IFS=$as_save_IFS | |
13196 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13197 | for ac_exec_ext in '' $ac_executable_extensions; do |
13198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13199 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 13200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13201 | break 2 |
13202 | fi | |
13203 | done | |
5213506e RW |
13204 | done |
13205 | IFS=$as_save_IFS | |
1c710c3c | 13206 | |
040b1c5a GK |
13207 | fi |
13208 | fi | |
1c710c3c | 13209 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 13210 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13212 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 13213 | else |
5213506e RW |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13215 | $as_echo "no" >&6; } | |
040b1c5a | 13216 | fi |
1c710c3c | 13217 | |
5213506e | 13218 | |
e8b05380 PB |
13219 | fi |
13220 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13221 | done | |
13222 | fi | |
1c710c3c | 13223 | |
040b1c5a GK |
13224 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13225 | set dummy strip | |
13226 | if test $build = $target ; then | |
13227 | STRIP_FOR_TARGET="$2" | |
13228 | else | |
13229 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13230 | fi | |
1c00b503 PB |
13231 | else |
13232 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
13233 | fi |
13234 | ||
d1f8db0c PB |
13235 | else |
13236 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
13237 | fi |
13238 | ||
13239 | ||
13240 | ||
13241 | ||
13242 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13243 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13245 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13246 | if test -x $with_build_time_tools/windres; then |
13247 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13248 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13250 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 13251 | else |
5213506e RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13253 | $as_echo "no" >&6; } | |
d1f8db0c | 13254 | fi |
e8b05380 PB |
13255 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13256 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
13257 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13258 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
13259 | fi |
13260 | fi | |
3e19841a | 13261 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
13262 | # Extract the first word of "windres", so it can be a program name with args. |
13263 | set dummy windres; ac_word=$2 | |
5213506e RW |
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13265 | $as_echo_n "checking for $ac_word... " >&6; } | |
13266 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13267 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 13268 | else |
1c710c3c DJ |
13269 | case $WINDRES_FOR_TARGET in |
13270 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
13271 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13272 | ;; | |
e8b05380 | 13273 | *) |
1c710c3c DJ |
13274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13275 | for as_dir in $gcc_cv_tool_dirs | |
13276 | do | |
13277 | IFS=$as_save_IFS | |
13278 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13279 | for ac_exec_ext in '' $ac_executable_extensions; do |
13280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13281 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13283 | break 2 |
13284 | fi | |
13285 | done | |
5213506e RW |
13286 | done |
13287 | IFS=$as_save_IFS | |
1c710c3c | 13288 | |
e8b05380 PB |
13289 | ;; |
13290 | esac | |
13291 | fi | |
1c710c3c | 13292 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 13293 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13295 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 13296 | else |
5213506e RW |
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13298 | $as_echo "no" >&6; } | |
e8b05380 PB |
13299 | fi |
13300 | ||
5213506e | 13301 | |
e8b05380 PB |
13302 | fi |
13303 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
13304 | |
13305 | ||
13306 | if test -n "$WINDRES_FOR_TARGET"; then | |
13307 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13308 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13309 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13310 | fi | |
13311 | ||
13312 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13313 | for ncn_progname in windres; do | |
13314 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13315 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13317 | $as_echo_n "checking for $ac_word... " >&6; } | |
13318 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13319 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
13320 | else |
13321 | if test -n "$WINDRES_FOR_TARGET"; then | |
13322 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13323 | else | |
13324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13325 | for as_dir in $PATH | |
13326 | do | |
13327 | IFS=$as_save_IFS | |
13328 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13329 | for ac_exec_ext in '' $ac_executable_extensions; do |
13330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 13331 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
13333 | break 2 |
13334 | fi | |
13335 | done | |
5213506e RW |
13336 | done |
13337 | IFS=$as_save_IFS | |
278a7a38 AO |
13338 | |
13339 | fi | |
13340 | fi | |
13341 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13342 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13344 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 13345 | else |
5213506e RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13347 | $as_echo "no" >&6; } | |
278a7a38 AO |
13348 | fi |
13349 | ||
5213506e | 13350 | |
278a7a38 AO |
13351 | done |
13352 | fi | |
13353 | ||
13354 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 13355 | for ncn_progname in windres; do |
5213506e RW |
13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13357 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
13358 | if test -x $with_build_time_tools/${ncn_progname}; then |
13359 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13361 | $as_echo "yes" >&6; } | |
e8b05380 PB |
13362 | break |
13363 | else | |
5213506e RW |
13364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13365 | $as_echo "no" >&6; } | |
e8b05380 PB |
13366 | fi |
13367 | done | |
13368 | fi | |
13369 | ||
13370 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13371 | for ncn_progname in windres; do | |
13372 | if test -n "$ncn_target_tool_prefix"; then | |
13373 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13374 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13376 | $as_echo_n "checking for $ac_word... " >&6; } | |
13377 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13378 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13379 | else |
4de997d1 PB |
13380 | if test -n "$WINDRES_FOR_TARGET"; then |
13381 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13382 | else |
1c710c3c DJ |
13383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13384 | for as_dir in $PATH | |
13385 | do | |
13386 | IFS=$as_save_IFS | |
13387 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13388 | for ac_exec_ext in '' $ac_executable_extensions; do |
13389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13390 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13392 | break 2 |
13393 | fi | |
13394 | done | |
5213506e RW |
13395 | done |
13396 | IFS=$as_save_IFS | |
1c710c3c | 13397 | |
ca9f4b81 AO |
13398 | fi |
13399 | fi | |
1c710c3c | 13400 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 13401 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13403 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13404 | else |
5213506e RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13406 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
13407 | fi |
13408 | ||
5213506e | 13409 | |
e8b05380 PB |
13410 | fi |
13411 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13412 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 13413 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
13414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13415 | $as_echo_n "checking for $ac_word... " >&6; } | |
13416 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13417 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 13418 | else |
2693c0b0 PB |
13419 | if test -n "$WINDRES_FOR_TARGET"; then |
13420 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 13421 | else |
1c710c3c DJ |
13422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13423 | for as_dir in $PATH | |
13424 | do | |
13425 | IFS=$as_save_IFS | |
13426 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13427 | for ac_exec_ext in '' $ac_executable_extensions; do |
13428 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 13429 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 13430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
13431 | break 2 |
13432 | fi | |
13433 | done | |
5213506e RW |
13434 | done |
13435 | IFS=$as_save_IFS | |
1c710c3c | 13436 | |
ca9f4b81 AO |
13437 | fi |
13438 | fi | |
1c710c3c | 13439 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 13440 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13442 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 13443 | else |
5213506e RW |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13445 | $as_echo "no" >&6; } | |
ca9f4b81 | 13446 | fi |
1c710c3c | 13447 | |
5213506e | 13448 | |
e8b05380 PB |
13449 | fi |
13450 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13451 | done | |
13452 | fi | |
1c710c3c | 13453 | |
2693c0b0 PB |
13454 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13455 | set dummy windres | |
13456 | if test $build = $target ; then | |
13457 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 13458 | else |
2693c0b0 | 13459 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 13460 | fi |
1c00b503 PB |
13461 | else |
13462 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
13463 | fi |
13464 | ||
d1f8db0c PB |
13465 | else |
13466 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
13467 | fi |
13468 | ||
4977bab6 | 13469 | |
901119ae KT |
13470 | |
13471 | ||
13472 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13473 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
13474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13475 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
13476 | if test -x $with_build_time_tools/windmc; then |
13477 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13478 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13480 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13481 | else |
5213506e RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13483 | $as_echo "no" >&6; } | |
901119ae KT |
13484 | fi |
13485 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13486 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
13487 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
13488 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
13489 | fi |
13490 | fi | |
13491 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13492 | # Extract the first word of "windmc", so it can be a program name with args. | |
13493 | set dummy windmc; ac_word=$2 | |
5213506e RW |
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13495 | $as_echo_n "checking for $ac_word... " >&6; } | |
13496 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13497 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13498 | else |
13499 | case $WINDMC_FOR_TARGET in | |
13500 | [\\/]* | ?:[\\/]*) | |
13501 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13502 | ;; | |
13503 | *) | |
13504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13505 | for as_dir in $gcc_cv_tool_dirs | |
13506 | do | |
13507 | IFS=$as_save_IFS | |
13508 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13509 | for ac_exec_ext in '' $ac_executable_extensions; do |
13510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13511 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 13512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13513 | break 2 |
13514 | fi | |
13515 | done | |
5213506e RW |
13516 | done |
13517 | IFS=$as_save_IFS | |
901119ae KT |
13518 | |
13519 | ;; | |
13520 | esac | |
13521 | fi | |
13522 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 13523 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13525 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13526 | else |
5213506e RW |
13527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13528 | $as_echo "no" >&6; } | |
901119ae KT |
13529 | fi |
13530 | ||
5213506e | 13531 | |
901119ae KT |
13532 | fi |
13533 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13534 | ||
13535 | ||
13536 | if test -n "$WINDMC_FOR_TARGET"; then | |
13537 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13538 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13539 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13540 | fi | |
13541 | ||
13542 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13543 | for ncn_progname in windmc; do | |
13544 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13545 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13547 | $as_echo_n "checking for $ac_word... " >&6; } | |
13548 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13549 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13550 | else |
13551 | if test -n "$WINDMC_FOR_TARGET"; then | |
13552 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13553 | else | |
13554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13555 | for as_dir in $PATH | |
13556 | do | |
13557 | IFS=$as_save_IFS | |
13558 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13559 | for ac_exec_ext in '' $ac_executable_extensions; do |
13560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13561 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13563 | break 2 |
13564 | fi | |
13565 | done | |
5213506e RW |
13566 | done |
13567 | IFS=$as_save_IFS | |
901119ae KT |
13568 | |
13569 | fi | |
13570 | fi | |
13571 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13572 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13574 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13575 | else |
5213506e RW |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13577 | $as_echo "no" >&6; } | |
901119ae KT |
13578 | fi |
13579 | ||
5213506e | 13580 | |
901119ae KT |
13581 | done |
13582 | fi | |
13583 | ||
13584 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13585 | for ncn_progname in windmc; do | |
5213506e RW |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13587 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
13588 | if test -x $with_build_time_tools/${ncn_progname}; then |
13589 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13591 | $as_echo "yes" >&6; } | |
901119ae KT |
13592 | break |
13593 | else | |
5213506e RW |
13594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13595 | $as_echo "no" >&6; } | |
901119ae KT |
13596 | fi |
13597 | done | |
13598 | fi | |
13599 | ||
13600 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13601 | for ncn_progname in windmc; do | |
13602 | if test -n "$ncn_target_tool_prefix"; then | |
13603 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13604 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13606 | $as_echo_n "checking for $ac_word... " >&6; } | |
13607 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13608 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13609 | else |
13610 | if test -n "$WINDMC_FOR_TARGET"; then | |
13611 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13612 | else | |
13613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13614 | for as_dir in $PATH | |
13615 | do | |
13616 | IFS=$as_save_IFS | |
13617 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13618 | for ac_exec_ext in '' $ac_executable_extensions; do |
13619 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13620 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13622 | break 2 |
13623 | fi | |
13624 | done | |
5213506e RW |
13625 | done |
13626 | IFS=$as_save_IFS | |
901119ae KT |
13627 | |
13628 | fi | |
13629 | fi | |
13630 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13631 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13633 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13634 | else |
5213506e RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13636 | $as_echo "no" >&6; } | |
901119ae KT |
13637 | fi |
13638 | ||
5213506e | 13639 | |
901119ae KT |
13640 | fi |
13641 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13642 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13643 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13645 | $as_echo_n "checking for $ac_word... " >&6; } | |
13646 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13647 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13648 | else |
13649 | if test -n "$WINDMC_FOR_TARGET"; then | |
13650 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13651 | else | |
13652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13653 | for as_dir in $PATH | |
13654 | do | |
13655 | IFS=$as_save_IFS | |
13656 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13657 | for ac_exec_ext in '' $ac_executable_extensions; do |
13658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13659 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13661 | break 2 |
13662 | fi | |
13663 | done | |
5213506e RW |
13664 | done |
13665 | IFS=$as_save_IFS | |
901119ae KT |
13666 | |
13667 | fi | |
13668 | fi | |
13669 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13670 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13672 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13673 | else |
5213506e RW |
13674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13675 | $as_echo "no" >&6; } | |
901119ae KT |
13676 | fi |
13677 | ||
5213506e | 13678 | |
901119ae KT |
13679 | fi |
13680 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13681 | done | |
13682 | fi | |
13683 | ||
13684 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13685 | set dummy windmc | |
13686 | if test $build = $target ; then | |
13687 | WINDMC_FOR_TARGET="$2" | |
13688 | else | |
13689 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13690 | fi | |
1c00b503 PB |
13691 | else |
13692 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13693 | fi |
13694 | ||
13695 | else | |
13696 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13697 | fi | |
13698 | ||
13699 | ||
2abefe3d PB |
13700 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13701 | ||
5213506e RW |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13703 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13704 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13705 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13706 | # We already found the complete path | |
172e41aa | 13707 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13709 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13710 | else |
13711 | # Canadian cross, just use what we found | |
5213506e RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13713 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13714 | fi |
2abefe3d PB |
13715 | else |
13716 | ok=yes | |
13717 | case " ${configdirs} " in | |
13718 | *" binutils "*) ;; | |
13719 | *) ok=no ;; | |
13720 | esac | |
1c710c3c | 13721 | |
2abefe3d PB |
13722 | if test $ok = yes; then |
13723 | # An in-tree tool is available and we can use it | |
13724 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13726 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13727 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13728 | # We already found the complete path | |
172e41aa | 13729 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13731 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13732 | elif test "x$target" = "x$host"; then |
13733 | # We can use an host tool | |
13734 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13736 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13737 | else |
13738 | # We need a cross tool | |
5213506e RW |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13740 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13741 | fi |
13742 | fi | |
0b0dc272 | 13743 | |
5213506e RW |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13745 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13746 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13747 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13748 | # We already found the complete path | |
172e41aa | 13749 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13751 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13752 | else |
13753 | # Canadian cross, just use what we found | |
5213506e RW |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13755 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13756 | fi |
2abefe3d PB |
13757 | else |
13758 | ok=yes | |
13759 | case " ${configdirs} " in | |
13760 | *" gas "*) ;; | |
13761 | *) ok=no ;; | |
13762 | esac | |
1c710c3c | 13763 | |
2abefe3d PB |
13764 | if test $ok = yes; then |
13765 | # An in-tree tool is available and we can use it | |
13766 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13768 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13769 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13770 | # We already found the complete path | |
172e41aa | 13771 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13773 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13774 | elif test "x$target" = "x$host"; then |
13775 | # We can use an host tool | |
13776 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13778 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13779 | else |
13780 | # We need a cross tool | |
5213506e RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13782 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13783 | fi |
13784 | fi | |
0b0dc272 | 13785 | |
5213506e RW |
13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13787 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 13788 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13789 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13790 | # We already found the complete path | |
172e41aa | 13791 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13793 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13794 | else |
13795 | # Canadian cross, just use what we found | |
5213506e RW |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13797 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13798 | fi |
2abefe3d PB |
13799 | else |
13800 | ok=yes | |
13801 | case " ${configdirs} " in | |
13802 | *" gcc "*) ;; | |
13803 | *) ok=no ;; | |
13804 | esac | |
1c710c3c | 13805 | |
2abefe3d PB |
13806 | if test $ok = yes; then |
13807 | # An in-tree tool is available and we can use it | |
13808 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13810 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13811 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13812 | # We already found the complete path | |
172e41aa | 13813 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13815 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13816 | elif test "x$target" = "x$host"; then |
13817 | # We can use an host tool | |
13818 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
13819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13820 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13821 | else |
13822 | # We need a cross tool | |
5213506e RW |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13824 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13825 | fi |
13826 | fi | |
0b0dc272 | 13827 | |
5213506e RW |
13828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13829 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 13830 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13831 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13832 | # We already found the complete path | |
172e41aa | 13833 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13835 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13836 | else |
13837 | # Canadian cross, just use what we found | |
5213506e RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13839 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13840 | fi |
2abefe3d PB |
13841 | else |
13842 | ok=yes | |
13843 | case " ${configdirs} " in | |
13844 | *" gcc "*) ;; | |
13845 | *) ok=no ;; | |
13846 | esac | |
13847 | case ,${enable_languages}, in | |
13848 | *,c++,*) ;; | |
13849 | *) ok=no ;; | |
13850 | esac | |
13851 | if test $ok = yes; then | |
13852 | # An in-tree tool is available and we can use it | |
2077db1b | 13853 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13855 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13856 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13857 | # We already found the complete path | |
172e41aa | 13858 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13860 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13861 | elif test "x$target" = "x$host"; then |
13862 | # We can use an host tool | |
13863 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13865 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13866 | else |
13867 | # We need a cross tool | |
5213506e RW |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13869 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13870 | fi |
13871 | fi | |
0b0dc272 | 13872 | |
5213506e RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13874 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 13875 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13876 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13877 | # We already found the complete path | |
172e41aa | 13878 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13880 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13881 | else |
13882 | # Canadian cross, just use what we found | |
5213506e RW |
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13884 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13885 | fi |
2abefe3d PB |
13886 | else |
13887 | ok=yes | |
13888 | case " ${configdirs} " in | |
13889 | *" gcc "*) ;; | |
13890 | *) ok=no ;; | |
13891 | esac | |
13892 | case ,${enable_languages}, in | |
13893 | *,c++,*) ;; | |
13894 | *) ok=no ;; | |
13895 | esac | |
13896 | if test $ok = yes; then | |
13897 | # An in-tree tool is available and we can use it | |
2077db1b | 13898 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
5213506e RW |
13899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13900 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13901 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13902 | # We already found the complete path | |
172e41aa | 13903 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13905 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13906 | elif test "x$target" = "x$host"; then |
13907 | # We can use an host tool | |
13908 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13910 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13911 | else |
13912 | # We need a cross tool | |
5213506e RW |
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13914 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13915 | fi |
13916 | fi | |
0b0dc272 | 13917 | |
5213506e RW |
13918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13919 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 13920 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13921 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13922 | # We already found the complete path | |
172e41aa | 13923 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13925 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13926 | else |
13927 | # Canadian cross, just use what we found | |
5213506e RW |
13928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13929 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13930 | fi |
2abefe3d PB |
13931 | else |
13932 | ok=yes | |
13933 | case " ${configdirs} " in | |
13934 | *" binutils "*) ;; | |
13935 | *) ok=no ;; | |
13936 | esac | |
1c710c3c | 13937 | |
2abefe3d PB |
13938 | if test $ok = yes; then |
13939 | # An in-tree tool is available and we can use it | |
13940 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13942 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13943 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13944 | # We already found the complete path | |
172e41aa | 13945 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13947 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13948 | elif test "x$target" = "x$host"; then |
13949 | # We can use an host tool | |
13950 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
13951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13952 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13953 | else |
13954 | # We need a cross tool | |
5213506e RW |
13955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13956 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13957 | fi |
13958 | fi | |
0b0dc272 | 13959 | |
5213506e RW |
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13961 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 13962 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13963 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13964 | # We already found the complete path | |
172e41aa | 13965 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13967 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13968 | else |
13969 | # Canadian cross, just use what we found | |
5213506e RW |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13971 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13972 | fi |
2abefe3d PB |
13973 | else |
13974 | ok=yes | |
13975 | case " ${configdirs} " in | |
13976 | *" gcc "*) ;; | |
13977 | *) ok=no ;; | |
13978 | esac | |
1c710c3c | 13979 | |
2abefe3d PB |
13980 | if test $ok = yes; then |
13981 | # An in-tree tool is available and we can use it | |
13982 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13984 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13985 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13986 | # We already found the complete path | |
172e41aa | 13987 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13989 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13990 | elif test "x$target" = "x$host"; then |
13991 | # We can use an host tool | |
13992 | GCC_FOR_TARGET='$()' | |
5213506e RW |
13993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13994 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13995 | else |
13996 | # We need a cross tool | |
5213506e RW |
13997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13998 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13999 | fi |
14000 | fi | |
0b0dc272 | 14001 | |
5213506e RW |
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14003 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 14004 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14005 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14006 | # We already found the complete path | |
172e41aa | 14007 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14009 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14010 | else |
14011 | # Canadian cross, just use what we found | |
5213506e RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14013 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14014 | fi |
2abefe3d PB |
14015 | else |
14016 | ok=yes | |
14017 | case " ${configdirs} " in | |
14018 | *" gcc "*) ;; | |
14019 | *) ok=no ;; | |
14020 | esac | |
14021 | case ,${enable_languages}, in | |
14022 | *,fortran,*) ;; | |
14023 | *) ok=no ;; | |
14024 | esac | |
14025 | if test $ok = yes; then | |
14026 | # An in-tree tool is available and we can use it | |
14027 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14029 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14030 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14031 | # We already found the complete path | |
172e41aa | 14032 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14034 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14035 | elif test "x$target" = "x$host"; then |
14036 | # We can use an host tool | |
14037 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14039 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14040 | else |
14041 | # We need a cross tool | |
5213506e RW |
14042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14043 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14044 | fi |
14045 | fi | |
0b0dc272 | 14046 | |
632e2a07 ILT |
14047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14048 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14049 | if test "x${build}" != "x${host}" ; then | |
14050 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14051 | # We already found the complete path | |
14052 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14054 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14055 | else | |
14056 | # Canadian cross, just use what we found | |
14057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14058 | $as_echo "pre-installed" >&6; } | |
14059 | fi | |
14060 | else | |
14061 | ok=yes | |
14062 | case " ${configdirs} " in | |
14063 | *" gcc "*) ;; | |
14064 | *) ok=no ;; | |
14065 | esac | |
14066 | case ,${enable_languages}, in | |
14067 | *,go,*) ;; | |
14068 | *) ok=no ;; | |
14069 | esac | |
14070 | if test $ok = yes; then | |
14071 | # An in-tree tool is available and we can use it | |
14072 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14074 | $as_echo "just compiled" >&6; } | |
14075 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14076 | # We already found the complete path | |
14077 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14079 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14080 | elif test "x$target" = "x$host"; then | |
14081 | # We can use an host tool | |
14082 | GOC_FOR_TARGET='$(GOC)' | |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14084 | $as_echo "host tool" >&6; } | |
14085 | else | |
14086 | # We need a cross tool | |
14087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14088 | $as_echo "pre-installed" >&6; } | |
14089 | fi | |
14090 | fi | |
14091 | ||
5213506e RW |
14092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14093 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 14094 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14095 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14096 | # We already found the complete path | |
172e41aa | 14097 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14099 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14100 | else |
14101 | # Canadian cross, just use what we found | |
5213506e RW |
14102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14103 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14104 | fi |
2abefe3d PB |
14105 | else |
14106 | ok=yes | |
14107 | case " ${configdirs} " in | |
14108 | *" ld "*) ;; | |
14109 | *) ok=no ;; | |
14110 | esac | |
1c710c3c | 14111 | |
2abefe3d PB |
14112 | if test $ok = yes; then |
14113 | # An in-tree tool is available and we can use it | |
14114 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14116 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14117 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14118 | # We already found the complete path | |
172e41aa | 14119 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14121 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14122 | elif test "x$target" = "x$host"; then |
14123 | # We can use an host tool | |
14124 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14126 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14127 | else |
14128 | # We need a cross tool | |
5213506e RW |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14130 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14131 | fi |
14132 | fi | |
0b0dc272 | 14133 | |
5213506e RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14135 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 14136 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14137 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14138 | # We already found the complete path | |
172e41aa | 14139 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14141 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14142 | else |
14143 | # Canadian cross, just use what we found | |
5213506e RW |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14145 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14146 | fi |
2abefe3d | 14147 | else |
e8b05380 PB |
14148 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14149 | # We already found the complete path | |
172e41aa | 14150 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14152 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 14153 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
14154 | # We can use an host tool |
14155 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
14156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14157 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14158 | else |
14159 | # We need a cross tool | |
5213506e RW |
14160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14161 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14162 | fi |
14163 | fi | |
0b0dc272 | 14164 | |
5213506e RW |
14165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14166 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 14167 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14168 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14169 | # We already found the complete path | |
172e41aa | 14170 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14172 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14173 | else |
14174 | # Canadian cross, just use what we found | |
5213506e RW |
14175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14176 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14177 | fi |
2abefe3d PB |
14178 | else |
14179 | ok=yes | |
14180 | case " ${configdirs} " in | |
14181 | *" binutils "*) ;; | |
14182 | *) ok=no ;; | |
14183 | esac | |
1c710c3c | 14184 | |
2abefe3d PB |
14185 | if test $ok = yes; then |
14186 | # An in-tree tool is available and we can use it | |
14187 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14189 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14190 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14191 | # We already found the complete path | |
172e41aa | 14192 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14194 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14195 | elif test "x$target" = "x$host"; then |
14196 | # We can use an host tool | |
14197 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14199 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14200 | else |
14201 | # We need a cross tool | |
5213506e RW |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14203 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14204 | fi |
14205 | fi | |
0b0dc272 | 14206 | |
9bccfdf5 AP |
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14208 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14209 | if test "x${build}" != "x${host}" ; then | |
14210 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14211 | # We already found the complete path | |
14212 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14214 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14215 | else | |
14216 | # Canadian cross, just use what we found | |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14218 | $as_echo "pre-installed" >&6; } | |
14219 | fi | |
14220 | else | |
14221 | ok=yes | |
14222 | case " ${configdirs} " in | |
14223 | *" binutils "*) ;; | |
14224 | *) ok=no ;; | |
14225 | esac | |
14226 | ||
14227 | if test $ok = yes; then | |
14228 | # An in-tree tool is available and we can use it | |
14229 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14231 | $as_echo "just compiled" >&6; } | |
14232 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14233 | # We already found the complete path | |
14234 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14236 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14237 | elif test "x$target" = "x$host"; then | |
14238 | # We can use an host tool | |
ec8fd1c0 | 14239 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
9bccfdf5 AP |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14241 | $as_echo "host tool" >&6; } | |
14242 | else | |
14243 | # We need a cross tool | |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14245 | $as_echo "pre-installed" >&6; } | |
14246 | fi | |
14247 | fi | |
14248 | ||
5213506e RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14250 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 14251 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14252 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14253 | # We already found the complete path | |
172e41aa | 14254 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14256 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14257 | else |
14258 | # Canadian cross, just use what we found | |
5213506e RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14260 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14261 | fi |
2abefe3d PB |
14262 | else |
14263 | ok=yes | |
14264 | case " ${configdirs} " in | |
14265 | *" binutils "*) ;; | |
14266 | *) ok=no ;; | |
14267 | esac | |
1c710c3c | 14268 | |
2abefe3d PB |
14269 | if test $ok = yes; then |
14270 | # An in-tree tool is available and we can use it | |
14271 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14273 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14274 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14275 | # We already found the complete path | |
172e41aa | 14276 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14278 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14279 | elif test "x$target" = "x$host"; then |
14280 | # We can use an host tool | |
14281 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14283 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14284 | else |
14285 | # We need a cross tool | |
5213506e RW |
14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14287 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14288 | fi |
14289 | fi | |
0b0dc272 | 14290 | |
5213506e RW |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14292 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 14293 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14294 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14295 | # We already found the complete path | |
172e41aa | 14296 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14298 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14299 | else |
14300 | # Canadian cross, just use what we found | |
5213506e RW |
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14302 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14303 | fi |
2abefe3d PB |
14304 | else |
14305 | ok=yes | |
14306 | case " ${configdirs} " in | |
14307 | *" binutils "*) ;; | |
14308 | *) ok=no ;; | |
14309 | esac | |
1c710c3c | 14310 | |
2abefe3d PB |
14311 | if test $ok = yes; then |
14312 | # An in-tree tool is available and we can use it | |
14313 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14315 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14316 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14317 | # We already found the complete path | |
172e41aa | 14318 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14320 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14321 | elif test "x$target" = "x$host"; then |
14322 | # We can use an host tool | |
14323 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14325 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14326 | else |
14327 | # We need a cross tool | |
5213506e RW |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14329 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14330 | fi |
14331 | fi | |
0b0dc272 | 14332 | |
e7a82751 RM |
14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14334 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14335 | if test "x${build}" != "x${host}" ; then | |
14336 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14337 | # We already found the complete path | |
14338 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14340 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14341 | else | |
14342 | # Canadian cross, just use what we found | |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14344 | $as_echo "pre-installed" >&6; } | |
14345 | fi | |
14346 | else | |
14347 | ok=yes | |
14348 | case " ${configdirs} " in | |
14349 | *" binutils "*) ;; | |
14350 | *) ok=no ;; | |
14351 | esac | |
14352 | ||
14353 | if test $ok = yes; then | |
14354 | # An in-tree tool is available and we can use it | |
14355 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14357 | $as_echo "just compiled" >&6; } | |
14358 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14359 | # We already found the complete path | |
14360 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14362 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14363 | elif test "x$target" = "x$host"; then | |
14364 | # We can use an host tool | |
14365 | READELF_FOR_TARGET='$(READELF)' | |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14367 | $as_echo "host tool" >&6; } | |
14368 | else | |
14369 | # We need a cross tool | |
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14371 | $as_echo "pre-installed" >&6; } | |
14372 | fi | |
14373 | fi | |
14374 | ||
5213506e RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14376 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 14377 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14378 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14379 | # We already found the complete path | |
172e41aa | 14380 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14382 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14383 | else |
14384 | # Canadian cross, just use what we found | |
5213506e RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14386 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14387 | fi |
2abefe3d PB |
14388 | else |
14389 | ok=yes | |
14390 | case " ${configdirs} " in | |
14391 | *" binutils "*) ;; | |
14392 | *) ok=no ;; | |
14393 | esac | |
1c710c3c | 14394 | |
2abefe3d PB |
14395 | if test $ok = yes; then |
14396 | # An in-tree tool is available and we can use it | |
455c8f48 | 14397 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14399 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14400 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14401 | # We already found the complete path | |
172e41aa | 14402 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14404 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14405 | elif test "x$target" = "x$host"; then |
14406 | # We can use an host tool | |
14407 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14409 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14410 | else |
14411 | # We need a cross tool | |
5213506e RW |
14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14413 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
14414 | fi |
14415 | fi | |
0b0dc272 | 14416 | |
5213506e RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14418 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 14419 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
14420 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14421 | # We already found the complete path | |
172e41aa | 14422 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14424 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
14425 | else |
14426 | # Canadian cross, just use what we found | |
5213506e RW |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14428 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 14429 | fi |
2abefe3d PB |
14430 | else |
14431 | ok=yes | |
14432 | case " ${configdirs} " in | |
14433 | *" binutils "*) ;; | |
14434 | *) ok=no ;; | |
14435 | esac | |
1c710c3c | 14436 | |
2abefe3d PB |
14437 | if test $ok = yes; then |
14438 | # An in-tree tool is available and we can use it | |
14439 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14441 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
14442 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14443 | # We already found the complete path | |
172e41aa | 14444 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14446 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
14447 | elif test "x$target" = "x$host"; then |
14448 | # We can use an host tool | |
14449 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14451 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
14452 | else |
14453 | # We need a cross tool | |
5213506e RW |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14455 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 14456 | fi |
671aa708 | 14457 | fi |
be912515 | 14458 | |
5213506e RW |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14460 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
14461 | if test "x${build}" != "x${host}" ; then |
14462 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14463 | # We already found the complete path | |
14464 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14466 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14467 | else |
14468 | # Canadian cross, just use what we found | |
5213506e RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14470 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14471 | fi |
14472 | else | |
14473 | ok=yes | |
14474 | case " ${configdirs} " in | |
14475 | *" binutils "*) ;; | |
14476 | *) ok=no ;; | |
14477 | esac | |
14478 | ||
14479 | if test $ok = yes; then | |
14480 | # An in-tree tool is available and we can use it | |
14481 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14483 | $as_echo "just compiled" >&6; } | |
901119ae KT |
14484 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14485 | # We already found the complete path | |
14486 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14488 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
14489 | elif test "x$target" = "x$host"; then |
14490 | # We can use an host tool | |
14491 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14493 | $as_echo "host tool" >&6; } | |
901119ae KT |
14494 | else |
14495 | # We need a cross tool | |
5213506e RW |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14497 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
14498 | fi |
14499 | fi | |
14500 | ||
be912515 NN |
14501 | |
14502 | ||
2abefe3d | 14503 | |
0b0dc272 | 14504 | |
671aa708 NN |
14505 | # Certain tools may need extra flags. |
14506 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14507 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14508 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14509 | ||
2abefe3d PB |
14510 | # When building target libraries, except in a Canadian cross, we use |
14511 | # the same toolchain as the compiler we just built. | |
14512 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14513 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14514 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14515 | if test $host = $build; then | |
14516 | case " $configdirs " in | |
14517 | *" gcc "*) | |
14518 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14519 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14520 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14521 | ;; | |
14522 | esac | |
14523 | fi | |
14524 | ||
14525 | ||
14526 | ||
14527 | ||
14528 | ||
5213506e RW |
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14530 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14531 | # Check whether --enable-maintainer-mode was given. | |
14532 | if test "${enable_maintainer_mode+set}" = set; then : | |
14533 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
14534 | else |
14535 | USE_MAINTAINER_MODE=no | |
5213506e RW |
14536 | fi |
14537 | ||
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14539 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
14540 | |
14541 | ||
14542 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14543 | MAINTAINER_MODE_TRUE= | |
14544 | MAINTAINER_MODE_FALSE='#' | |
14545 | else | |
14546 | MAINTAINER_MODE_TRUE='#' | |
14547 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 14548 | fi |
ee03dc5e AO |
14549 | MAINT=$MAINTAINER_MODE_TRUE |
14550 | ||
2805b53a NN |
14551 | # --------------------- |
14552 | # GCC bootstrap support | |
14553 | # --------------------- | |
14554 | ||
14555 | # Stage specific cflags for build. | |
14556 | stage1_cflags="-g" | |
14557 | case $build in | |
14558 | vax-*-*) | |
14559 | case ${GCC} in | |
14560 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14561 | *) stage1_cflags="-g -J" ;; | |
14562 | esac ;; | |
2805b53a NN |
14563 | esac |
14564 | ||
0b50988a | 14565 | |
2805b53a | 14566 | |
8efea775 | 14567 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
14568 | # Check whether --enable-stage1-checking was given. |
14569 | if test "${enable_stage1_checking+set}" = set; then : | |
14570 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 14571 | else |
e643dc23 | 14572 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
c10b5ea0 JJ |
14573 | # For --disable-checking or implicit --enable-checking=release, avoid |
14574 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14575 | # bootstraps. See PR62077. | |
c10b5ea0 JJ |
14576 | case $BUILD_CONFIG in |
14577 | *lto*) | |
7db11a5a JJ |
14578 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;; |
14579 | *) | |
14580 | stage1_checking=--enable-checking=yes,types;; | |
c10b5ea0 | 14581 | esac |
7db11a5a JJ |
14582 | if test "x$enable_checking" = x && \ |
14583 | test -d ${srcdir}/gcc && \ | |
14584 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
c100769b | 14585 | stage1_checking=--enable-checking=yes,types,extra |
7db11a5a | 14586 | fi |
8efea775 | 14587 | else |
e643dc23 | 14588 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 14589 | fi |
5213506e | 14590 | fi |
8efea775 PB |
14591 | |
14592 | ||
2aeb72e9 | 14593 | |
5213506e RW |
14594 | # Enable -Werror in bootstrap stage2 and later. |
14595 | # Check whether --enable-werror was given. | |
14596 | if test "${enable_werror+set}" = set; then : | |
14597 | enableval=$enable_werror; | |
2805b53a | 14598 | else |
416cfb5e | 14599 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 14600 | enable_werror=yes |
88fceb68 PB |
14601 | else |
14602 | enable_werror=no | |
14603 | fi | |
5213506e RW |
14604 | fi |
14605 | ||
09a9c095 NN |
14606 | case ${enable_werror} in |
14607 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14608 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14609 | esac |
14610 | ||
14611 | ||
459260ec DM |
14612 | # Enable --enable-host-shared. |
14613 | # Check whether --enable-host-shared was given. | |
14614 | if test "${enable_host_shared+set}" = set; then : | |
14615 | enableval=$enable_host_shared; host_shared=$enableval | |
14616 | else | |
14617 | host_shared=no | |
14618 | fi | |
14619 | ||
14620 | ||
14621 | ||
231d020b DM |
14622 | # PR jit/64780: Require the user to explicitly specify |
14623 | # --enable-host-shared if the jit is enabled, hinting | |
14624 | # that they might want to do a separate configure/build of | |
14625 | # the jit, to avoid users from slowing down the rest of the | |
14626 | # compiler by enabling the jit. | |
14627 | if test ${host_shared} = "no" ; then | |
14628 | case "${enable_languages}" in | |
14629 | *jit*) | |
14630 | as_fn_error " | |
14631 | Enabling language \"jit\" requires --enable-host-shared. | |
14632 | ||
14633 | --enable-host-shared typically slows the rest of the compiler down by | |
14634 | a few %, so you must explicitly enable it. | |
14635 | ||
14636 | If you want to build both the jit and the regular compiler, it is often | |
14637 | best to do this via two separate configure/builds, in separate | |
14638 | directories, to avoid imposing the performance cost of | |
14639 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14640 | ;; | |
14641 | *) | |
14642 | ;; | |
14643 | esac | |
14644 | fi | |
14645 | ||
f2689b09 SE |
14646 | # Specify what files to not compare during bootstrap. |
14647 | ||
14648 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14649 | case "$target" in | |
14650 | hppa*64*-*-hpux*) ;; | |
14651 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
d91491e5 | 14652 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
f2689b09 SE |
14653 | esac |
14654 | ||
14655 | ||
5213506e RW |
14656 | ac_config_files="$ac_config_files Makefile" |
14657 | ||
1c710c3c | 14658 | cat >confcache <<\_ACEOF |
671aa708 NN |
14659 | # This file is a shell script that caches the results of configure |
14660 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14661 | # scripts and configure runs, see configure's option --config-cache. |
14662 | # It is not useful on other systems. If it contains results you don't | |
14663 | # want to keep, you may remove or edit it. | |
671aa708 | 14664 | # |
1c710c3c DJ |
14665 | # config.status only pays attention to the cache file if you give it |
14666 | # the --recheck option to rerun configure. | |
671aa708 | 14667 | # |
1c710c3c DJ |
14668 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14669 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14670 | # following values. | |
14671 | ||
14672 | _ACEOF | |
14673 | ||
671aa708 NN |
14674 | # The following way of writing the cache mishandles newlines in values, |
14675 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14676 | # So, we kill variables containing newlines. |
671aa708 NN |
14677 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14678 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14679 | ( |
14680 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14681 | eval ac_val=\$$ac_var | |
14682 | case $ac_val in #( | |
14683 | *${as_nl}*) | |
14684 | case $ac_var in #( | |
14685 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14686 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14687 | esac | |
14688 | case $ac_var in #( | |
14689 | _ | IFS | as_nl) ;; #( | |
14690 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14691 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14692 | esac ;; | |
14693 | esac | |
14694 | done | |
14695 | ||
1c710c3c | 14696 | (set) 2>&1 | |
5213506e RW |
14697 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14698 | *${as_nl}ac_space=\ *) | |
14699 | # `set' does not quote correctly, so add quotes: double-quote | |
14700 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14701 | sed -n \ |
14702 | "s/'/'\\\\''/g; | |
14703 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14704 | ;; #( |
1c710c3c DJ |
14705 | *) |
14706 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14707 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14708 | ;; |
5213506e RW |
14709 | esac | |
14710 | sort | |
14711 | ) | | |
1c710c3c | 14712 | sed ' |
5213506e | 14713 | /^ac_cv_env_/b end |
1c710c3c | 14714 | t clear |
5213506e | 14715 | :clear |
1c710c3c DJ |
14716 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14717 | t end | |
5213506e RW |
14718 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14719 | :end' >>confcache | |
14720 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14721 | if test -w "$cache_file"; then | |
14722 | test "x$cache_file" != "x/dev/null" && | |
14723 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14724 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14725 | cat confcache >$cache_file |
671aa708 | 14726 | else |
5213506e RW |
14727 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14728 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14729 | fi |
4977bab6 | 14730 | fi |
671aa708 | 14731 | rm -f confcache |
79c06341 | 14732 | |
671aa708 NN |
14733 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14734 | # Let make expand exec_prefix. | |
14735 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 14736 | |
671aa708 NN |
14737 | # Transform confdefs.h into DEFS. |
14738 | # Protect against shell expansion while executing Makefile rules. | |
14739 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
14740 | # |
14741 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 14742 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 14743 | # look for a macro that doesn't take arguments. |
5213506e RW |
14744 | ac_script=' |
14745 | :mline | |
14746 | /\\$/{ | |
14747 | N | |
14748 | s,\\\n,, | |
14749 | b mline | |
14750 | } | |
1c710c3c | 14751 | t clear |
5213506e RW |
14752 | :clear |
14753 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 14754 | t quote |
5213506e | 14755 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 14756 | t quote |
5213506e RW |
14757 | b any |
14758 | :quote | |
14759 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14760 | s/\[/\\&/g | |
14761 | s/\]/\\&/g | |
14762 | s/\$/$$/g | |
14763 | H | |
14764 | :any | |
14765 | ${ | |
14766 | g | |
14767 | s/^\n// | |
14768 | s/\n/ /g | |
14769 | p | |
14770 | } | |
14771 | ' | |
14772 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
14773 | |
14774 | ||
14775 | ac_libobjs= | |
14776 | ac_ltlibobjs= | |
14777 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14778 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
14779 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14780 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14781 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14782 | # will be set to the directory where LIBOBJS objects are built. | |
14783 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14784 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
14785 | done |
14786 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 14787 | |
1c710c3c | 14788 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 14789 | |
af71363e | 14790 | |
1c710c3c DJ |
14791 | |
14792 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 14793 | ac_write_fail=0 |
1c710c3c DJ |
14794 | ac_clean_files_save=$ac_clean_files |
14795 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14797 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14798 | as_write_fail=0 | |
14799 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
14800 | #! $SHELL |
14801 | # Generated by $as_me. | |
671aa708 | 14802 | # Run this file to recreate the current configuration. |
671aa708 | 14803 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 14804 | # configure, is in config.log if it exists. |
0b0dc272 | 14805 | |
1c710c3c DJ |
14806 | debug=false |
14807 | ac_cs_recheck=false | |
14808 | ac_cs_silent=false | |
1c710c3c | 14809 | |
5213506e RW |
14810 | SHELL=\${CONFIG_SHELL-$SHELL} |
14811 | export SHELL | |
14812 | _ASEOF | |
14813 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14814 | ## -------------------- ## | |
14815 | ## M4sh Initialization. ## | |
14816 | ## -------------------- ## | |
14817 | ||
14818 | # Be more Bourne compatible | |
14819 | DUALCASE=1; export DUALCASE # for MKS sh | |
14820 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
14821 | emulate sh |
14822 | NULLCMD=: | |
5213506e | 14823 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
14824 | # is contrary to our usage. Disable this feature. |
14825 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
14826 | setopt NO_GLOB_SUBST |
14827 | else | |
14828 | case `(set -o) 2>/dev/null` in #( | |
14829 | *posix*) : | |
14830 | set -o posix ;; #( | |
14831 | *) : | |
14832 | ;; | |
14833 | esac | |
1c710c3c | 14834 | fi |
1c710c3c | 14835 | |
5213506e RW |
14836 | |
14837 | as_nl=' | |
14838 | ' | |
14839 | export as_nl | |
14840 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14841 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14842 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14843 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14844 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14845 | # but without wasting forks for bash or zsh. | |
14846 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14847 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14848 | as_echo='print -r --' | |
14849 | as_echo_n='print -rn --' | |
14850 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14851 | as_echo='printf %s\n' | |
14852 | as_echo_n='printf %s' | |
14853 | else | |
14854 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14855 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14856 | as_echo_n='/usr/ucb/echo -n' | |
14857 | else | |
14858 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14859 | as_echo_n_body='eval | |
14860 | arg=$1; | |
14861 | case $arg in #( | |
14862 | *"$as_nl"*) | |
14863 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14864 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14865 | esac; | |
14866 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14867 | ' | |
14868 | export as_echo_n_body | |
14869 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14870 | fi | |
14871 | export as_echo_body | |
14872 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
14873 | fi |
14874 | ||
5213506e RW |
14875 | # The user is always right. |
14876 | if test "${PATH_SEPARATOR+set}" != set; then | |
14877 | PATH_SEPARATOR=: | |
14878 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14879 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14880 | PATH_SEPARATOR=';' | |
14881 | } | |
14882 | fi | |
14883 | ||
14884 | ||
14885 | # IFS | |
14886 | # We need space, tab and new line, in precisely that order. Quoting is | |
14887 | # there to prevent editors from complaining about space-tab. | |
14888 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14889 | # splitting by setting IFS to empty value.) | |
14890 | IFS=" "" $as_nl" | |
14891 | ||
14892 | # Find who we are. Look in the path if we contain no directory separator. | |
14893 | case $0 in #(( | |
14894 | *[\\/]* ) as_myself=$0 ;; | |
14895 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14896 | for as_dir in $PATH | |
14897 | do | |
14898 | IFS=$as_save_IFS | |
14899 | test -z "$as_dir" && as_dir=. | |
14900 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14901 | done | |
14902 | IFS=$as_save_IFS | |
14903 | ||
14904 | ;; | |
14905 | esac | |
14906 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14907 | # in which case we are not to be found in the path. | |
14908 | if test "x$as_myself" = x; then | |
14909 | as_myself=$0 | |
14910 | fi | |
14911 | if test ! -f "$as_myself"; then | |
14912 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14913 | exit 1 | |
14914 | fi | |
1c710c3c | 14915 | |
5213506e RW |
14916 | # Unset variables that we do not need and which cause bugs (e.g. in |
14917 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14918 | # suppresses any "Segmentation fault" message there. '((' could | |
14919 | # trigger a bug in pdksh 5.2.14. | |
14920 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14921 | do eval test x\${$as_var+set} = xset \ | |
14922 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14923 | done | |
1c710c3c DJ |
14924 | PS1='$ ' |
14925 | PS2='> ' | |
14926 | PS4='+ ' | |
14927 | ||
14928 | # NLS nuisances. | |
5213506e RW |
14929 | LC_ALL=C |
14930 | export LC_ALL | |
14931 | LANGUAGE=C | |
14932 | export LANGUAGE | |
14933 | ||
14934 | # CDPATH. | |
14935 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14936 | ||
14937 | ||
14938 | # as_fn_error ERROR [LINENO LOG_FD] | |
14939 | # --------------------------------- | |
14940 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14941 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14942 | # script with status $?, using 1 if that was 0. | |
14943 | as_fn_error () | |
14944 | { | |
14945 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14946 | if test "$3"; then | |
14947 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14948 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 14949 | fi |
5213506e RW |
14950 | $as_echo "$as_me: error: $1" >&2 |
14951 | as_fn_exit $as_status | |
14952 | } # as_fn_error | |
14953 | ||
14954 | ||
14955 | # as_fn_set_status STATUS | |
14956 | # ----------------------- | |
14957 | # Set $? to STATUS, without forking. | |
14958 | as_fn_set_status () | |
14959 | { | |
14960 | return $1 | |
14961 | } # as_fn_set_status | |
14962 | ||
14963 | # as_fn_exit STATUS | |
14964 | # ----------------- | |
14965 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14966 | as_fn_exit () | |
14967 | { | |
14968 | set +e | |
14969 | as_fn_set_status $1 | |
14970 | exit $1 | |
14971 | } # as_fn_exit | |
14972 | ||
14973 | # as_fn_unset VAR | |
14974 | # --------------- | |
14975 | # Portably unset VAR. | |
14976 | as_fn_unset () | |
14977 | { | |
14978 | { eval $1=; unset $1;} | |
14979 | } | |
14980 | as_unset=as_fn_unset | |
14981 | # as_fn_append VAR VALUE | |
14982 | # ---------------------- | |
14983 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14984 | # advantage of any shell optimizations that allow amortized linear growth over | |
14985 | # repeated appends, instead of the typical quadratic growth present in naive | |
14986 | # implementations. | |
14987 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14988 | eval 'as_fn_append () | |
14989 | { | |
14990 | eval $1+=\$2 | |
14991 | }' | |
14992 | else | |
14993 | as_fn_append () | |
14994 | { | |
14995 | eval $1=\$$1\$2 | |
14996 | } | |
14997 | fi # as_fn_append | |
14998 | ||
14999 | # as_fn_arith ARG... | |
15000 | # ------------------ | |
15001 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15002 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15003 | # must be portable across $(()) and expr. | |
15004 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15005 | eval 'as_fn_arith () | |
15006 | { | |
15007 | as_val=$(( $* )) | |
15008 | }' | |
15009 | else | |
15010 | as_fn_arith () | |
15011 | { | |
15012 | as_val=`expr "$@" || test $? -eq 1` | |
15013 | } | |
15014 | fi # as_fn_arith | |
15015 | ||
1c710c3c | 15016 | |
5213506e RW |
15017 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15018 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
15019 | as_expr=expr |
15020 | else | |
15021 | as_expr=false | |
15022 | fi | |
15023 | ||
5213506e | 15024 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
15025 | as_basename=basename |
15026 | else | |
15027 | as_basename=false | |
15028 | fi | |
15029 | ||
5213506e RW |
15030 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15031 | as_dirname=dirname | |
15032 | else | |
15033 | as_dirname=false | |
15034 | fi | |
1c710c3c | 15035 | |
5213506e | 15036 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
15037 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15038 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
15039 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15040 | $as_echo X/"$0" | | |
15041 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15042 | s//\1/ | |
15043 | q | |
15044 | } | |
15045 | /^X\/\(\/\/\)$/{ | |
15046 | s//\1/ | |
15047 | q | |
15048 | } | |
15049 | /^X\/\(\/\).*/{ | |
15050 | s//\1/ | |
15051 | q | |
15052 | } | |
15053 | s/.*/./; q'` | |
2aeb72e9 | 15054 | |
2aeb72e9 DD |
15055 | # Avoid depending upon Character Ranges. |
15056 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15057 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15058 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15059 | as_cr_digits='0123456789' | |
15060 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15061 | ||
5213506e RW |
15062 | ECHO_C= ECHO_N= ECHO_T= |
15063 | case `echo -n x` in #((((( | |
15064 | -n*) | |
15065 | case `echo 'xy\c'` in | |
15066 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15067 | xy) ECHO_C='\c';; | |
15068 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15069 | ECHO_T=' ';; | |
15070 | esac;; | |
15071 | *) | |
15072 | ECHO_N='-n';; | |
1c710c3c DJ |
15073 | esac |
15074 | ||
5213506e RW |
15075 | rm -f conf$$ conf$$.exe conf$$.file |
15076 | if test -d conf$$.dir; then | |
15077 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 15078 | else |
5213506e RW |
15079 | rm -f conf$$.dir |
15080 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 15081 | fi |
5213506e RW |
15082 | if (echo >conf$$.file) 2>/dev/null; then |
15083 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 15084 | as_ln_s='ln -s' |
5213506e RW |
15085 | # ... but there are two gotchas: |
15086 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15087 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15088 | # In both cases, we have to default to `cp -p'. | |
15089 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15090 | as_ln_s='cp -p' | |
15091 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15092 | as_ln_s=ln | |
15093 | else | |
15094 | as_ln_s='cp -p' | |
2aeb72e9 | 15095 | fi |
1c710c3c DJ |
15096 | else |
15097 | as_ln_s='cp -p' | |
15098 | fi | |
5213506e RW |
15099 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15100 | rmdir conf$$.dir 2>/dev/null | |
15101 | ||
15102 | ||
15103 | # as_fn_mkdir_p | |
15104 | # ------------- | |
15105 | # Create "$as_dir" as a directory, including parents if necessary. | |
15106 | as_fn_mkdir_p () | |
15107 | { | |
15108 | ||
15109 | case $as_dir in #( | |
15110 | -*) as_dir=./$as_dir;; | |
15111 | esac | |
15112 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15113 | as_dirs= | |
15114 | while :; do | |
15115 | case $as_dir in #( | |
15116 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15117 | *) as_qdir=$as_dir;; | |
15118 | esac | |
15119 | as_dirs="'$as_qdir' $as_dirs" | |
15120 | as_dir=`$as_dirname -- "$as_dir" || | |
15121 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15122 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15123 | X"$as_dir" : 'X\(//\)$' \| \ | |
15124 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15125 | $as_echo X"$as_dir" | | |
15126 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15127 | s//\1/ | |
15128 | q | |
15129 | } | |
15130 | /^X\(\/\/\)[^/].*/{ | |
15131 | s//\1/ | |
15132 | q | |
15133 | } | |
15134 | /^X\(\/\/\)$/{ | |
15135 | s//\1/ | |
15136 | q | |
15137 | } | |
15138 | /^X\(\/\).*/{ | |
15139 | s//\1/ | |
15140 | q | |
15141 | } | |
15142 | s/.*/./; q'` | |
15143 | test -d "$as_dir" && break | |
15144 | done | |
15145 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15146 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15147 | ||
1c710c3c | 15148 | |
5213506e | 15149 | } # as_fn_mkdir_p |
1c710c3c | 15150 | if mkdir -p . 2>/dev/null; then |
5213506e | 15151 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
15152 | else |
15153 | test -d ./-p && rmdir ./-p | |
15154 | as_mkdir_p=false | |
15155 | fi | |
15156 | ||
5213506e RW |
15157 | if test -x / >/dev/null 2>&1; then |
15158 | as_test_x='test -x' | |
15159 | else | |
15160 | if ls -dL / >/dev/null 2>&1; then | |
15161 | as_ls_L_option=L | |
15162 | else | |
15163 | as_ls_L_option= | |
15164 | fi | |
15165 | as_test_x=' | |
15166 | eval sh -c '\'' | |
15167 | if test -d "$1"; then | |
15168 | test -d "$1/."; | |
15169 | else | |
15170 | case $1 in #( | |
15171 | -*)set "./$1";; | |
15172 | esac; | |
15173 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15174 | ???[sx]*):;;*)false;;esac;fi | |
15175 | '\'' sh | |
15176 | ' | |
15177 | fi | |
15178 | as_executable_p=$as_test_x | |
1c710c3c DJ |
15179 | |
15180 | # Sed expression to map a string onto a valid CPP name. | |
15181 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15182 | ||
15183 | # Sed expression to map a string onto a valid variable name. | |
15184 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15185 | ||
15186 | ||
1c710c3c | 15187 | exec 6>&1 |
5213506e RW |
15188 | ## ----------------------------------- ## |
15189 | ## Main body of $CONFIG_STATUS script. ## | |
15190 | ## ----------------------------------- ## | |
15191 | _ASEOF | |
15192 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15193 | ||
15194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15195 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 15196 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
15197 | # values after options handling. |
15198 | ac_log=" | |
1c710c3c | 15199 | This file was extended by $as_me, which was |
5213506e | 15200 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
15201 | |
15202 | CONFIG_FILES = $CONFIG_FILES | |
15203 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15204 | CONFIG_LINKS = $CONFIG_LINKS | |
15205 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15206 | $ $0 $@ | |
15207 | ||
5213506e RW |
15208 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15209 | " | |
15210 | ||
1c710c3c DJ |
15211 | _ACEOF |
15212 | ||
5213506e RW |
15213 | case $ac_config_files in *" |
15214 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15215 | esac | |
1c710c3c | 15216 | |
2aeb72e9 | 15217 | |
2aeb72e9 | 15218 | |
5213506e RW |
15219 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15220 | # Files that config.status was made for. | |
15221 | config_files="$ac_config_files" | |
1c710c3c | 15222 | |
5213506e | 15223 | _ACEOF |
2aeb72e9 | 15224 | |
5213506e | 15225 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 15226 | ac_cs_usage="\ |
5213506e RW |
15227 | \`$as_me' instantiates files and other configuration actions |
15228 | from templates according to the current configuration. Unless the files | |
15229 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 15230 | |
5213506e | 15231 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
15232 | |
15233 | -h, --help print this help, then exit | |
5213506e RW |
15234 | -V, --version print version number and configuration settings, then exit |
15235 | -q, --quiet, --silent | |
15236 | do not print progress messages | |
1c710c3c DJ |
15237 | -d, --debug don't remove temporary files |
15238 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
15239 | --file=FILE[:TEMPLATE] |
15240 | instantiate the configuration file FILE | |
1c710c3c DJ |
15241 | |
15242 | Configuration files: | |
15243 | $config_files | |
15244 | ||
5213506e | 15245 | Report bugs to the package provider." |
2aeb72e9 | 15246 | |
5213506e RW |
15247 | _ACEOF |
15248 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
15249 | ac_cs_version="\\ |
15250 | config.status | |
5213506e RW |
15251 | configured by $0, generated by GNU Autoconf 2.64, |
15252 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 15253 | |
5213506e | 15254 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
15255 | This config.status script is free software; the Free Software Foundation |
15256 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
15257 | |
15258 | ac_pwd='$ac_pwd' | |
15259 | srcdir='$srcdir' | |
15260 | INSTALL='$INSTALL' | |
87264276 | 15261 | AWK='$AWK' |
5213506e | 15262 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
15263 | _ACEOF |
15264 | ||
5213506e RW |
15265 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15266 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
15267 | ac_need_defaults=: |
15268 | while test $# != 0 | |
a4b9e93e | 15269 | do |
1c710c3c DJ |
15270 | case $1 in |
15271 | --*=*) | |
5213506e RW |
15272 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15273 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
15274 | ac_shift=: |
15275 | ;; | |
5213506e | 15276 | *) |
1c710c3c DJ |
15277 | ac_option=$1 |
15278 | ac_optarg=$2 | |
15279 | ac_shift=shift | |
15280 | ;; | |
1c710c3c DJ |
15281 | esac |
15282 | ||
15283 | case $ac_option in | |
15284 | # Handling of the options. | |
671aa708 | 15285 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 15286 | ac_cs_recheck=: ;; |
5213506e RW |
15287 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15288 | $as_echo "$ac_cs_version"; exit ;; | |
15289 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
15290 | debug=: ;; |
15291 | --file | --fil | --fi | --f ) | |
15292 | $ac_shift | |
5213506e RW |
15293 | case $ac_optarg in |
15294 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15295 | esac | |
15296 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 15297 | ac_need_defaults=false;; |
5213506e RW |
15298 | --he | --h | --help | --hel | -h ) |
15299 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
15300 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15301 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15302 | ac_cs_silent=: ;; | |
15303 | ||
15304 | # This is an error. | |
5213506e RW |
15305 | -*) as_fn_error "unrecognized option: \`$1' |
15306 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 15307 | |
5213506e RW |
15308 | *) as_fn_append ac_config_targets " $1" |
15309 | ac_need_defaults=false ;; | |
1c710c3c | 15310 | |
0b0dc272 | 15311 | esac |
1c710c3c | 15312 | shift |
0b0dc272 AM |
15313 | done |
15314 | ||
1c710c3c | 15315 | ac_configure_extra_args= |
0b0dc272 | 15316 | |
1c710c3c DJ |
15317 | if $ac_cs_silent; then |
15318 | exec 6>/dev/null | |
15319 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15320 | fi | |
0b0dc272 | 15321 | |
1c710c3c | 15322 | _ACEOF |
5213506e | 15323 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 15324 | if \$ac_cs_recheck; then |
5213506e RW |
15325 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15326 | shift | |
15327 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15328 | CONFIG_SHELL='$SHELL' | |
15329 | export CONFIG_SHELL | |
15330 | exec "\$@" | |
1c710c3c DJ |
15331 | fi |
15332 | ||
15333 | _ACEOF | |
5213506e RW |
15334 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15335 | exec 5>>config.log | |
15336 | { | |
15337 | echo | |
15338 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15339 | ## Running $as_me. ## | |
15340 | _ASBOX | |
15341 | $as_echo "$ac_log" | |
15342 | } >&5 | |
1c710c3c | 15343 | |
5213506e RW |
15344 | _ACEOF |
15345 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
15346 | # |
15347 | # INIT-COMMANDS | |
15348 | # | |
15349 | extrasub_build="$extrasub_build" | |
15350 | extrasub_host="$extrasub_host" | |
15351 | extrasub_target="$extrasub_target" | |
15352 | ||
5213506e | 15353 | _ACEOF |
1c710c3c | 15354 | |
5213506e | 15355 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 15356 | |
5213506e | 15357 | # Handling of arguments. |
1c710c3c DJ |
15358 | for ac_config_target in $ac_config_targets |
15359 | do | |
5213506e RW |
15360 | case $ac_config_target in |
15361 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15362 | ||
15363 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
15364 | esac |
15365 | done | |
15366 | ||
5213506e | 15367 | |
1c710c3c DJ |
15368 | # If the user did not use the arguments to specify the items to instantiate, |
15369 | # then the envvar interface is used. Set only those that are not. | |
15370 | # We use the long form for the default assignment because of an extremely | |
15371 | # bizarre bug on SunOS 4.1.3. | |
15372 | if $ac_need_defaults; then | |
15373 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15374 | fi | |
15375 | ||
15376 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 15377 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 15378 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
15379 | # Hook for its removal unless debugging. |
15380 | # Note that there is a small window in which the directory will not be cleaned: | |
15381 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
15382 | $debug || |
15383 | { | |
5213506e RW |
15384 | tmp= |
15385 | trap 'exit_status=$? | |
15386 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15387 | ' 0 | |
15388 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 15389 | } |
1c710c3c DJ |
15390 | # Create a (secure) tmp directory for tmp files. |
15391 | ||
15392 | { | |
5213506e | 15393 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
15394 | test -n "$tmp" && test -d "$tmp" |
15395 | } || | |
15396 | { | |
5213506e RW |
15397 | tmp=./conf$$-$RANDOM |
15398 | (umask 077 && mkdir "$tmp") | |
15399 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15400 | ||
15401 | # Set up the scripts for CONFIG_FILES section. | |
15402 | # No need to generate them if there are no CONFIG_FILES. | |
15403 | # This happens for instance with `./config.status config.h'. | |
15404 | if test -n "$CONFIG_FILES"; then | |
15405 | ||
15406 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15407 | ac_cs_awk_getline=: | |
15408 | ac_cs_awk_pipe_init= | |
15409 | ac_cs_awk_read_file=' | |
15410 | while ((getline aline < (F[key])) > 0) | |
15411 | print(aline) | |
15412 | close(F[key])' | |
15413 | ac_cs_awk_pipe_fini= | |
15414 | else | |
15415 | ac_cs_awk_getline=false | |
15416 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15417 | ac_cs_awk_read_file=' | |
15418 | print "|#_!!_#|" | |
15419 | print "cat " F[key] " &&" | |
15420 | '$ac_cs_awk_pipe_init | |
15421 | # The final `:' finishes the AND list. | |
15422 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15423 | fi | |
15424 | ac_cr=`echo X | tr X '\015'` | |
15425 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15426 | # But we know of no other shell where ac_cr would be empty at this | |
15427 | # point, so we can use a bashism as a fallback. | |
15428 | if test "x$ac_cr" = x; then | |
15429 | eval ac_cr=\$\'\\r\' | |
15430 | fi | |
15431 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15432 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15433 | ac_cs_awk_cr='\r' | |
15434 | else | |
15435 | ac_cs_awk_cr=$ac_cr | |
15436 | fi | |
15437 | ||
15438 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15439 | _ACEOF | |
15440 | ||
15441 | # Create commands to substitute file output variables. | |
1c710c3c | 15442 | { |
5213506e RW |
15443 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15444 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15445 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15446 | echo "_ACAWK" && | |
15447 | echo "_ACEOF" | |
15448 | } >conf$$files.sh && | |
15449 | . ./conf$$files.sh || | |
15450 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15451 | rm -f conf$$files.sh | |
1c710c3c | 15452 | |
5213506e RW |
15453 | { |
15454 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15455 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15456 | echo "_ACEOF" | |
15457 | } >conf$$subs.sh || | |
15458 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15459 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15460 | ac_delim='%!_!# ' | |
15461 | for ac_last_try in false false false false false :; do | |
15462 | . ./conf$$subs.sh || | |
15463 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15464 | ||
15465 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15466 | if test $ac_delim_n = $ac_delim_num; then | |
15467 | break | |
15468 | elif $ac_last_try; then | |
15469 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15470 | else | |
15471 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15472 | fi | |
15473 | done | |
15474 | rm -f conf$$subs.sh | |
15475 | ||
15476 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15477 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 15478 | _ACEOF |
5213506e RW |
15479 | sed -n ' |
15480 | h | |
15481 | s/^/S["/; s/!.*/"]=/ | |
15482 | p | |
15483 | g | |
15484 | s/^[^!]*!// | |
15485 | :repl | |
15486 | t repl | |
15487 | s/'"$ac_delim"'$// | |
15488 | t delim | |
15489 | :nl | |
15490 | h | |
15491 | s/\(.\{148\}\).*/\1/ | |
15492 | t more1 | |
15493 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15494 | p | |
15495 | n | |
15496 | b repl | |
15497 | :more1 | |
15498 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15499 | p | |
15500 | g | |
15501 | s/.\{148\}// | |
15502 | t nl | |
15503 | :delim | |
15504 | h | |
15505 | s/\(.\{148\}\).*/\1/ | |
15506 | t more2 | |
15507 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15508 | p | |
15509 | b | |
15510 | :more2 | |
15511 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15512 | p | |
15513 | g | |
15514 | s/.\{148\}// | |
15515 | t delim | |
15516 | ' <conf$$subs.awk | sed ' | |
15517 | /^[^""]/{ | |
15518 | N | |
15519 | s/\n// | |
15520 | } | |
15521 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15522 | rm -f conf$$subs.awk | |
15523 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15524 | _ACAWK | |
15525 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15526 | for (key in S) S_is_set[key] = 1 | |
15527 | FS = "\a" | |
15528 | \$ac_cs_awk_pipe_init | |
15529 | } | |
15530 | { | |
15531 | line = $ 0 | |
15532 | nfields = split(line, field, "@") | |
15533 | substed = 0 | |
15534 | len = length(field[1]) | |
15535 | for (i = 2; i < nfields; i++) { | |
15536 | key = field[i] | |
15537 | keylen = length(key) | |
15538 | if (S_is_set[key]) { | |
15539 | value = S[key] | |
15540 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15541 | len += length(value) + length(field[++i]) | |
15542 | substed = 1 | |
15543 | } else | |
15544 | len += 1 + keylen | |
15545 | } | |
15546 | if (nfields == 3 && !substed) { | |
15547 | key = field[2] | |
15548 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15549 | \$ac_cs_awk_read_file | |
15550 | next | |
15551 | } | |
15552 | } | |
15553 | print line | |
15554 | } | |
15555 | \$ac_cs_awk_pipe_fini | |
15556 | _ACAWK | |
15557 | _ACEOF | |
15558 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15559 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15560 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15561 | else | |
15562 | cat | |
15563 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15564 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15565 | _ACEOF | |
15566 | ||
15567 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15568 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15569 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15570 | # (actually we leave an empty line to preserve line numbers). | |
15571 | if test "x$srcdir" = x.; then | |
15572 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15573 | s/:*\$(srcdir):*/:/ | |
15574 | s/:*\${srcdir}:*/:/ | |
15575 | s/:*@srcdir@:*/:/ | |
15576 | s/^\([^=]*=[ ]*\):*/\1/ | |
15577 | s/:*$// | |
15578 | s/^[^=]*=[ ]*$// | |
15579 | }' | |
15580 | fi | |
2aeb72e9 | 15581 | |
5213506e RW |
15582 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15583 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 15584 | |
1c710c3c | 15585 | |
5213506e RW |
15586 | eval set X " :F $CONFIG_FILES " |
15587 | shift | |
15588 | for ac_tag | |
15589 | do | |
15590 | case $ac_tag in | |
15591 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15592 | esac | |
15593 | case $ac_mode$ac_tag in | |
15594 | :[FHL]*:*);; | |
15595 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15596 | :[FH]-) ac_tag=-:-;; | |
15597 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15598 | esac | |
15599 | ac_save_IFS=$IFS | |
15600 | IFS=: | |
15601 | set x $ac_tag | |
15602 | IFS=$ac_save_IFS | |
15603 | shift | |
15604 | ac_file=$1 | |
15605 | shift | |
79c06341 | 15606 | |
5213506e RW |
15607 | case $ac_mode in |
15608 | :L) ac_source=$1;; | |
15609 | :[FH]) | |
15610 | ac_file_inputs= | |
15611 | for ac_f | |
15612 | do | |
15613 | case $ac_f in | |
15614 | -) ac_f="$tmp/stdin";; | |
15615 | *) # Look for the file first in the build tree, then in the source tree | |
15616 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15617 | # because $ac_f cannot contain `:'. | |
15618 | test -f "$ac_f" || | |
15619 | case $ac_f in | |
15620 | [\\/$]*) false;; | |
15621 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15622 | esac || | |
15623 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15624 | esac | |
15625 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15626 | as_fn_append ac_file_inputs " '$ac_f'" | |
15627 | done | |
1c710c3c | 15628 | |
5213506e RW |
15629 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15630 | # use $as_me), people would be surprised to read: | |
15631 | # /* config.h. Generated by config.status. */ | |
15632 | configure_input='Generated from '` | |
15633 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15634 | `' by configure.' | |
15635 | if test x"$ac_file" != x-; then | |
15636 | configure_input="$ac_file. $configure_input" | |
15637 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15638 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15639 | fi |
5213506e RW |
15640 | # Neutralize special characters interpreted by sed in replacement strings. |
15641 | case $configure_input in #( | |
15642 | *\&* | *\|* | *\\* ) | |
15643 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15644 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15645 | *) ac_sed_conf_input=$configure_input;; | |
15646 | esac | |
11a67599 | 15647 | |
5213506e RW |
15648 | case $ac_tag in |
15649 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15650 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15651 | esac | |
15652 | ;; | |
11a67599 ZW |
15653 | esac |
15654 | ||
5213506e | 15655 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15656 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15657 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15658 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15659 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15660 | $as_echo X"$ac_file" | | |
15661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15662 | s//\1/ | |
15663 | q | |
15664 | } | |
15665 | /^X\(\/\/\)[^/].*/{ | |
15666 | s//\1/ | |
15667 | q | |
15668 | } | |
15669 | /^X\(\/\/\)$/{ | |
15670 | s//\1/ | |
15671 | q | |
15672 | } | |
15673 | /^X\(\/\).*/{ | |
15674 | s//\1/ | |
15675 | q | |
15676 | } | |
15677 | s/.*/./; q'` | |
15678 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15679 | ac_builddir=. |
0b0dc272 | 15680 | |
5213506e RW |
15681 | case "$ac_dir" in |
15682 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15683 | *) | |
15684 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15685 | # A ".." for each directory in $ac_dir_suffix. | |
15686 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15687 | case $ac_top_builddir_sub in | |
15688 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15689 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15690 | esac ;; | |
15691 | esac | |
15692 | ac_abs_top_builddir=$ac_pwd | |
15693 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15694 | # for backward compatibility: | |
15695 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15696 | |
15697 | case $srcdir in | |
5213506e | 15698 | .) # We are building in place. |
1c710c3c | 15699 | ac_srcdir=. |
5213506e RW |
15700 | ac_top_srcdir=$ac_top_builddir_sub |
15701 | ac_abs_top_srcdir=$ac_pwd ;; | |
15702 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15703 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15704 | ac_top_srcdir=$srcdir |
15705 | ac_abs_top_srcdir=$srcdir ;; | |
15706 | *) # Relative name. | |
15707 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15708 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15709 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15710 | esac |
5213506e | 15711 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15712 | |
0b0dc272 | 15713 | |
5213506e RW |
15714 | case $ac_mode in |
15715 | :F) | |
15716 | # | |
15717 | # CONFIG_FILE | |
15718 | # | |
1c710c3c DJ |
15719 | |
15720 | case $INSTALL in | |
15721 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15722 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15723 | esac |
5213506e | 15724 | _ACEOF |
11a67599 | 15725 | |
5213506e RW |
15726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15727 | # If the template does not know about datarootdir, expand it. | |
15728 | # FIXME: This hack should be removed a few years after 2.60. | |
15729 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15730 | ac_sed_dataroot=' | |
15731 | /datarootdir/ { | |
15732 | p | |
15733 | q | |
15734 | } | |
15735 | /@datadir@/p | |
15736 | /@docdir@/p | |
15737 | /@infodir@/p | |
15738 | /@localedir@/p | |
15739 | /@mandir@/p' | |
15740 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15741 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15742 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15744 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 15745 | _ACEOF |
5213506e RW |
15746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15747 | ac_datarootdir_hack=' | |
15748 | s&@datadir@&$datadir&g | |
15749 | s&@docdir@&$docdir&g | |
15750 | s&@infodir@&$infodir&g | |
15751 | s&@localedir@&$localedir&g | |
15752 | s&@mandir@&$mandir&g | |
15753 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15754 | esac | |
15755 | _ACEOF | |
15756 | ||
15757 | # Neutralize VPATH when `$srcdir' = `.'. | |
15758 | # Shell code in configure.ac might set extrasub. | |
15759 | # FIXME: do we really want to maintain this feature? | |
15760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15761 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
15762 | $extrasub |
15763 | _ACEOF | |
5213506e | 15764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
15765 | :t |
15766 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
15767 | s|@configure_input@|$ac_sed_conf_input|;t t |
15768 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15769 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15770 | s&@srcdir@&$ac_srcdir&;t t | |
15771 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15772 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15773 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15774 | s&@builddir@&$ac_builddir&;t t | |
15775 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15776 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15777 | s&@INSTALL@&$ac_INSTALL&;t t | |
15778 | $ac_datarootdir_hack | |
15779 | " | |
15780 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15781 | if $ac_cs_awk_getline; then | |
15782 | $AWK -f "$tmp/subs.awk" | |
15783 | else | |
15784 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15785 | fi >$tmp/out \ | |
15786 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15787 | ||
15788 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15789 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15790 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15792 | which seems to be undefined. Please make sure it is defined." >&5 | |
15793 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15794 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15795 | ||
15796 | rm -f "$tmp/stdin" | |
15797 | case $ac_file in | |
15798 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15799 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15800 | esac \ | |
15801 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15802 | ;; | |
11a67599 | 15803 | |
11a67599 | 15804 | |
79c06341 | 15805 | |
5213506e RW |
15806 | esac |
15807 | ||
3e54529c RW |
15808 | |
15809 | case $ac_file$ac_mode in | |
15810 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15811 | sed "$extrasub_host" | | |
15812 | sed "$extrasub_target" > mf$$ | |
15813 | mv -f mf$$ Makefile ;; | |
15814 | ||
15815 | esac | |
5213506e RW |
15816 | done # for ac_tag |
15817 | ||
15818 | ||
15819 | as_fn_exit 0 | |
1c710c3c | 15820 | _ACEOF |
1c710c3c DJ |
15821 | ac_clean_files=$ac_clean_files_save |
15822 | ||
5213506e RW |
15823 | test $ac_write_fail = 0 || |
15824 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15825 | ||
1c710c3c DJ |
15826 | |
15827 | # configure is writing to config.log, and then calls config.status. | |
15828 | # config.status does its own redirection, appending to config.log. | |
15829 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15830 | # by configure, so config.status won't be able to write to it; its | |
15831 | # output is simply discarded. So we exec the FD to /dev/null, | |
15832 | # effectively closing config.log, so it can be properly (re)opened and | |
15833 | # appended to by config.status. When coming back to configure, we | |
15834 | # need to make the FD available again. | |
15835 | if test "$no_create" != yes; then | |
15836 | ac_cs_success=: | |
15837 | ac_config_status_args= | |
15838 | test "$silent" = yes && | |
15839 | ac_config_status_args="$ac_config_status_args --quiet" | |
15840 | exec 5>/dev/null | |
15841 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15842 | exec 5>>config.log | |
15843 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15844 | # would make configure fail if this is the last instruction. | |
5213506e RW |
15845 | $ac_cs_success || as_fn_exit $? |
15846 | fi | |
15847 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15849 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 15850 | fi |
79c06341 | 15851 |