]>
Commit | Line | Data |
---|---|---|
671aa708 | 1 | #! /bin/sh |
671aa708 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5213506e RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
671aa708 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
5213506e RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
1c710c3c | 14 | |
5213506e RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
18 | emulate sh |
19 | NULLCMD=: | |
5213506e | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
1c710c3c | 31 | fi |
1c710c3c | 32 | |
5213506e RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
1c710c3c DJ |
79 | fi |
80 | ||
81 | ||
5213506e RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
1c710c3c DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
5213506e RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
87264276 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
5213506e RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
1c710c3c | 184 | do |
5213506e RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
1c710c3c | 228 | else |
5213506e RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
1c710c3c | 233 | fi |
5213506e RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
1c710c3c | 263 | |
5213506e RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
5213506e | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
5213506e RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
1c710c3c | 391 | |
5213506e | 392 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
1c710c3c | 410 | |
2aeb72e9 DD |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11a67599 | 417 | |
1c710c3c | 418 | |
5213506e RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
1c710c3c | 428 | sed ' |
5213506e RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
1c710c3c | 433 | N |
5213506e RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
1c710c3c | 436 | t loop |
5213506e | 437 | s/-\n.*// |
1c710c3c | 438 | ' >$as_me.lineno && |
5213506e RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
1c710c3c DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
5213506e RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
1c710c3c DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
5213506e RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
1c710c3c DJ |
461 | esac |
462 | ||
5213506e RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 466 | else |
5213506e RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 469 | fi |
5213506e RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 472 | as_ln_s='ln -s' |
5213506e RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
2aeb72e9 | 483 | fi |
1c710c3c DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
5213506e RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
1c710c3c DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
5213506e | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
5213506e RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
0b0dc272 | 519 | |
1c710c3c DJ |
520 | # Sed expression to map a string onto a valid CPP name. |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
5213506e | 527 | exec 7<&0 </dev/null 6>&1 |
1c710c3c DJ |
528 | |
529 | # Name of the host. | |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
1c710c3c DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
671aa708 | 537 | ac_default_prefix=/usr/local |
5213506e | 538 | ac_clean_files= |
1c710c3c | 539 | ac_config_libobj_dir=. |
5213506e | 540 | LIBOBJS= |
1c710c3c DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
2aeb72e9 | 545 | |
1c710c3c DJ |
546 | # Identity of this package. |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
5213506e | 552 | PACKAGE_URL= |
1c710c3c DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
5213506e RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
78767fd9 | 559 | POSTSTAGE1_CONFIGURE_FLAGS |
5213506e RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
574 | RANLIB_FOR_TARGET | |
575 | OBJDUMP_FOR_TARGET | |
576 | NM_FOR_TARGET | |
577 | LIPO_FOR_TARGET | |
578 | LD_FOR_TARGET | |
579 | DLLTOOL_FOR_TARGET | |
580 | AS_FOR_TARGET | |
581 | AR_FOR_TARGET | |
632e2a07 | 582 | GOC_FOR_TARGET |
5213506e RW |
583 | GFORTRAN_FOR_TARGET |
584 | GCJ_FOR_TARGET | |
585 | GCC_FOR_TARGET | |
586 | CXX_FOR_TARGET | |
587 | CC_FOR_TARGET | |
588 | OBJDUMP | |
589 | OBJCOPY | |
590 | WINDMC | |
591 | WINDRES | |
592 | STRIP | |
593 | RANLIB | |
594 | NM | |
595 | LIPO | |
596 | LD | |
597 | DLLTOOL | |
598 | AS | |
599 | AR | |
600 | RUNTEST | |
601 | EXPECT | |
602 | MAKEINFO | |
603 | FLEX | |
604 | LEX | |
605 | M4 | |
606 | BISON | |
607 | YACC | |
5213506e RW |
608 | WINDRES_FOR_BUILD |
609 | WINDMC_FOR_BUILD | |
610 | RANLIB_FOR_BUILD | |
611 | NM_FOR_BUILD | |
612 | LD_FOR_BUILD | |
613 | LDFLAGS_FOR_BUILD | |
632e2a07 | 614 | GOC_FOR_BUILD |
5213506e RW |
615 | GFORTRAN_FOR_BUILD |
616 | GCJ_FOR_BUILD | |
617 | DLLTOOL_FOR_BUILD | |
618 | CXX_FOR_BUILD | |
619 | CXXFLAGS_FOR_BUILD | |
620 | CFLAGS_FOR_BUILD | |
621 | CC_FOR_BUILD | |
622 | AS_FOR_BUILD | |
623 | AR_FOR_BUILD | |
aae29963 | 624 | target_configdirs |
5213506e | 625 | configdirs |
5213506e | 626 | build_configdirs |
5213506e RW |
627 | INSTALL_GDB_TK |
628 | GDB_TK | |
629 | CONFIGURE_GDB_TK | |
630 | build_tooldir | |
631 | tooldir | |
632 | GCC_SHLIB_SUBDIR | |
633 | RPATH_ENVVAR | |
ffedf511 RW |
634 | target_configargs |
635 | host_configargs | |
636 | build_configargs | |
e12c4094 | 637 | BUILD_CONFIG |
6f57bdf6 | 638 | LDFLAGS_FOR_TARGET |
5213506e RW |
639 | CXXFLAGS_FOR_TARGET |
640 | CFLAGS_FOR_TARGET | |
641 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
642 | SYSROOT_CFLAGS_FOR_TARGET | |
643 | stage1_languages | |
d7f09764 | 644 | extra_host_libiberty_configure_flags |
5213506e RW |
645 | clooginc |
646 | clooglibs | |
647 | pplinc | |
648 | ppllibs | |
5213506e | 649 | poststage1_ldflags |
ed2eaa9f | 650 | poststage1_libs |
5213506e RW |
651 | stage1_libs |
652 | stage1_ldflags | |
653 | extra_mpc_mpfr_configure_flags | |
654 | extra_mpc_gmp_configure_flags | |
655 | extra_mpfr_configure_flags | |
656 | gmpinc | |
657 | gmplibs | |
658 | do_compare | |
659 | GNATMAKE | |
660 | GNATBIND | |
661 | ac_ct_CXX | |
662 | CXXFLAGS | |
663 | CXX | |
664 | OBJEXT | |
665 | EXEEXT | |
666 | ac_ct_CC | |
667 | CPPFLAGS | |
668 | LDFLAGS | |
669 | CFLAGS | |
670 | CC | |
a4a2c37d | 671 | EXTRA_CONFIGARGS_LIBJAVA |
5213506e RW |
672 | target_subdir |
673 | host_subdir | |
674 | build_subdir | |
675 | build_libsubdir | |
87264276 PB |
676 | AWK |
677 | SED | |
5213506e RW |
678 | LN_S |
679 | LN | |
680 | INSTALL_DATA | |
681 | INSTALL_SCRIPT | |
682 | INSTALL_PROGRAM | |
683 | target_os | |
684 | target_vendor | |
685 | target_cpu | |
686 | target | |
687 | host_os | |
688 | host_vendor | |
689 | host_cpu | |
690 | host | |
691 | target_noncanonical | |
692 | host_noncanonical | |
693 | build_noncanonical | |
694 | build_os | |
695 | build_vendor | |
696 | build_cpu | |
697 | build | |
698 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
699 | target_alias | |
700 | host_alias | |
701 | build_alias | |
702 | LIBS | |
703 | ECHO_T | |
704 | ECHO_N | |
705 | ECHO_C | |
706 | DEFS | |
707 | mandir | |
708 | localedir | |
709 | libdir | |
710 | psdir | |
711 | pdfdir | |
712 | dvidir | |
713 | htmldir | |
714 | infodir | |
715 | docdir | |
716 | oldincludedir | |
717 | includedir | |
718 | localstatedir | |
719 | sharedstatedir | |
720 | sysconfdir | |
721 | datadir | |
722 | datarootdir | |
723 | libexecdir | |
724 | sbindir | |
725 | bindir | |
726 | program_transform_name | |
727 | prefix | |
728 | exec_prefix | |
729 | PACKAGE_URL | |
730 | PACKAGE_BUGREPORT | |
731 | PACKAGE_STRING | |
732 | PACKAGE_VERSION | |
733 | PACKAGE_TARNAME | |
734 | PACKAGE_NAME | |
735 | PATH_SEPARATOR | |
736 | SHELL' | |
737 | ac_subst_files='serialization_dependencies | |
738 | host_makefile_frag | |
739 | target_makefile_frag | |
740 | alphaieee_frag | |
741 | ospace_frag' | |
742 | ac_user_opts=' | |
743 | enable_option_checking | |
744 | with_build_libsubdir | |
745 | enable_gold | |
21539e2e | 746 | enable_ld |
87e6d9dc TB |
747 | enable_libquadmath |
748 | enable_libquadmath_support | |
5213506e RW |
749 | enable_libada |
750 | enable_libssp | |
a4a2c37d | 751 | enable_static_libjava |
5213506e | 752 | enable_build_with_cxx |
78767fd9 | 753 | enable_build_poststage1_with_cxx |
5213506e RW |
754 | with_mpc |
755 | with_mpc_include | |
756 | with_mpc_lib | |
757 | with_mpfr_dir | |
758 | with_mpfr | |
759 | with_mpfr_include | |
760 | with_mpfr_lib | |
761 | with_gmp_dir | |
762 | with_gmp | |
763 | with_gmp_include | |
764 | with_gmp_lib | |
765 | with_host_libstdcxx | |
766 | with_stage1_ldflags | |
767 | with_stage1_libs | |
5213506e | 768 | with_boot_libs |
ed2eaa9f | 769 | with_boot_ldflags |
5213506e RW |
770 | with_ppl |
771 | with_ppl_include | |
772 | with_ppl_lib | |
773 | enable_ppl_version_check | |
774 | with_cloog | |
775 | with_cloog_include | |
776 | with_cloog_lib | |
f16e2237 | 777 | enable_cloog_backend |
5213506e | 778 | enable_cloog_version_check |
d7f09764 | 779 | enable_lto |
5213506e RW |
780 | enable_stage1_languages |
781 | enable_objc_gc | |
782 | with_build_sysroot | |
783 | with_debug_prefix_map | |
784 | enable_bootstrap | |
5646b7b9 | 785 | with_build_config |
5213506e RW |
786 | enable_serial_configure |
787 | with_build_time_tools | |
788 | enable_maintainer_mode | |
789 | enable_stage1_checking | |
790 | enable_werror | |
5213506e RW |
791 | ' |
792 | ac_precious_vars='build_alias | |
793 | host_alias | |
794 | target_alias | |
795 | CC | |
796 | CFLAGS | |
797 | LDFLAGS | |
798 | LIBS | |
799 | CPPFLAGS | |
800 | CXX | |
801 | CXXFLAGS | |
802 | CCC | |
ffedf511 RW |
803 | build_configargs |
804 | host_configargs | |
805 | target_configargs | |
5213506e RW |
806 | AR |
807 | AS | |
808 | DLLTOOL | |
809 | LD | |
810 | LIPO | |
811 | NM | |
812 | RANLIB | |
813 | STRIP | |
814 | WINDRES | |
815 | WINDMC | |
816 | OBJCOPY | |
817 | OBJDUMP | |
818 | CC_FOR_TARGET | |
819 | CXX_FOR_TARGET | |
820 | GCC_FOR_TARGET | |
821 | GCJ_FOR_TARGET | |
822 | GFORTRAN_FOR_TARGET | |
632e2a07 | 823 | GOC_FOR_TARGET |
5213506e RW |
824 | AR_FOR_TARGET |
825 | AS_FOR_TARGET | |
826 | DLLTOOL_FOR_TARGET | |
827 | LD_FOR_TARGET | |
828 | LIPO_FOR_TARGET | |
829 | NM_FOR_TARGET | |
830 | OBJDUMP_FOR_TARGET | |
831 | RANLIB_FOR_TARGET | |
832 | STRIP_FOR_TARGET | |
833 | WINDRES_FOR_TARGET | |
834 | WINDMC_FOR_TARGET' | |
835 | ||
671aa708 NN |
836 | |
837 | # Initialize some variables set by options. | |
1c710c3c DJ |
838 | ac_init_help= |
839 | ac_init_version=false | |
5213506e RW |
840 | ac_unrecognized_opts= |
841 | ac_unrecognized_sep= | |
671aa708 NN |
842 | # The variables have the same names as the options, with |
843 | # dashes changed to underlines. | |
1c710c3c | 844 | cache_file=/dev/null |
671aa708 | 845 | exec_prefix=NONE |
671aa708 | 846 | no_create= |
671aa708 NN |
847 | no_recursion= |
848 | prefix=NONE | |
849 | program_prefix=NONE | |
850 | program_suffix=NONE | |
851 | program_transform_name=s,x,x, | |
852 | silent= | |
853 | site= | |
854 | srcdir= | |
671aa708 NN |
855 | verbose= |
856 | x_includes=NONE | |
857 | x_libraries=NONE | |
1c710c3c DJ |
858 | |
859 | # Installation directory options. | |
860 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
861 | # and all the variables that are supposed to be based on exec_prefix | |
862 | # by default will actually change. | |
863 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5213506e | 864 | # (The list follows the same order as the GNU Coding Standards.) |
671aa708 NN |
865 | bindir='${exec_prefix}/bin' |
866 | sbindir='${exec_prefix}/sbin' | |
867 | libexecdir='${exec_prefix}/libexec' | |
5213506e RW |
868 | datarootdir='${prefix}/share' |
869 | datadir='${datarootdir}' | |
671aa708 NN |
870 | sysconfdir='${prefix}/etc' |
871 | sharedstatedir='${prefix}/com' | |
872 | localstatedir='${prefix}/var' | |
671aa708 NN |
873 | includedir='${prefix}/include' |
874 | oldincludedir='/usr/include' | |
5213506e RW |
875 | docdir='${datarootdir}/doc/${PACKAGE}' |
876 | infodir='${datarootdir}/info' | |
877 | htmldir='${docdir}' | |
878 | dvidir='${docdir}' | |
879 | pdfdir='${docdir}' | |
880 | psdir='${docdir}' | |
881 | libdir='${exec_prefix}/lib' | |
882 | localedir='${datarootdir}/locale' | |
883 | mandir='${datarootdir}/man' | |
79c06341 | 884 | |
671aa708 | 885 | ac_prev= |
5213506e | 886 | ac_dashdash= |
671aa708 NN |
887 | for ac_option |
888 | do | |
671aa708 NN |
889 | # If the previous option needs an argument, assign it. |
890 | if test -n "$ac_prev"; then | |
5213506e | 891 | eval $ac_prev=\$ac_option |
671aa708 NN |
892 | ac_prev= |
893 | continue | |
894 | fi | |
79c06341 | 895 | |
5213506e RW |
896 | case $ac_option in |
897 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
898 | *) ac_optarg=yes ;; | |
899 | esac | |
671aa708 NN |
900 | |
901 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
902 | ||
5213506e RW |
903 | case $ac_dashdash$ac_option in |
904 | --) | |
905 | ac_dashdash=yes ;; | |
671aa708 NN |
906 | |
907 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
908 | ac_prev=bindir ;; | |
909 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1c710c3c | 910 | bindir=$ac_optarg ;; |
671aa708 NN |
911 | |
912 | -build | --build | --buil | --bui | --bu) | |
1c710c3c | 913 | ac_prev=build_alias ;; |
671aa708 | 914 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1c710c3c | 915 | build_alias=$ac_optarg ;; |
671aa708 NN |
916 | |
917 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
918 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
919 | ac_prev=cache_file ;; | |
920 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
921 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1c710c3c DJ |
922 | cache_file=$ac_optarg ;; |
923 | ||
924 | --config-cache | -C) | |
925 | cache_file=config.cache ;; | |
671aa708 | 926 | |
5213506e | 927 | -datadir | --datadir | --datadi | --datad) |
671aa708 | 928 | ac_prev=datadir ;; |
5213506e | 929 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1c710c3c | 930 | datadir=$ac_optarg ;; |
671aa708 | 931 | |
5213506e RW |
932 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
933 | | --dataroo | --dataro | --datar) | |
934 | ac_prev=datarootdir ;; | |
935 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
936 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
937 | datarootdir=$ac_optarg ;; | |
938 | ||
671aa708 | 939 | -disable-* | --disable-*) |
5213506e | 940 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
671aa708 | 941 | # Reject names that are not valid shell variable names. |
5213506e RW |
942 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
943 | as_fn_error "invalid feature name: $ac_useropt" | |
944 | ac_useropt_orig=$ac_useropt | |
945 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
946 | case $ac_user_opts in | |
947 | *" | |
948 | "enable_$ac_useropt" | |
949 | "*) ;; | |
950 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
951 | ac_unrecognized_sep=', ';; | |
952 | esac | |
953 | eval enable_$ac_useropt=no ;; | |
954 | ||
955 | -docdir | --docdir | --docdi | --doc | --do) | |
956 | ac_prev=docdir ;; | |
957 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
958 | docdir=$ac_optarg ;; | |
959 | ||
960 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
961 | ac_prev=dvidir ;; | |
962 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
963 | dvidir=$ac_optarg ;; | |
671aa708 NN |
964 | |
965 | -enable-* | --enable-*) | |
5213506e | 966 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
671aa708 | 967 | # Reject names that are not valid shell variable names. |
5213506e RW |
968 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
969 | as_fn_error "invalid feature name: $ac_useropt" | |
970 | ac_useropt_orig=$ac_useropt | |
971 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
972 | case $ac_user_opts in | |
973 | *" | |
974 | "enable_$ac_useropt" | |
975 | "*) ;; | |
976 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
977 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 978 | esac |
5213506e | 979 | eval enable_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
980 | |
981 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
982 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
983 | | --exec | --exe | --ex) | |
984 | ac_prev=exec_prefix ;; | |
985 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
986 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
987 | | --exec=* | --exe=* | --ex=*) | |
1c710c3c | 988 | exec_prefix=$ac_optarg ;; |
671aa708 NN |
989 | |
990 | -gas | --gas | --ga | --g) | |
991 | # Obsolete; use --with-gas. | |
992 | with_gas=yes ;; | |
993 | ||
1c710c3c DJ |
994 | -help | --help | --hel | --he | -h) |
995 | ac_init_help=long ;; | |
996 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
997 | ac_init_help=recursive ;; | |
998 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
999 | ac_init_help=short ;; | |
671aa708 NN |
1000 | |
1001 | -host | --host | --hos | --ho) | |
1c710c3c | 1002 | ac_prev=host_alias ;; |
671aa708 | 1003 | -host=* | --host=* | --hos=* | --ho=*) |
1c710c3c | 1004 | host_alias=$ac_optarg ;; |
671aa708 | 1005 | |
5213506e RW |
1006 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1007 | ac_prev=htmldir ;; | |
1008 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1009 | | --ht=*) | |
1010 | htmldir=$ac_optarg ;; | |
1011 | ||
671aa708 NN |
1012 | -includedir | --includedir | --includedi | --included | --include \ |
1013 | | --includ | --inclu | --incl | --inc) | |
1014 | ac_prev=includedir ;; | |
1015 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1016 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1c710c3c | 1017 | includedir=$ac_optarg ;; |
671aa708 NN |
1018 | |
1019 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1020 | ac_prev=infodir ;; | |
1021 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1c710c3c | 1022 | infodir=$ac_optarg ;; |
671aa708 NN |
1023 | |
1024 | -libdir | --libdir | --libdi | --libd) | |
1025 | ac_prev=libdir ;; | |
1026 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1c710c3c | 1027 | libdir=$ac_optarg ;; |
671aa708 NN |
1028 | |
1029 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1030 | | --libexe | --libex | --libe) | |
1031 | ac_prev=libexecdir ;; | |
1032 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1033 | | --libexe=* | --libex=* | --libe=*) | |
1c710c3c | 1034 | libexecdir=$ac_optarg ;; |
671aa708 | 1035 | |
5213506e RW |
1036 | -localedir | --localedir | --localedi | --localed | --locale) |
1037 | ac_prev=localedir ;; | |
1038 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1039 | localedir=$ac_optarg ;; | |
1040 | ||
671aa708 | 1041 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5213506e | 1042 | | --localstate | --localstat | --localsta | --localst | --locals) |
671aa708 NN |
1043 | ac_prev=localstatedir ;; |
1044 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5213506e | 1045 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1c710c3c | 1046 | localstatedir=$ac_optarg ;; |
671aa708 NN |
1047 | |
1048 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1049 | ac_prev=mandir ;; | |
1050 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1c710c3c | 1051 | mandir=$ac_optarg ;; |
671aa708 NN |
1052 | |
1053 | -nfp | --nfp | --nf) | |
1054 | # Obsolete; use --without-fp. | |
1055 | with_fp=no ;; | |
1056 | ||
1057 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1c710c3c | 1058 | | --no-cr | --no-c | -n) |
671aa708 NN |
1059 | no_create=yes ;; |
1060 | ||
1061 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1062 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1063 | no_recursion=yes ;; | |
1064 | ||
1065 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1066 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1067 | | --oldin | --oldi | --old | --ol | --o) | |
1068 | ac_prev=oldincludedir ;; | |
1069 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1070 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1071 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1c710c3c | 1072 | oldincludedir=$ac_optarg ;; |
671aa708 NN |
1073 | |
1074 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1075 | ac_prev=prefix ;; | |
1076 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1c710c3c | 1077 | prefix=$ac_optarg ;; |
671aa708 NN |
1078 | |
1079 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1080 | | --program-pre | --program-pr | --program-p) | |
1081 | ac_prev=program_prefix ;; | |
1082 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1083 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1c710c3c | 1084 | program_prefix=$ac_optarg ;; |
671aa708 NN |
1085 | |
1086 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1087 | | --program-suf | --program-su | --program-s) | |
1088 | ac_prev=program_suffix ;; | |
1089 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1090 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1c710c3c | 1091 | program_suffix=$ac_optarg ;; |
671aa708 NN |
1092 | |
1093 | -program-transform-name | --program-transform-name \ | |
1094 | | --program-transform-nam | --program-transform-na \ | |
1095 | | --program-transform-n | --program-transform- \ | |
1096 | | --program-transform | --program-transfor \ | |
1097 | | --program-transfo | --program-transf \ | |
1098 | | --program-trans | --program-tran \ | |
1099 | | --progr-tra | --program-tr | --program-t) | |
1100 | ac_prev=program_transform_name ;; | |
1101 | -program-transform-name=* | --program-transform-name=* \ | |
1102 | | --program-transform-nam=* | --program-transform-na=* \ | |
1103 | | --program-transform-n=* | --program-transform-=* \ | |
1104 | | --program-transform=* | --program-transfor=* \ | |
1105 | | --program-transfo=* | --program-transf=* \ | |
1106 | | --program-trans=* | --program-tran=* \ | |
1107 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1c710c3c | 1108 | program_transform_name=$ac_optarg ;; |
671aa708 | 1109 | |
5213506e RW |
1110 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1111 | ac_prev=pdfdir ;; | |
1112 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1113 | pdfdir=$ac_optarg ;; | |
1114 | ||
1115 | -psdir | --psdir | --psdi | --psd | --ps) | |
1116 | ac_prev=psdir ;; | |
1117 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1118 | psdir=$ac_optarg ;; | |
1119 | ||
671aa708 NN |
1120 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1121 | | -silent | --silent | --silen | --sile | --sil) | |
1122 | silent=yes ;; | |
1123 | ||
1124 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1125 | ac_prev=sbindir ;; | |
1126 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1127 | | --sbi=* | --sb=*) | |
1c710c3c | 1128 | sbindir=$ac_optarg ;; |
671aa708 NN |
1129 | |
1130 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1131 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1132 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1133 | | --sha | --sh) | |
1134 | ac_prev=sharedstatedir ;; | |
1135 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1136 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1137 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1138 | | --sha=* | --sh=*) | |
1c710c3c | 1139 | sharedstatedir=$ac_optarg ;; |
671aa708 NN |
1140 | |
1141 | -site | --site | --sit) | |
1142 | ac_prev=site ;; | |
1143 | -site=* | --site=* | --sit=*) | |
1c710c3c | 1144 | site=$ac_optarg ;; |
671aa708 NN |
1145 | |
1146 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1147 | ac_prev=srcdir ;; | |
1148 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1c710c3c | 1149 | srcdir=$ac_optarg ;; |
671aa708 NN |
1150 | |
1151 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1152 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1153 | ac_prev=sysconfdir ;; | |
1154 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1155 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1c710c3c | 1156 | sysconfdir=$ac_optarg ;; |
671aa708 NN |
1157 | |
1158 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1c710c3c | 1159 | ac_prev=target_alias ;; |
671aa708 | 1160 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1c710c3c | 1161 | target_alias=$ac_optarg ;; |
671aa708 NN |
1162 | |
1163 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1164 | verbose=yes ;; | |
1165 | ||
1c710c3c DJ |
1166 | -version | --version | --versio | --versi | --vers | -V) |
1167 | ac_init_version=: ;; | |
671aa708 NN |
1168 | |
1169 | -with-* | --with-*) | |
5213506e | 1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
671aa708 | 1171 | # Reject names that are not valid shell variable names. |
5213506e RW |
1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1173 | as_fn_error "invalid package name: $ac_useropt" | |
1174 | ac_useropt_orig=$ac_useropt | |
1175 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1176 | case $ac_user_opts in | |
1177 | *" | |
1178 | "with_$ac_useropt" | |
1179 | "*) ;; | |
1180 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1181 | ac_unrecognized_sep=', ';; | |
2aeb72e9 | 1182 | esac |
5213506e | 1183 | eval with_$ac_useropt=\$ac_optarg ;; |
671aa708 NN |
1184 | |
1185 | -without-* | --without-*) | |
5213506e | 1186 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
671aa708 | 1187 | # Reject names that are not valid shell variable names. |
5213506e RW |
1188 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1189 | as_fn_error "invalid package name: $ac_useropt" | |
1190 | ac_useropt_orig=$ac_useropt | |
1191 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1192 | case $ac_user_opts in | |
1193 | *" | |
1194 | "with_$ac_useropt" | |
1195 | "*) ;; | |
1196 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1197 | ac_unrecognized_sep=', ';; | |
1198 | esac | |
1199 | eval with_$ac_useropt=no ;; | |
671aa708 NN |
1200 | |
1201 | --x) | |
1202 | # Obsolete; use --with-x. | |
1203 | with_x=yes ;; | |
1204 | ||
1205 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1206 | | --x-incl | --x-inc | --x-in | --x-i) | |
1207 | ac_prev=x_includes ;; | |
1208 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1209 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1c710c3c | 1210 | x_includes=$ac_optarg ;; |
671aa708 NN |
1211 | |
1212 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1213 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1214 | ac_prev=x_libraries ;; | |
1215 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1216 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1c710c3c | 1217 | x_libraries=$ac_optarg ;; |
671aa708 | 1218 | |
5213506e RW |
1219 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1220 | Try \`$0 --help' for more information." | |
671aa708 NN |
1221 | ;; |
1222 | ||
1c710c3c DJ |
1223 | *=*) |
1224 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1225 | # Reject names that are not valid shell variable names. | |
5213506e RW |
1226 | case $ac_envvar in #( |
1227 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1228 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1229 | esac | |
1230 | eval $ac_envvar=\$ac_optarg | |
1c710c3c DJ |
1231 | export $ac_envvar ;; |
1232 | ||
671aa708 | 1233 | *) |
1c710c3c | 1234 | # FIXME: should be removed in autoconf 3.0. |
5213506e | 1235 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1c710c3c | 1236 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
5213506e | 1237 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1c710c3c | 1238 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
671aa708 NN |
1239 | ;; |
1240 | ||
1241 | esac | |
1242 | done | |
1243 | ||
1244 | if test -n "$ac_prev"; then | |
1c710c3c | 1245 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5213506e | 1246 | as_fn_error "missing argument to $ac_option" |
af71363e | 1247 | fi |
af71363e | 1248 | |
5213506e RW |
1249 | if test -n "$ac_unrecognized_opts"; then |
1250 | case $enable_option_checking in | |
1251 | no) ;; | |
1252 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1253 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
2aeb72e9 | 1254 | esac |
5213506e | 1255 | fi |
2aeb72e9 | 1256 | |
5213506e RW |
1257 | # Check all directory arguments for consistency. |
1258 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1259 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1260 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1261 | libdir localedir mandir | |
2aeb72e9 | 1262 | do |
5213506e RW |
1263 | eval ac_val=\$$ac_var |
1264 | # Remove trailing slashes. | |
1265 | case $ac_val in | |
1266 | */ ) | |
1267 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1268 | eval $ac_var=\$ac_val;; | |
1269 | esac | |
1270 | # Be sure to have absolute directory names. | |
2aeb72e9 | 1271 | case $ac_val in |
5213506e RW |
1272 | [\\/$]* | ?:[\\/]* ) continue;; |
1273 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
671aa708 | 1274 | esac |
5213506e | 1275 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
671aa708 NN |
1276 | done |
1277 | ||
1c710c3c DJ |
1278 | # There might be people who depend on the old broken behavior: `$host' |
1279 | # used to hold the argument of --host etc. | |
1280 | # FIXME: To remove some day. | |
1281 | build=$build_alias | |
1282 | host=$host_alias | |
1283 | target=$target_alias | |
0b0dc272 | 1284 | |
1c710c3c DJ |
1285 | # FIXME: To remove some day. |
1286 | if test "x$host_alias" != x; then | |
1287 | if test "x$build_alias" = x; then | |
1288 | cross_compiling=maybe | |
5213506e | 1289 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1c710c3c DJ |
1290 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1291 | elif test "x$build_alias" != "x$host_alias"; then | |
1292 | cross_compiling=yes | |
1293 | fi | |
1294 | fi | |
1295 | ||
1296 | ac_tool_prefix= | |
1297 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1298 | ||
1299 | test "$silent" = yes && exec 6>/dev/null | |
671aa708 | 1300 | |
671aa708 | 1301 | |
5213506e RW |
1302 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1303 | ac_ls_di=`ls -di .` && | |
1304 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1305 | as_fn_error "working directory cannot be determined" | |
1306 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1307 | as_fn_error "pwd does not report name of working directory" | |
1308 | ||
1309 | ||
671aa708 NN |
1310 | # Find the source files, if location was not specified. |
1311 | if test -z "$srcdir"; then | |
1312 | ac_srcdir_defaulted=yes | |
5213506e RW |
1313 | # Try the directory containing this script, then the parent directory. |
1314 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1315 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1316 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1317 | X"$as_myself" : 'X\(//\)$' \| \ | |
1318 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1319 | $as_echo X"$as_myself" | | |
1320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1321 | s//\1/ | |
1322 | q | |
1323 | } | |
1324 | /^X\(\/\/\)[^/].*/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)$/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\).*/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | s/.*/./; q'` | |
671aa708 | 1337 | srcdir=$ac_confdir |
5213506e | 1338 | if test ! -r "$srcdir/$ac_unique_file"; then |
671aa708 NN |
1339 | srcdir=.. |
1340 | fi | |
1341 | else | |
1342 | ac_srcdir_defaulted=no | |
1343 | fi | |
5213506e RW |
1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
1345 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1346 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1347 | fi | |
1348 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1349 | ac_abs_confdir=`( | |
1350 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1351 | pwd)` | |
1352 | # When building in place, set srcdir=. | |
1353 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1354 | srcdir=. | |
1355 | fi | |
1356 | # Remove unnecessary trailing slashes from srcdir. | |
1357 | # Double slashes in file names in object file debugging info | |
1358 | # mess up M-x gdb in Emacs. | |
1359 | case $srcdir in | |
1360 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1361 | esac | |
87841584 AM |
1362 | case $srcdir in |
1363 | *" "*) | |
1364 | as_fn_error "path to source, $srcdir, contains spaces" | |
1365 | ;; | |
1366 | esac | |
ac9e6043 RW |
1367 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1368 | ||
5213506e RW |
1369 | for ac_var in $ac_precious_vars; do |
1370 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1371 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1372 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1373 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1374 | done | |
1c710c3c DJ |
1375 | |
1376 | # | |
1377 | # Report the --help message. | |
1378 | # | |
1379 | if test "$ac_init_help" = "long"; then | |
1380 | # Omit some internal or obsolete options to make the list less imposing. | |
1381 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1382 | cat <<_ACEOF | |
1383 | \`configure' configures this package to adapt to many kinds of systems. | |
1384 | ||
1385 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1386 | ||
1387 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1388 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1389 | ||
1390 | Defaults for the options are specified in brackets. | |
1391 | ||
1392 | Configuration: | |
1393 | -h, --help display this help and exit | |
1394 | --help=short display options specific to this package | |
1395 | --help=recursive display the short help of all the included packages | |
1396 | -V, --version display version information and exit | |
1397 | -q, --quiet, --silent do not print \`checking...' messages | |
1398 | --cache-file=FILE cache test results in FILE [disabled] | |
1399 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1400 | -n, --no-create do not create output files | |
1401 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1402 | ||
1c710c3c DJ |
1403 | Installation directories: |
1404 | --prefix=PREFIX install architecture-independent files in PREFIX | |
5213506e | 1405 | [$ac_default_prefix] |
1c710c3c | 1406 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
5213506e | 1407 | [PREFIX] |
1c710c3c DJ |
1408 | |
1409 | By default, \`make install' will install all the files in | |
1410 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1411 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1412 | for instance \`--prefix=\$HOME'. | |
1413 | ||
1414 | For better control, use the options below. | |
1415 | ||
1416 | Fine tuning of the installation directories: | |
5213506e RW |
1417 | --bindir=DIR user executables [EPREFIX/bin] |
1418 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1419 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1420 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1421 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1422 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1423 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1424 | --includedir=DIR C header files [PREFIX/include] | |
1425 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1426 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1427 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1428 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1429 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1430 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1431 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1432 | --htmldir=DIR html documentation [DOCDIR] | |
1433 | --dvidir=DIR dvi documentation [DOCDIR] | |
1434 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1435 | --psdir=DIR ps documentation [DOCDIR] | |
1c710c3c DJ |
1436 | _ACEOF |
1437 | ||
1438 | cat <<\_ACEOF | |
1439 | ||
1440 | Program names: | |
1441 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1442 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1443 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1444 | ||
1445 | System types: | |
1446 | --build=BUILD configure for building on BUILD [guessed] | |
1447 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1448 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1449 | _ACEOF | |
1450 | fi | |
1451 | ||
1452 | if test -n "$ac_init_help"; then | |
1453 | ||
1454 | cat <<\_ACEOF | |
1455 | ||
1456 | Optional Features: | |
5213506e | 1457 | --disable-option-checking ignore unrecognized --enable/--with options |
1c710c3c DJ |
1458 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1459 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
21539e2e | 1460 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
33e39b66 | 1461 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
87e6d9dc TB |
1462 | --disable-libquadmath do not build libquadmath directory |
1463 | --disable-libquadmath-support | |
1464 | disable libquadmath support for Fortran | |
30b74385 RW |
1465 | --enable-libada build libada directory |
1466 | --enable-libssp build libssp directory | |
a4a2c37d MK |
1467 | --enable-static-libjava[=ARG] |
1468 | build static libjava [default=no] | |
00020c16 | 1469 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
78767fd9 ILT |
1470 | --enable-build-poststage1-with-cxx |
1471 | build stages 2 and 3 with C++, not C | |
33e39b66 AS |
1472 | --disable-ppl-version-check |
1473 | disable check for PPL version | |
39986460 TG |
1474 | --enable-cloog-backend[=BACKEND] |
1475 | set the CLooG BACKEND used to either isl, ppl or | |
1476 | ppl-legacy (default) | |
d32ef397 AS |
1477 | --disable-cloog-version-check |
1478 | disable check for CLooG version | |
d7f09764 | 1479 | --enable-lto enable link time optimization support |
33e39b66 AS |
1480 | --enable-stage1-languages[=all] |
1481 | choose additional languages to build during stage1. | |
1482 | Mostly useful for compiler development | |
1483 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1484 | Objective-C runtime | |
30b74385 RW |
1485 | --enable-bootstrap enable bootstrapping [yes if native build] |
1486 | --enable-serial-[{host,target,build}-]configure | |
33e39b66 AS |
1487 | force sequential configuration of sub-packages for |
1488 | the host, target or build machine, or all | |
1489 | sub-packages | |
1490 | --enable-maintainer-mode | |
1491 | enable make rules and dependencies not useful (and | |
1492 | sometimes confusing) to the casual installer | |
1493 | --enable-stage1-checking[=all] | |
1494 | choose additional checking for stage1 of the | |
1495 | compiler | |
1c710c3c DJ |
1496 | --enable-werror enable -Werror in bootstrap stage2 and later |
1497 | ||
1498 | Optional Packages: | |
1499 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1500 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1501 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
33e39b66 AS |
1502 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1503 | Equivalent to --with-mpc-include=PATH/include plus | |
1504 | --with-mpc-lib=PATH/lib | |
1505 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1506 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
30b74385 RW |
1507 | --with-mpfr-dir=PATH this option has been REMOVED |
1508 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
33e39b66 AS |
1509 | Equivalent to --with-mpfr-include=PATH/include plus |
1510 | --with-mpfr-lib=PATH/lib | |
1c710c3c | 1511 | --with-mpfr-include=PATH |
30b74385 RW |
1512 | specify directory for installed MPFR include files |
1513 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1514 | --with-gmp-dir=PATH this option has been REMOVED | |
33e39b66 AS |
1515 | --with-gmp=PATH specify prefix directory for the installed GMP |
1516 | package. Equivalent to | |
1517 | --with-gmp-include=PATH/include plus | |
1518 | --with-gmp-lib=PATH/lib | |
30b74385 RW |
1519 | --with-gmp-include=PATH specify directory for installed GMP include files |
1520 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
33e39b66 AS |
1521 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1522 | linking with PPL | |
1523 | --with-stage1-ldflags=FLAGS | |
1524 | linker flags for stage1 | |
1525 | --with-stage1-libs=LIBS libraries for stage1 | |
1526 | --with-boot-libs=LIBS libraries for stage2 and later | |
1527 | --with-boot-ldflags=FLAGS | |
1528 | linker flags for stage2 and later | |
1529 | --with-ppl=PATH specify prefix directory for the installed PPL | |
1530 | package. Equivalent to | |
1531 | --with-ppl-include=PATH/include plus | |
1532 | --with-ppl-lib=PATH/lib | |
1533 | --with-ppl-include=PATH specify directory for installed PPL include files | |
1534 | --with-ppl-lib=PATH specify directory for the installed PPL library | |
d32ef397 AS |
1535 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1536 | package. Equivalent to | |
1537 | --with-cloog-include=PATH/include plus | |
1538 | --with-cloog-lib=PATH/lib | |
1539 | --with-cloog-include=PATH | |
1540 | Specify directory for installed CLooG include files | |
1541 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1542 | library | |
30b74385 | 1543 | --with-build-sysroot=SYSROOT |
1c710c3c | 1544 | use sysroot as the system root during the build |
c8aea42c | 1545 | --with-debug-prefix-map='A=B C=D ...' |
33e39b66 AS |
1546 | map A to B, C to D ... in debug information |
1547 | --with-build-config='NAME NAME2...' | |
1548 | use config/NAME.mk build configuration | |
30b74385 | 1549 | --with-build-time-tools=PATH |
1c710c3c | 1550 | use given path to find target tools during the build |
1c710c3c DJ |
1551 | |
1552 | Some influential environment variables: | |
1553 | CC C compiler command | |
1554 | CFLAGS C compiler flags | |
1555 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1556 | nonstandard directory <lib dir> | |
5213506e RW |
1557 | LIBS libraries to pass to the linker, e.g. -l<library> |
1558 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1559 | you have headers in a nonstandard directory <include dir> | |
c3a86da9 DJ |
1560 | CXX C++ compiler command |
1561 | CXXFLAGS C++ compiler flags | |
ffedf511 RW |
1562 | build_configargs |
1563 | additional configure arguments for build directories | |
1564 | host_configargs | |
1565 | additional configure arguments for host directories | |
1566 | target_configargs | |
1567 | additional configure arguments for target directories | |
278a7a38 AO |
1568 | AR AR for the host |
1569 | AS AS for the host | |
1570 | DLLTOOL DLLTOOL for the host | |
1571 | LD LD for the host | |
1572 | LIPO LIPO for the host | |
1573 | NM NM for the host | |
1574 | RANLIB RANLIB for the host | |
1575 | STRIP STRIP for the host | |
1576 | WINDRES WINDRES for the host | |
901119ae | 1577 | WINDMC WINDMC for the host |
278a7a38 AO |
1578 | OBJCOPY OBJCOPY for the host |
1579 | OBJDUMP OBJDUMP for the host | |
1580 | CC_FOR_TARGET | |
1581 | CC for the target | |
1582 | CXX_FOR_TARGET | |
1583 | CXX for the target | |
1584 | GCC_FOR_TARGET | |
1585 | GCC for the target | |
1586 | GCJ_FOR_TARGET | |
1587 | GCJ for the target | |
1588 | GFORTRAN_FOR_TARGET | |
1589 | GFORTRAN for the target | |
632e2a07 ILT |
1590 | GOC_FOR_TARGET |
1591 | GOC for the target | |
278a7a38 AO |
1592 | AR_FOR_TARGET |
1593 | AR for the target | |
1594 | AS_FOR_TARGET | |
1595 | AS for the target | |
1596 | DLLTOOL_FOR_TARGET | |
1597 | DLLTOOL for the target | |
1598 | LD_FOR_TARGET | |
1599 | LD for the target | |
1600 | LIPO_FOR_TARGET | |
1601 | LIPO for the target | |
1602 | NM_FOR_TARGET | |
1603 | NM for the target | |
1604 | OBJDUMP_FOR_TARGET | |
1605 | OBJDUMP for the target | |
1606 | RANLIB_FOR_TARGET | |
1607 | RANLIB for the target | |
1608 | STRIP_FOR_TARGET | |
1609 | STRIP for the target | |
1610 | WINDRES_FOR_TARGET | |
1611 | WINDRES for the target | |
901119ae KT |
1612 | WINDMC_FOR_TARGET |
1613 | WINDMC for the target | |
1c710c3c DJ |
1614 | |
1615 | Use these variables to override the choices made by `configure' or to help | |
1616 | it to find libraries and programs with nonstandard names/locations. | |
1617 | ||
5213506e | 1618 | Report bugs to the package provider. |
1c710c3c | 1619 | _ACEOF |
5213506e | 1620 | ac_status=$? |
1c710c3c DJ |
1621 | fi |
1622 | ||
1623 | if test "$ac_init_help" = "recursive"; then | |
1624 | # If there are subdirs, report their specific --help. | |
1c710c3c | 1625 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5213506e RW |
1626 | test -d "$ac_dir" || |
1627 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1628 | continue | |
1c710c3c DJ |
1629 | ac_builddir=. |
1630 | ||
5213506e RW |
1631 | case "$ac_dir" in |
1632 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1633 | *) | |
1634 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1635 | # A ".." for each directory in $ac_dir_suffix. | |
1636 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1637 | case $ac_top_builddir_sub in | |
1638 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1639 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1640 | esac ;; | |
1641 | esac | |
1642 | ac_abs_top_builddir=$ac_pwd | |
1643 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1644 | # for backward compatibility: | |
1645 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
1646 | |
1647 | case $srcdir in | |
5213506e | 1648 | .) # We are building in place. |
1c710c3c | 1649 | ac_srcdir=. |
5213506e RW |
1650 | ac_top_srcdir=$ac_top_builddir_sub |
1651 | ac_abs_top_srcdir=$ac_pwd ;; | |
1652 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 1653 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
1654 | ac_top_srcdir=$srcdir |
1655 | ac_abs_top_srcdir=$srcdir ;; | |
1656 | *) # Relative name. | |
1657 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1658 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1659 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2aeb72e9 | 1660 | esac |
5213506e RW |
1661 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1662 | ||
1663 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1664 | # Check for guested configure. | |
1665 | if test -f "$ac_srcdir/configure.gnu"; then | |
1666 | echo && | |
1667 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1668 | elif test -f "$ac_srcdir/configure"; then | |
1669 | echo && | |
1670 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1c710c3c | 1671 | else |
5213506e RW |
1672 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1673 | fi || ac_status=$? | |
1674 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1c710c3c DJ |
1675 | done |
1676 | fi | |
1677 | ||
5213506e | 1678 | test -n "$ac_init_help" && exit $ac_status |
1c710c3c DJ |
1679 | if $ac_init_version; then |
1680 | cat <<\_ACEOF | |
5213506e RW |
1681 | configure |
1682 | generated by GNU Autoconf 2.64 | |
1c710c3c | 1683 | |
5213506e | 1684 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
1685 | This configure script is free software; the Free Software Foundation |
1686 | gives unlimited permission to copy, distribute and modify it. | |
1687 | _ACEOF | |
5213506e | 1688 | exit |
0b0dc272 | 1689 | fi |
5213506e RW |
1690 | |
1691 | ## ------------------------ ## | |
1692 | ## Autoconf initialization. ## | |
1693 | ## ------------------------ ## | |
1694 | ||
1695 | # ac_fn_c_try_compile LINENO | |
1696 | # -------------------------- | |
1697 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1698 | ac_fn_c_try_compile () | |
1699 | { | |
1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1701 | rm -f conftest.$ac_objext | |
1702 | if { { ac_try="$ac_compile" | |
1703 | case "(($ac_try" in | |
1704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1705 | *) ac_try_echo=$ac_try;; | |
1706 | esac | |
1707 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1708 | $as_echo "$ac_try_echo"; } >&5 | |
1709 | (eval "$ac_compile") 2>conftest.err | |
1710 | ac_status=$? | |
1711 | if test -s conftest.err; then | |
1712 | grep -v '^ *+' conftest.err >conftest.er1 | |
1713 | cat conftest.er1 >&5 | |
1714 | mv -f conftest.er1 conftest.err | |
1715 | fi | |
1716 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1717 | test $ac_status = 0; } && { | |
1718 | test -z "$ac_c_werror_flag" || | |
1719 | test ! -s conftest.err | |
1720 | } && test -s conftest.$ac_objext; then : | |
1721 | ac_retval=0 | |
1722 | else | |
1723 | $as_echo "$as_me: failed program was:" >&5 | |
1724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1725 | ||
1726 | ac_retval=1 | |
1727 | fi | |
1728 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1729 | return $ac_retval | |
1730 | ||
1731 | } # ac_fn_c_try_compile | |
1732 | ||
1733 | # ac_fn_cxx_try_compile LINENO | |
1734 | # ---------------------------- | |
1735 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1736 | ac_fn_cxx_try_compile () | |
1737 | { | |
1738 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1739 | rm -f conftest.$ac_objext | |
1740 | if { { ac_try="$ac_compile" | |
1741 | case "(($ac_try" in | |
1742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1743 | *) ac_try_echo=$ac_try;; | |
1744 | esac | |
1745 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1746 | $as_echo "$ac_try_echo"; } >&5 | |
1747 | (eval "$ac_compile") 2>conftest.err | |
1748 | ac_status=$? | |
1749 | if test -s conftest.err; then | |
1750 | grep -v '^ *+' conftest.err >conftest.er1 | |
1751 | cat conftest.er1 >&5 | |
1752 | mv -f conftest.er1 conftest.err | |
1753 | fi | |
1754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1755 | test $ac_status = 0; } && { | |
1756 | test -z "$ac_cxx_werror_flag" || | |
1757 | test ! -s conftest.err | |
1758 | } && test -s conftest.$ac_objext; then : | |
1759 | ac_retval=0 | |
1760 | else | |
1761 | $as_echo "$as_me: failed program was:" >&5 | |
1762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1763 | ||
1764 | ac_retval=1 | |
1765 | fi | |
1766 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1767 | return $ac_retval | |
1768 | ||
1769 | } # ac_fn_cxx_try_compile | |
1770 | ||
1771 | # ac_fn_c_try_link LINENO | |
1772 | # ----------------------- | |
1773 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1774 | ac_fn_c_try_link () | |
1775 | { | |
1776 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1778 | if { { ac_try="$ac_link" | |
1779 | case "(($ac_try" in | |
1780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 | *) ac_try_echo=$ac_try;; | |
1782 | esac | |
1783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 | $as_echo "$ac_try_echo"; } >&5 | |
1785 | (eval "$ac_link") 2>conftest.err | |
1786 | ac_status=$? | |
1787 | if test -s conftest.err; then | |
1788 | grep -v '^ *+' conftest.err >conftest.er1 | |
1789 | cat conftest.er1 >&5 | |
1790 | mv -f conftest.er1 conftest.err | |
1791 | fi | |
1792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1793 | test $ac_status = 0; } && { | |
1794 | test -z "$ac_c_werror_flag" || | |
1795 | test ! -s conftest.err | |
1796 | } && test -s conftest$ac_exeext && { | |
1797 | test "$cross_compiling" = yes || | |
1798 | $as_test_x conftest$ac_exeext | |
1799 | }; then : | |
1800 | ac_retval=0 | |
1801 | else | |
1802 | $as_echo "$as_me: failed program was:" >&5 | |
1803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1804 | ||
1805 | ac_retval=1 | |
1806 | fi | |
1807 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1808 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1809 | # interfere with the next link command; also delete a directory that is | |
1810 | # left behind by Apple's compiler. We do this before executing the actions. | |
1811 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1812 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1813 | return $ac_retval | |
1814 | ||
1815 | } # ac_fn_c_try_link | |
1816 | cat >config.log <<_ACEOF | |
1c710c3c DJ |
1817 | This file contains any messages produced by compilers while |
1818 | running configure, to aid debugging if configure makes a mistake. | |
1819 | ||
1820 | It was created by $as_me, which was | |
5213506e | 1821 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
1822 | |
1823 | $ $0 $@ | |
1824 | ||
1825 | _ACEOF | |
5213506e | 1826 | exec 5>>config.log |
1c710c3c DJ |
1827 | { |
1828 | cat <<_ASUNAME | |
1829 | ## --------- ## | |
1830 | ## Platform. ## | |
1831 | ## --------- ## | |
1832 | ||
1833 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1834 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1835 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1836 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1837 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1838 | ||
1839 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1840 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1841 | ||
1842 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1843 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1844 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5213506e | 1845 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1c710c3c DJ |
1846 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1847 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1848 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1849 | ||
1850 | _ASUNAME | |
1851 | ||
1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1853 | for as_dir in $PATH | |
1854 | do | |
1855 | IFS=$as_save_IFS | |
1856 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
1857 | $as_echo "PATH: $as_dir" |
1858 | done | |
1859 | IFS=$as_save_IFS | |
1c710c3c DJ |
1860 | |
1861 | } >&5 | |
1862 | ||
1863 | cat >&5 <<_ACEOF | |
1864 | ||
1865 | ||
1866 | ## ----------- ## | |
1867 | ## Core tests. ## | |
1868 | ## ----------- ## | |
1869 | ||
1870 | _ACEOF | |
1871 | ||
1872 | ||
1873 | # Keep a trace of the command line. | |
1874 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1875 | # Strip out --silent because we don't want to record it for future runs. | |
1876 | # Also quote any args containing shell meta-characters. | |
1877 | # Make two passes to allow for proper duplicate-argument suppression. | |
1878 | ac_configure_args= | |
1879 | ac_configure_args0= | |
1880 | ac_configure_args1= | |
1c710c3c DJ |
1881 | ac_must_keep_next=false |
1882 | for ac_pass in 1 2 | |
1883 | do | |
1884 | for ac_arg | |
1885 | do | |
1886 | case $ac_arg in | |
1887 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1888 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1889 | | -silent | --silent | --silen | --sile | --sil) | |
1890 | continue ;; | |
5213506e RW |
1891 | *\'*) |
1892 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1c710c3c DJ |
1893 | esac |
1894 | case $ac_pass in | |
5213506e | 1895 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1c710c3c | 1896 | 2) |
5213506e | 1897 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1c710c3c DJ |
1898 | if test $ac_must_keep_next = true; then |
1899 | ac_must_keep_next=false # Got value, back to normal. | |
1900 | else | |
1901 | case $ac_arg in | |
1902 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1903 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1904 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1905 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1906 | case "$ac_configure_args0 " in | |
1907 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1908 | esac | |
1909 | ;; | |
1910 | -* ) ac_must_keep_next=true ;; | |
1911 | esac | |
1912 | fi | |
5213506e | 1913 | as_fn_append ac_configure_args " '$ac_arg'" |
1c710c3c DJ |
1914 | ;; |
1915 | esac | |
1916 | done | |
1917 | done | |
5213506e RW |
1918 | { ac_configure_args0=; unset ac_configure_args0;} |
1919 | { ac_configure_args1=; unset ac_configure_args1;} | |
1c710c3c DJ |
1920 | |
1921 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1922 | # config.log. We remove comments because anyway the quotes in there | |
1923 | # would cause problems or look ugly. | |
5213506e RW |
1924 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1925 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1c710c3c DJ |
1926 | trap 'exit_status=$? |
1927 | # Save into config.log some information that might help in debugging. | |
1928 | { | |
1929 | echo | |
1930 | ||
1931 | cat <<\_ASBOX | |
1932 | ## ---------------- ## | |
1933 | ## Cache variables. ## | |
1934 | ## ---------------- ## | |
1935 | _ASBOX | |
1936 | echo | |
1937 | # The following way of writing the cache mishandles newlines in values, | |
5213506e RW |
1938 | ( |
1939 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1940 | eval ac_val=\$$ac_var | |
1941 | case $ac_val in #( | |
1942 | *${as_nl}*) | |
1943 | case $ac_var in #( | |
1944 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1945 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1946 | esac | |
1947 | case $ac_var in #( | |
1948 | _ | IFS | as_nl) ;; #( | |
1949 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1950 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1951 | esac ;; | |
1952 | esac | |
1953 | done | |
1c710c3c | 1954 | (set) 2>&1 | |
5213506e RW |
1955 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1956 | *${as_nl}ac_space=\ *) | |
1c710c3c | 1957 | sed -n \ |
5213506e RW |
1958 | "s/'\''/'\''\\\\'\'''\''/g; |
1959 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1960 | ;; #( | |
1c710c3c | 1961 | *) |
5213506e | 1962 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 1963 | ;; |
5213506e RW |
1964 | esac | |
1965 | sort | |
1966 | ) | |
1c710c3c DJ |
1967 | echo |
1968 | ||
1969 | cat <<\_ASBOX | |
1970 | ## ----------------- ## | |
1971 | ## Output variables. ## | |
1972 | ## ----------------- ## | |
1973 | _ASBOX | |
1974 | echo | |
1975 | for ac_var in $ac_subst_vars | |
1976 | do | |
5213506e RW |
1977 | eval ac_val=\$$ac_var |
1978 | case $ac_val in | |
1979 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1980 | esac | |
1981 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
1982 | done | sort |
1983 | echo | |
1984 | ||
1985 | if test -n "$ac_subst_files"; then | |
1986 | cat <<\_ASBOX | |
5213506e RW |
1987 | ## ------------------- ## |
1988 | ## File substitutions. ## | |
1989 | ## ------------------- ## | |
1c710c3c DJ |
1990 | _ASBOX |
1991 | echo | |
1992 | for ac_var in $ac_subst_files | |
1993 | do | |
5213506e RW |
1994 | eval ac_val=\$$ac_var |
1995 | case $ac_val in | |
1996 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1997 | esac | |
1998 | $as_echo "$ac_var='\''$ac_val'\''" | |
1c710c3c DJ |
1999 | done | sort |
2000 | echo | |
2001 | fi | |
2002 | ||
2003 | if test -s confdefs.h; then | |
2004 | cat <<\_ASBOX | |
2005 | ## ----------- ## | |
2006 | ## confdefs.h. ## | |
2007 | ## ----------- ## | |
2008 | _ASBOX | |
2009 | echo | |
5213506e | 2010 | cat confdefs.h |
1c710c3c DJ |
2011 | echo |
2012 | fi | |
2013 | test "$ac_signal" != 0 && | |
5213506e RW |
2014 | $as_echo "$as_me: caught signal $ac_signal" |
2015 | $as_echo "$as_me: exit $exit_status" | |
1c710c3c | 2016 | } >&5 |
5213506e RW |
2017 | rm -f core *.core core.conftest.* && |
2018 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1c710c3c | 2019 | exit $exit_status |
5213506e | 2020 | ' 0 |
1c710c3c | 2021 | for ac_signal in 1 2 13 15; do |
5213506e | 2022 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1c710c3c DJ |
2023 | done |
2024 | ac_signal=0 | |
2025 | ||
2026 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5213506e RW |
2027 | rm -f -r conftest* confdefs.h |
2028 | ||
2029 | $as_echo "/* confdefs.h */" > confdefs.h | |
1c710c3c DJ |
2030 | |
2031 | # Predefined preprocessor variables. | |
2032 | ||
2033 | cat >>confdefs.h <<_ACEOF | |
2034 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2035 | _ACEOF | |
2036 | ||
1c710c3c DJ |
2037 | cat >>confdefs.h <<_ACEOF |
2038 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2039 | _ACEOF | |
2040 | ||
1c710c3c DJ |
2041 | cat >>confdefs.h <<_ACEOF |
2042 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2043 | _ACEOF | |
0b0dc272 | 2044 | |
1c710c3c DJ |
2045 | cat >>confdefs.h <<_ACEOF |
2046 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2047 | _ACEOF | |
2048 | ||
1c710c3c DJ |
2049 | cat >>confdefs.h <<_ACEOF |
2050 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2051 | _ACEOF | |
2052 | ||
5213506e RW |
2053 | cat >>confdefs.h <<_ACEOF |
2054 | #define PACKAGE_URL "$PACKAGE_URL" | |
2055 | _ACEOF | |
2056 | ||
1c710c3c DJ |
2057 | |
2058 | # Let the site file select an alternate cache file if it wants to. | |
5213506e RW |
2059 | # Prefer an explicitly selected file to automatically selected ones. |
2060 | ac_site_file1=NONE | |
2061 | ac_site_file2=NONE | |
2062 | if test -n "$CONFIG_SITE"; then | |
2063 | ac_site_file1=$CONFIG_SITE | |
2064 | elif test "x$prefix" != xNONE; then | |
2065 | ac_site_file1=$prefix/share/config.site | |
2066 | ac_site_file2=$prefix/etc/config.site | |
2067 | else | |
2068 | ac_site_file1=$ac_default_prefix/share/config.site | |
2069 | ac_site_file2=$ac_default_prefix/etc/config.site | |
671aa708 | 2070 | fi |
5213506e RW |
2071 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2072 | do | |
2073 | test "x$ac_site_file" = xNONE && continue | |
671aa708 | 2074 | if test -r "$ac_site_file"; then |
5213506e RW |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2076 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1c710c3c | 2077 | sed 's/^/| /' "$ac_site_file" >&5 |
671aa708 NN |
2078 | . "$ac_site_file" |
2079 | fi | |
2080 | done | |
2081 | ||
2082 | if test -r "$cache_file"; then | |
1c710c3c DJ |
2083 | # Some versions of bash will fail to source /dev/null (special |
2084 | # files actually), so we avoid doing that. | |
2085 | if test -f "$cache_file"; then | |
5213506e RW |
2086 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2087 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1c710c3c | 2088 | case $cache_file in |
5213506e RW |
2089 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2090 | *) . "./$cache_file";; | |
1c710c3c DJ |
2091 | esac |
2092 | fi | |
671aa708 | 2093 | else |
5213506e RW |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2095 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1c710c3c DJ |
2096 | >$cache_file |
2097 | fi | |
2098 | ||
2099 | # Check that the precious variables saved in the cache have kept the same | |
2100 | # value. | |
2101 | ac_cache_corrupted=false | |
5213506e | 2102 | for ac_var in $ac_precious_vars; do |
1c710c3c DJ |
2103 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2104 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5213506e RW |
2105 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2106 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1c710c3c DJ |
2107 | case $ac_old_set,$ac_new_set in |
2108 | set,) | |
5213506e RW |
2109 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2110 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1c710c3c DJ |
2111 | ac_cache_corrupted=: ;; |
2112 | ,set) | |
5213506e RW |
2113 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2114 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1c710c3c DJ |
2115 | ac_cache_corrupted=: ;; |
2116 | ,);; | |
2117 | *) | |
2118 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5213506e RW |
2119 | # differences in whitespace do not lead to failure. |
2120 | ac_old_val_w=`echo x $ac_old_val` | |
2121 | ac_new_val_w=`echo x $ac_new_val` | |
2122 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2123 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2124 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2125 | ac_cache_corrupted=: | |
2126 | else | |
2127 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2128 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2129 | eval $ac_var=\$ac_old_val | |
2130 | fi | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2132 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2133 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2134 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1c710c3c DJ |
2135 | fi;; |
2136 | esac | |
2137 | # Pass precious variables to config.status. | |
2138 | if test "$ac_new_set" = set; then | |
2139 | case $ac_new_val in | |
5213506e | 2140 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1c710c3c DJ |
2141 | *) ac_arg=$ac_var=$ac_new_val ;; |
2142 | esac | |
2143 | case " $ac_configure_args " in | |
2144 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
5213506e | 2145 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
1c710c3c DJ |
2146 | esac |
2147 | fi | |
2148 | done | |
2149 | if $ac_cache_corrupted; then | |
5213506e RW |
2150 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2151 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2152 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2153 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2154 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
671aa708 | 2155 | fi |
5213506e RW |
2156 | ## -------------------- ## |
2157 | ## Main body of script. ## | |
2158 | ## -------------------- ## | |
671aa708 | 2159 | |
2aeb72e9 DD |
2160 | ac_ext=c |
2161 | ac_cpp='$CPP $CPPFLAGS' | |
2162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2165 | ||
1c710c3c DJ |
2166 | |
2167 | ||
2168 | ||
1c710c3c DJ |
2169 | |
2170 | ||
0115d4a3 | 2171 | |
1c710c3c | 2172 | |
ad33ff57 RW |
2173 | |
2174 | progname=$0 | |
2175 | # if PWD already has a value, it is probably wrong. | |
2176 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2177 | ||
2178 | # Export original configure arguments for use by sub-configures. | |
2179 | # Quote arguments with shell meta charatcers. | |
2180 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2181 | set -- "$progname" "$@" | |
2182 | for ac_arg | |
2183 | do | |
2184 | case "$ac_arg" in | |
2185 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2186 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2187 | # if the argument is of the form -foo=baz, quote the baz part only | |
2188 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2189 | *) ;; | |
2190 | esac | |
2191 | # Add the quoted argument to the list. | |
2192 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2193 | done | |
2194 | if test "$silent" = yes; then | |
2195 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2196 | fi | |
2197 | # Remove the initial space we just introduced and, as these will be | |
2198 | # expanded by make, quote '$'. | |
2199 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2200 | ||
1c710c3c DJ |
2201 | |
2202 | # Find the build, host, and target systems. | |
671aa708 | 2203 | ac_aux_dir= |
5213506e RW |
2204 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2205 | for ac_t in install-sh install.sh shtool; do | |
2206 | if test -f "$ac_dir/$ac_t"; then | |
2207 | ac_aux_dir=$ac_dir | |
2208 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2209 | break 2 | |
2210 | fi | |
2211 | done | |
671aa708 NN |
2212 | done |
2213 | if test -z "$ac_aux_dir"; then | |
5213506e | 2214 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
671aa708 | 2215 | fi |
5213506e RW |
2216 | |
2217 | # These three variables are undocumented and unsupported, | |
2218 | # and are intended to be withdrawn in a future Autoconf release. | |
2219 | # They can cause serious problems if a builder's source tree is in a directory | |
2220 | # whose full name contains unusual characters. | |
2221 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2222 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2223 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2224 | ||
671aa708 | 2225 | |
1c710c3c | 2226 | # Make sure we can run config.sub. |
5213506e RW |
2227 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2228 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2229 | ||
2230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2231 | $as_echo_n "checking build system type... " >&6; } | |
2232 | if test "${ac_cv_build+set}" = set; then : | |
2233 | $as_echo_n "(cached) " >&6 | |
2234 | else | |
2235 | ac_build_alias=$build_alias | |
2236 | test "x$ac_build_alias" = x && | |
2237 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2238 | test "x$ac_build_alias" = x && | |
2239 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2240 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2241 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2242 | ||
2243 | fi | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2245 | $as_echo "$ac_cv_build" >&6; } | |
2246 | case $ac_cv_build in | |
2247 | *-*-*) ;; | |
2248 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2249 | esac | |
1c710c3c | 2250 | build=$ac_cv_build |
5213506e RW |
2251 | ac_save_IFS=$IFS; IFS='-' |
2252 | set x $ac_cv_build | |
2253 | shift | |
2254 | build_cpu=$1 | |
2255 | build_vendor=$2 | |
2256 | shift; shift | |
2257 | # Remember, the first character of IFS is used to create $*, | |
2258 | # except with old shells: | |
2259 | build_os=$* | |
2260 | IFS=$ac_save_IFS | |
2261 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
671aa708 | 2262 | |
671aa708 | 2263 | |
1c710c3c DJ |
2264 | case ${build_alias} in |
2265 | "") build_noncanonical=${build} ;; | |
2266 | *) build_noncanonical=${build_alias} ;; | |
af71363e AS |
2267 | esac |
2268 | ||
2269 | ||
af71363e | 2270 | |
1c710c3c DJ |
2271 | case ${host_alias} in |
2272 | "") host_noncanonical=${build_noncanonical} ;; | |
2273 | *) host_noncanonical=${host_alias} ;; | |
af71363e AS |
2274 | esac |
2275 | ||
af71363e | 2276 | |
1c710c3c DJ |
2277 | |
2278 | case ${target_alias} in | |
2279 | "") target_noncanonical=${host_noncanonical} ;; | |
2280 | *) target_noncanonical=${target_alias} ;; | |
af71363e AS |
2281 | esac |
2282 | ||
af71363e | 2283 | |
1c710c3c DJ |
2284 | |
2285 | ||
2286 | test "$host_noncanonical" = "$target_noncanonical" && | |
671aa708 NN |
2287 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2288 | NONENONEs,x,x, && | |
1c710c3c | 2289 | program_transform_name=s,y,y, |
af71363e | 2290 | |
5213506e RW |
2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2292 | $as_echo_n "checking host system type... " >&6; } | |
2293 | if test "${ac_cv_host+set}" = set; then : | |
2294 | $as_echo_n "(cached) " >&6 | |
af71363e | 2295 | else |
5213506e RW |
2296 | if test "x$host_alias" = x; then |
2297 | ac_cv_host=$ac_cv_build | |
2298 | else | |
2299 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2300 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2301 | fi | |
1c710c3c | 2302 | |
af71363e | 2303 | fi |
5213506e RW |
2304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2305 | $as_echo "$ac_cv_host" >&6; } | |
2306 | case $ac_cv_host in | |
2307 | *-*-*) ;; | |
2308 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2309 | esac | |
1c710c3c | 2310 | host=$ac_cv_host |
5213506e RW |
2311 | ac_save_IFS=$IFS; IFS='-' |
2312 | set x $ac_cv_host | |
2313 | shift | |
2314 | host_cpu=$1 | |
2315 | host_vendor=$2 | |
2316 | shift; shift | |
2317 | # Remember, the first character of IFS is used to create $*, | |
2318 | # except with old shells: | |
2319 | host_os=$* | |
2320 | IFS=$ac_save_IFS | |
2321 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2aeb72e9 DD |
2322 | |
2323 | ||
5213506e RW |
2324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2325 | $as_echo_n "checking target system type... " >&6; } | |
2326 | if test "${ac_cv_target+set}" = set; then : | |
2327 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 2328 | else |
5213506e RW |
2329 | if test "x$target_alias" = x; then |
2330 | ac_cv_target=$ac_cv_host | |
2331 | else | |
2332 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2333 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2334 | fi | |
1c710c3c DJ |
2335 | |
2336 | fi | |
5213506e RW |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2338 | $as_echo "$ac_cv_target" >&6; } | |
2339 | case $ac_cv_target in | |
2340 | *-*-*) ;; | |
2341 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2342 | esac | |
1c710c3c | 2343 | target=$ac_cv_target |
5213506e RW |
2344 | ac_save_IFS=$IFS; IFS='-' |
2345 | set x $ac_cv_target | |
2346 | shift | |
2347 | target_cpu=$1 | |
2348 | target_vendor=$2 | |
2349 | shift; shift | |
2350 | # Remember, the first character of IFS is used to create $*, | |
2351 | # except with old shells: | |
2352 | target_os=$* | |
2353 | IFS=$ac_save_IFS | |
2354 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
1c710c3c DJ |
2355 | |
2356 | ||
2357 | # The aliases save the names the user supplied, while $host etc. | |
2358 | # will get canonicalized. | |
2359 | test -n "$target_alias" && | |
2360 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2361 | NONENONEs,x,x, && | |
2362 | program_prefix=${target_alias}- | |
5213506e | 2363 | |
671aa708 | 2364 | test "$program_prefix" != NONE && |
5213506e | 2365 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
671aa708 NN |
2366 | # Use a double $ so make ignores it. |
2367 | test "$program_suffix" != NONE && | |
5213506e RW |
2368 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2369 | # Double any \ or $. | |
1c710c3c | 2370 | # By default was `s,x,x', remove it if useless. |
5213506e RW |
2371 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2372 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
af71363e | 2373 | |
671aa708 NN |
2374 | |
2375 | ||
775956d0 NN |
2376 | # Get 'install' or 'install-sh' and its variants. |
2377 | # Find a good install program. We prefer a C program (faster), | |
2378 | # so one script is as good as another. But avoid the broken or | |
2379 | # incompatible versions: | |
2380 | # SysV /etc/install, /usr/sbin/install | |
2381 | # SunOS /usr/etc/install | |
2382 | # IRIX /sbin/install | |
2383 | # AIX /bin/install | |
1c710c3c | 2384 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
775956d0 NN |
2385 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2386 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2387 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1c710c3c | 2388 | # OS/2's system install, which has a completely different semantic |
775956d0 | 2389 | # ./install, which can be erroneously created by make from ./install.sh. |
38d24731 | 2390 | # Reject install programs that cannot install multiple files. |
5213506e RW |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2392 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
775956d0 | 2393 | if test -z "$INSTALL"; then |
5213506e RW |
2394 | if test "${ac_cv_path_install+set}" = set; then : |
2395 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
2396 | else |
2397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2398 | for as_dir in $PATH | |
2399 | do | |
2400 | IFS=$as_save_IFS | |
2401 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
2402 | # Account for people who put trailing slashes in PATH elements. |
2403 | case $as_dir/ in #(( | |
2404 | ./ | .// | /[cC]/* | \ | |
1c710c3c | 2405 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
5213506e | 2406 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
1c710c3c DJ |
2407 | /usr/ucb/* ) ;; |
2408 | *) | |
2409 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2410 | # Don't use installbsd from OSF since it installs stuff as root | |
2411 | # by default. | |
2412 | for ac_prog in ginstall scoinst install; do | |
2413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5213506e | 2414 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
775956d0 | 2415 | if test $ac_prog = install && |
1c710c3c | 2416 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
775956d0 NN |
2417 | # AIX install. It has an incompatible calling convention. |
2418 | : | |
1c710c3c DJ |
2419 | elif test $ac_prog = install && |
2420 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2421 | # program-specific install script used by HP pwplus--don't use. | |
2422 | : | |
775956d0 | 2423 | else |
38d24731 RW |
2424 | rm -rf conftest.one conftest.two conftest.dir |
2425 | echo one > conftest.one | |
2426 | echo two > conftest.two | |
2427 | mkdir conftest.dir | |
2428 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2429 | test -s conftest.one && test -s conftest.two && | |
2430 | test -s conftest.dir/conftest.one && | |
2431 | test -s conftest.dir/conftest.two | |
2432 | then | |
2433 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2434 | break 3 | |
2435 | fi | |
775956d0 NN |
2436 | fi |
2437 | fi | |
2438 | done | |
1c710c3c DJ |
2439 | done |
2440 | ;; | |
2441 | esac | |
5213506e RW |
2442 | |
2443 | done | |
2444 | IFS=$as_save_IFS | |
1c710c3c | 2445 | |
38d24731 | 2446 | rm -rf conftest.one conftest.two conftest.dir |
775956d0 NN |
2447 | |
2448 | fi | |
2449 | if test "${ac_cv_path_install+set}" = set; then | |
1c710c3c | 2450 | INSTALL=$ac_cv_path_install |
775956d0 | 2451 | else |
38d24731 RW |
2452 | # As a last resort, use the slow shell script. Don't cache a |
2453 | # value for INSTALL within a source directory, because that will | |
775956d0 | 2454 | # break other packages using the cache if that directory is |
38d24731 | 2455 | # removed, or if the value is a relative name. |
1c710c3c | 2456 | INSTALL=$ac_install_sh |
775956d0 NN |
2457 | fi |
2458 | fi | |
5213506e RW |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2460 | $as_echo "$INSTALL" >&6; } | |
775956d0 NN |
2461 | |
2462 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2463 | # It thinks the first close brace ends the variable substitution. | |
2464 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2465 | ||
1c710c3c | 2466 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
775956d0 NN |
2467 | |
2468 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2469 | ||
5213506e RW |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2471 | $as_echo_n "checking whether ln works... " >&6; } | |
2472 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2473 | $as_echo_n "(cached) " >&6 | |
ad6717df PB |
2474 | else |
2475 | rm -f conftestdata_t | |
2476 | echo >conftestdata_f | |
2477 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2478 | then | |
2479 | acx_cv_prog_LN=ln | |
2480 | else | |
2481 | acx_cv_prog_LN=no | |
2482 | fi | |
2483 | rm -f conftestdata_f conftestdata_t | |
2484 | ||
2485 | fi | |
2486 | if test $acx_cv_prog_LN = no; then | |
2487 | LN="cp" | |
5213506e RW |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2489 | $as_echo "no, using $LN" >&6; } | |
ad6717df PB |
2490 | else |
2491 | LN="$acx_cv_prog_LN" | |
5213506e RW |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2493 | $as_echo "yes" >&6; } | |
ad6717df PB |
2494 | fi |
2495 | ||
5213506e RW |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2497 | $as_echo_n "checking whether ln -s works... " >&6; } | |
1c710c3c DJ |
2498 | LN_S=$as_ln_s |
2499 | if test "$LN_S" = "ln -s"; then | |
5213506e RW |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2501 | $as_echo "yes" >&6; } | |
fb0103e5 | 2502 | else |
5213506e RW |
2503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2504 | $as_echo "no, using $LN_S" >&6; } | |
148907ea PB |
2505 | fi |
2506 | ||
87264276 PB |
2507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2508 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2509 | if test "${ac_cv_path_SED+set}" = set; then : | |
2510 | $as_echo_n "(cached) " >&6 | |
2511 | else | |
2512 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2513 | for ac_i in 1 2 3 4 5 6 7; do | |
2514 | ac_script="$ac_script$as_nl$ac_script" | |
2515 | done | |
2516 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2517 | { ac_script=; unset ac_script;} | |
2518 | if test -z "$SED"; then | |
2519 | ac_path_SED_found=false | |
2520 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2522 | for as_dir in $PATH | |
2523 | do | |
2524 | IFS=$as_save_IFS | |
2525 | test -z "$as_dir" && as_dir=. | |
2526 | for ac_prog in sed gsed; do | |
2527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2528 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2529 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2530 | # Check for GNU ac_path_SED and select it if it is found. | |
2531 | # Check for GNU $ac_path_SED | |
2532 | case `"$ac_path_SED" --version 2>&1` in | |
2533 | *GNU*) | |
2534 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2535 | *) | |
2536 | ac_count=0 | |
2537 | $as_echo_n 0123456789 >"conftest.in" | |
2538 | while : | |
2539 | do | |
2540 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2541 | mv "conftest.tmp" "conftest.in" | |
2542 | cp "conftest.in" "conftest.nl" | |
2543 | $as_echo '' >> "conftest.nl" | |
2544 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2545 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2546 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2547 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2548 | # Best one so far, save it but keep looking for a better one | |
2549 | ac_cv_path_SED="$ac_path_SED" | |
2550 | ac_path_SED_max=$ac_count | |
2551 | fi | |
2552 | # 10*(2^10) chars as input seems more than enough | |
2553 | test $ac_count -gt 10 && break | |
2554 | done | |
2555 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2556 | esac | |
2557 | ||
2558 | $ac_path_SED_found && break 3 | |
2559 | done | |
2560 | done | |
2561 | done | |
2562 | IFS=$as_save_IFS | |
2563 | if test -z "$ac_cv_path_SED"; then | |
2564 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2565 | fi | |
2566 | else | |
2567 | ac_cv_path_SED=$SED | |
2568 | fi | |
2569 | ||
2570 | fi | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2572 | $as_echo "$ac_cv_path_SED" >&6; } | |
2573 | SED="$ac_cv_path_SED" | |
2574 | rm -f conftest.sed | |
2575 | ||
2576 | for ac_prog in gawk mawk nawk awk | |
2577 | do | |
2578 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2579 | set dummy $ac_prog; ac_word=$2 | |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2581 | $as_echo_n "checking for $ac_word... " >&6; } | |
2582 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2583 | $as_echo_n "(cached) " >&6 | |
2584 | else | |
2585 | if test -n "$AWK"; then | |
2586 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2587 | else | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2595 | ac_cv_prog_AWK="$ac_prog" | |
2596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2597 | break 2 | |
2598 | fi | |
2599 | done | |
2600 | done | |
2601 | IFS=$as_save_IFS | |
2602 | ||
2603 | fi | |
2604 | fi | |
2605 | AWK=$ac_cv_prog_AWK | |
2606 | if test -n "$AWK"; then | |
2607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2608 | $as_echo "$AWK" >&6; } | |
2609 | else | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2611 | $as_echo "no" >&6; } | |
2612 | fi | |
2613 | ||
2614 | ||
2615 | test -n "$AWK" && break | |
2616 | done | |
2617 | ||
775956d0 | 2618 | |
ee6a22df L |
2619 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2620 | ||
2621 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2622 | # a relative path. | |
2623 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2624 | INSTALL="${srcpwd}/install-sh -c" | |
2625 | fi | |
2626 | ||
671aa708 NN |
2627 | # Set srcdir to "." if that's what it is. |
2628 | # This is important for multilib support. | |
2629 | pwd=`${PWDCMD-pwd}` | |
671aa708 NN |
2630 | if test "${pwd}" = "${srcpwd}" ; then |
2631 | srcdir=. | |
79c06341 JL |
2632 | fi |
2633 | ||
671aa708 | 2634 | topsrcdir=$srcpwd |
5d4a5ee6 | 2635 | |
671aa708 | 2636 | extra_host_args= |
afabd8e6 | 2637 | |
671aa708 NN |
2638 | ### To add a new directory to the tree, first choose whether it is a target |
2639 | ### or a host dependent tool. Then put it into the appropriate list | |
2640 | ### (library or tools, host or target), doing a dependency sort. | |
79c06341 | 2641 | |
1c710c3c | 2642 | # Subdirs will be configured in the order listed in build_configdirs, |
671aa708 | 2643 | # configdirs, or target_configdirs; see the serialization section below. |
79c06341 | 2644 | |
1c710c3c DJ |
2645 | # Dependency sorting is only needed when *configuration* must be done in |
2646 | # a particular order. In all cases a dependency should be specified in | |
671aa708 | 2647 | # the Makefile, whether or not it's implicitly specified here. |
79c06341 | 2648 | |
671aa708 NN |
2649 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2650 | # cause circular dependencies and break everything horribly. | |
79c06341 | 2651 | |
23f6b2f9 PB |
2652 | # these library is used by various programs built for the build |
2653 | # environment | |
2654 | # | |
2655 | build_libs="build-libiberty" | |
2656 | ||
2657 | # these tools are built for the build environment | |
85bfb75e | 2658 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
23f6b2f9 | 2659 | |
671aa708 NN |
2660 | # these libraries are used by various programs built for the host environment |
2661 | # | |
85bfb75e | 2662 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv" |
671aa708 | 2663 | |
671aa708 NN |
2664 | # these tools are built for the host environment |
2665 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2666 | # know that we are building the simulator. | |
2667 | # binutils, gas and ld appear in that order because it makes sense to run | |
2668 | # "make check" in that particular order. | |
38e3d868 | 2669 | # If --enable-gold is used, "gold" may replace "ld". |
85bfb75e | 2670 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
671aa708 NN |
2671 | |
2672 | # libgcj represents the runtime libraries only used by gcj. | |
2673 | libgcj="target-libffi \ | |
671aa708 | 2674 | target-zlib \ |
671aa708 NN |
2675 | target-libjava" |
2676 | ||
2677 | # these libraries are built for the target environment, and are built after | |
2678 | # the host libraries and the host tools (which may be a cross compiler) | |
8499116a | 2679 | # Note that libiberty is not a target library. |
291f172e | 2680 | target_libraries="target-libgcc \ |
671aa708 NN |
2681 | target-libgloss \ |
2682 | target-newlib \ | |
6d3b5aea | 2683 | target-libgomp \ |
cb543528 | 2684 | target-libstdc++-v3 \ |
6de9cd9a | 2685 | target-libmudflap \ |
77008252 | 2686 | target-libssp \ |
1ec601bf | 2687 | target-libquadmath \ |
6de9cd9a | 2688 | target-libgfortran \ |
7cd0cf9c | 2689 | target-boehm-gc \ |
77d187bc | 2690 | ${libgcj} \ |
d9cdb878 | 2691 | target-libobjc \ |
632e2a07 ILT |
2692 | target-libada \ |
2693 | target-libgo" | |
671aa708 | 2694 | |
4dbda6f0 NN |
2695 | # these tools are built using the target libraries, and are intended to |
2696 | # run only in the target environment | |
671aa708 | 2697 | # |
4dbda6f0 | 2698 | # note: any program that *uses* libraries that are in the "target_libraries" |
1bcce263 | 2699 | # list belongs in this list. |
671aa708 | 2700 | # |
85bfb75e | 2701 | target_tools="target-rda" |
79c06341 | 2702 | |
671aa708 | 2703 | ################################################################################ |
79c06341 | 2704 | |
671aa708 NN |
2705 | ## All tools belong in one of the four categories, and are assigned above |
2706 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2707 | ## is important because configure will choke if they ever get through. | |
2708 | ## ${configdirs} is directories we build using the host tools. | |
2709 | ## ${target_configdirs} is directories we build using the target tools. | |
671aa708 | 2710 | configdirs=`echo ${host_libs} ${host_tools}` |
4dbda6f0 | 2711 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
71b5d516 | 2712 | build_configdirs=`echo ${build_libs} ${build_tools}` |
8b87bb96 | 2713 | |
ac9e6043 RW |
2714 | |
2715 | ||
671aa708 | 2716 | ################################################################################ |
79c06341 | 2717 | |
671aa708 | 2718 | srcname="gnu development package" |
79c06341 | 2719 | |
671aa708 NN |
2720 | # This gets set non-empty for some net releases of packages. |
2721 | appdirs="" | |
79c06341 | 2722 | |
671aa708 NN |
2723 | # Define is_cross_compiler to save on calls to 'test'. |
2724 | is_cross_compiler= | |
2725 | if test x"${host}" = x"${target}" ; then | |
2726 | is_cross_compiler=no | |
79c06341 | 2727 | else |
671aa708 | 2728 | is_cross_compiler=yes |
1c710c3c | 2729 | fi |
79c06341 | 2730 | |
b4acb5ef | 2731 | # Find the build and target subdir names. |
8b87bb96 | 2732 | |
2e9e6f68 DJ |
2733 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2734 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2735 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2736 | # However, they still use the build modules, because the corresponding | |
2737 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2738 | # finishes. So: | |
2739 | # - build_subdir is where we find build modules, and never changes. | |
2740 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2741 | ||
2742 | # Prefix 'build-' so this never conflicts with target_subdir. | |
8b87bb96 | 2743 | build_subdir="build-${build_noncanonical}" |
1c710c3c | 2744 | |
5213506e RW |
2745 | # Check whether --with-build-libsubdir was given. |
2746 | if test "${with_build_libsubdir+set}" = set; then : | |
2747 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
2e9e6f68 DJ |
2748 | else |
2749 | build_libsubdir="$build_subdir" | |
5213506e RW |
2750 | fi |
2751 | ||
215c351a PB |
2752 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2753 | if ( test $srcdir = . && test -d gcc ) \ | |
2754 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2755 | host_subdir="host-${host_noncanonical}" | |
2756 | else | |
2757 | host_subdir=. | |
2758 | fi | |
8b87bb96 NN |
2759 | # No prefix. |
2760 | target_subdir=${target_noncanonical} | |
1c710c3c | 2761 | |
0db770bd RW |
2762 | # Be sure to cover against remnants of an in-tree build. |
2763 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2764 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2765 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2766 | fi | |
79c06341 | 2767 | |
671aa708 NN |
2768 | # Skipdirs are removed silently. |
2769 | skipdirs= | |
2770 | # Noconfigdirs are removed loudly. | |
2771 | noconfigdirs="" | |
79c06341 | 2772 | |
671aa708 NN |
2773 | use_gnu_ld= |
2774 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2775 | if test x$with_gnu_ld = xno ; then | |
2776 | use_gnu_ld=no | |
5afab7ad | 2777 | noconfigdirs="$noconfigdirs ld gold" |
79c06341 JL |
2778 | fi |
2779 | ||
671aa708 NN |
2780 | use_gnu_as= |
2781 | # Make sure we don't let GNU as be added if we didn't want it. | |
2782 | if test x$with_gnu_as = xno ; then | |
2783 | use_gnu_as=no | |
2784 | noconfigdirs="$noconfigdirs gas" | |
79c06341 JL |
2785 | fi |
2786 | ||
d7f09764 DN |
2787 | use_included_zlib= |
2788 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2789 | if test x$with_system_zlib = xyes ; then | |
2790 | use_included_zlib=no | |
2791 | noconfigdirs="$noconfigdirs zlib" | |
2792 | fi | |
2793 | ||
1c710c3c | 2794 | # some tools are so dependent upon X11 that if we're not building with X, |
671aa708 | 2795 | # it's not even worth trying to configure, much less build, that tool. |
79c06341 | 2796 | |
671aa708 NN |
2797 | case ${with_x} in |
2798 | yes | "") ;; # the default value for this tree is that X11 is available | |
2799 | no) | |
b4f96efe | 2800 | skipdirs="${skipdirs} tk itcl libgui" |
671aa708 | 2801 | # We won't be able to build gdbtk without X. |
1c710c3c | 2802 | enable_gdbtk=no |
671aa708 NN |
2803 | ;; |
2804 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2805 | esac | |
79c06341 | 2806 | |
1bcce263 | 2807 | # Some are only suitable for cross toolchains. |
671aa708 NN |
2808 | # Remove these if host=target. |
2809 | cross_only="target-libgloss target-newlib target-opcodes" | |
2810 | ||
2811 | case $is_cross_compiler in | |
2812 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
671aa708 | 2813 | esac |
79c06341 | 2814 | |
671aa708 NN |
2815 | # If both --with-headers and --with-libs are specified, default to |
2816 | # --without-newlib. | |
ee6a22df L |
2817 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2818 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
671aa708 NN |
2819 | if test x"${with_newlib}" = x ; then |
2820 | with_newlib=no | |
2821 | fi | |
79c06341 JL |
2822 | fi |
2823 | ||
671aa708 NN |
2824 | # Recognize --with-newlib/--without-newlib. |
2825 | case ${with_newlib} in | |
2826 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2827 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2828 | esac | |
79c06341 | 2829 | |
21539e2e MK |
2830 | # Handle --enable-gold, --enable-ld. |
2831 | # --disable-gold [--enable-ld] | |
2832 | # Build only ld. Default option. | |
9580395f L |
2833 | # --enable-gold [--enable-ld] |
2834 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2835 | # as "ld.bfd" and "ld". | |
2836 | # --enable-gold=default [--enable-ld] | |
21539e2e MK |
2837 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2838 | # install ld as "ld.bfd". | |
2839 | # --enable-gold[=default] --disable-ld | |
2840 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2841 | # --enable-gold --enable-ld=default | |
9580395f L |
2842 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2843 | # and ld.bfd). | |
21539e2e MK |
2844 | # In other words, ld is default |
2845 | # --enable-gold=default --enable-ld=default | |
2846 | # Error. | |
2847 | ||
2848 | default_ld= | |
5213506e RW |
2849 | # Check whether --enable-gold was given. |
2850 | if test "${enable_gold+set}" = set; then : | |
2851 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
5afab7ad ILT |
2852 | else |
2853 | ENABLE_GOLD=no | |
5213506e RW |
2854 | fi |
2855 | ||
21539e2e MK |
2856 | case "${ENABLE_GOLD}" in |
2857 | yes|default) | |
38e3d868 RM |
2858 | # Check for ELF target. |
2859 | is_elf=no | |
2860 | case "${target}" in | |
2861 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2862 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
8c6d158a JM |
2863 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2864 | | *-*-solaris2* | *-*-nto*) | |
38e3d868 RM |
2865 | case "${target}" in |
2866 | *-*-linux*aout* | *-*-linux*oldld*) | |
2867 | ;; | |
2868 | *) | |
2869 | is_elf=yes | |
2870 | ;; | |
2871 | esac | |
2872 | esac | |
2873 | ||
2874 | if test "$is_elf" = "yes"; then | |
2875 | # Check for target supported by gold. | |
5afab7ad | 2876 | case "${target}" in |
38e3d868 | 2877 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
21539e2e MK |
2878 | configdirs="$configdirs gold" |
2879 | if test x${ENABLE_GOLD} = xdefault; then | |
2880 | default_ld=gold | |
2881 | fi | |
38e3d868 | 2882 | ENABLE_GOLD=yes |
5afab7ad ILT |
2883 | ;; |
2884 | esac | |
38e3d868 RM |
2885 | fi |
2886 | ;; | |
2887 | no) | |
2888 | ;; | |
2889 | *) | |
2890 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2891 | ;; | |
21539e2e MK |
2892 | esac |
2893 | ||
2894 | # Check whether --enable-ld was given. | |
2895 | if test "${enable_ld+set}" = set; then : | |
2896 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2897 | else | |
2898 | ENABLE_LD=yes | |
2899 | fi | |
2900 | ||
2901 | ||
2902 | case "${ENABLE_LD}" in | |
2903 | default) | |
9580395f | 2904 | if test x${default_ld} != x; then |
21539e2e MK |
2905 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2906 | fi | |
2907 | ;; | |
2908 | yes) | |
2909 | ;; | |
2910 | no) | |
2911 | if test x${ENABLE_GOLD} != xyes; then | |
2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2913 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2914 | fi | |
2915 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2916 | ;; | |
2917 | *) | |
2918 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2919 | ;; | |
2920 | esac | |
5afab7ad | 2921 | |
671aa708 | 2922 | # Configure extra directories which are host specific |
79c06341 | 2923 | |
671aa708 NN |
2924 | case "${host}" in |
2925 | *-cygwin*) | |
2926 | configdirs="$configdirs libtermcap" ;; | |
2927 | esac | |
79c06341 | 2928 | |
4fab7234 HPN |
2929 | # A target can indicate whether a language isn't supported for some reason. |
2930 | # Only spaces may be used in this macro; not newlines or tabs. | |
2931 | unsupported_languages= | |
2932 | ||
1c710c3c | 2933 | # Remove more programs from consideration, based on the host or |
671aa708 NN |
2934 | # target this usually means that a port of the program doesn't |
2935 | # exist yet. | |
ec8d6ddc | 2936 | |
671aa708 | 2937 | case "${host}" in |
111eeb6e | 2938 | i[3456789]86-*-msdosdjgpp*) |
c9bdb152 | 2939 | noconfigdirs="$noconfigdirs tcl tk itcl" |
671aa708 | 2940 | ;; |
671aa708 | 2941 | esac |
ec8d6ddc | 2942 | |
6de9cd9a | 2943 | |
87e6d9dc TB |
2944 | # Check whether --enable-libquadmath was given. |
2945 | if test "${enable_libquadmath+set}" = set; then : | |
2946 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2947 | else | |
2948 | ENABLE_LIBQUADMATH=yes | |
2949 | fi | |
2950 | ||
2951 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2952 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2953 | fi | |
2954 | ||
2955 | ||
2956 | # Check whether --enable-libquadmath-support was given. | |
2957 | if test "${enable_libquadmath_support+set}" = set; then : | |
2958 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
2959 | else | |
2960 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
2961 | fi | |
2962 | ||
2963 | enable_libquadmath_support= | |
2964 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
2965 | enable_libquadmath_support=no | |
2966 | fi | |
2967 | ||
2968 | ||
5213506e RW |
2969 | # Check whether --enable-libada was given. |
2970 | if test "${enable_libada+set}" = set; then : | |
2971 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
d9cdb878 AC |
2972 | else |
2973 | ENABLE_LIBADA=yes | |
5213506e RW |
2974 | fi |
2975 | ||
d9cdb878 | 2976 | if test "${ENABLE_LIBADA}" != "yes" ; then |
5395b47b | 2977 | noconfigdirs="$noconfigdirs gnattools" |
d9cdb878 AC |
2978 | fi |
2979 | ||
5213506e RW |
2980 | # Check whether --enable-libssp was given. |
2981 | if test "${enable_libssp+set}" = set; then : | |
2982 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
ef0087a7 KH |
2983 | else |
2984 | ENABLE_LIBSSP=yes | |
5213506e RW |
2985 | fi |
2986 | ||
ef0087a7 | 2987 | |
671aa708 NN |
2988 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2989 | # front-end isn't enabled, we still get libgcj disabled. | |
2990 | libgcj_saved=$libgcj | |
2991 | case $enable_libgcj in | |
2992 | yes) | |
2993 | # If we reset it here, it won't get added to noconfigdirs in the | |
2994 | # target-specific build rules, so it will be forcibly enabled | |
2995 | # (unless the Java language itself isn't enabled). | |
2996 | libgcj= | |
2997 | ;; | |
2998 | no) | |
2999 | # Make sure we get it printed in the list of not supported target libs. | |
4da3b0f8 ILT |
3000 | # Don't disable libffi, though, other languages use it. |
3001 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
d479b128 ILT |
3002 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3003 | # built. | |
3004 | libgcj_saved= | |
671aa708 NN |
3005 | ;; |
3006 | esac | |
ec8d6ddc | 3007 | |
a4a2c37d MK |
3008 | # Check whether --enable-static-libjava was given. |
3009 | if test "${enable_static_libjava+set}" = set; then : | |
3010 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3011 | else | |
3012 | ENABLE_STATIC_LIBJAVA=no | |
3013 | fi | |
3014 | ||
3015 | enable_static_libjava= | |
3016 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3017 | enable_static_libjava=yes | |
3018 | fi | |
3019 | ||
3020 | if test x$enable_static_libjava != xyes ; then | |
3021 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3022 | fi | |
3023 | ||
6de9cd9a | 3024 | |
27079765 AH |
3025 | # Disable libmudflap on some systems. |
3026 | if test x$enable_libmudflap = x ; then | |
dfcada9a | 3027 | case "${target}" in |
416ac4d4 | 3028 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
98a5bb3b | 3029 | # Enable libmudflap by default in GNU and friends. |
dfcada9a | 3030 | ;; |
a3e8d8b4 LR |
3031 | *-*-freebsd*) |
3032 | # Enable libmudflap by default in FreeBSD. | |
3033 | ;; | |
dfcada9a MM |
3034 | *) |
3035 | # Disable it by default everywhere else. | |
3036 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3037 | ;; | |
3038 | esac | |
27079765 | 3039 | fi |
6de9cd9a | 3040 | |
27079765 AH |
3041 | # Disable libgomp on non POSIX hosted systems. |
3042 | if test x$enable_libgomp = x ; then | |
953ff289 DN |
3043 | # Enable libgomp by default on hosted POSIX systems. |
3044 | case "${target}" in | |
416ac4d4 | 3045 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
953ff289 | 3046 | ;; |
8c6d158a | 3047 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
953ff289 | 3048 | ;; |
6de66370 | 3049 | *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
953ff289 | 3050 | ;; |
cac90078 | 3051 | *-*-darwin* | *-*-aix*) |
953ff289 DN |
3052 | ;; |
3053 | *) | |
3054 | noconfigdirs="$noconfigdirs target-libgomp" | |
3055 | ;; | |
3056 | esac | |
27079765 | 3057 | fi |
953ff289 | 3058 | |
1e9e0e23 JM |
3059 | # Disable libssp for some systems. |
3060 | case "${target}" in | |
3061 | avr-*-*) | |
b318fb4b | 3062 | # No hosted I/O support. |
1e9e0e23 JM |
3063 | noconfigdirs="$noconfigdirs target-libssp" |
3064 | ;; | |
3065 | powerpc-*-aix* | rs6000-*-aix*) | |
3066 | noconfigdirs="$noconfigdirs target-libssp" | |
3067 | ;; | |
1e9e0e23 JM |
3068 | esac |
3069 | ||
1e9e0e23 JM |
3070 | # Disable libstdc++-v3 for some systems. |
3071 | case "${target}" in | |
3072 | *-*-vxworks*) | |
3073 | # VxWorks uses the Dinkumware C++ library. | |
3074 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3075 | ;; | |
3076 | arm*-wince-pe*) | |
3077 | # the C++ libraries don't build on top of CE's C libraries | |
3078 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3079 | ;; | |
3080 | avr-*-*) | |
3081 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3082 | ;; | |
3083 | esac | |
3084 | ||
3085 | # Disable Fortran for some systems. | |
3086 | case "${target}" in | |
3087 | mmix-*-*) | |
3088 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3089 | unsupported_languages="$unsupported_languages fortran" | |
3090 | ;; | |
3091 | esac | |
3092 | ||
80f81134 | 3093 | # Disable Java if libffi is not supported. |
2909494b | 3094 | case "${target}" in |
80f81134 JM |
3095 | alpha*-*-*) |
3096 | ;; | |
3097 | arm*-*-*) | |
3098 | ;; | |
3099 | cris-*-*) | |
3100 | ;; | |
3101 | frv-*-*) | |
3102 | ;; | |
3103 | hppa*-*-linux*) | |
3104 | ;; | |
3105 | hppa*-*-hpux*) | |
3106 | ;; | |
3107 | i?86-*-*) | |
3108 | ;; | |
3109 | ia64*-*-*) | |
3110 | ;; | |
3111 | m32r*-*-*) | |
3112 | ;; | |
3113 | m68k-*-*) | |
3114 | ;; | |
3115 | mips-sgi-irix6.* | mips*-*-rtems*) | |
3116 | ;; | |
3117 | mips*-*-linux*) | |
3118 | ;; | |
3119 | powerpc*-*-linux*) | |
3120 | ;; | |
3121 | powerpc-*-darwin*) | |
3122 | ;; | |
3123 | powerpc-*-aix* | rs6000-*-aix*) | |
3124 | ;; | |
3125 | powerpc-*-freebsd*) | |
3126 | ;; | |
3127 | powerpc64-*-freebsd*) | |
3128 | ;; | |
3129 | powerpc*-*-rtems*) | |
2909494b | 3130 | ;; |
80f81134 JM |
3131 | s390-*-* | s390x-*-*) |
3132 | ;; | |
3133 | sh-*-* | sh[34]*-*-*) | |
3134 | ;; | |
3135 | sh64-*-* | sh5*-*-*) | |
3136 | ;; | |
3137 | sparc*-*-*) | |
3138 | ;; | |
3139 | x86_64-*-*) | |
3140 | ;; | |
3141 | *-*-*) | |
3142 | unsupported_languages="$unsupported_languages java" | |
3143 | ;; | |
3144 | esac | |
3145 | ||
3146 | # Disable Java, libgcj or related libraries for some systems. | |
3147 | case "${target}" in | |
2909494b JM |
3148 | powerpc-*-darwin*) |
3149 | ;; | |
3150 | i[3456789]86-*-darwin*) | |
3151 | ;; | |
3152 | x86_64-*-darwin[912]*) | |
3153 | ;; | |
3154 | *-*-darwin*) | |
3155 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3156 | ;; | |
2909494b JM |
3157 | *-*-netware*) |
3158 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3159 | ;; | |
3160 | *-*-rtems*) | |
3161 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3162 | ;; | |
3163 | *-*-tpf*) | |
3164 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3165 | ;; | |
3166 | *-*-uclinux*) | |
3167 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3168 | ;; | |
3169 | *-*-vxworks*) | |
3170 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3171 | ;; | |
2909494b JM |
3172 | alpha*-*-*vms*) |
3173 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3174 | ;; | |
80f81134 | 3175 | arm-wince-pe) |
2909494b JM |
3176 | noconfigdirs="$noconfigdirs ${libgcj}" |
3177 | ;; | |
2909494b JM |
3178 | arm*-*-symbianelf*) |
3179 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3180 | ;; | |
2909494b | 3181 | bfin-*-*) |
2909494b JM |
3182 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3183 | ;; | |
2909494b JM |
3184 | cris-*-* | crisv32-*-*) |
3185 | unsupported_languages="$unsupported_languages java" | |
3186 | case "${target}" in | |
3187 | *-*-linux*) | |
3188 | ;; | |
3189 | *) # See PR46792 regarding target-libffi. | |
3190 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3191 | esac | |
3192 | ;; | |
2909494b JM |
3193 | hppa*64*-*-linux*) |
3194 | # In this case, it's because the hppa64-linux target is for | |
3195 | # the kernel only at this point and has no libc, and thus no | |
3196 | # headers, crt*.o, etc., all of which are needed by these. | |
fddf9ee7 | 3197 | unsupported_languages="$unsupported_languages java" |
2909494b | 3198 | ;; |
fddf9ee7 | 3199 | hppa*64*-*-hpux*) |
2909494b JM |
3200 | noconfigdirs="$noconfigdirs ${libgcj}" |
3201 | ;; | |
3202 | hppa*-hp-hpux11*) | |
3203 | ;; | |
fddf9ee7 | 3204 | hppa*-*-hpux*) |
2909494b JM |
3205 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3206 | # build on HP-UX 10.20. | |
3207 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3208 | ;; | |
2909494b JM |
3209 | ia64*-*-*vms*) |
3210 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3211 | ;; | |
2909494b JM |
3212 | i[3456789]86-w64-mingw*) |
3213 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3214 | ;; | |
3215 | i[3456789]86-*-mingw*) | |
3216 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3217 | ;; | |
3218 | x86_64-*-mingw*) | |
3219 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3220 | ;; | |
2909494b JM |
3221 | mmix-*-*) |
3222 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
2909494b JM |
3223 | ;; |
3224 | powerpc-*-aix*) | |
3225 | # copied from rs6000-*-* entry | |
3226 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3227 | ;; | |
2909494b JM |
3228 | rs6000-*-aix*) |
3229 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3230 | ;; | |
2909494b JM |
3231 | mips*-*-irix6*) |
3232 | # Linking libjava exceeds command-line length limits on at least | |
3233 | # IRIX 6.2, but not on IRIX 6.5. | |
3234 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3235 | # <oldham@codesourcery.com> | |
3236 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3237 | ;; | |
2909494b JM |
3238 | *-*-lynxos*) |
3239 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3240 | ;; | |
2909494b JM |
3241 | esac |
3242 | ||
c03353e2 RIL |
3243 | # Default libgloss CPU subdirectory. |
3244 | libgloss_dir="$target_cpu" | |
6de9cd9a | 3245 | |
fbcf0dca JM |
3246 | case "${target}" in |
3247 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3248 | libgloss_dir=wince | |
3249 | ;; | |
3250 | arm*-*-*) | |
3251 | libgloss_dir=arm | |
3252 | ;; | |
3253 | cris-*-* | crisv32-*-*) | |
3254 | libgloss_dir=cris | |
3255 | ;; | |
3256 | hppa*-*-*) | |
3257 | libgloss_dir=pa | |
3258 | ;; | |
3259 | i[3456789]86-*-*) | |
3260 | libgloss_dir=i386 | |
3261 | ;; | |
3262 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3263 | libgloss_dir=m68hc11 | |
3264 | ;; | |
3265 | m68*-*-* | fido-*-*) | |
3266 | libgloss_dir=m68k | |
3267 | ;; | |
3268 | mips*-*-*) | |
3269 | libgloss_dir=mips | |
3270 | ;; | |
3271 | powerpc*-*-*) | |
3272 | libgloss_dir=rs6000 | |
3273 | ;; | |
3274 | sparc*-*-*) | |
3275 | libgloss_dir=sparc | |
3276 | ;; | |
3277 | esac | |
3278 | ||
6a789d5e | 3279 | # Disable newlib and libgloss for various target OSes. |
671aa708 | 3280 | case "${target}" in |
6a789d5e JM |
3281 | alpha*-dec-osf*) |
3282 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3283 | ;; | |
3284 | i[3456789]86-*-linux*) | |
3285 | # This section makes it possible to build newlib natively on linux. | |
3286 | # If we are using a cross compiler then don't configure newlib. | |
3287 | if test x${is_cross_compiler} != xno ; then | |
3288 | noconfigdirs="$noconfigdirs target-newlib" | |
3289 | fi | |
3290 | noconfigdirs="$noconfigdirs target-libgloss" | |
3291 | # If we are not using a cross compiler, do configure newlib. | |
3292 | # Note however, that newlib will only be configured in this situation | |
3293 | # if the --with-newlib option has been given, because otherwise | |
3294 | # 'target-newlib' will appear in skipdirs. | |
3295 | ;; | |
3296 | i[3456789]86-*-rdos*) | |
3297 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3298 | ;; | |
3299 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3300 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3301 | ;; | |
3302 | sparc-*-sunos4*) | |
3303 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3304 | ;; | |
3305 | *-*-aix*) | |
3306 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3307 | ;; | |
3308 | *-*-beos*) | |
3309 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3310 | ;; | |
671aa708 | 3311 | *-*-chorusos) |
0036370f | 3312 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3313 | ;; |
6a789d5e JM |
3314 | *-*-dragonfly*) |
3315 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3316 | ;; | |
3317 | *-*-freebsd*) | |
3318 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3319 | ;; | |
3320 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3321 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3322 | ;; | |
3323 | *-*-lynxos*) | |
3324 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3325 | ;; | |
3326 | *-*-mingw*) | |
3327 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3328 | ;; | |
3329 | *-*-netbsd*) | |
3330 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3331 | ;; | |
3332 | *-*-netware*) | |
3333 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3334 | ;; | |
3335 | *-*-tpf*) | |
3336 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3337 | ;; | |
3338 | *-*-uclinux*) | |
3339 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3340 | ;; | |
3341 | *-*-vxworks*) | |
3342 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3343 | ;; | |
3344 | esac | |
3345 | ||
3346 | case "${target}" in | |
3347 | *-*-chorusos) | |
3348 | ;; | |
75eeae1a | 3349 | powerpc-*-darwin*) |
e1514c3f | 3350 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
9c8f9ec2 | 3351 | noconfigdirs="$noconfigdirs sim target-rda" |
940cde4d | 3352 | ;; |
354ebf88 RW |
3353 | i[3456789]86-*-darwin*) |
3354 | noconfigdirs="$noconfigdirs ld gprof" | |
3355 | noconfigdirs="$noconfigdirs sim target-rda" | |
3356 | ;; | |
3357 | x86_64-*-darwin[912]*) | |
0db3a858 TG |
3358 | noconfigdirs="$noconfigdirs ld gas gprof" |
3359 | noconfigdirs="$noconfigdirs sim target-rda" | |
3360 | ;; | |
42c1cd8a AT |
3361 | *-*-darwin*) |
3362 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3363 | noconfigdirs="$noconfigdirs sim target-rda" | |
42c1cd8a | 3364 | ;; |
8c6d158a | 3365 | *-*-dragonfly*) |
8c6d158a | 3366 | ;; |
c3f84f61 | 3367 | *-*-freebsd*) |
6de9cd9a DN |
3368 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3369 | && test -f /usr/local/include/gmp.h; then | |
3370 | with_gmp=/usr/local | |
3371 | fi | |
6de9cd9a | 3372 | ;; |
ef4e7569 US |
3373 | *-*-kaos*) |
3374 | # Remove unsupported stuff on all kaOS configurations. | |
ef4e7569 US |
3375 | noconfigdirs="$noconfigdirs target-libgloss" |
3376 | ;; | |
671aa708 | 3377 | *-*-netbsd*) |
671aa708 | 3378 | ;; |
61fec9ff | 3379 | *-*-netware*) |
671aa708 NN |
3380 | ;; |
3381 | *-*-rtems*) | |
2909494b | 3382 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3383 | ;; |
a8ba31f2 EC |
3384 | # The tpf target doesn't support gdb yet. |
3385 | *-*-tpf*) | |
6a789d5e | 3386 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
a8ba31f2 | 3387 | ;; |
5785c0ed | 3388 | *-*-uclinux*) |
6a789d5e | 3389 | noconfigdirs="$noconfigdirs target-rda" |
5785c0ed | 3390 | ;; |
671aa708 | 3391 | *-*-vxworks*) |
671aa708 NN |
3392 | ;; |
3393 | alpha*-dec-osf*) | |
3394 | # ld works, but does not support shared libraries. | |
671aa708 | 3395 | # gas doesn't generate exception information. |
6a789d5e | 3396 | noconfigdirs="$noconfigdirs gas ld" |
671aa708 NN |
3397 | ;; |
3398 | alpha*-*-*vms*) | |
2909494b | 3399 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
671aa708 | 3400 | ;; |
671aa708 NN |
3401 | alpha*-*-*) |
3402 | # newlib is not 64 bit ready | |
2909494b | 3403 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3404 | ;; |
671aa708 | 3405 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
b4f96efe | 3406 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
671aa708 NN |
3407 | ;; |
3408 | arc-*-*) | |
ebb9f8b0 | 3409 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3410 | ;; |
671aa708 | 3411 | arm-*-pe*) |
2909494b | 3412 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3413 | ;; |
671aa708 | 3414 | arm-*-riscix*) |
0036370f | 3415 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3416 | ;; |
671aa708 | 3417 | c4x-*-* | tic4x-*-*) |
0036370f | 3418 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3419 | ;; |
0036370f JM |
3420 | tic54x-*-*) |
3421 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
671aa708 | 3422 | ;; |
c993ae60 | 3423 | cr16-*-*) |
2909494b | 3424 | noconfigdirs="$noconfigdirs gdb" |
c993ae60 | 3425 | ;; |
671aa708 | 3426 | d10v-*-*) |
0036370f | 3427 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3428 | ;; |
3429 | d30v-*-*) | |
0036370f | 3430 | noconfigdirs="$noconfigdirs gdb" |
671aa708 NN |
3431 | ;; |
3432 | fr30-*-elf*) | |
2909494b | 3433 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3434 | ;; |
55f2d967 | 3435 | moxie-*-*) |
55f2d967 AG |
3436 | noconfigdirs="$noconfigdirs gprof" |
3437 | ;; | |
671aa708 | 3438 | h8300*-*-*) |
2909494b | 3439 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 NN |
3440 | ;; |
3441 | h8500-*-*) | |
0036370f | 3442 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3443 | ;; |
ee6a22df | 3444 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
ee6a22df | 3445 | ;; |
4569f85e | 3446 | hppa*64*-*-linux*) |
671aa708 | 3447 | ;; |
56f8587a | 3448 | hppa*-*-linux*) |
3e732ba0 | 3449 | ;; |
671aa708 | 3450 | hppa*-*-*elf* | \ |
671aa708 NN |
3451 | hppa*-*-lites* | \ |
3452 | hppa*-*-openbsd* | \ | |
3453 | hppa*64*-*-*) | |
671aa708 | 3454 | ;; |
2a332582 | 3455 | hppa*-hp-hpux11*) |
1bcce263 | 3456 | noconfigdirs="$noconfigdirs ld" |
2a332582 | 3457 | ;; |
c03353e2 | 3458 | hppa*-*-pro*) |
c03353e2 | 3459 | ;; |
671aa708 | 3460 | hppa*-*-*) |
2909494b | 3461 | noconfigdirs="$noconfigdirs ld" |
671aa708 | 3462 | ;; |
fb87ad5d | 3463 | i960-*-*) |
0036370f | 3464 | noconfigdirs="$noconfigdirs gdb" |
fb87ad5d | 3465 | ;; |
671aa708 NN |
3466 | ia64*-*-elf*) |
3467 | # No gdb support yet. | |
1bcce263 | 3468 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
671aa708 NN |
3469 | ;; |
3470 | ia64*-**-hpux*) | |
5a2931d1 | 3471 | # No ld support yet. |
2909494b | 3472 | noconfigdirs="$noconfigdirs libgui itcl ld" |
671aa708 | 3473 | ;; |
52535a64 DR |
3474 | ia64*-*-*vms*) |
3475 | # No gdb or ld support yet. | |
2909494b | 3476 | noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" |
52535a64 | 3477 | ;; |
ef4c4300 | 3478 | i[3456789]86-w64-mingw*) |
ef4c4300 KT |
3479 | ;; |
3480 | i[3456789]86-*-mingw*) | |
b91f0a41 | 3481 | target_configdirs="$target_configdirs target-winsup" |
1c710c3c | 3482 | ;; |
671aa708 NN |
3483 | *-*-cygwin*) |
3484 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1bcce263 | 3485 | noconfigdirs="$noconfigdirs target-libgloss" |
801e2270 | 3486 | # always build newlib if winsup directory is present. |
b91f0a41 | 3487 | if test -d "$srcdir/winsup/cygwin"; then |
801e2270 | 3488 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ee6a22df | 3489 | elif test -d "$srcdir/newlib"; then |
b91f0a41 | 3490 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
801e2270 | 3491 | fi |
1c710c3c | 3492 | ;; |
f2a0e225 | 3493 | i[3456789]86-*-pe) |
ebb9f8b0 | 3494 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3495 | ;; |
f2a0e225 | 3496 | i[3456789]86-*-sco3.2v5*) |
671aa708 NN |
3497 | # The linker does not yet know about weak symbols in COFF, |
3498 | # and is not configured to handle mixed ELF and COFF. | |
0036370f | 3499 | noconfigdirs="$noconfigdirs ld target-libgloss" |
671aa708 | 3500 | ;; |
f2a0e225 | 3501 | i[3456789]86-*-sco*) |
0036370f | 3502 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3503 | ;; |
fbdd5d87 | 3504 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
671aa708 NN |
3505 | noconfigdirs="$noconfigdirs target-libgloss" |
3506 | ;; | |
f2a0e225 | 3507 | i[3456789]86-*-sysv4*) |
0036370f | 3508 | noconfigdirs="$noconfigdirs target-libgloss" |
671aa708 | 3509 | ;; |
f2a0e225 | 3510 | i[3456789]86-*-beos*) |
6a789d5e | 3511 | noconfigdirs="$noconfigdirs gdb" |
3aa83176 | 3512 | ;; |
d1f8db0c | 3513 | i[3456789]86-*-rdos*) |
6a789d5e | 3514 | noconfigdirs="$noconfigdirs gdb" |
c03353e2 | 3515 | ;; |
671aa708 | 3516 | mmix-*-*) |
2909494b | 3517 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3518 | ;; |
ab34901f | 3519 | mt-*-*) |
79dd769c AH |
3520 | noconfigdirs="$noconfigdirs sim" |
3521 | ;; | |
671aa708 NN |
3522 | powerpc-*-aix*) |
3523 | # copied from rs6000-*-* entry | |
6a789d5e | 3524 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3525 | ;; |
4569f85e | 3526 | powerpc*-*-winnt* | powerpc*-*-pe*) |
671aa708 | 3527 | target_configdirs="$target_configdirs target-winsup" |
0036370f | 3528 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
671aa708 NN |
3529 | # always build newlib. |
3530 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3531 | ;; | |
3532 | # This is temporary until we can link against shared libraries | |
3533 | powerpcle-*-solaris*) | |
0036370f | 3534 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
671aa708 NN |
3535 | ;; |
3536 | powerpc-*-beos*) | |
6a789d5e | 3537 | noconfigdirs="$noconfigdirs gdb" |
671aa708 | 3538 | ;; |
671aa708 | 3539 | rs6000-*-lynxos*) |
6a789d5e | 3540 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3541 | ;; |
3542 | rs6000-*-aix*) | |
6a789d5e | 3543 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3544 | ;; |
3545 | rs6000-*-*) | |
2909494b | 3546 | noconfigdirs="$noconfigdirs gprof" |
671aa708 NN |
3547 | ;; |
3548 | m68k-apollo-*) | |
0036370f | 3549 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
671aa708 | 3550 | ;; |
ca9fe997 | 3551 | microblaze*) |
2909494b | 3552 | noconfigdirs="$noconfigdirs gprof" |
ca9fe997 | 3553 | ;; |
d9dced13 | 3554 | mips*-sde-elf*) |
d9dced13 RS |
3555 | if test x$with_newlib = xyes; then |
3556 | noconfigdirs="$noconfigdirs gprof" | |
3557 | fi | |
d9dced13 | 3558 | ;; |
671aa708 | 3559 | mips*-*-irix5*) |
0036370f | 3560 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 NN |
3561 | ;; |
3562 | mips*-*-irix6*) | |
2909494b | 3563 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3564 | ;; |
671aa708 | 3565 | mips*-*-bsd*) |
0036370f | 3566 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
671aa708 | 3567 | ;; |
671aa708 | 3568 | mips*-*-linux*) |
671aa708 NN |
3569 | ;; |
3570 | mips*-*-*) | |
2909494b | 3571 | noconfigdirs="$noconfigdirs gprof" |
671aa708 | 3572 | ;; |
669f01d8 | 3573 | sh-*-* | sh64-*-*) |
ea2002ba CB |
3574 | case "${target}" in |
3575 | sh*-*-elf) | |
2909494b | 3576 | ;; |
ea2002ba | 3577 | *) |
2909494b | 3578 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
ea2002ba | 3579 | esac |
671aa708 | 3580 | ;; |
671aa708 | 3581 | sparc-*-sunos4*) |
6a789d5e | 3582 | if test x${is_cross_compiler} = xno ; then |
671aa708 NN |
3583 | use_gnu_ld=no |
3584 | fi | |
3585 | ;; | |
b42f0d7e | 3586 | tic6x-*-*) |
2909494b | 3587 | noconfigdirs="$noconfigdirs gdb sim" |
b42f0d7e | 3588 | ;; |
db1d217c WL |
3589 | tilepro-*-* | tilegx-*-*) |
3590 | noconfigdirs="$noconfigdirs sim" | |
3591 | ;; | |
671aa708 | 3592 | v810-*-*) |
0036370f | 3593 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
671aa708 NN |
3594 | ;; |
3595 | vax-*-*) | |
2909494b | 3596 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
671aa708 | 3597 | ;; |
671aa708 | 3598 | esac |
79c06341 | 3599 | |
671aa708 NN |
3600 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3601 | # depends upon some newlib header files. | |
3602 | case "${noconfigdirs}" in | |
3603 | *target-libgloss*) ;; | |
3604 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3605 | esac | |
3606 | ||
671aa708 | 3607 | # Work in distributions that contain no compiler tools, like Autoconf. |
671aa708 NN |
3608 | host_makefile_frag=/dev/null |
3609 | if test -d ${srcdir}/config ; then | |
3610 | case "${host}" in | |
f2a0e225 | 3611 | i[3456789]86-*-msdosdjgpp*) |
671aa708 NN |
3612 | host_makefile_frag="config/mh-djgpp" |
3613 | ;; | |
3614 | *-cygwin*) | |
2a79c47f | 3615 | |
5213506e RW |
3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3617 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
2a79c47f | 3618 | echo a >cygwin-cat-check |
e25a8c82 | 3619 | if test `cat cygwin-cat-check` = a ; then |
2a79c47f | 3620 | rm cygwin-cat-check |
5213506e RW |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3622 | $as_echo "yes" >&6; } | |
2a79c47f NC |
3623 | else |
3624 | rm cygwin-cat-check | |
5213506e RW |
3625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3626 | $as_echo "no" >&6; } | |
3627 | as_fn_error "The cat command does not ignore carriage return characters. | |
2a79c47f NC |
3628 | Please either mount the build directory in binary mode or run the following |
3629 | commands before running any configure script: | |
3630 | set -o igncr | |
3631 | export SHELLOPTS | |
5213506e | 3632 | " "$LINENO" 5 |
2a79c47f NC |
3633 | fi |
3634 | ||
671aa708 NN |
3635 | host_makefile_frag="config/mh-cygwin" |
3636 | ;; | |
c53a18d3 | 3637 | *-mingw*) |
1f5a6b84 | 3638 | host_makefile_frag="config/mh-mingw" |
95af8923 | 3639 | ;; |
671aa708 NN |
3640 | *-interix*) |
3641 | host_makefile_frag="config/mh-interix" | |
3642 | ;; | |
efd41714 | 3643 | hppa*-hp-hpux10*) |
efd41714 | 3644 | host_makefile_frag="config/mh-pa-hpux10" |
671aa708 | 3645 | ;; |
111eeb6e | 3646 | hppa*-hp-hpux*) |
efd41714 PB |
3647 | host_makefile_frag="config/mh-pa" |
3648 | ;; | |
3649 | hppa*-*) | |
3650 | host_makefile_frag="config/mh-pa" | |
3651 | ;; | |
d8ed14ce IS |
3652 | *-*-darwin*) |
3653 | host_makefile_frag="config/mh-darwin" | |
be8fff81 | 3654 | ;; |
d19bca38 PB |
3655 | powerpc-*-aix*) |
3656 | host_makefile_frag="config/mh-ppc-aix" | |
3657 | ;; | |
3658 | rs6000-*-aix*) | |
3659 | host_makefile_frag="config/mh-ppc-aix" | |
3660 | ;; | |
671aa708 NN |
3661 | esac |
3662 | fi | |
3663 | ||
55ffb5ed | 3664 | if test "${build}" != "${host}" ; then |
0999159b PB |
3665 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3666 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
55ffb5ed | 3667 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
0999159b PB |
3668 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3669 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3670 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
632e2a07 | 3671 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
0999159b PB |
3672 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3673 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3674 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3675 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3676 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3677 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3678 | else | |
3679 | AR_FOR_BUILD="\$(AR)" | |
3680 | AS_FOR_BUILD="\$(AS)" | |
fb0103e5 | 3681 | CC_FOR_BUILD="\$(CC)" |
0999159b PB |
3682 | CXX_FOR_BUILD="\$(CXX)" |
3683 | GCJ_FOR_BUILD="\$(GCJ)" | |
3684 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
632e2a07 | 3685 | GOC_FOR_BUILD="\$(GOC)" |
0999159b PB |
3686 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3687 | LD_FOR_BUILD="\$(LD)" | |
3688 | NM_FOR_BUILD="\$(NM)" | |
3689 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3690 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3691 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
c3a86da9 DJ |
3692 | fi |
3693 | ||
3694 | ac_ext=c | |
1c710c3c DJ |
3695 | ac_cpp='$CPP $CPPFLAGS' |
3696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3699 | if test -n "$ac_tool_prefix"; then | |
3700 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3701 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5213506e RW |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3703 | $as_echo_n "checking for $ac_word... " >&6; } | |
3704 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3705 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3706 | else |
3707 | if test -n "$CC"; then | |
3708 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3709 | else | |
3710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3711 | for as_dir in $PATH | |
3712 | do | |
3713 | IFS=$as_save_IFS | |
3714 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3715 | for ac_exec_ext in '' $ac_executable_extensions; do |
3716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3717 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
5213506e | 3718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3719 | break 2 |
3720 | fi | |
3721 | done | |
5213506e RW |
3722 | done |
3723 | IFS=$as_save_IFS | |
1c710c3c DJ |
3724 | |
3725 | fi | |
3726 | fi | |
3727 | CC=$ac_cv_prog_CC | |
3728 | if test -n "$CC"; then | |
5213506e RW |
3729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3730 | $as_echo "$CC" >&6; } | |
1c710c3c | 3731 | else |
5213506e RW |
3732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3733 | $as_echo "no" >&6; } | |
1c710c3c DJ |
3734 | fi |
3735 | ||
5213506e | 3736 | |
1c710c3c DJ |
3737 | fi |
3738 | if test -z "$ac_cv_prog_CC"; then | |
3739 | ac_ct_CC=$CC | |
fb0103e5 RG |
3740 | # Extract the first word of "gcc", so it can be a program name with args. |
3741 | set dummy gcc; ac_word=$2 | |
5213506e RW |
3742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3743 | $as_echo_n "checking for $ac_word... " >&6; } | |
3744 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3745 | $as_echo_n "(cached) " >&6 | |
1c710c3c DJ |
3746 | else |
3747 | if test -n "$ac_ct_CC"; then | |
3748 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3749 | else | |
3750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3751 | for as_dir in $PATH | |
3752 | do | |
3753 | IFS=$as_save_IFS | |
3754 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3755 | for ac_exec_ext in '' $ac_executable_extensions; do |
3756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3757 | ac_cv_prog_ac_ct_CC="gcc" |
5213506e | 3758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3759 | break 2 |
3760 | fi | |
3761 | done | |
5213506e RW |
3762 | done |
3763 | IFS=$as_save_IFS | |
1c710c3c DJ |
3764 | |
3765 | fi | |
3766 | fi | |
3767 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3768 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3770 | $as_echo "$ac_ct_CC" >&6; } | |
1c710c3c | 3771 | else |
5213506e RW |
3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3773 | $as_echo "no" >&6; } | |
1c710c3c DJ |
3774 | fi |
3775 | ||
5213506e RW |
3776 | if test "x$ac_ct_CC" = x; then |
3777 | CC="" | |
3778 | else | |
3779 | case $cross_compiling:$ac_tool_warned in | |
3780 | yes:) | |
3781 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3782 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3783 | ac_tool_warned=yes ;; | |
3784 | esac | |
3785 | CC=$ac_ct_CC | |
3786 | fi | |
1c710c3c DJ |
3787 | else |
3788 | CC="$ac_cv_prog_CC" | |
3789 | fi | |
3790 | ||
3791 | if test -z "$CC"; then | |
5213506e RW |
3792 | if test -n "$ac_tool_prefix"; then |
3793 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1c710c3c | 3794 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5213506e RW |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3796 | $as_echo_n "checking for $ac_word... " >&6; } | |
3797 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3798 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
3799 | else |
3800 | if test -n "$CC"; then | |
3801 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3802 | else | |
1c710c3c DJ |
3803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3804 | for as_dir in $PATH | |
3805 | do | |
3806 | IFS=$as_save_IFS | |
3807 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3808 | for ac_exec_ext in '' $ac_executable_extensions; do |
3809 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3810 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
5213506e | 3811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3812 | break 2 |
3813 | fi | |
3814 | done | |
5213506e RW |
3815 | done |
3816 | IFS=$as_save_IFS | |
1c710c3c | 3817 | |
0b0dc272 | 3818 | fi |
0b0dc272 | 3819 | fi |
1c710c3c | 3820 | CC=$ac_cv_prog_CC |
af71363e | 3821 | if test -n "$CC"; then |
5213506e RW |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3823 | $as_echo "$CC" >&6; } | |
2aeb72e9 | 3824 | else |
5213506e RW |
3825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3826 | $as_echo "no" >&6; } | |
2aeb72e9 DD |
3827 | fi |
3828 | ||
2aeb72e9 | 3829 | |
5213506e | 3830 | fi |
1c710c3c | 3831 | fi |
55ffb5ed NN |
3832 | if test -z "$CC"; then |
3833 | # Extract the first word of "cc", so it can be a program name with args. | |
3834 | set dummy cc; ac_word=$2 | |
5213506e RW |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3836 | $as_echo_n "checking for $ac_word... " >&6; } | |
3837 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3838 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
3839 | else |
3840 | if test -n "$CC"; then | |
3841 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3842 | else | |
0b0dc272 | 3843 | ac_prog_rejected=no |
1c710c3c DJ |
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3845 | for as_dir in $PATH | |
3846 | do | |
3847 | IFS=$as_save_IFS | |
3848 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3849 | for ac_exec_ext in '' $ac_executable_extensions; do |
3850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c DJ |
3851 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3852 | ac_prog_rejected=yes | |
3853 | continue | |
3854 | fi | |
3855 | ac_cv_prog_CC="cc" | |
5213506e | 3856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3857 | break 2 |
3858 | fi | |
3859 | done | |
5213506e RW |
3860 | done |
3861 | IFS=$as_save_IFS | |
1c710c3c | 3862 | |
55ffb5ed NN |
3863 | if test $ac_prog_rejected = yes; then |
3864 | # We found a bogon in the path, so make sure we never use it. | |
3865 | set dummy $ac_cv_prog_CC | |
3866 | shift | |
1c710c3c | 3867 | if test $# != 0; then |
55ffb5ed NN |
3868 | # We chose a different compiler from the bogus one. |
3869 | # However, it has the same basename, so the bogon will be chosen | |
3870 | # first if we set CC to just the basename; use the full file name. | |
3871 | shift | |
1c710c3c | 3872 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
55ffb5ed NN |
3873 | fi |
3874 | fi | |
3875 | fi | |
3876 | fi | |
1c710c3c | 3877 | CC=$ac_cv_prog_CC |
55ffb5ed | 3878 | if test -n "$CC"; then |
5213506e RW |
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3880 | $as_echo "$CC" >&6; } | |
55ffb5ed | 3881 | else |
5213506e RW |
3882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3883 | $as_echo "no" >&6; } | |
55ffb5ed NN |
3884 | fi |
3885 | ||
5213506e | 3886 | |
1c710c3c DJ |
3887 | fi |
3888 | if test -z "$CC"; then | |
3889 | if test -n "$ac_tool_prefix"; then | |
5213506e | 3890 | for ac_prog in cl.exe |
1c710c3c DJ |
3891 | do |
3892 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3893 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3895 | $as_echo_n "checking for $ac_word... " >&6; } | |
3896 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3897 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
3898 | else |
3899 | if test -n "$CC"; then | |
3900 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3901 | else | |
1c710c3c DJ |
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3903 | for as_dir in $PATH | |
3904 | do | |
3905 | IFS=$as_save_IFS | |
3906 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3907 | for ac_exec_ext in '' $ac_executable_extensions; do |
3908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3909 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5213506e | 3910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3911 | break 2 |
3912 | fi | |
3913 | done | |
5213506e RW |
3914 | done |
3915 | IFS=$as_save_IFS | |
1c710c3c | 3916 | |
55ffb5ed NN |
3917 | fi |
3918 | fi | |
1c710c3c | 3919 | CC=$ac_cv_prog_CC |
55ffb5ed | 3920 | if test -n "$CC"; then |
5213506e RW |
3921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3922 | $as_echo "$CC" >&6; } | |
a4b9e93e | 3923 | else |
5213506e RW |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3925 | $as_echo "no" >&6; } | |
fb0103e5 | 3926 | fi |
af71363e | 3927 | |
5213506e | 3928 | |
1c710c3c DJ |
3929 | test -n "$CC" && break |
3930 | done | |
af71363e | 3931 | fi |
1c710c3c DJ |
3932 | if test -z "$CC"; then |
3933 | ac_ct_CC=$CC | |
5213506e | 3934 | for ac_prog in cl.exe |
1c710c3c DJ |
3935 | do |
3936 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3937 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
3938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3939 | $as_echo_n "checking for $ac_word... " >&6; } | |
3940 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3941 | $as_echo_n "(cached) " >&6 | |
0b0dc272 | 3942 | else |
1c710c3c DJ |
3943 | if test -n "$ac_ct_CC"; then |
3944 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
0b0dc272 | 3945 | else |
1c710c3c DJ |
3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3947 | for as_dir in $PATH | |
3948 | do | |
3949 | IFS=$as_save_IFS | |
3950 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do |
3952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 3953 | ac_cv_prog_ac_ct_CC="$ac_prog" |
5213506e | 3954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
3955 | break 2 |
3956 | fi | |
3957 | done | |
5213506e RW |
3958 | done |
3959 | IFS=$as_save_IFS | |
1c710c3c | 3960 | |
af71363e AS |
3961 | fi |
3962 | fi | |
1c710c3c DJ |
3963 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3964 | if test -n "$ac_ct_CC"; then | |
5213506e RW |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3966 | $as_echo "$ac_ct_CC" >&6; } | |
fb0103e5 | 3967 | else |
5213506e RW |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3969 | $as_echo "no" >&6; } | |
af71363e | 3970 | fi |
0b0dc272 | 3971 | |
5213506e | 3972 | |
1c710c3c DJ |
3973 | test -n "$ac_ct_CC" && break |
3974 | done | |
3975 | ||
5213506e RW |
3976 | if test "x$ac_ct_CC" = x; then |
3977 | CC="" | |
3978 | else | |
3979 | case $cross_compiling:$ac_tool_warned in | |
3980 | yes:) | |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3983 | ac_tool_warned=yes ;; | |
3984 | esac | |
3985 | CC=$ac_ct_CC | |
3986 | fi | |
1c710c3c DJ |
3987 | fi |
3988 | ||
3989 | fi | |
3990 | ||
3991 | ||
5213506e RW |
3992 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3994 | as_fn_error "no acceptable C compiler found in \$PATH | |
3995 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c DJ |
3996 | |
3997 | # Provide some information about the compiler. | |
5213506e RW |
3998 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3999 | set X $ac_compile | |
4000 | ac_compiler=$2 | |
4001 | for ac_option in --version -v -V -qversion; do | |
4002 | { { ac_try="$ac_compiler $ac_option >&5" | |
4003 | case "(($ac_try" in | |
4004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4005 | *) ac_try_echo=$ac_try;; | |
4006 | esac | |
4007 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4008 | $as_echo "$ac_try_echo"; } >&5 | |
4009 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
1c710c3c | 4010 | ac_status=$? |
5213506e RW |
4011 | if test -s conftest.err; then |
4012 | sed '10a\ | |
4013 | ... rest of stderr output deleted ... | |
4014 | 10q' conftest.err >conftest.er1 | |
4015 | cat conftest.er1 >&5 | |
4016 | rm -f conftest.er1 conftest.err | |
4017 | fi | |
4018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4019 | test $ac_status = 0; } | |
4020 | done | |
1c710c3c | 4021 | |
5213506e | 4022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4023 | /* end confdefs.h. */ |
4024 | ||
4025 | int | |
4026 | main () | |
4027 | { | |
4028 | ||
4029 | ; | |
4030 | return 0; | |
4031 | } | |
4032 | _ACEOF | |
4033 | ac_clean_files_save=$ac_clean_files | |
5213506e | 4034 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
1c710c3c DJ |
4035 | # Try to create an executable without -o first, disregard a.out. |
4036 | # It will help us diagnose broken compilers, and finding out an intuition | |
4037 | # of exeext. | |
5213506e RW |
4038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4039 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4040 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4041 | ||
4042 | # The possible output files: | |
4043 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4044 | ||
4045 | ac_rmfiles= | |
4046 | for ac_file in $ac_files | |
4047 | do | |
4048 | case $ac_file in | |
4049 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4050 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4051 | esac | |
4052 | done | |
4053 | rm -f $ac_rmfiles | |
4054 | ||
4055 | if { { ac_try="$ac_link_default" | |
4056 | case "(($ac_try" in | |
4057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4058 | *) ac_try_echo=$ac_try;; | |
4059 | esac | |
4060 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4061 | $as_echo "$ac_try_echo"; } >&5 | |
4062 | (eval "$ac_link_default") 2>&5 | |
1c710c3c | 4063 | ac_status=$? |
5213506e RW |
4064 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4065 | test $ac_status = 0; }; then : | |
4066 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4067 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4068 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4069 | # so that the user can short-circuit this test for compilers unknown to | |
4070 | # Autoconf. | |
4071 | for ac_file in $ac_files '' | |
1c710c3c DJ |
4072 | do |
4073 | test -f "$ac_file" || continue | |
4074 | case $ac_file in | |
5213506e | 4075 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
1c710c3c DJ |
4076 | ;; |
4077 | [ab].out ) | |
4078 | # We found the default executable, but exeext='' is most | |
4079 | # certainly right. | |
4080 | break;; | |
4081 | *.* ) | |
5213506e RW |
4082 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4083 | then :; else | |
4084 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4085 | fi | |
4086 | # We set ac_cv_exeext here because the later test for it is not | |
4087 | # safe: cross compilers may not add the suffix if given an `-o' | |
4088 | # argument, so we may need to know it at that point already. | |
4089 | # Even if this section looks crufty: it has the advantage of | |
4090 | # actually working. | |
1c710c3c DJ |
4091 | break;; |
4092 | * ) | |
4093 | break;; | |
4094 | esac | |
4095 | done | |
5213506e RW |
4096 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4097 | ||
1c710c3c | 4098 | else |
5213506e RW |
4099 | ac_file='' |
4100 | fi | |
4101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4102 | $as_echo "$ac_file" >&6; } | |
4103 | if test -z "$ac_file"; then : | |
4104 | $as_echo "$as_me: failed program was:" >&5 | |
1c710c3c DJ |
4105 | sed 's/^/| /' conftest.$ac_ext >&5 |
4106 | ||
5213506e RW |
4107 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4108 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4109 | { as_fn_set_status 77 | |
4110 | as_fn_error "C compiler cannot create executables | |
4111 | See \`config.log' for more details." "$LINENO" 5; }; } | |
1c710c3c | 4112 | fi |
1c710c3c | 4113 | ac_exeext=$ac_cv_exeext |
1c710c3c | 4114 | |
5213506e | 4115 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4116 | # the compiler is broken, or we cross compile. |
5213506e RW |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4118 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
1c710c3c DJ |
4119 | # If not cross compiling, check that we can run a simple program. |
4120 | if test "$cross_compiling" != yes; then | |
4121 | if { ac_try='./$ac_file' | |
5213506e RW |
4122 | { { case "(($ac_try" in |
4123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4124 | *) ac_try_echo=$ac_try;; | |
4125 | esac | |
4126 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4127 | $as_echo "$ac_try_echo"; } >&5 | |
4128 | (eval "$ac_try") 2>&5 | |
1c710c3c | 4129 | ac_status=$? |
5213506e RW |
4130 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4131 | test $ac_status = 0; }; }; then | |
1c710c3c DJ |
4132 | cross_compiling=no |
4133 | else | |
4134 | if test "$cross_compiling" = maybe; then | |
4135 | cross_compiling=yes | |
4136 | else | |
5213506e RW |
4137 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4138 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4139 | as_fn_error "cannot run C compiled programs. | |
1c710c3c | 4140 | If you meant to cross compile, use \`--host'. |
5213506e | 4141 | See \`config.log' for more details." "$LINENO" 5; } |
1c710c3c DJ |
4142 | fi |
4143 | fi | |
4144 | fi | |
5213506e RW |
4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4146 | $as_echo "yes" >&6; } | |
1c710c3c | 4147 | |
5213506e | 4148 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
1c710c3c | 4149 | ac_clean_files=$ac_clean_files_save |
5213506e | 4150 | # Check that the compiler produces executables we can run. If not, either |
1c710c3c | 4151 | # the compiler is broken, or we cross compile. |
5213506e RW |
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4153 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4155 | $as_echo "$cross_compiling" >&6; } | |
4156 | ||
4157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4158 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4159 | if { { ac_try="$ac_link" | |
4160 | case "(($ac_try" in | |
4161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4162 | *) ac_try_echo=$ac_try;; | |
4163 | esac | |
4164 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4165 | $as_echo "$ac_try_echo"; } >&5 | |
4166 | (eval "$ac_link") 2>&5 | |
1c710c3c | 4167 | ac_status=$? |
5213506e RW |
4168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4169 | test $ac_status = 0; }; then : | |
1c710c3c DJ |
4170 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4171 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4172 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4173 | # `rm'. | |
4174 | for ac_file in conftest.exe conftest conftest.*; do | |
4175 | test -f "$ac_file" || continue | |
4176 | case $ac_file in | |
5213506e | 4177 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
1c710c3c | 4178 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1c710c3c DJ |
4179 | break;; |
4180 | * ) break;; | |
4181 | esac | |
4182 | done | |
af71363e | 4183 | else |
5213506e RW |
4184 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4185 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4186 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4187 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4188 | fi |
1c710c3c | 4189 | rm -f conftest$ac_cv_exeext |
5213506e RW |
4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4191 | $as_echo "$ac_cv_exeext" >&6; } | |
1c710c3c DJ |
4192 | |
4193 | rm -f conftest.$ac_ext | |
4194 | EXEEXT=$ac_cv_exeext | |
4195 | ac_exeext=$EXEEXT | |
5213506e RW |
4196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4197 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4198 | if test "${ac_cv_objext+set}" = set; then : | |
4199 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4200 | else |
5213506e | 4201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4202 | /* end confdefs.h. */ |
4203 | ||
4204 | int | |
4205 | main () | |
4206 | { | |
4207 | ||
4208 | ; | |
4209 | return 0; | |
4210 | } | |
4211 | _ACEOF | |
4212 | rm -f conftest.o conftest.obj | |
5213506e RW |
4213 | if { { ac_try="$ac_compile" |
4214 | case "(($ac_try" in | |
4215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4216 | *) ac_try_echo=$ac_try;; | |
4217 | esac | |
4218 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4219 | $as_echo "$ac_try_echo"; } >&5 | |
4220 | (eval "$ac_compile") 2>&5 | |
1c710c3c | 4221 | ac_status=$? |
5213506e RW |
4222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4223 | test $ac_status = 0; }; then : | |
4224 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4225 | test -f "$ac_file" || continue; | |
1c710c3c | 4226 | case $ac_file in |
5213506e | 4227 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
1c710c3c DJ |
4228 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4229 | break;; | |
4230 | esac | |
4231 | done | |
4232 | else | |
5213506e | 4233 | $as_echo "$as_me: failed program was:" >&5 |
1c710c3c DJ |
4234 | sed 's/^/| /' conftest.$ac_ext >&5 |
4235 | ||
5213506e RW |
4236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4238 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4239 | See \`config.log' for more details." "$LINENO" 5; } | |
1c710c3c | 4240 | fi |
1c710c3c DJ |
4241 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4242 | fi | |
5213506e RW |
4243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4244 | $as_echo "$ac_cv_objext" >&6; } | |
1c710c3c DJ |
4245 | OBJEXT=$ac_cv_objext |
4246 | ac_objext=$OBJEXT | |
5213506e RW |
4247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4248 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4249 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4250 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4251 | else |
5213506e | 4252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4253 | /* end confdefs.h. */ |
4254 | ||
4255 | int | |
4256 | main () | |
4257 | { | |
4258 | #ifndef __GNUC__ | |
4259 | choke me | |
4260 | #endif | |
4261 | ||
4262 | ; | |
4263 | return 0; | |
4264 | } | |
4265 | _ACEOF | |
5213506e | 4266 | if ac_fn_c_try_compile "$LINENO"; then : |
1c710c3c DJ |
4267 | ac_compiler_gnu=yes |
4268 | else | |
5213506e | 4269 | ac_compiler_gnu=no |
1c710c3c | 4270 | fi |
5213506e | 4271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c DJ |
4272 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4273 | ||
4274 | fi | |
5213506e RW |
4275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4276 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4277 | if test $ac_compiler_gnu = yes; then | |
4278 | GCC=yes | |
4279 | else | |
4280 | GCC= | |
4281 | fi | |
1c710c3c DJ |
4282 | ac_test_CFLAGS=${CFLAGS+set} |
4283 | ac_save_CFLAGS=$CFLAGS | |
5213506e RW |
4284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4285 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4286 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4287 | $as_echo_n "(cached) " >&6 | |
4288 | else | |
4289 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4290 | ac_c_werror_flag=yes | |
4291 | ac_cv_prog_cc_g=no | |
4292 | CFLAGS="-g" | |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
4294 | /* end confdefs.h. */ |
4295 | ||
4296 | int | |
4297 | main () | |
4298 | { | |
4299 | ||
4300 | ; | |
4301 | return 0; | |
4302 | } | |
4303 | _ACEOF | |
5213506e | 4304 | if ac_fn_c_try_compile "$LINENO"; then : |
55ffb5ed NN |
4305 | ac_cv_prog_cc_g=yes |
4306 | else | |
5213506e RW |
4307 | CFLAGS="" |
4308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4309 | /* end confdefs.h. */ | |
4310 | ||
4311 | int | |
4312 | main () | |
4313 | { | |
4314 | ||
4315 | ; | |
4316 | return 0; | |
4317 | } | |
4318 | _ACEOF | |
4319 | if ac_fn_c_try_compile "$LINENO"; then : | |
4320 | ||
4321 | else | |
4322 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4323 | CFLAGS="-g" | |
4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4325 | /* end confdefs.h. */ | |
af71363e | 4326 | |
5213506e RW |
4327 | int |
4328 | main () | |
4329 | { | |
4330 | ||
4331 | ; | |
4332 | return 0; | |
4333 | } | |
4334 | _ACEOF | |
4335 | if ac_fn_c_try_compile "$LINENO"; then : | |
4336 | ac_cv_prog_cc_g=yes | |
4337 | fi | |
4338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
0b0dc272 | 4339 | fi |
5213506e | 4340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1c710c3c | 4341 | fi |
5213506e RW |
4342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4343 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4344 | fi | |
4345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4346 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
55ffb5ed | 4347 | if test "$ac_test_CFLAGS" = set; then |
1c710c3c | 4348 | CFLAGS=$ac_save_CFLAGS |
55ffb5ed NN |
4349 | elif test $ac_cv_prog_cc_g = yes; then |
4350 | if test "$GCC" = yes; then | |
4351 | CFLAGS="-g -O2" | |
4352 | else | |
4353 | CFLAGS="-g" | |
4354 | fi | |
4355 | else | |
4356 | if test "$GCC" = yes; then | |
4357 | CFLAGS="-O2" | |
4358 | else | |
4359 | CFLAGS= | |
4360 | fi | |
4361 | fi | |
5213506e RW |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4363 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4364 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4365 | $as_echo_n "(cached) " >&6 | |
1c710c3c | 4366 | else |
5213506e | 4367 | ac_cv_prog_cc_c89=no |
1c710c3c | 4368 | ac_save_CC=$CC |
5213506e | 4369 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c DJ |
4370 | /* end confdefs.h. */ |
4371 | #include <stdarg.h> | |
4372 | #include <stdio.h> | |
4373 | #include <sys/types.h> | |
4374 | #include <sys/stat.h> | |
4375 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4376 | struct buf { int x; }; | |
4377 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4378 | static char *e (p, i) | |
4379 | char **p; | |
4380 | int i; | |
4381 | { | |
4382 | return p[i]; | |
4383 | } | |
4384 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4385 | { | |
4386 | char *s; | |
4387 | va_list v; | |
4388 | va_start (v,p); | |
4389 | s = g (p, va_arg (v,int)); | |
4390 | va_end (v); | |
4391 | return s; | |
4392 | } | |
4393 | ||
4394 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4395 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4396 | These don't provoke an error unfortunately, instead are silently treated | |
5213506e | 4397 | as 'x'. The following induces an error, until -std is added to get |
1c710c3c DJ |
4398 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4399 | array size at least. It's necessary to write '\x00'==0 to get something | |
5213506e | 4400 | that's true only with -std. */ |
1c710c3c DJ |
4401 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4402 | ||
5213506e RW |
4403 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4404 | inside strings and character constants. */ | |
4405 | #define FOO(x) 'x' | |
4406 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4407 | ||
1c710c3c DJ |
4408 | int test (int i, double x); |
4409 | struct s1 {int (*f) (int a);}; | |
4410 | struct s2 {int (*f) (double a);}; | |
4411 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4412 | int argc; | |
4413 | char **argv; | |
4414 | int | |
4415 | main () | |
4416 | { | |
4417 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4418 | ; | |
4419 | return 0; | |
4420 | } | |
4421 | _ACEOF | |
5213506e RW |
4422 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4423 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
1c710c3c DJ |
4424 | do |
4425 | CC="$ac_save_CC $ac_arg" | |
5213506e RW |
4426 | if ac_fn_c_try_compile "$LINENO"; then : |
4427 | ac_cv_prog_cc_c89=$ac_arg | |
1c710c3c | 4428 | fi |
5213506e RW |
4429 | rm -f core conftest.err conftest.$ac_objext |
4430 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
1c710c3c | 4431 | done |
5213506e | 4432 | rm -f conftest.$ac_ext |
1c710c3c DJ |
4433 | CC=$ac_save_CC |
4434 | ||
4435 | fi | |
5213506e RW |
4436 | # AC_CACHE_VAL |
4437 | case "x$ac_cv_prog_cc_c89" in | |
4438 | x) | |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4440 | $as_echo "none needed" >&6; } ;; | |
4441 | xno) | |
4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4443 | $as_echo "unsupported" >&6; } ;; | |
1c710c3c | 4444 | *) |
5213506e RW |
4445 | CC="$CC $ac_cv_prog_cc_c89" |
4446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4447 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
1c710c3c | 4448 | esac |
5213506e | 4449 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
1c710c3c | 4450 | |
2aeb72e9 DD |
4451 | fi |
4452 | ||
2aeb72e9 DD |
4453 | ac_ext=c |
4454 | ac_cpp='$CPP $CPPFLAGS' | |
4455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4458 | ||
5213506e | 4459 | ac_ext=cpp |
2aeb72e9 DD |
4460 | ac_cpp='$CXXCPP $CPPFLAGS' |
4461 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4462 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4463 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5213506e RW |
4464 | if test -z "$CXX"; then |
4465 | if test -n "$CCC"; then | |
4466 | CXX=$CCC | |
4467 | else | |
4468 | if test -n "$ac_tool_prefix"; then | |
4469 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
2aeb72e9 DD |
4470 | do |
4471 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4472 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5213506e RW |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4474 | $as_echo_n "checking for $ac_word... " >&6; } | |
4475 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4476 | $as_echo_n "(cached) " >&6 | |
2aeb72e9 DD |
4477 | else |
4478 | if test -n "$CXX"; then | |
4479 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4480 | else | |
4481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4482 | for as_dir in $PATH | |
4483 | do | |
4484 | IFS=$as_save_IFS | |
4485 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4486 | for ac_exec_ext in '' $ac_executable_extensions; do |
4487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2aeb72e9 | 4488 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5213506e | 4489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2aeb72e9 DD |
4490 | break 2 |
4491 | fi | |
4492 | done | |
5213506e RW |
4493 | done |
4494 | IFS=$as_save_IFS | |
55ffb5ed | 4495 | |
c3a86da9 DJ |
4496 | fi |
4497 | fi | |
4498 | CXX=$ac_cv_prog_CXX | |
4499 | if test -n "$CXX"; then | |
5213506e RW |
4500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4501 | $as_echo "$CXX" >&6; } | |
c3a86da9 | 4502 | else |
5213506e RW |
4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4504 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4505 | fi |
4506 | ||
5213506e | 4507 | |
c3a86da9 DJ |
4508 | test -n "$CXX" && break |
4509 | done | |
4510 | fi | |
4511 | if test -z "$CXX"; then | |
4512 | ac_ct_CXX=$CXX | |
5213506e | 4513 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
c3a86da9 DJ |
4514 | do |
4515 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4516 | set dummy $ac_prog; ac_word=$2 | |
5213506e RW |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4518 | $as_echo_n "checking for $ac_word... " >&6; } | |
4519 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4520 | $as_echo_n "(cached) " >&6 | |
c3a86da9 DJ |
4521 | else |
4522 | if test -n "$ac_ct_CXX"; then | |
4523 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4524 | else | |
4525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4526 | for as_dir in $PATH | |
4527 | do | |
4528 | IFS=$as_save_IFS | |
4529 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4530 | for ac_exec_ext in '' $ac_executable_extensions; do |
4531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c3a86da9 | 4532 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5213506e | 4533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c3a86da9 DJ |
4534 | break 2 |
4535 | fi | |
4536 | done | |
5213506e RW |
4537 | done |
4538 | IFS=$as_save_IFS | |
c3a86da9 DJ |
4539 | |
4540 | fi | |
4541 | fi | |
4542 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4543 | if test -n "$ac_ct_CXX"; then | |
5213506e RW |
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4545 | $as_echo "$ac_ct_CXX" >&6; } | |
c3a86da9 | 4546 | else |
5213506e RW |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4548 | $as_echo "no" >&6; } | |
c3a86da9 DJ |
4549 | fi |
4550 | ||
5213506e | 4551 | |
c3a86da9 DJ |
4552 | test -n "$ac_ct_CXX" && break |
4553 | done | |
c3a86da9 | 4554 | |
5213506e RW |
4555 | if test "x$ac_ct_CXX" = x; then |
4556 | CXX="g++" | |
4557 | else | |
4558 | case $cross_compiling:$ac_tool_warned in | |
4559 | yes:) | |
4560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4561 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4562 | ac_tool_warned=yes ;; | |
4563 | esac | |
4564 | CXX=$ac_ct_CXX | |
4565 | fi | |
c3a86da9 DJ |
4566 | fi |
4567 | ||
5213506e RW |
4568 | fi |
4569 | fi | |
c3a86da9 | 4570 | # Provide some information about the compiler. |
5213506e RW |
4571 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4572 | set X $ac_compile | |
4573 | ac_compiler=$2 | |
4574 | for ac_option in --version -v -V -qversion; do | |
4575 | { { ac_try="$ac_compiler $ac_option >&5" | |
4576 | case "(($ac_try" in | |
4577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4578 | *) ac_try_echo=$ac_try;; | |
4579 | esac | |
4580 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4581 | $as_echo "$ac_try_echo"; } >&5 | |
4582 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c3a86da9 | 4583 | ac_status=$? |
5213506e RW |
4584 | if test -s conftest.err; then |
4585 | sed '10a\ | |
4586 | ... rest of stderr output deleted ... | |
4587 | 10q' conftest.err >conftest.er1 | |
4588 | cat conftest.er1 >&5 | |
4589 | rm -f conftest.er1 conftest.err | |
4590 | fi | |
4591 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4592 | test $ac_status = 0; } | |
4593 | done | |
c3a86da9 | 4594 | |
5213506e RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4596 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4597 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4598 | $as_echo_n "(cached) " >&6 | |
c3a86da9 | 4599 | else |
5213506e | 4600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c3a86da9 DJ |
4601 | /* end confdefs.h. */ |
4602 | ||
4603 | int | |
4604 | main () | |
4605 | { | |
4606 | #ifndef __GNUC__ | |
4607 | choke me | |
4608 | #endif | |
4609 | ||
4610 | ; | |
4611 | return 0; | |
4612 | } | |
4613 | _ACEOF | |
5213506e | 4614 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4615 | ac_compiler_gnu=yes |
4616 | else | |
5213506e | 4617 | ac_compiler_gnu=no |
c3a86da9 | 4618 | fi |
5213506e | 4619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c3a86da9 DJ |
4620 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4621 | ||
4622 | fi | |
5213506e RW |
4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4624 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4625 | if test $ac_compiler_gnu = yes; then | |
4626 | GXX=yes | |
4627 | else | |
4628 | GXX= | |
4629 | fi | |
c3a86da9 DJ |
4630 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4631 | ac_save_CXXFLAGS=$CXXFLAGS | |
5213506e RW |
4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4633 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4634 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4635 | $as_echo_n "(cached) " >&6 | |
4636 | else | |
4637 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4638 | ac_cxx_werror_flag=yes | |
4639 | ac_cv_prog_cxx_g=no | |
4640 | CXXFLAGS="-g" | |
4641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 DJ |
4642 | /* end confdefs.h. */ |
4643 | ||
4644 | int | |
4645 | main () | |
4646 | { | |
4647 | ||
4648 | ; | |
4649 | return 0; | |
4650 | } | |
4651 | _ACEOF | |
5213506e | 4652 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c3a86da9 DJ |
4653 | ac_cv_prog_cxx_g=yes |
4654 | else | |
5213506e RW |
4655 | CXXFLAGS="" |
4656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4657 | /* end confdefs.h. */ |
5213506e | 4658 | |
c3a86da9 DJ |
4659 | int |
4660 | main () | |
4661 | { | |
5213506e | 4662 | |
c3a86da9 DJ |
4663 | ; |
4664 | return 0; | |
4665 | } | |
4666 | _ACEOF | |
5213506e | 4667 | if ac_fn_cxx_try_compile "$LINENO"; then : |
23f6b2f9 | 4668 | |
5213506e RW |
4669 | else |
4670 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4671 | CXXFLAGS="-g" | |
4672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c3a86da9 | 4673 | /* end confdefs.h. */ |
5213506e | 4674 | |
c3a86da9 DJ |
4675 | int |
4676 | main () | |
4677 | { | |
5213506e | 4678 | |
c3a86da9 DJ |
4679 | ; |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
5213506e RW |
4683 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4684 | ac_cv_prog_cxx_g=yes | |
11a67599 | 4685 | fi |
5213506e RW |
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4687 | fi | |
4688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4689 | fi | |
4690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4691 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4692 | fi | |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4694 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4695 | if test "$ac_test_CXXFLAGS" = set; then | |
4696 | CXXFLAGS=$ac_save_CXXFLAGS | |
4697 | elif test $ac_cv_prog_cxx_g = yes; then | |
4698 | if test "$GXX" = yes; then | |
4699 | CXXFLAGS="-g -O2" | |
4700 | else | |
4701 | CXXFLAGS="-g" | |
4702 | fi | |
4703 | else | |
4704 | if test "$GXX" = yes; then | |
4705 | CXXFLAGS="-O2" | |
4706 | else | |
4707 | CXXFLAGS= | |
4708 | fi | |
c3a86da9 | 4709 | fi |
c3a86da9 DJ |
4710 | ac_ext=c |
4711 | ac_cpp='$CPP $CPPFLAGS' | |
4712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4715 | ||
4716 | ||
4717 | # We must set the default linker to the linker used by gcc for the correct | |
4718 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4719 | # set the LD default to the ld used by gcc. | |
4720 | if test -z "$LD"; then | |
4721 | if test "$GCC" = yes; then | |
4722 | case $build in | |
4723 | *-*-mingw*) | |
4724 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4725 | *) | |
4726 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4727 | esac | |
4728 | case $gcc_prog_ld in | |
4729 | # Accept absolute paths. | |
4730 | [\\/]* | [A-Za-z]:[\\/]*) | |
4731 | LD="$gcc_prog_ld" ;; | |
4732 | esac | |
4733 | fi | |
23f6b2f9 PB |
4734 | fi |
4735 | ||
23f6b2f9 PB |
4736 | |
4737 | ||
55ffb5ed | 4738 | |
1c710c3c DJ |
4739 | if test -n "$ac_tool_prefix"; then |
4740 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
55ffb5ed | 4741 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 |
5213506e RW |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4743 | $as_echo_n "checking for $ac_word... " >&6; } | |
4744 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4745 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4746 | else |
4747 | if test -n "$GNATBIND"; then | |
4748 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
4749 | else | |
1c710c3c DJ |
4750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4751 | for as_dir in $PATH | |
4752 | do | |
4753 | IFS=$as_save_IFS | |
4754 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4755 | for ac_exec_ext in '' $ac_executable_extensions; do |
4756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4757 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
5213506e | 4758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4759 | break 2 |
4760 | fi | |
4761 | done | |
5213506e RW |
4762 | done |
4763 | IFS=$as_save_IFS | |
1c710c3c | 4764 | |
55ffb5ed NN |
4765 | fi |
4766 | fi | |
1c710c3c | 4767 | GNATBIND=$ac_cv_prog_GNATBIND |
55ffb5ed | 4768 | if test -n "$GNATBIND"; then |
5213506e RW |
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4770 | $as_echo "$GNATBIND" >&6; } | |
55ffb5ed | 4771 | else |
5213506e RW |
4772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4773 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4774 | fi |
4775 | ||
5213506e | 4776 | |
1c710c3c | 4777 | fi |
55ffb5ed | 4778 | if test -z "$ac_cv_prog_GNATBIND"; then |
1c710c3c | 4779 | ac_ct_GNATBIND=$GNATBIND |
55ffb5ed NN |
4780 | # Extract the first word of "gnatbind", so it can be a program name with args. |
4781 | set dummy gnatbind; ac_word=$2 | |
5213506e RW |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4783 | $as_echo_n "checking for $ac_word... " >&6; } | |
4784 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4785 | $as_echo_n "(cached) " >&6 | |
55ffb5ed | 4786 | else |
1c710c3c DJ |
4787 | if test -n "$ac_ct_GNATBIND"; then |
4788 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
55ffb5ed | 4789 | else |
1c710c3c DJ |
4790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4791 | for as_dir in $PATH | |
4792 | do | |
4793 | IFS=$as_save_IFS | |
4794 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4795 | for ac_exec_ext in '' $ac_executable_extensions; do |
4796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4797 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
5213506e | 4798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4799 | break 2 |
4800 | fi | |
4801 | done | |
5213506e RW |
4802 | done |
4803 | IFS=$as_save_IFS | |
1c710c3c | 4804 | |
55ffb5ed NN |
4805 | fi |
4806 | fi | |
1c710c3c DJ |
4807 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4808 | if test -n "$ac_ct_GNATBIND"; then | |
5213506e RW |
4809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4810 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
55ffb5ed | 4811 | else |
5213506e RW |
4812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4813 | $as_echo "no" >&6; } | |
55ffb5ed NN |
4814 | fi |
4815 | ||
5213506e RW |
4816 | if test "x$ac_ct_GNATBIND" = x; then |
4817 | GNATBIND="no" | |
4818 | else | |
4819 | case $cross_compiling:$ac_tool_warned in | |
4820 | yes:) | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4822 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4823 | ac_tool_warned=yes ;; | |
4824 | esac | |
4825 | GNATBIND=$ac_ct_GNATBIND | |
4826 | fi | |
55ffb5ed | 4827 | else |
1c710c3c | 4828 | GNATBIND="$ac_cv_prog_GNATBIND" |
55ffb5ed NN |
4829 | fi |
4830 | ||
1c710c3c DJ |
4831 | if test -n "$ac_tool_prefix"; then |
4832 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. | |
5305be7e | 4833 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 |
5213506e RW |
4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4835 | $as_echo_n "checking for $ac_word... " >&6; } | |
4836 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4837 | $as_echo_n "(cached) " >&6 | |
5305be7e RG |
4838 | else |
4839 | if test -n "$GNATMAKE"; then | |
4840 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
4841 | else | |
1c710c3c DJ |
4842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4843 | for as_dir in $PATH | |
4844 | do | |
4845 | IFS=$as_save_IFS | |
4846 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4847 | for ac_exec_ext in '' $ac_executable_extensions; do |
4848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4849 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
5213506e | 4850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4851 | break 2 |
4852 | fi | |
4853 | done | |
5213506e RW |
4854 | done |
4855 | IFS=$as_save_IFS | |
1c710c3c | 4856 | |
5305be7e RG |
4857 | fi |
4858 | fi | |
1c710c3c | 4859 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5305be7e | 4860 | if test -n "$GNATMAKE"; then |
5213506e RW |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4862 | $as_echo "$GNATMAKE" >&6; } | |
5305be7e | 4863 | else |
5213506e RW |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4865 | $as_echo "no" >&6; } | |
5305be7e RG |
4866 | fi |
4867 | ||
5213506e | 4868 | |
1c710c3c | 4869 | fi |
5305be7e | 4870 | if test -z "$ac_cv_prog_GNATMAKE"; then |
1c710c3c | 4871 | ac_ct_GNATMAKE=$GNATMAKE |
5305be7e RG |
4872 | # Extract the first word of "gnatmake", so it can be a program name with args. |
4873 | set dummy gnatmake; ac_word=$2 | |
5213506e RW |
4874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4875 | $as_echo_n "checking for $ac_word... " >&6; } | |
4876 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4877 | $as_echo_n "(cached) " >&6 | |
5305be7e | 4878 | else |
1c710c3c DJ |
4879 | if test -n "$ac_ct_GNATMAKE"; then |
4880 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
5305be7e | 4881 | else |
1c710c3c DJ |
4882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4883 | for as_dir in $PATH | |
4884 | do | |
4885 | IFS=$as_save_IFS | |
4886 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
4887 | for ac_exec_ext in '' $ac_executable_extensions; do |
4888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 4889 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
5213506e | 4890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
4891 | break 2 |
4892 | fi | |
4893 | done | |
5213506e RW |
4894 | done |
4895 | IFS=$as_save_IFS | |
1c710c3c | 4896 | |
5305be7e RG |
4897 | fi |
4898 | fi | |
1c710c3c DJ |
4899 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4900 | if test -n "$ac_ct_GNATMAKE"; then | |
5213506e RW |
4901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4902 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
5305be7e | 4903 | else |
5213506e RW |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4905 | $as_echo "no" >&6; } | |
5305be7e RG |
4906 | fi |
4907 | ||
5213506e RW |
4908 | if test "x$ac_ct_GNATMAKE" = x; then |
4909 | GNATMAKE="no" | |
4910 | else | |
4911 | case $cross_compiling:$ac_tool_warned in | |
4912 | yes:) | |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4915 | ac_tool_warned=yes ;; | |
4916 | esac | |
4917 | GNATMAKE=$ac_ct_GNATMAKE | |
4918 | fi | |
5305be7e | 4919 | else |
1c710c3c | 4920 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
5305be7e RG |
4921 | fi |
4922 | ||
5213506e RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4924 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4925 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4926 | $as_echo_n "(cached) " >&6 | |
55ffb5ed NN |
4927 | else |
4928 | cat >conftest.adb <<EOF | |
4929 | procedure conftest is begin null; end conftest; | |
4930 | EOF | |
4931 | acx_cv_cc_gcc_supports_ada=no | |
4932 | # There is a bug in old released versions of GCC which causes the | |
4933 | # driver to exit successfully when the appropriate language module | |
4934 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4935 | # Therefore we must check for the error message as well as an | |
4936 | # unsuccessful exit. | |
1db673ca RO |
4937 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4938 | # given a .adb file, but produce no object file. So we must check | |
4939 | # if an object file was really produced to guard against this. | |
55ffb5ed | 4940 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
1db673ca | 4941 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
55ffb5ed | 4942 | acx_cv_cc_gcc_supports_ada=yes |
55ffb5ed NN |
4943 | fi |
4944 | rm -f conftest.* | |
4945 | fi | |
5213506e RW |
4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4947 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
55ffb5ed | 4948 | |
5305be7e | 4949 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
55ffb5ed NN |
4950 | have_gnat=yes |
4951 | else | |
4952 | have_gnat=no | |
4953 | fi | |
4954 | ||
5213506e RW |
4955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
4956 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
4957 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
4958 | $as_echo_n "(cached) " >&6 | |
a76494aa PB |
4959 | else |
4960 | echo abfoo >t1 | |
4961 | echo cdfoo >t2 | |
4962 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
6cf1ac42 PB |
4963 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4964 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4965 | : | |
4966 | else | |
4967 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4968 | fi | |
4969 | fi | |
a76494aa PB |
4970 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4971 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
6cf1ac42 | 4972 | : |
a76494aa PB |
4973 | else |
4974 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4975 | fi | |
4976 | fi | |
4977 | rm t1 t2 | |
4978 | ||
4979 | fi | |
5213506e RW |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
4981 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
a76494aa PB |
4982 | do_compare="$gcc_cv_prog_cmp_skip" |
4983 | ||
4984 | ||
55ffb5ed | 4985 | |
00020c16 | 4986 | # See if we are building gcc with C++. |
5213506e RW |
4987 | # Check whether --enable-build-with-cxx was given. |
4988 | if test "${enable_build_with_cxx+set}" = set; then : | |
4989 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
00020c16 ILT |
4990 | else |
4991 | ENABLE_BUILD_WITH_CXX=no | |
5213506e RW |
4992 | fi |
4993 | ||
00020c16 | 4994 | |
78767fd9 ILT |
4995 | # Build stage1 with C and build stages 2 and 3 with C++. |
4996 | # Check whether --enable-build-poststage1-with-cxx was given. | |
4997 | if test "${enable_build_poststage1_with_cxx+set}" = set; then : | |
4998 | enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval | |
4999 | else | |
5000 | ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes | |
5001 | fi | |
5002 | ||
5003 | ||
592c90ff KG |
5004 | # Used for setting $lt_cv_objdir |
5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5006 | $as_echo_n "checking for objdir... " >&6; } | |
5007 | if test "${lt_cv_objdir+set}" = set; then : | |
5008 | $as_echo_n "(cached) " >&6 | |
5009 | else | |
5010 | rm -f .libs 2>/dev/null | |
5011 | mkdir .libs 2>/dev/null | |
5012 | if test -d .libs; then | |
5013 | lt_cv_objdir=.libs | |
5014 | else | |
5015 | # MS-DOS does not allow filenames that begin with a dot. | |
5016 | lt_cv_objdir=_libs | |
5017 | fi | |
5018 | rmdir .libs 2>/dev/null | |
5019 | fi | |
5020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5021 | $as_echo "$lt_cv_objdir" >&6; } | |
5022 | objdir=$lt_cv_objdir | |
5023 | ||
5024 | ||
5025 | ||
5026 | ||
5027 | ||
5028 | cat >>confdefs.h <<_ACEOF | |
5029 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5030 | _ACEOF | |
5031 | ||
5032 | ||
5033 | ||
acd26225 | 5034 | # Check for GMP, MPFR and MPC |
3a5729ea | 5035 | gmplibs="-lmpc -lmpfr -lgmp" |
6de9cd9a | 5036 | gmpinc= |
e69bf64b | 5037 | have_gmp=no |
acd26225 KG |
5038 | |
5039 | # Specify a location for mpc | |
5040 | # check for this first so it ends up on the link line before mpfr. | |
5041 | ||
5213506e RW |
5042 | # Check whether --with-mpc was given. |
5043 | if test "${with_mpc+set}" = set; then : | |
5044 | withval=$with_mpc; | |
5045 | fi | |
acd26225 | 5046 | |
acd26225 | 5047 | |
9965e3cd | 5048 | # Check whether --with-mpc-include was given. |
5213506e RW |
5049 | if test "${with_mpc_include+set}" = set; then : |
5050 | withval=$with_mpc_include; | |
5051 | fi | |
acd26225 | 5052 | |
acd26225 | 5053 | |
9965e3cd | 5054 | # Check whether --with-mpc-lib was given. |
5213506e RW |
5055 | if test "${with_mpc_lib+set}" = set; then : |
5056 | withval=$with_mpc_lib; | |
5057 | fi | |
acd26225 | 5058 | |
acd26225 KG |
5059 | |
5060 | if test "x$with_mpc" != x; then | |
3a5729ea KG |
5061 | gmplibs="-L$with_mpc/lib $gmplibs" |
5062 | gmpinc="-I$with_mpc/include $gmpinc" | |
acd26225 KG |
5063 | fi |
5064 | if test "x$with_mpc_include" != x; then | |
3a5729ea | 5065 | gmpinc="-I$with_mpc_include $gmpinc" |
acd26225 KG |
5066 | fi |
5067 | if test "x$with_mpc_lib" != x; then | |
3a5729ea | 5068 | gmplibs="-L$with_mpc_lib $gmplibs" |
acd26225 KG |
5069 | fi |
5070 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
592c90ff | 5071 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
3a5729ea | 5072 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
acd26225 KG |
5073 | # Do not test the mpc version. Assume that it is sufficient, since |
5074 | # it is in the source tree, and the library has not been built yet | |
5075 | # but it would be included on the link line in the version check below | |
5076 | # hence making the test fail. | |
3a5729ea | 5077 | have_gmp=yes |
acd26225 | 5078 | fi |
e69bf64b | 5079 | |
bebf829d PB |
5080 | # Specify a location for mpfr |
5081 | # check for this first so it ends up on the link line before gmp. | |
1c710c3c | 5082 | |
5213506e RW |
5083 | # Check whether --with-mpfr-dir was given. |
5084 | if test "${with_mpfr_dir+set}" = set; then : | |
5085 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5086 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5087 | fi | |
5088 | ||
bebf829d PB |
5089 | |
5090 | ||
5213506e RW |
5091 | # Check whether --with-mpfr was given. |
5092 | if test "${with_mpfr+set}" = set; then : | |
5093 | withval=$with_mpfr; | |
5094 | fi | |
1c710c3c | 5095 | |
bebf829d | 5096 | |
9965e3cd | 5097 | # Check whether --with-mpfr-include was given. |
5213506e RW |
5098 | if test "${with_mpfr_include+set}" = set; then : |
5099 | withval=$with_mpfr_include; | |
5100 | fi | |
1c710c3c | 5101 | |
8a877c9c | 5102 | |
9965e3cd | 5103 | # Check whether --with-mpfr-lib was given. |
5213506e RW |
5104 | if test "${with_mpfr_lib+set}" = set; then : |
5105 | withval=$with_mpfr_lib; | |
5106 | fi | |
8a877c9c | 5107 | |
bebf829d PB |
5108 | |
5109 | if test "x$with_mpfr" != x; then | |
5110 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
3a5729ea | 5111 | gmpinc="-I$with_mpfr/include $gmpinc" |
bebf829d | 5112 | fi |
8a877c9c | 5113 | if test "x$with_mpfr_include" != x; then |
3a5729ea | 5114 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a877c9c KG |
5115 | fi |
5116 | if test "x$with_mpfr_lib" != x; then | |
5117 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5118 | fi | |
e69bf64b | 5119 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
592c90ff | 5120 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5121 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
592c90ff | 5122 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
e69bf64b PB |
5123 | # Do not test the mpfr version. Assume that it is sufficient, since |
5124 | # it is in the source tree, and the library has not been built yet | |
5125 | # but it would be included on the link line in the version check below | |
5126 | # hence making the test fail. | |
5127 | have_gmp=yes | |
5128 | fi | |
bebf829d | 5129 | |
6de9cd9a | 5130 | # Specify a location for gmp |
1c710c3c | 5131 | |
5213506e RW |
5132 | # Check whether --with-gmp-dir was given. |
5133 | if test "${with_gmp_dir+set}" = set; then : | |
5134 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5135 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5136 | fi | |
5137 | ||
6de9cd9a | 5138 | |
6de9cd9a | 5139 | |
5213506e RW |
5140 | # Check whether --with-gmp was given. |
5141 | if test "${with_gmp+set}" = set; then : | |
5142 | withval=$with_gmp; | |
5143 | fi | |
1c710c3c | 5144 | |
6de9cd9a | 5145 | |
9965e3cd | 5146 | # Check whether --with-gmp-include was given. |
5213506e RW |
5147 | if test "${with_gmp_include+set}" = set; then : |
5148 | withval=$with_gmp_include; | |
5149 | fi | |
1c710c3c | 5150 | |
8a877c9c | 5151 | |
9965e3cd | 5152 | # Check whether --with-gmp-lib was given. |
5213506e RW |
5153 | if test "${with_gmp_lib+set}" = set; then : |
5154 | withval=$with_gmp_lib; | |
5155 | fi | |
8a877c9c KG |
5156 | |
5157 | ||
6de9cd9a | 5158 | |
bebf829d PB |
5159 | if test "x$with_gmp" != x; then |
5160 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5161 | gmpinc="-I$with_gmp/include $gmpinc" | |
6de9cd9a | 5162 | fi |
8a877c9c KG |
5163 | if test "x$with_gmp_include" != x; then |
5164 | gmpinc="-I$with_gmp_include $gmpinc" | |
5165 | fi | |
5166 | if test "x$with_gmp_lib" != x; then | |
5167 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5168 | fi | |
e69bf64b | 5169 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
592c90ff | 5170 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
e69bf64b | 5171 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
9183bdcf | 5172 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
592c90ff | 5173 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
e69bf64b PB |
5174 | # Do not test the gmp version. Assume that it is sufficient, since |
5175 | # it is in the source tree, and the library has not been built yet | |
5176 | # but it would be included on the link line in the version check below | |
5177 | # hence making the test fail. | |
5178 | have_gmp=yes | |
5179 | fi | |
6de9cd9a | 5180 | |
d943d7c4 | 5181 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
e69bf64b PB |
5182 | have_gmp=yes |
5183 | saved_CFLAGS="$CFLAGS" | |
5184 | CFLAGS="$CFLAGS $gmpinc" | |
362c6d2f KG |
5185 | # Check for the recommended and required versions of GMP. |
5186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5187 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
e8fd69bb SP |
5188 | |
5189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
362c6d2f KG |
5190 | /* end confdefs.h. */ |
5191 | #include "gmp.h" | |
5192 | int | |
5193 | main () | |
5194 | { | |
5195 | ||
5196 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5197 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5198 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5199 | choke me | |
5200 | #endif | |
5201 | ||
5202 | ; | |
5203 | return 0; | |
5204 | } | |
5205 | _ACEOF | |
5206 | if ac_fn_c_try_compile "$LINENO"; then : | |
e8fd69bb | 5207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5208 | /* end confdefs.h. */ |
362c6d2f | 5209 | #include <gmp.h> |
1c710c3c DJ |
5210 | int |
5211 | main () | |
5212 | { | |
6de9cd9a | 5213 | |
362c6d2f KG |
5214 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5215 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5216 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
e69bf64b PB |
5217 | choke me |
5218 | #endif | |
1c710c3c DJ |
5219 | |
5220 | ; | |
5221 | return 0; | |
5222 | } | |
5223 | _ACEOF | |
5213506e RW |
5224 | if ac_fn_c_try_compile "$LINENO"; then : |
5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5226 | $as_echo "yes" >&6; } | |
362c6d2f KG |
5227 | else |
5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5229 | $as_echo "buggy but acceptable" >&6; } | |
5230 | fi | |
5231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1c710c3c | 5232 | else |
5213506e RW |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5234 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5235 | fi |
5213506e | 5236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5237 | |
acd26225 | 5238 | # If we have GMP, check the MPFR version. |
e69bf64b | 5239 | if test x"$have_gmp" = xyes; then |
362c6d2f KG |
5240 | # Check for the recommended and required versions of MPFR. |
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5242 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
5213506e | 5243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1c710c3c | 5244 | /* end confdefs.h. */ |
70ec446f | 5245 | #include <gmp.h> |
e69bf64b | 5246 | #include <mpfr.h> |
1c710c3c DJ |
5247 | int |
5248 | main () | |
5249 | { | |
e48d66a9 | 5250 | |
a3337ea2 | 5251 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
e69bf64b PB |
5252 | choke me |
5253 | #endif | |
1c710c3c DJ |
5254 | |
5255 | ; | |
5256 | return 0; | |
5257 | } | |
5258 | _ACEOF | |
5213506e RW |
5259 | if ac_fn_c_try_compile "$LINENO"; then : |
5260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c | 5261 | /* end confdefs.h. */ |
a3993f33 | 5262 | #include <gmp.h> |
e69bf64b | 5263 | #include <mpfr.h> |
1c710c3c DJ |
5264 | int |
5265 | main () | |
5266 | { | |
a3993f33 | 5267 | |
362c6d2f | 5268 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
e69bf64b PB |
5269 | choke me |
5270 | #endif | |
acd26225 KG |
5271 | |
5272 | ; | |
5273 | return 0; | |
5274 | } | |
5275 | _ACEOF | |
5213506e RW |
5276 | if ac_fn_c_try_compile "$LINENO"; then : |
5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5278 | $as_echo "yes" >&6; } | |
acd26225 | 5279 | else |
5213506e RW |
5280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5281 | $as_echo "buggy but acceptable" >&6; } | |
acd26225 | 5282 | fi |
5213506e | 5283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 | 5284 | else |
5213506e RW |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5286 | $as_echo "no" >&6; }; have_gmp=no | |
acd26225 | 5287 | fi |
5213506e | 5288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5289 | fi |
5290 | ||
5291 | # Check for the MPC header version. | |
3a5729ea | 5292 | if test x"$have_gmp" = xyes ; then |
362c6d2f | 5293 | # Check for the recommended and required versions of MPC. |
5213506e RW |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5295 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
acd26225 KG |
5297 | /* end confdefs.h. */ |
5298 | #include <mpc.h> | |
5299 | int | |
5300 | main () | |
5301 | { | |
5302 | ||
362c6d2f KG |
5303 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5304 | choke me | |
5305 | #endif | |
5306 | ||
5307 | ; | |
5308 | return 0; | |
5309 | } | |
5310 | _ACEOF | |
5311 | if ac_fn_c_try_compile "$LINENO"; then : | |
5312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5313 | /* end confdefs.h. */ | |
5314 | #include <mpc.h> | |
5315 | int | |
5316 | main () | |
5317 | { | |
5318 | ||
5319 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
acd26225 KG |
5320 | choke me |
5321 | #endif | |
5322 | ||
5323 | ; | |
5324 | return 0; | |
5325 | } | |
5326 | _ACEOF | |
5213506e RW |
5327 | if ac_fn_c_try_compile "$LINENO"; then : |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3a5729ea | 5329 | $as_echo "yes" >&6; } |
362c6d2f KG |
5330 | else |
5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5332 | $as_echo "buggy but acceptable" >&6; } | |
5333 | fi | |
5334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
acd26225 | 5335 | else |
5213506e | 5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3a5729ea | 5337 | $as_echo "no" >&6; }; have_gmp=no |
acd26225 | 5338 | fi |
5213506e | 5339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
acd26225 KG |
5340 | fi |
5341 | ||
5342 | # Now check the MPFR library. | |
5343 | if test x"$have_gmp" = xyes; then | |
5344 | saved_LIBS="$LIBS" | |
5345 | LIBS="$LIBS $gmplibs" | |
3a5729ea KG |
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5347 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
5213506e | 5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
acd26225 | 5349 | /* end confdefs.h. */ |
3a5729ea | 5350 | #include <mpc.h> |
acd26225 KG |
5351 | int |
5352 | main () | |
5353 | { | |
5354 | ||
5355 | mpfr_t n; | |
5356 | mpfr_t x; | |
3a5729ea | 5357 | mpc_t c; |
acd26225 KG |
5358 | int t; |
5359 | mpfr_init (n); | |
5360 | mpfr_init (x); | |
5361 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5362 | mpfr_erfc (n, x, GMP_RNDN); | |
5363 | mpfr_subnormalize (x, t, GMP_RNDN); | |
3a5729ea KG |
5364 | mpfr_clear(n); |
5365 | mpfr_clear(x); | |
5366 | mpc_init2 (c, 53); | |
5367 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5368 | mpc_cosh (c, c, MPC_RNDNN); | |
5369 | mpc_pow (c, c, c, MPC_RNDNN); | |
5370 | mpc_acosh (c, c, MPC_RNDNN); | |
5371 | mpc_clear (c); | |
1c710c3c DJ |
5372 | |
5373 | ; | |
5374 | return 0; | |
5375 | } | |
5376 | _ACEOF | |
5213506e RW |
5377 | if ac_fn_c_try_link "$LINENO"; then : |
5378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5379 | $as_echo "yes" >&6; } | |
1c710c3c | 5380 | else |
5213506e RW |
5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5382 | $as_echo "no" >&6; }; have_gmp=no | |
1c710c3c | 5383 | fi |
5213506e RW |
5384 | rm -f core conftest.err conftest.$ac_objext \ |
5385 | conftest$ac_exeext conftest.$ac_ext | |
acd26225 KG |
5386 | LIBS="$saved_LIBS" |
5387 | fi | |
5388 | ||
e69bf64b | 5389 | CFLAGS="$saved_CFLAGS" |
6de9cd9a | 5390 | |
362c6d2f KG |
5391 | # The library versions listed in the error message below should match |
5392 | # the HARD-minimums enforced above. | |
e69bf64b | 5393 | if test x$have_gmp != xyes; then |
362c6d2f | 5394 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
3a5729ea KG |
5395 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5396 | their locations. Source code for these libraries can be found at | |
5397 | their respective hosting sites as well as at | |
5398 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5399 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5400 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5401 | make sure that you have installed both the libraries and the header | |
5402 | files. They may be located in separate packages." "$LINENO" 5 | |
e69bf64b | 5403 | fi |
70ec446f KG |
5404 | fi |
5405 | ||
acd26225 KG |
5406 | # Flags needed for both GMP, MPFR and/or MPC. |
5407 | ||
5408 | ||
6de9cd9a DN |
5409 | |
5410 | ||
5411 | ||
9e3eba15 | 5412 | |
f38095f3 JM |
5413 | # Allow host libstdc++ to be specified for static linking with PPL. |
5414 | ||
5213506e RW |
5415 | # Check whether --with-host-libstdcxx was given. |
5416 | if test "${with_host_libstdcxx+set}" = set; then : | |
5417 | withval=$with_host_libstdcxx; | |
5418 | fi | |
f38095f3 | 5419 | |
f38095f3 JM |
5420 | |
5421 | case $with_host_libstdcxx in | |
5422 | no|yes) | |
5213506e | 5423 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
f38095f3 JM |
5424 | ;; |
5425 | esac | |
f8bf9252 | 5426 | |
00020c16 ILT |
5427 | # Linker flags to use for stage1 or when not boostrapping. |
5428 | ||
5213506e RW |
5429 | # Check whether --with-stage1-ldflags was given. |
5430 | if test "${with_stage1_ldflags+set}" = set; then : | |
5431 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
00020c16 ILT |
5432 | stage1_ldflags= |
5433 | else | |
5434 | stage1_ldflags=$withval | |
5435 | fi | |
5436 | else | |
5437 | stage1_ldflags= | |
5213506e RW |
5438 | fi |
5439 | ||
00020c16 ILT |
5440 | |
5441 | ||
5442 | # Libraries to use for stage1 or when not bootstrapping. | |
5443 | ||
5213506e RW |
5444 | # Check whether --with-stage1-libs was given. |
5445 | if test "${with_stage1_libs+set}" = set; then : | |
5446 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
00020c16 ILT |
5447 | stage1_libs= |
5448 | else | |
5449 | stage1_libs=$withval | |
5450 | fi | |
5451 | else | |
5452 | stage1_libs=$with_host_libstdcxx | |
5213506e RW |
5453 | fi |
5454 | ||
00020c16 ILT |
5455 | |
5456 | ||
00020c16 ILT |
5457 | # Libraries to use for stage2 and later builds. This defaults to the |
5458 | # argument passed to --with-host-libstdcxx. | |
5459 | ||
5213506e RW |
5460 | # Check whether --with-boot-libs was given. |
5461 | if test "${with_boot_libs+set}" = set; then : | |
5462 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e90e6bd7 ILT |
5463 | poststage1_libs= |
5464 | else | |
5465 | poststage1_libs=$withval | |
5466 | fi | |
5467 | else | |
00020c16 | 5468 | poststage1_libs=$with_host_libstdcxx |
5213506e RW |
5469 | fi |
5470 | ||
00020c16 ILT |
5471 | |
5472 | ||
ed2eaa9f ILT |
5473 | # Linker flags to use for stage2 and later builds. |
5474 | ||
5475 | # Check whether --with-boot-ldflags was given. | |
5476 | if test "${with_boot_ldflags+set}" = set; then : | |
5477 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5478 | poststage1_ldflags= | |
5479 | else | |
5480 | poststage1_ldflags=$withval | |
5481 | fi | |
5482 | else | |
5483 | poststage1_ldflags= | |
bec93d73 ILT |
5484 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5485 | # statically. But if the user explicitly specified the libraries to | |
5486 | # use, trust that they are doing what they want. | |
5487 | if test "$poststage1_libs" = ""; then | |
ed2eaa9f ILT |
5488 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5489 | fi | |
5490 | fi | |
5491 | ||
5492 | ||
5493 | ||
f8bf9252 | 5494 | # Check for PPL |
7d32a440 | 5495 | ppllibs= |
f8bf9252 | 5496 | pplinc= |
7d32a440 | 5497 | pwllib= |
f8bf9252 SP |
5498 | |
5499 | ||
5213506e RW |
5500 | # Check whether --with-ppl was given. |
5501 | if test "${with_ppl+set}" = set; then : | |
5502 | withval=$with_ppl; | |
5213506e | 5503 | fi |
f8bf9252 | 5504 | |
f8bf9252 | 5505 | |
9965e3cd | 5506 | # Check whether --with-ppl-include was given. |
5213506e RW |
5507 | if test "${with_ppl_include+set}" = set; then : |
5508 | withval=$with_ppl_include; | |
5509 | fi | |
5510 | ||
f8bf9252 | 5511 | |
9965e3cd | 5512 | # Check whether --with-ppl-lib was given. |
5213506e RW |
5513 | if test "${with_ppl_lib+set}" = set; then : |
5514 | withval=$with_ppl_lib; | |
5515 | fi | |
f8bf9252 | 5516 | |
f8bf9252 | 5517 | |
7d32a440 SP |
5518 | # Check whether --enable-ppl-version-check was given. |
5519 | if test "${enable_ppl_version_check+set}" = set; then : | |
5520 | enableval=$enable_ppl_version_check; | |
5521 | fi | |
5522 | ||
5523 | ||
53095c56 | 5524 | case $with_ppl in |
7d32a440 | 5525 | yes | no | "") |
ad0abd3c | 5526 | ;; |
53095c56 | 5527 | *) |
7d32a440 | 5528 | ppllibs="-L$with_ppl/lib" |
53095c56 | 5529 | pplinc="-I$with_ppl/include $pplinc" |
7d32a440 SP |
5530 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5531 | with_ppl=yes | |
5532 | else | |
5533 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5534 | fi | |
53095c56 SP |
5535 | ;; |
5536 | esac | |
7d32a440 SP |
5537 | |
5538 | if test x"$with_ppl_include" != x; then | |
f8bf9252 | 5539 | pplinc="-I$with_ppl_include $pplinc" |
7d32a440 | 5540 | with_ppl=yes |
f8bf9252 | 5541 | fi |
7d32a440 | 5542 | |
f8bf9252 | 5543 | if test "x$with_ppl_lib" != x; then |
7d32a440 SP |
5544 | ppllibs="-L$with_ppl_lib" |
5545 | with_ppl=yes | |
f8bf9252 | 5546 | fi |
7d32a440 SP |
5547 | |
5548 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5549 | if test x"$enable_watchdog" = xyes; then | |
5550 | pwllib="-lpwl" | |
5551 | fi | |
5552 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
f61428ed AO |
5553 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5554 | enable_ppl_version_check=no | |
7d32a440 | 5555 | with_ppl=yes |
f8bf9252 SP |
5556 | fi |
5557 | ||
f158c8d0 | 5558 | if test "x$with_ppl" != xno; then |
7d32a440 | 5559 | if test "x$pwllib" = x; then |
474ee908 RO |
5560 | saved_LIBS="$LIBS" |
5561 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
7d32a440 SP |
5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5563 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5564 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5565 | $as_echo_n "(cached) " >&6 | |
5566 | else | |
5567 | ac_check_lib_save_LIBS=$LIBS | |
5568 | LIBS="-lpwl $LIBS" | |
5569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5570 | /* end confdefs.h. */ | |
5571 | ||
5572 | /* Override any GCC internal prototype to avoid an error. | |
5573 | Use char because int might match the return type of a GCC | |
5574 | builtin and then its argument prototype would still apply. */ | |
5575 | #ifdef __cplusplus | |
5576 | extern "C" | |
5577 | #endif | |
5578 | char PWL_handle_timeout (); | |
5579 | int | |
5580 | main () | |
5581 | { | |
5582 | return PWL_handle_timeout (); | |
5583 | ; | |
5584 | return 0; | |
5585 | } | |
5586 | _ACEOF | |
5587 | if ac_fn_c_try_link "$LINENO"; then : | |
5588 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
d789184e | 5589 | else |
7d32a440 SP |
5590 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5591 | fi | |
5592 | rm -f core conftest.err conftest.$ac_objext \ | |
5593 | conftest$ac_exeext conftest.$ac_ext | |
5594 | LIBS=$ac_check_lib_save_LIBS | |
5595 | fi | |
5596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5597 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5598 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5599 | pwllib="-lpwl" | |
5213506e RW |
5600 | fi |
5601 | ||
474ee908 | 5602 | LIBS="$saved_LIBS" |
7d32a440 | 5603 | fi |
f8bf9252 | 5604 | |
7d32a440 SP |
5605 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5606 | ||
5607 | if test "$enable_ppl_version_check" != no; then | |
5608 | saved_CFLAGS="$CFLAGS" | |
5609 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5611 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f8bf9252 SP |
5613 | /* end confdefs.h. */ |
5614 | #include "ppl_c.h" | |
5615 | int | |
5616 | main () | |
5617 | { | |
5618 | ||
7d32a440 SP |
5619 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5620 | choke me | |
5621 | #endif | |
f8bf9252 SP |
5622 | |
5623 | ; | |
5624 | return 0; | |
5625 | } | |
5626 | _ACEOF | |
5213506e RW |
5627 | if ac_fn_c_try_compile "$LINENO"; then : |
5628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5629 | $as_echo "yes" >&6; } | |
f8bf9252 | 5630 | else |
5213506e | 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
ed3a56f3 | 5632 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
f8bf9252 | 5633 | fi |
5213506e | 5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7d32a440 SP |
5635 | CFLAGS="$saved_CFLAGS" |
5636 | fi | |
d789184e SP |
5637 | fi |
5638 | ||
5639 | # Flags needed for PPL | |
5640 | ||
5641 | ||
f8bf9252 | 5642 | |
f8bf9252 | 5643 | |
d789184e | 5644 | # Check for CLOOG |
d32ef397 | 5645 | |
d789184e SP |
5646 | |
5647 | ||
5213506e RW |
5648 | # Check whether --with-cloog was given. |
5649 | if test "${with_cloog+set}" = set; then : | |
5650 | withval=$with_cloog; | |
5213506e RW |
5651 | fi |
5652 | ||
d789184e | 5653 | |
9965e3cd | 5654 | # Check whether --with-cloog-include was given. |
5213506e RW |
5655 | if test "${with_cloog_include+set}" = set; then : |
5656 | withval=$with_cloog_include; | |
5657 | fi | |
d789184e | 5658 | |
d789184e | 5659 | |
9965e3cd | 5660 | # Check whether --with-cloog-lib was given. |
5213506e RW |
5661 | if test "${with_cloog_lib+set}" = set; then : |
5662 | withval=$with_cloog_lib; | |
5663 | fi | |
d789184e | 5664 | |
d789184e | 5665 | |
f16e2237 TG |
5666 | # Check whether --enable-cloog-backend was given. |
5667 | if test "${enable_cloog_backend+set}" = set; then : | |
5668 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5669 | cloog_backend=isl | |
5670 | elif test "x${enableval}" = "xppl"; then | |
5671 | cloog_backend=ppl | |
5672 | else | |
5673 | cloog_backend=ppl-legacy | |
5674 | fi | |
5675 | else | |
5676 | cloog_backend=ppl-legacy | |
5677 | fi | |
5678 | ||
d32ef397 AS |
5679 | # Check whether --enable-cloog-version-check was given. |
5680 | if test "${enable_cloog_version_check+set}" = set; then : | |
5681 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5682 | else | |
5683 | ENABLE_CLOOG_CHECK=yes | |
5684 | fi | |
5685 | ||
5686 | ||
5687 | # Initialize clooglibs and clooginc. | |
5688 | case $with_cloog in | |
5689 | no) | |
5690 | clooglibs= | |
5691 | clooginc= | |
5692 | ;; | |
5693 | "" | yes) | |
5694 | ;; | |
5695 | *) | |
5696 | clooglibs="-L$with_cloog/lib" | |
5697 | clooginc="-I$with_cloog/include" | |
5698 | ;; | |
5699 | esac | |
5700 | if test "x${with_cloog_include}" != x ; then | |
5701 | clooginc="-I$with_cloog_include" | |
5702 | fi | |
5703 | if test "x${with_cloog_lib}" != x; then | |
5704 | clooglibs="-L$with_cloog_lib" | |
5705 | fi | |
5706 | ||
5707 | ||
5708 | ||
5709 | ||
5710 | ||
17e72e5d | 5711 | if test "x$with_ppl" = "xno"; then |
ab4173cf SP |
5712 | |
5713 | ||
5714 | ||
6be7b668 JJ |
5715 | if test "x${with_cloog}" = xno; then |
5716 | graphite_requested=no | |
5717 | elif test "x${with_cloog}" != x \ | |
ab4173cf SP |
5718 | || test "x${with_cloog_include}" != x \ |
5719 | || test "x${with_cloog_lib}" != x ; then | |
5720 | graphite_requested=yes | |
5721 | else | |
5722 | graphite_requested=no | |
5723 | fi | |
5724 | ||
5725 | ||
5726 | if test "${graphite_requested}" = yes; then | |
f33d8408 | 5727 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 |
ab4173cf | 5728 | fi |
6be7b668 | 5729 | with_cloog=no |
ad0abd3c | 5730 | fi |
d32ef397 AS |
5731 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5732 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5733 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5734 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5735 | fi | |
5736 | if test "x$with_cloog" != "xno"; then | |
ad0abd3c | 5737 | |
d32ef397 AS |
5738 | |
5739 | ||
5740 | _cloog_saved_CFLAGS=$CFLAGS | |
5741 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5742 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5743 | _cloog_saved_LIBS=$LIBS | |
5744 | ||
d32ef397 AS |
5745 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" |
5746 | ||
f16e2237 | 5747 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" |
0bb52d68 | 5748 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" |
f16e2237 TG |
5749 | LDFLAGS="${LDFLAGS} ${clooglibs}" |
5750 | ||
5751 | case $cloog_backend in | |
5752 | "ppl-legacy") | |
5753 | CFLAGS="${CFLAGS} ${pplinc}" | |
5754 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5756 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
d32ef397 AS |
5757 | if test "${gcc_cv_cloog_type+set}" = set; then : |
5758 | $as_echo_n "(cached) " >&6 | |
5759 | else | |
5760 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
f16e2237 | 5761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d32ef397 | 5762 | /* end confdefs.h. */ |
0bb52d68 | 5763 | #include "cloog/cloog.h" |
d32ef397 AS |
5764 | int |
5765 | main () | |
5766 | { | |
0bb52d68 TG |
5767 | #ifndef CLOOG_PPL_BACKEND |
5768 | choke me | |
5769 | #endif | |
d32ef397 AS |
5770 | ; |
5771 | return 0; | |
5772 | } | |
5773 | _ACEOF | |
5774 | if ac_fn_c_try_link "$LINENO"; then : | |
5775 | gcc_cv_cloog_type="PPL Legacy" | |
5776 | else | |
f16e2237 TG |
5777 | gcc_cv_cloog_type=no |
5778 | fi | |
5779 | rm -f core conftest.err conftest.$ac_objext \ | |
5780 | conftest$ac_exeext conftest.$ac_ext | |
5781 | fi | |
5782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5783 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5784 | ;; | |
5785 | "isl") | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5787 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5788 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5789 | $as_echo_n "(cached) " >&6 | |
5790 | else | |
5791 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d32ef397 | 5793 | /* end confdefs.h. */ |
0bb52d68 | 5794 | #include "cloog/cloog.h" |
d32ef397 AS |
5795 | int |
5796 | main () | |
5797 | { | |
5798 | cloog_version () | |
5799 | ; | |
5800 | return 0; | |
5801 | } | |
5802 | _ACEOF | |
5803 | if ac_fn_c_try_link "$LINENO"; then : | |
f16e2237 TG |
5804 | gcc_cv_cloog_type="ISL" |
5805 | else | |
5806 | gcc_cv_cloog_type=no | |
5807 | fi | |
5808 | rm -f core conftest.err conftest.$ac_objext \ | |
5809 | conftest$ac_exeext conftest.$ac_ext | |
5810 | fi | |
5811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5812 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5813 | ;; | |
5814 | "ppl") | |
5815 | CFLAGS="${CFLAGS} ${pplinc}" | |
5816 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5818 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5819 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5820 | $as_echo_n "(cached) " >&6 | |
d32ef397 AS |
5821 | else |
5822 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" | |
f16e2237 | 5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d32ef397 | 5824 | /* end confdefs.h. */ |
0bb52d68 | 5825 | #include "cloog/cloog.h" |
f16e2237 | 5826 | #include "cloog/ppl/cloog.h" |
d32ef397 AS |
5827 | int |
5828 | main () | |
5829 | { | |
5830 | cloog_version () | |
5831 | ; | |
5832 | return 0; | |
5833 | } | |
5834 | _ACEOF | |
5835 | if ac_fn_c_try_link "$LINENO"; then : | |
f16e2237 | 5836 | gcc_cv_cloog_type="PPL" |
d32ef397 AS |
5837 | else |
5838 | gcc_cv_cloog_type=no | |
d789184e | 5839 | fi |
d32ef397 AS |
5840 | rm -f core conftest.err conftest.$ac_objext \ |
5841 | conftest$ac_exeext conftest.$ac_ext | |
d789184e | 5842 | fi |
d32ef397 AS |
5843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5844 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
f16e2237 TG |
5845 | ;; |
5846 | *) | |
5847 | gcc_cv_cloog_type="" | |
5848 | esac | |
5213506e | 5849 | |
d32ef397 AS |
5850 | case $gcc_cv_cloog_type in |
5851 | "PPL Legacy") | |
0bb52d68 | 5852 | clooginc="${clooginc}" |
d32ef397 AS |
5853 | clooglibs="${clooglibs} -lcloog" |
5854 | cloog_org=no | |
5855 | ;; | |
5856 | "ISL") | |
5857 | clooginc="${clooginc} ${_cloogorginc}" | |
3d2bc11b | 5858 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
d32ef397 AS |
5859 | cloog_org=yes |
5860 | ;; | |
5861 | "PPL") | |
5862 | clooginc="${clooginc} ${_cloogorginc}" | |
5863 | clooglibs="${clooglibs} -lcloog-ppl" | |
5864 | cloog_org=yes | |
5865 | ;; | |
5866 | *) | |
5867 | clooglibs= | |
5868 | clooginc= | |
5869 | cloog_org= | |
5870 | ;; | |
5871 | esac | |
d789184e | 5872 | |
d32ef397 AS |
5873 | LIBS=$_cloog_saved_LIBS |
5874 | CFLAGS=$_cloog_saved_CFLAGS | |
5875 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5876 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5877 | ||
5878 | ||
5879 | ||
5880 | ||
5881 | ||
5882 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5883 | _cloog_saved_CFLAGS=$CFLAGS | |
5884 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5885 | ||
5886 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
27882098 | 5887 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" |
d32ef397 AS |
5888 | |
5889 | if test "${cloog_org}" = yes ; then | |
27b9aa80 TG |
5890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
5891 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
d32ef397 AS |
5892 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
5893 | $as_echo_n "(cached) " >&6 | |
5894 | else | |
5895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5896 | /* end confdefs.h. */ | |
5897 | #include "cloog/cloog.h" | |
5898 | int | |
5899 | main () | |
5900 | { | |
5901 | #if CLOOG_VERSION_MAJOR != 0 \ | |
27b9aa80 TG |
5902 | || CLOOG_VERSION_MINOR != 16 \ |
5903 | || CLOOG_VERSION_REVISION < 1 | |
d32ef397 AS |
5904 | choke me |
5905 | #endif | |
5906 | ; | |
5907 | return 0; | |
5908 | } | |
5909 | _ACEOF | |
5910 | if ac_fn_c_try_compile "$LINENO"; then : | |
5911 | gcc_cv_cloog_ct_0_14_0=yes | |
5912 | else | |
5913 | gcc_cv_cloog_ct_0_14_0=no | |
5914 | fi | |
5915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5916 | fi | |
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
5918 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
5919 | elif test "${cloog_org}" = no ; then | |
5920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
f264ed56 | 5921 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
d32ef397 AS |
5922 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
5923 | $as_echo_n "(cached) " >&6 | |
5924 | else | |
5213506e | 5925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8bf9252 SP |
5926 | /* end confdefs.h. */ |
5927 | #include "cloog/cloog.h" | |
5928 | int | |
5929 | main () | |
5930 | { | |
d32ef397 AS |
5931 | #if CLOOG_VERSION_MAJOR != 0 \ |
5932 | || CLOOG_VERSION_MINOR != 15 \ | |
5933 | || CLOOG_VERSION_REVISION < 5 | |
5934 | choke me | |
5935 | #endif | |
f8bf9252 SP |
5936 | ; |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
0333b9a6 SP |
5940 | if ac_fn_c_try_compile "$LINENO"; then : |
5941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5942 | /* end confdefs.h. */ | |
5943 | #include "cloog/cloog.h" | |
5944 | int | |
5945 | main () | |
5946 | { | |
d32ef397 AS |
5947 | #if CLOOG_VERSION_MAJOR != 0 \ |
5948 | || CLOOG_VERSION_MINOR != 15 \ | |
5949 | || CLOOG_VERSION_REVISION < 9 | |
5950 | choke me | |
5951 | #endif | |
0333b9a6 SP |
5952 | ; |
5953 | return 0; | |
5954 | } | |
5955 | _ACEOF | |
5213506e | 5956 | if ac_fn_c_try_compile "$LINENO"; then : |
d32ef397 | 5957 | gcc_cv_cloog_ct_0_15_5=yes |
0333b9a6 | 5958 | else |
d32ef397 | 5959 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
0333b9a6 SP |
5960 | fi |
5961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f8bf9252 | 5962 | else |
d32ef397 | 5963 | gcc_cv_cloog_ct_0_15_5=no |
f8bf9252 | 5964 | fi |
5213506e | 5965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d789184e | 5966 | fi |
d32ef397 AS |
5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
5968 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
5969 | fi | |
5970 | ||
5971 | CFLAGS=$_cloog_saved_CFLAGS | |
5972 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5973 | fi | |
f8bf9252 | 5974 | |
f8bf9252 SP |
5975 | |
5976 | ||
5977 | ||
d32ef397 AS |
5978 | |
5979 | ||
5980 | ||
6be7b668 JJ |
5981 | if test "x${with_cloog}" = xno; then |
5982 | graphite_requested=no | |
5983 | elif test "x${with_cloog}" != x \ | |
d32ef397 AS |
5984 | || test "x${with_cloog_include}" != x \ |
5985 | || test "x${with_cloog_lib}" != x ; then | |
5986 | graphite_requested=yes | |
5987 | else | |
5988 | graphite_requested=no | |
5989 | fi | |
5990 | ||
5991 | ||
5992 | ||
5993 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
5994 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
5995 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
5996 | clooglibs= | |
5997 | clooginc= | |
5998 | fi | |
5999 | ||
6000 | if test "${graphite_requested}" = yes \ | |
6001 | && test "x${clooglibs}" = x \ | |
6002 | && test "x${clooginc}" = x ; then | |
6003 | ||
ab4173cf | 6004 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
d32ef397 AS |
6005 | fi |
6006 | ||
6007 | ||
6008 | fi | |
6009 | ||
d7f09764 DN |
6010 | # Check for LTO support. |
6011 | # Check whether --enable-lto was given. | |
6012 | if test "${enable_lto+set}" = set; then : | |
6013 | enableval=$enable_lto; enable_lto=$enableval | |
6014 | else | |
6015 | enable_lto=yes; default_enable_lto=yes | |
6016 | fi | |
6017 | ||
6018 | ||
7413962d | 6019 | |
9a02962b DK |
6020 | |
6021 | ||
6022 | target_elf=no | |
6023 | case $target in | |
6024 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
e44dbbe1 | 6025 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
9a02962b DK |
6026 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
6027 | target_elf=no | |
6028 | ;; | |
6029 | *) | |
6030 | target_elf=yes | |
6031 | ;; | |
6032 | esac | |
6033 | ||
6034 | if test $target_elf = yes; then : | |
48215350 DK |
6035 | # ELF platforms build the lto-plugin always. |
6036 | build_lto_plugin=yes | |
9a02962b | 6037 | |
9a02962b DK |
6038 | else |
6039 | if test x"$default_enable_lto" = x"yes" ; then | |
bb79486c | 6040 | case $target in |
2cd815e7 | 6041 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
48215350 | 6042 | # On other non-ELF platforms, LTO has yet to be validated. |
bb79486c JH |
6043 | *) enable_lto=no ;; |
6044 | esac | |
9a02962b | 6045 | else |
db50fe7d IS |
6046 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6047 | # It would also be nice to check the binutils support, but we don't | |
9a02962b DK |
6048 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6049 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6050 | # -flto it won't be needed until after installation anyway. | |
6051 | case $target in | |
1cd0b716 | 6052 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
9a02962b DK |
6053 | *) if test x"$enable_lto" = x"yes"; then |
6054 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6055 | fi | |
6056 | ;; | |
6057 | esac | |
6058 | fi | |
1cd0b716 | 6059 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
48215350 | 6060 | # Build it unless LTO was explicitly disabled. |
1cd0b716 | 6061 | case $target in |
48215350 | 6062 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
1cd0b716 DK |
6063 | *) ;; |
6064 | esac | |
48215350 | 6065 | |
9a02962b DK |
6066 | fi |
6067 | ||
d7f09764 | 6068 | |
f8bf9252 | 6069 | |
1e0f07d3 | 6070 | # By default, C is the only stage 1 language. |
e1888513 | 6071 | stage1_languages=,c, |
2805b53a | 6072 | |
00020c16 | 6073 | # Target libraries that we bootstrap. |
ad1e5170 | 6074 | bootstrap_target_libs=,target-libgcc, |
00020c16 | 6075 | |
55ffb5ed NN |
6076 | # Figure out what language subdirectories are present. |
6077 | # Look if the user specified --enable-languages="..."; if not, use | |
6078 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6079 | # go away some day. | |
6080 | # NB: embedded tabs in this IF block -- do not untabify | |
6081 | if test -d ${srcdir}/gcc; then | |
6082 | if test x"${enable_languages+set}" != xset; then | |
6083 | if test x"${LANGUAGES+set}" = xset; then | |
6084 | enable_languages="${LANGUAGES}" | |
6085 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6086 | else | |
6087 | enable_languages=all | |
6088 | fi | |
6089 | else | |
6090 | if test x"${enable_languages}" = x || | |
6091 | test x"${enable_languages}" = xyes; | |
6092 | then | |
6093 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6094 | exit 1 | |
6095 | fi | |
6096 | fi | |
6097 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6098 | ||
7f26dfa3 FXC |
6099 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6100 | # and make the substitution. | |
6101 | case ,${enable_languages}, in | |
6102 | *,f95,*) | |
6103 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6104 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6105 | ;; | |
6106 | esac | |
6107 | ||
55ffb5ed NN |
6108 | # First scan to see if an enabled language requires some other language. |
6109 | # We assume that a given config-lang.in will list all the language | |
6110 | # front ends it requires, even if some are required indirectly. | |
6111 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6112 | case ${lang_frag} in | |
6113 | ..) ;; | |
6114 | # The odd quoting in the next line works around | |
6115 | # an apparent bug in bash 1.12 on linux. | |
6116 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6117 | *) | |
69ecd18f ILT |
6118 | # From the config-lang.in, get $language, $lang_requires, and |
6119 | # $lang_requires_boot_languages. | |
55ffb5ed NN |
6120 | language= |
6121 | lang_requires= | |
69ecd18f | 6122 | lang_requires_boot_languages= |
55ffb5ed | 6123 | . ${lang_frag} |
69ecd18f | 6124 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
55ffb5ed NN |
6125 | case ,${enable_languages}, in |
6126 | *,$other,*) ;; | |
6127 | *,all,*) ;; | |
6128 | *,$language,*) | |
6129 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6130 | enable_languages="${enable_languages},${other}" | |
6131 | ;; | |
6132 | esac | |
6133 | done | |
69ecd18f ILT |
6134 | for other in ${lang_requires_boot_languages} ; do |
6135 | if test "$other" != "c"; then | |
6136 | case ,${enable_stage1_languages}, in | |
6137 | *,$other,*) ;; | |
6138 | *,all,*) ;; | |
6139 | *) | |
6140 | case ,${enable_languages}, in | |
6141 | *,$language,*) | |
6142 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6143 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6144 | ;; | |
6145 | esac | |
6146 | ;; | |
6147 | esac | |
6148 | fi | |
6149 | done | |
55ffb5ed NN |
6150 | ;; |
6151 | esac | |
6152 | done | |
6153 | ||
e1888513 | 6154 | new_enable_languages=,c, |
d7f09764 DN |
6155 | |
6156 | # If LTO is enabled, add the LTO front end. | |
6157 | extra_host_libiberty_configure_flags= | |
6158 | if test "$enable_lto" = "yes" ; then | |
e4c5bd48 RW |
6159 | case ,${enable_languages}, in |
6160 | *,lto,*) ;; | |
6161 | *) enable_languages="${enable_languages},lto" ;; | |
6162 | esac | |
1cd0b716 | 6163 | if test "${build_lto_plugin}" = "yes" ; then |
d7f09764 DN |
6164 | configdirs="$configdirs lto-plugin" |
6165 | extra_host_libiberty_configure_flags=--enable-shared | |
6166 | fi | |
6167 | fi | |
6168 | ||
6169 | ||
55ffb5ed | 6170 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
e1888513 | 6171 | potential_languages=,c, |
55ffb5ed | 6172 | |
4da3b0f8 ILT |
6173 | enabled_target_libs= |
6174 | disabled_target_libs= | |
6175 | ||
55ffb5ed NN |
6176 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6177 | case ${lang_frag} in | |
6178 | ..) ;; | |
6179 | # The odd quoting in the next line works around | |
6180 | # an apparent bug in bash 1.12 on linux. | |
6181 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6182 | *) | |
1c710c3c | 6183 | # From the config-lang.in, get $language, $target_libs, |
2805b53a | 6184 | # $lang_dirs, $boot_language, and $build_by_default |
55ffb5ed NN |
6185 | language= |
6186 | target_libs= | |
6187 | lang_dirs= | |
1546bb64 | 6188 | subdir_requires= |
e1888513 PB |
6189 | boot_language=no |
6190 | build_by_default=yes | |
55ffb5ed | 6191 | . ${lang_frag} |
e1888513 PB |
6192 | if test x${language} = x; then |
6193 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6194 | exit 1 | |
6195 | fi | |
6196 | ||
78767fd9 ILT |
6197 | if test "$language" = "c++"; then |
6198 | if test "$ENABLE_BUILD_WITH_CXX" = "yes" \ | |
6199 | || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
6200 | boot_language=yes | |
6201 | fi | |
00020c16 ILT |
6202 | fi |
6203 | ||
e1888513 PB |
6204 | case ,${enable_languages}, in |
6205 | *,${language},*) | |
55ffb5ed NN |
6206 | # Language was explicitly selected; include it. |
6207 | add_this_lang=yes | |
6208 | ;; | |
e1888513 PB |
6209 | *,all,*) |
6210 | # 'all' was selected, select it if it is a default language | |
6211 | add_this_lang=${build_by_default} | |
55ffb5ed NN |
6212 | ;; |
6213 | *) | |
6214 | add_this_lang=no | |
6215 | ;; | |
6216 | esac | |
6de9cd9a | 6217 | |
1546bb64 | 6218 | # Disable languages that need other directories if these aren't available. |
95695ad3 | 6219 | for i in $subdir_requires; do |
b6348cb3 | 6220 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
1546bb64 PB |
6221 | case ,${enable_languages}, in |
6222 | *,${language},*) | |
6223 | # Specifically requested language; tell them. | |
5213506e | 6224 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
1546bb64 PB |
6225 | ;; |
6226 | *) | |
6227 | # Silently disable. | |
e1888513 | 6228 | add_this_lang=unsupported |
1546bb64 PB |
6229 | ;; |
6230 | esac | |
6231 | done | |
6232 | ||
e1888513 PB |
6233 | # Disable Ada if no preexisting GNAT is available. |
6234 | case ,${enable_languages},:${language}:${have_gnat} in | |
6235 | *,${language},*:ada:no) | |
6236 | # Specifically requested language; tell them. | |
5213506e | 6237 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
e1888513 PB |
6238 | ;; |
6239 | *:ada:no) | |
6240 | # Silently disable. | |
6241 | add_this_lang=unsupported | |
6242 | ;; | |
6243 | esac | |
6244 | ||
4fab7234 HPN |
6245 | # Disable a language that is unsupported by the target. |
6246 | case " $unsupported_languages " in | |
6247 | *" $language "*) | |
e1888513 | 6248 | add_this_lang=unsupported |
4fab7234 HPN |
6249 | ;; |
6250 | esac | |
6251 | ||
6de9cd9a | 6252 | case $add_this_lang in |
e1888513 | 6253 | unsupported) |
55ffb5ed | 6254 | # Remove language-dependent dirs. |
4da3b0f8 ILT |
6255 | disabled_target_libs="$disabled_target_libs $target_libs" |
6256 | noconfigdirs="$noconfigdirs $lang_dirs" | |
2805b53a | 6257 | ;; |
e1888513 PB |
6258 | no) |
6259 | # Remove language-dependent dirs; still show language as supported. | |
4da3b0f8 ILT |
6260 | disabled_target_libs="$disabled_target_libs $target_libs" |
6261 | noconfigdirs="$noconfigdirs $lang_dirs" | |
e1888513 PB |
6262 | potential_languages="${potential_languages}${language}," |
6263 | ;; | |
6264 | yes) | |
6265 | new_enable_languages="${new_enable_languages}${language}," | |
6266 | potential_languages="${potential_languages}${language}," | |
2805b53a | 6267 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
4da3b0f8 | 6268 | enabled_target_libs="$enabled_target_libs $target_libs" |
ab9dcd0c RW |
6269 | case "${boot_language}:,$enable_stage1_languages," in |
6270 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
340de83f | 6271 | # Add to (comma-separated) list of stage 1 languages. |
ab9dcd0c RW |
6272 | case ",$stage1_languages," in |
6273 | *,$language,* | ,yes, | ,all,) ;; | |
6274 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6275 | esac | |
00020c16 ILT |
6276 | # We need to bootstrap any supporting libraries. |
6277 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
2805b53a NN |
6278 | ;; |
6279 | esac | |
6280 | ;; | |
55ffb5ed NN |
6281 | esac |
6282 | ;; | |
6283 | esac | |
6284 | done | |
6285 | ||
4da3b0f8 ILT |
6286 | # Add target libraries which are only needed for disabled languages |
6287 | # to noconfigdirs. | |
6288 | if test -n "$disabled_target_libs"; then | |
6289 | for dir in $disabled_target_libs; do | |
6290 | case " $enabled_target_libs " in | |
6291 | *" ${dir} "*) ;; | |
6292 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6293 | esac | |
6294 | done | |
6295 | fi | |
6296 | ||
5213506e RW |
6297 | # Check whether --enable-stage1-languages was given. |
6298 | if test "${enable_stage1_languages+set}" = set; then : | |
6299 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
e1888513 PB |
6300 | ,no,|,,) |
6301 | # Set it to something that will have no effect in the loop below | |
6302 | enable_stage1_languages=c ;; | |
6303 | ,yes,) | |
6304 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6305 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6306 | *,all,*) | |
6307 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6308 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6309 | esac | |
6310 | ||
6311 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6312 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6313 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6314 | case $potential_languages in | |
6315 | *,$i,*) | |
6316 | case $stage1_languages in | |
6317 | *,$i,*) ;; | |
6318 | *) stage1_languages="$stage1_languages$i," ;; | |
6319 | esac ;; | |
6320 | *) | |
6321 | case $missing_languages in | |
6322 | *,$i,*) ;; | |
6323 | *) missing_languages="$missing_languages$i," ;; | |
6324 | esac ;; | |
6325 | esac | |
6326 | done | |
5213506e RW |
6327 | fi |
6328 | ||
e1888513 PB |
6329 | |
6330 | # Remove leading/trailing commas that were added for simplicity | |
6331 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
79b4b7d2 | 6332 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
e1888513 PB |
6333 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6334 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6335 | ||
55ffb5ed | 6336 | if test "x$missing_languages" != x; then |
5213506e | 6337 | as_fn_error " |
0cf085e4 | 6338 | The following requested languages could not be built: ${missing_languages} |
5213506e | 6339 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
55ffb5ed | 6340 | fi |
55ffb5ed NN |
6341 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6342 | echo The following languages will be built: ${new_enable_languages} | |
e1888513 | 6343 | enable_languages="$new_enable_languages" |
55ffb5ed | 6344 | fi |
e1888513 | 6345 | |
1c710c3c | 6346 | |
b2eaac4a | 6347 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
55ffb5ed NN |
6348 | fi |
6349 | ||
27079765 AH |
6350 | # Handle --disable-<component> generically. |
6351 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6352 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
ac9e6043 RW |
6353 | varname=`echo $dirname | sed -e s/+/_/g` |
6354 | if eval test x\${enable_${varname}} "=" xno ; then | |
27079765 AH |
6355 | noconfigdirs="$noconfigdirs $dir" |
6356 | fi | |
6357 | done | |
6358 | ||
7cd0cf9c | 6359 | # Check for Boehm's garbage collector |
5213506e RW |
6360 | # Check whether --enable-objc-gc was given. |
6361 | if test "${enable_objc_gc+set}" = set; then : | |
6362 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
7cd0cf9c | 6363 | *,objc,*:*:yes:*target-boehm-gc*) |
5213506e | 6364 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
7cd0cf9c DA |
6365 | ;; |
6366 | esac | |
5213506e RW |
6367 | fi |
6368 | ||
7cd0cf9c DA |
6369 | |
6370 | # Make sure we only build Boehm's garbage collector if required. | |
2a79fd67 DA |
6371 | case ,${enable_languages},:${enable_objc_gc} in |
6372 | *,objc,*:yes) | |
7cd0cf9c DA |
6373 | # Keep target-boehm-gc if requested for Objective-C. |
6374 | ;; | |
7cd0cf9c | 6375 | *) |
2a79fd67 DA |
6376 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6377 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6378 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6379 | fi | |
7cd0cf9c DA |
6380 | ;; |
6381 | esac | |
6382 | ||
ee6a22df L |
6383 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6384 | # $build_configdirs and $target_configdirs. | |
55ffb5ed NN |
6385 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6386 | ||
6387 | notsupp="" | |
6388 | for dir in . $skipdirs $noconfigdirs ; do | |
ee6a22df | 6389 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
55ffb5ed NN |
6390 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6391 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6392 | if test -r $srcdir/$dirname/configure ; then | |
6393 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6394 | true | |
6395 | else | |
6396 | notsupp="$notsupp $dir" | |
6397 | fi | |
6398 | fi | |
6399 | fi | |
ee6a22df L |
6400 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6401 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6402 | if test -r $srcdir/$dirname/configure ; then | |
6403 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6404 | true | |
6405 | else | |
6406 | notsupp="$notsupp $dir" | |
6407 | fi | |
6408 | fi | |
6409 | fi | |
55ffb5ed NN |
6410 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6411 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6412 | if test -r $srcdir/$dirname/configure ; then | |
6413 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6414 | true | |
6415 | else | |
6416 | notsupp="$notsupp $dir" | |
6417 | fi | |
6418 | fi | |
6419 | fi | |
6420 | done | |
6421 | ||
55ffb5ed NN |
6422 | # Quietly strip out all directories which aren't configurable in this tree. |
6423 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6424 | # is now the case. | |
23f6b2f9 PB |
6425 | build_configdirs_all="$build_configdirs" |
6426 | build_configdirs= | |
6427 | for i in ${build_configdirs_all} ; do | |
1c710c3c | 6428 | j=`echo $i | sed -e s/build-//g` |
23f6b2f9 PB |
6429 | if test -f ${srcdir}/$j/configure ; then |
6430 | build_configdirs="${build_configdirs} $i" | |
6431 | fi | |
6432 | done | |
6433 | ||
55ffb5ed NN |
6434 | configdirs_all="$configdirs" |
6435 | configdirs= | |
6436 | for i in ${configdirs_all} ; do | |
6437 | if test -f ${srcdir}/$i/configure ; then | |
6438 | configdirs="${configdirs} $i" | |
6439 | fi | |
6440 | done | |
23f6b2f9 | 6441 | |
55ffb5ed NN |
6442 | target_configdirs_all="$target_configdirs" |
6443 | target_configdirs= | |
6444 | for i in ${target_configdirs_all} ; do | |
1c710c3c | 6445 | j=`echo $i | sed -e s/target-//g` |
55ffb5ed NN |
6446 | if test -f ${srcdir}/$j/configure ; then |
6447 | target_configdirs="${target_configdirs} $i" | |
6448 | fi | |
6449 | done | |
6450 | ||
6451 | # Produce a warning message for the subdirs we can't configure. | |
6452 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6453 | # FSF releases, it's important to let people know when their machine isn't | |
6454 | # supported by the one or two programs in a package. | |
6455 | ||
6456 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6457 | # If $appdirs is non-empty, at least one of those directories must still | |
6458 | # be configured, or we error out. (E.g., if the gas release supports a | |
6459 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6460 | # pretend that all is well.) | |
6461 | if test -n "$appdirs" ; then | |
6462 | for dir in $appdirs ; do | |
6463 | if test -r $dir/Makefile.in ; then | |
6464 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6465 | appdirs="" | |
6466 | break | |
6467 | fi | |
23f6b2f9 | 6468 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
55ffb5ed NN |
6469 | appdirs="" |
6470 | break | |
6471 | fi | |
6472 | fi | |
6473 | done | |
6474 | if test -n "$appdirs" ; then | |
6475 | echo "*** This configuration is not supported by this package." 1>&2 | |
6476 | exit 1 | |
6477 | fi | |
6478 | fi | |
6479 | # Okay, some application will build, or we don't care to check. Still | |
6480 | # notify of subdirs not getting built. | |
6481 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6482 | echo " ${notsupp}" 1>&2 | |
6483 | echo " (Any other directories should still work fine.)" 1>&2 | |
6484 | fi | |
6485 | ||
6486 | case "$host" in | |
6487 | *msdosdjgpp*) | |
6488 | enable_gdbtk=no ;; | |
6489 | esac | |
6490 | ||
c3a86da9 DJ |
6491 | # To find our prefix, in gcc_cv_tool_prefix. |
6492 | ||
6493 | # The user is always right. | |
6494 | if test "${PATH_SEPARATOR+set}" != set; then | |
6495 | echo "#! /bin/sh" >conf$$.sh | |
6496 | echo "exit 0" >>conf$$.sh | |
6497 | chmod +x conf$$.sh | |
6498 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6499 | PATH_SEPARATOR=';' | |
6500 | else | |
6501 | PATH_SEPARATOR=: | |
6502 | fi | |
6503 | rm -f conf$$.sh | |
6504 | fi | |
6505 | ||
6506 | ||
6507 | ||
6508 | if test "x$exec_prefix" = xNONE; then | |
6509 | if test "x$prefix" = xNONE; then | |
6510 | gcc_cv_tool_prefix=$ac_default_prefix | |
6511 | else | |
6512 | gcc_cv_tool_prefix=$prefix | |
6513 | fi | |
6514 | else | |
6515 | gcc_cv_tool_prefix=$exec_prefix | |
6516 | fi | |
6517 | ||
6518 | # If there is no compiler in the tree, use the PATH only. In any | |
6519 | # case, if there is no compiler in the tree nobody should use | |
6520 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6521 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6522 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6523 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6524 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6525 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6526 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6527 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6528 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6529 | else | |
6530 | gcc_cv_tool_dirs= | |
6531 | fi | |
6532 | ||
6533 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6534 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6535 | fi | |
6536 | ||
6537 | ||
6538 | ||
55ffb5ed NN |
6539 | copy_dirs= |
6540 | ||
1c710c3c | 6541 | |
5213506e RW |
6542 | # Check whether --with-build-sysroot was given. |
6543 | if test "${with_build_sysroot+set}" = set; then : | |
6544 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
526635cb MM |
6545 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6546 | fi | |
6547 | else | |
6548 | SYSROOT_CFLAGS_FOR_TARGET= | |
5213506e | 6549 | fi |
526635cb MM |
6550 | |
6551 | ||
c8aea42c | 6552 | |
5213506e RW |
6553 | |
6554 | # Check whether --with-debug-prefix-map was given. | |
6555 | if test "${with_debug_prefix_map+set}" = set; then : | |
6556 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
c8aea42c PB |
6557 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6558 | for debug_map in $withval; do | |
6559 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6560 | done | |
6561 | fi | |
6562 | else | |
6563 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
5213506e RW |
6564 | fi |
6565 | ||
c8aea42c PB |
6566 | |
6567 | ||
1c8bd6a3 PB |
6568 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6569 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6570 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6571 | # We want to ensure that TARGET libraries (which we know are built with | |
6572 | # gcc) are built with "-O2 -g", so include those options when setting | |
6573 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6574 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6575 | CFLAGS_FOR_TARGET=$CFLAGS | |
6576 | case " $CFLAGS " in | |
6577 | *" -O2 "*) ;; | |
6578 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6579 | esac | |
6580 | case " $CFLAGS " in | |
6581 | *" -g "* | *" -g3 "*) ;; | |
6582 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6583 | esac | |
6584 | fi | |
6585 | ||
6586 | ||
6587 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6588 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6589 | case " $CXXFLAGS " in | |
6590 | *" -O2 "*) ;; | |
6591 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6592 | esac | |
6593 | case " $CXXFLAGS " in | |
6594 | *" -g "* | *" -g3 "*) ;; | |
6595 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6596 | esac | |
6597 | fi | |
6598 | ||
6599 | ||
6f57bdf6 DK |
6600 | |
6601 | ||
55ffb5ed NN |
6602 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6603 | # the named directory are copied to $(tooldir)/sys-include. | |
6604 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6605 | if test x${is_cross_compiler} = xno ; then | |
6606 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6607 | exit 1 | |
6608 | fi | |
6609 | if test x"${with_headers}" != xyes ; then | |
c3a86da9 | 6610 | x=${gcc_cv_tool_prefix} |
1c710c3c | 6611 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
55ffb5ed NN |
6612 | fi |
6613 | fi | |
6614 | ||
6615 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6616 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6617 | # are permitted. | |
6618 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6619 | if test x${is_cross_compiler} = xno ; then | |
6620 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6621 | exit 1 | |
6622 | fi | |
6623 | if test x"${with_libs}" != xyes ; then | |
6624 | # Copy the libraries in reverse order, so that files in the first named | |
6625 | # library override files in subsequent libraries. | |
c3a86da9 | 6626 | x=${gcc_cv_tool_prefix} |
55ffb5ed | 6627 | for l in ${with_libs}; do |
1c710c3c | 6628 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
55ffb5ed NN |
6629 | done |
6630 | fi | |
6631 | fi | |
6632 | ||
d7f09764 | 6633 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
e8b05380 PB |
6634 | # |
6635 | # This is done by determining whether or not the appropriate directory | |
6636 | # is available, and by checking whether or not specific configurations | |
6637 | # have requested that this magic not happen. | |
1c710c3c DJ |
6638 | # |
6639 | # The command line options always override the explicit settings in | |
e8b05380 PB |
6640 | # configure.in, and the settings in configure.in override this magic. |
6641 | # | |
1c710c3c | 6642 | # If the default for a toolchain is to use GNU as and ld, and you don't |
e8b05380 | 6643 | # want to do that, then you should use the --without-gnu-as and |
d7f09764 DN |
6644 | # --without-gnu-ld options for the configure script. Similarly, if |
6645 | # the default is to use the included zlib and you don't want to do that, | |
6646 | # you should use the --with-system-zlib option for the configure script. | |
e8b05380 PB |
6647 | |
6648 | if test x${use_gnu_as} = x && | |
6649 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6650 | with_gnu_as=yes | |
6651 | extra_host_args="$extra_host_args --with-gnu-as" | |
6652 | fi | |
6653 | ||
6654 | if test x${use_gnu_ld} = x && | |
5afab7ad | 6655 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
e8b05380 PB |
6656 | with_gnu_ld=yes |
6657 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6658 | fi | |
6659 | ||
d7f09764 DN |
6660 | if test x${use_included_zlib} = x && |
6661 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6662 | : | |
6663 | else | |
6664 | with_system_zlib=yes | |
6665 | extra_host_args="$extra_host_args --with-system-zlib" | |
6666 | fi | |
6667 | ||
e8b05380 PB |
6668 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6669 | # can detect this case. | |
6670 | ||
6671 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6672 | with_newlib=yes | |
6673 | extra_host_args="$extra_host_args --with-newlib" | |
6674 | fi | |
6675 | ||
55ffb5ed NN |
6676 | # Handle ${copy_dirs} |
6677 | set fnord ${copy_dirs} | |
6678 | shift | |
6679 | while test $# != 0 ; do | |
6680 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6681 | : | |
6682 | else | |
6683 | echo Copying $1 to $2 | |
6684 | ||
6685 | # Use the install script to create the directory and all required | |
6686 | # parent directories. | |
6687 | if test -d $2 ; then | |
6688 | : | |
6689 | else | |
6690 | echo >config.temp | |
6691 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6692 | fi | |
6693 | ||
6694 | # Copy the directory, assuming we have tar. | |
6695 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6696 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6697 | ||
6698 | # It is the responsibility of the user to correctly adjust all | |
6699 | # symlinks. If somebody can figure out how to handle them correctly | |
6700 | # here, feel free to add the code. | |
6701 | ||
6702 | echo $1 > $2/COPIED | |
6703 | fi | |
6704 | shift; shift | |
6705 | done | |
6706 | ||
e8b05380 PB |
6707 | # Determine a target-dependent exec_prefix that the installed |
6708 | # gcc will search in. Keep this list sorted by triplet, with | |
6709 | # the *-*-osname triplets last. | |
6710 | md_exec_prefix= | |
6711 | case "${target}" in | |
30b74385 | 6712 | i[34567]86-pc-msdosdjgpp*) |
e8b05380 PB |
6713 | md_exec_prefix=/dev/env/DJDIR/bin |
6714 | ;; | |
e8b05380 | 6715 | *-*-hpux* | \ |
e8b05380 | 6716 | *-*-nto-qnx* | \ |
6de66370 | 6717 | *-*-solaris2*) |
e8b05380 PB |
6718 | md_exec_prefix=/usr/ccs/bin |
6719 | ;; | |
6720 | esac | |
6721 | ||
671aa708 NN |
6722 | extra_arflags_for_target= |
6723 | extra_nmflags_for_target= | |
6724 | extra_ranlibflags_for_target= | |
6725 | target_makefile_frag=/dev/null | |
6726 | case "${target}" in | |
58e24147 AM |
6727 | spu-*-*) |
6728 | target_makefile_frag="config/mt-spu" | |
6729 | ;; | |
4bf6c438 RS |
6730 | mips*-sde-elf*) |
6731 | target_makefile_frag="config/mt-sde" | |
6732 | ;; | |
1ec3b87b RS |
6733 | mipsisa*-*-elfoabi*) |
6734 | target_makefile_frag="config/mt-mips-elfoabi" | |
6735 | ;; | |
08d0963a RS |
6736 | mips*-*-*linux* | mips*-*-gnu*) |
6737 | target_makefile_frag="config/mt-mips-gnu" | |
6738 | ;; | |
416ac4d4 | 6739 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
98a5bb3b | 6740 | target_makefile_frag="config/mt-gnu" |
671aa708 NN |
6741 | ;; |
6742 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
1c710c3c | 6743 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
671aa708 NN |
6744 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6745 | # harmless if we're using GNU nm or ar. | |
6746 | extra_arflags_for_target=" -X32_64" | |
6747 | extra_nmflags_for_target=" -B -X32_64" | |
6748 | ;; | |
0aeb3cc6 JH |
6749 | *-*-darwin[3-9]*) |
6750 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
671aa708 NN |
6751 | extra_ranlibflags_for_target=" -c" |
6752 | ;; | |
671aa708 NN |
6753 | esac |
6754 | ||
6755 | alphaieee_frag=/dev/null | |
6756 | case $target in | |
6757 | alpha*-*-*) | |
6758 | # This just makes sure to use the -mieee option to build target libs. | |
6759 | # This should probably be set individually by each library. | |
6760 | alphaieee_frag="config/mt-alphaieee" | |
6761 | ;; | |
6762 | esac | |
6763 | ||
6764 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6765 | # the target libraries, similarly if it is not specified, use -Os | |
6766 | # on selected platforms. | |
6767 | ospace_frag=/dev/null | |
6768 | case "${enable_target_optspace}:${target}" in | |
6769 | yes:*) | |
6770 | ospace_frag="config/mt-ospace" | |
6771 | ;; | |
6772 | :d30v-*) | |
6773 | ospace_frag="config/mt-d30v" | |
6774 | ;; | |
6775 | :m32r-* | :d10v-* | :fr30-*) | |
6776 | ospace_frag="config/mt-ospace" | |
6777 | ;; | |
6778 | no:* | :*) | |
6779 | ;; | |
6780 | *) | |
6781 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6782 | ;; | |
6783 | esac | |
6784 | ||
671aa708 NN |
6785 | # Default to using --with-stabs for certain targets. |
6786 | if test x${with_stabs} = x ; then | |
6787 | case "${target}" in | |
89a95129 | 6788 | mips*-*-irix[56]*) |
671aa708 NN |
6789 | ;; |
6790 | mips*-*-* | alpha*-*-osf*) | |
6791 | with_stabs=yes; | |
6792 | extra_host_args="${extra_host_args} --with-stabs" | |
6793 | ;; | |
6794 | esac | |
6795 | fi | |
6796 | ||
671aa708 NN |
6797 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6798 | # using) don't handle "\$" correctly, so don't use it here. | |
1c710c3c | 6799 | tooldir='${exec_prefix}'/${target_noncanonical} |
671aa708 NN |
6800 | build_tooldir=${tooldir} |
6801 | ||
671aa708 NN |
6802 | # Create a .gdbinit file which runs the one in srcdir |
6803 | # and tells GDB to look there for source files. | |
6804 | ||
6805 | if test -r ${srcdir}/.gdbinit ; then | |
6806 | case ${srcdir} in | |
6807 | .) ;; | |
6808 | *) cat > ./.gdbinit <<EOF | |
6809 | # ${NO_EDIT} | |
6810 | dir ${srcdir} | |
6811 | dir . | |
6812 | source ${srcdir}/.gdbinit | |
6813 | EOF | |
6814 | ;; | |
6815 | esac | |
6816 | fi | |
6817 | ||
671aa708 NN |
6818 | # Make sure that the compiler is able to generate an executable. If it |
6819 | # can't, we are probably in trouble. We don't care whether we can run the | |
6820 | # executable--we might be using a cross compiler--we only care whether it | |
6821 | # can be created. At this point the main configure script has set CC. | |
6822 | we_are_ok=no | |
6823 | echo "int main () { return 0; }" > conftest.c | |
6824 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6825 | if test $? = 0 ; then | |
6826 | if test -s conftest || test -s conftest.exe ; then | |
6827 | we_are_ok=yes | |
6828 | fi | |
1c710c3c | 6829 | fi |
671aa708 NN |
6830 | case $we_are_ok in |
6831 | no) | |
6832 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6833 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6834 | rm -f conftest* | |
6835 | exit 1 | |
6836 | ;; | |
6837 | esac | |
6838 | rm -f conftest* | |
6839 | ||
d89f0ad6 | 6840 | # Decide which environment variable is used to find dynamic libraries. |
671aa708 NN |
6841 | case "${host}" in |
6842 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
111eeb6e | 6843 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
d89f0ad6 | 6844 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
671aa708 NN |
6845 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6846 | esac | |
6847 | ||
d89f0ad6 AL |
6848 | # On systems where the dynamic library environment variable is PATH, |
6849 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding | |
6850 | # built executables to PATH. | |
6851 | if test "$RPATH_ENVVAR" = PATH; then | |
6852 | GCC_SHLIB_SUBDIR=/shlib | |
6853 | else | |
6854 | GCC_SHLIB_SUBDIR= | |
6855 | fi | |
6856 | ||
671aa708 NN |
6857 | # Record target_configdirs and the configure arguments for target and |
6858 | # build configuration in Makefile. | |
6859 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
23f6b2f9 | 6860 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
671aa708 | 6861 | |
ad1e5170 JR |
6862 | # If we are building libgomp, bootstrap it. |
6863 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6864 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6865 | fi | |
6866 | ||
671aa708 NN |
6867 | # Determine whether gdb needs tk/tcl or not. |
6868 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6869 | # and in that case we want gdb to be built without tk. Ugh! | |
6870 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6871 | # so we should be able to put the 'maybe's in unconditionally and | |
6872 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6873 | # 100% sure that that's safe though. | |
e914a571 | 6874 | |
b4f96efe | 6875 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
671aa708 NN |
6876 | case "$enable_gdbtk" in |
6877 | no) | |
6878 | GDB_TK="" ;; | |
e914a571 AC |
6879 | yes) |
6880 | GDB_TK="${gdb_tk}" ;; | |
671aa708 | 6881 | *) |
e914a571 AC |
6882 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6883 | # distro. Eventually someone will fix this and move Insight, nee | |
6884 | # gdbtk to a separate directory. | |
6885 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6886 | GDB_TK="${gdb_tk}" | |
6887 | else | |
6888 | GDB_TK="" | |
6889 | fi | |
6890 | ;; | |
671aa708 | 6891 | esac |
ef9db8d5 DJ |
6892 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6893 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
671aa708 | 6894 | |
60975492 | 6895 | # Strip out unwanted targets. |
8b87bb96 NN |
6896 | |
6897 | # While at that, we remove Makefiles if we were started for recursive | |
6898 | # configuration, so that the top-level Makefile reconfigures them, | |
6899 | # like we used to do when configure itself was recursive. | |
8b87bb96 | 6900 | |
3e54529c RW |
6901 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6902 | # but now we're fixing up the Makefile ourselves with the additional | |
6903 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6904 | # extrasub-{build,host,target} not because there is any reason to split | |
6905 | # the substitutions up that way, but only to remain below the limit of | |
6906 | # 99 commands in a script, for HP-UX sed. | |
6907 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
8b87bb96 | 6908 | |
5213506e RW |
6909 | # Check whether --enable-bootstrap was given. |
6910 | if test "${enable_bootstrap+set}" = set; then : | |
6911 | enableval=$enable_bootstrap; | |
f516a7da | 6912 | else |
ce521a9c | 6913 | enable_bootstrap=default |
5213506e RW |
6914 | fi |
6915 | ||
f516a7da | 6916 | |
ce521a9c PB |
6917 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
6918 | case "$configdirs" in | |
6919 | *gcc*) have_compiler=yes ;; | |
6920 | *) have_compiler=no ;; | |
6921 | esac | |
6922 | ||
6923 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
6924 | *:*:*:no) ;; | |
6925 | ||
1ca26cd2 | 6926 | # Default behavior. Enable bootstrap if we have a compiler |
ce521a9c PB |
6927 | # and we are in a native configuration. |
6928 | yes:$build:$build:default) | |
1ca26cd2 | 6929 | enable_bootstrap=yes ;; |
ce521a9c PB |
6930 | |
6931 | *:*:*:default) | |
6932 | enable_bootstrap=no ;; | |
6933 | ||
6934 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
2d309510 | 6935 | yes:$build:$build:yes) |
ce521a9c PB |
6936 | ;; |
6937 | ||
6938 | # Other configurations, but we have a compiler. Assume the user knows | |
6939 | # what he's doing. | |
2d309510 | 6940 | yes:*:*:yes) |
5213506e RW |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 |
6942 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
ce521a9c PB |
6943 | ;; |
6944 | ||
6945 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
2d309510 | 6946 | no:*:*:yes) |
5213506e | 6947 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
ce521a9c PB |
6948 | |
6949 | # Fail if wrong command line | |
6950 | *) | |
5213506e | 6951 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 |
ce521a9c PB |
6952 | ;; |
6953 | esac | |
6954 | ||
78767fd9 ILT |
6955 | case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in |
6956 | *,c++,*:*:*) ;; | |
6957 | *:*,yes,*:yes) | |
6958 | as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-postage1-with-cxx requires c++ in --enable-languages" "$LINENO" 5 | |
ca6d0d62 RW |
6959 | ;; |
6960 | esac | |
6961 | ||
79cd2b23 RW |
6962 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6963 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6964 | yes:yes:*\ gold\ *:*) | |
6965 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6966 | ;; | |
6967 | esac | |
6968 | ||
ce521a9c | 6969 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
e12c4094 | 6970 | case $enable_bootstrap in |
f516a7da | 6971 | yes) |
e12c4094 AO |
6972 | bootstrap_suffix=bootstrap |
6973 | BUILD_CONFIG=bootstrap-debug | |
6974 | ;; | |
f516a7da | 6975 | no) |
e12c4094 AO |
6976 | bootstrap_suffix=no-bootstrap |
6977 | BUILD_CONFIG= | |
6978 | ;; | |
f516a7da PB |
6979 | esac |
6980 | ||
e12c4094 AO |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6982 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
5646b7b9 AO |
6983 | |
6984 | ||
6985 | # Check whether --with-build-config was given. | |
6986 | if test "${with_build_config+set}" = set; then : | |
6987 | withval=$with_build_config; case $with_build_config in | |
6988 | yes) with_build_config= ;; | |
6989 | no) with_build_config= BUILD_CONFIG= ;; | |
6990 | esac | |
6991 | fi | |
6992 | ||
6993 | ||
e12c4094 AO |
6994 | if test "x${with_build_config}" != x; then |
6995 | BUILD_CONFIG=$with_build_config | |
6996 | else | |
6997 | case $BUILD_CONFIG in | |
6998 | bootstrap-debug) | |
6999 | if echo "int f (void) { return 0; }" > conftest.c && | |
7000 | ${CC} -c conftest.c && | |
7001 | mv conftest.o conftest.o.g0 && | |
7002 | ${CC} -c -g conftest.c && | |
7003 | mv conftest.o conftest.o.g && | |
615c8ffa | 7004 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
e12c4094 AO |
7005 | : |
7006 | else | |
7007 | BUILD_CONFIG= | |
7008 | fi | |
7009 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7010 | ;; | |
7011 | esac | |
7012 | fi | |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7014 | $as_echo "$BUILD_CONFIG" >&6; } | |
7015 | ||
7016 | ||
3e54529c | 7017 | extrasub_build= |
23f6b2f9 | 7018 | for module in ${build_configdirs} ; do |
5607edfd PB |
7019 | if test -z "${no_recursion}" \ |
7020 | && test -f ${build_subdir}/${module}/Makefile; then | |
7021 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7022 | rm -f ${build_subdir}/${module}/Makefile | |
7023 | fi | |
3e54529c | 7024 | extrasub_build="$extrasub_build |
5607edfd PB |
7025 | /^@if build-$module\$/d |
7026 | /^@endif build-$module\$/d | |
7027 | /^@if build-$module-$bootstrap_suffix\$/d | |
7028 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7029 | done | |
3e54529c | 7030 | extrasub_host= |
5607edfd | 7031 | for module in ${configdirs} ; do |
a6fbc1e2 | 7032 | if test -z "${no_recursion}"; then |
f063a9ed | 7033 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
a6fbc1e2 AS |
7034 | if test -f ${file}; then |
7035 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7036 | rm -f ${file} | |
7037 | fi | |
7038 | done | |
5607edfd | 7039 | fi |
3e54529c | 7040 | extrasub_host="$extrasub_host |
5607edfd PB |
7041 | /^@if $module\$/d |
7042 | /^@endif $module\$/d | |
7043 | /^@if $module-$bootstrap_suffix\$/d | |
7044 | /^@endif $module-$bootstrap_suffix\$/d" | |
7045 | done | |
3e54529c | 7046 | extrasub_target= |
5607edfd PB |
7047 | for module in ${target_configdirs} ; do |
7048 | if test -z "${no_recursion}" \ | |
7049 | && test -f ${target_subdir}/${module}/Makefile; then | |
7050 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7051 | rm -f ${target_subdir}/${module}/Makefile | |
7052 | fi | |
00020c16 ILT |
7053 | |
7054 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7055 | case $bootstrap_target_libs in | |
7056 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7057 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7058 | esac | |
7059 | ||
3e54529c | 7060 | extrasub_target="$extrasub_target |
5607edfd PB |
7061 | /^@if target-$module\$/d |
7062 | /^@endif target-$module\$/d | |
00020c16 ILT |
7063 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7064 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
5607edfd PB |
7065 | done |
7066 | ||
3e54529c RW |
7067 | # Do the final fixup along with target modules. |
7068 | extrasub_target="$extrasub_target | |
60975492 | 7069 | /^@if /,/^@endif /d" |
671aa708 NN |
7070 | |
7071 | # Create the serialization dependencies. This uses a temporary file. | |
7072 | ||
5213506e RW |
7073 | # Check whether --enable-serial-configure was given. |
7074 | if test "${enable_serial_configure+set}" = set; then : | |
7075 | enableval=$enable_serial_configure; | |
7076 | fi | |
ade82b16 AO |
7077 | |
7078 | ||
bf1d3e81 NN |
7079 | case ${enable_serial_configure} in |
7080 | yes) | |
7081 | enable_serial_build_configure=yes | |
7082 | enable_serial_host_configure=yes | |
7083 | enable_serial_target_configure=yes | |
7084 | ;; | |
7085 | esac | |
7086 | ||
671aa708 NN |
7087 | # These force 'configure's to be done one at a time, to avoid problems |
7088 | # with contention over a shared config.cache. | |
7089 | rm -f serdep.tmp | |
ade82b16 | 7090 | echo '# serdep.tmp' > serdep.tmp |
671aa708 | 7091 | olditem= |
bf1d3e81 | 7092 | test "x${enable_serial_build_configure}" = xyes && |
671aa708 NN |
7093 | for item in ${build_configdirs} ; do |
7094 | case ${olditem} in | |
7095 | "") ;; | |
ade82b16 | 7096 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7097 | esac |
7098 | olditem=${item} | |
7099 | done | |
7100 | olditem= | |
bf1d3e81 | 7101 | test "x${enable_serial_host_configure}" = xyes && |
671aa708 NN |
7102 | for item in ${configdirs} ; do |
7103 | case ${olditem} in | |
7104 | "") ;; | |
ade82b16 | 7105 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7106 | esac |
7107 | olditem=${item} | |
7108 | done | |
7109 | olditem= | |
bf1d3e81 | 7110 | test "x${enable_serial_target_configure}" = xyes && |
671aa708 NN |
7111 | for item in ${target_configdirs} ; do |
7112 | case ${olditem} in | |
7113 | "") ;; | |
ade82b16 | 7114 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
671aa708 NN |
7115 | esac |
7116 | olditem=${item} | |
7117 | done | |
7118 | serialization_dependencies=serdep.tmp | |
7119 | ||
7120 | ||
ade82b16 | 7121 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
1c710c3c | 7122 | # target, nonopt, and variable assignments. These are the ones we |
f1a036e4 NC |
7123 | # might not want to pass down to subconfigures. The exception being |
7124 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7125 | # files altogether, and which should be passed on to subconfigures. | |
7126 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7127 | # so that we can pass down a consistent program-transform-name. | |
1c710c3c | 7128 | baseargs= |
29a63921 | 7129 | tbaseargs= |
1c710c3c DJ |
7130 | keep_next=no |
7131 | skip_next=no | |
7132 | eval "set -- $ac_configure_args" | |
44bfc3ac DJ |
7133 | for ac_arg |
7134 | do | |
1c710c3c DJ |
7135 | if test X"$skip_next" = X"yes"; then |
7136 | skip_next=no | |
7137 | continue | |
7138 | fi | |
7139 | if test X"$keep_next" = X"yes"; then | |
7140 | case $ac_arg in | |
7141 | *\'*) | |
7142 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7143 | esac | |
7144 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7145 | tbaseargs="$tbaseargs '$ac_arg'" |
1c710c3c DJ |
7146 | keep_next=no |
7147 | continue | |
7148 | fi | |
7149 | ||
7150 | # Handle separated arguments. Based on the logic generated by | |
7151 | # autoconf 2.59. | |
7152 | case $ac_arg in | |
7153 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7154 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7155 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7156 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7157 | separate_arg=no | |
7158 | ;; | |
7159 | -*) | |
7160 | separate_arg=yes | |
7161 | ;; | |
7162 | *) | |
7163 | separate_arg=no | |
7164 | ;; | |
7165 | esac | |
7166 | ||
29a63921 AO |
7167 | skip_targ=no |
7168 | case $ac_arg in | |
7169 | ||
7170 | --with-* | --without-*) | |
7171 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7172 | ||
7173 | case $libopt in | |
7174 | *[-_]include) | |
7175 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7176 | ;; | |
7177 | *[-_]lib) | |
7178 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7179 | ;; | |
7180 | *) | |
7181 | lib=$libopt | |
7182 | ;; | |
7183 | esac | |
7184 | ||
7185 | ||
7186 | case $lib in | |
7187 | mpc | mpfr | gmp | ppl | cloog) | |
7188 | # If we're processing --with-$lib, --with-$lib-include or | |
7189 | # --with-$lib-lib, for one of the libs above, and target is | |
7190 | # different from host, don't pass the current argument to any | |
7191 | # target library's configure. | |
7192 | if test x$is_cross_compiler = xyes; then | |
7193 | skip_targ=yes | |
7194 | fi | |
7195 | ;; | |
7196 | esac | |
7197 | ;; | |
7198 | esac | |
7199 | ||
1c710c3c | 7200 | case "$ac_arg" in |
f1a036e4 NC |
7201 | --cache-file=/dev/null | \ |
7202 | -cache-file=/dev/null ) | |
7203 | # Handled here to avoid the test to skip args below. | |
7204 | baseargs="$baseargs '$ac_arg'" | |
29a63921 | 7205 | tbaseargs="$tbaseargs '$ac_arg'" |
f1a036e4 NC |
7206 | # Assert: $separate_arg should always be no. |
7207 | keep_next=$separate_arg | |
7208 | ;; | |
1c710c3c DJ |
7209 | --no*) |
7210 | continue | |
7211 | ;; | |
7212 | --c* | \ | |
7213 | --sr* | \ | |
7214 | --ho* | \ | |
7215 | --bu* | \ | |
7216 | --t* | \ | |
7217 | --program-* | \ | |
7218 | -cache_file* | \ | |
7219 | -srcdir* | \ | |
7220 | -host* | \ | |
7221 | -build* | \ | |
7222 | -target* | \ | |
7223 | -program-prefix* | \ | |
7224 | -program-suffix* | \ | |
7225 | -program-transform-name* ) | |
7226 | skip_next=$separate_arg | |
7227 | continue | |
7228 | ;; | |
7229 | -*) | |
7230 | # An option. Add it. | |
7231 | case $ac_arg in | |
7232 | *\'*) | |
7233 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7234 | esac | |
7235 | baseargs="$baseargs '$ac_arg'" | |
29a63921 AO |
7236 | if test X"$skip_targ" = Xno; then |
7237 | tbaseargs="$tbaseargs '$ac_arg'" | |
7238 | fi | |
1c710c3c DJ |
7239 | keep_next=$separate_arg |
7240 | ;; | |
7241 | *) | |
7242 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7243 | # pass it down; let the Makefile handle this. | |
7244 | continue | |
7245 | ;; | |
7246 | esac | |
7247 | done | |
7248 | # Remove the initial space we just introduced and, as these will be | |
7249 | # expanded by make, quote '$'. | |
7250 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
671aa708 | 7251 | |
43bb47c2 DJ |
7252 | # Add in --program-transform-name, after --program-prefix and |
7253 | # --program-suffix have been applied to it. Autoconf has already | |
7254 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7255 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
1c710c3c | 7256 | # quotes, because this will be expanded first by make and then by the shell. |
43bb47c2 DJ |
7257 | # Also, because we want to override the logic in subdir configure scripts to |
7258 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7259 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7260 | ${program_transform_name} | |
7261 | EOF_SED | |
7262 | gcc_transform_name=`cat conftestsed.out` | |
7263 | rm -f conftestsed.out | |
7264 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
29a63921 | 7265 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
d9acb717 RW |
7266 | if test "$silent" = yes; then |
7267 | baseargs="$baseargs --silent" | |
29a63921 | 7268 | tbaseargs="$tbaseargs --silent" |
d9acb717 | 7269 | fi |
0115d4a3 | 7270 | baseargs="$baseargs --disable-option-checking" |
29a63921 | 7271 | tbaseargs="$tbaseargs --disable-option-checking" |
43bb47c2 | 7272 | |
ffedf511 RW |
7273 | # Record and document user additions to sub configure arguments. |
7274 | ||
7275 | ||
7276 | ||
7277 | ||
671aa708 NN |
7278 | # For the build-side libraries, we just need to pretend we're native, |
7279 | # and not use the same cache file. Multilibs are neither needed nor | |
7280 | # desired. | |
ffedf511 | 7281 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
671aa708 NN |
7282 | |
7283 | # For host modules, accept cache file option, or specification as blank. | |
7284 | case "${cache_file}" in | |
7285 | "") # empty | |
7286 | cache_file_option="" ;; | |
7287 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7288 | cache_file_option="--cache-file=${cache_file}" ;; | |
7289 | *) # relative path | |
7290 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7291 | esac | |
7292 | ||
09438bde NN |
7293 | # Host dirs don't like to share a cache file either, horribly enough. |
7294 | # This seems to be due to autoconf 2.5x stupidity. | |
ffedf511 | 7295 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
671aa708 | 7296 | |
29a63921 | 7297 | target_configargs="$target_configargs ${tbaseargs}" |
671aa708 NN |
7298 | |
7299 | # Passing a --with-cross-host argument lets the target libraries know | |
7300 | # whether they are being built with a cross-compiler or being built | |
7301 | # native. However, it would be better to use other mechanisms to make the | |
7302 | # sorts of decisions they want to make on this basis. Please consider | |
7303 | # this option to be deprecated. FIXME. | |
7304 | if test x${is_cross_compiler} = xyes ; then | |
1c710c3c | 7305 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
671aa708 NN |
7306 | fi |
7307 | ||
dc683a3f RW |
7308 | # Default to --enable-multilib. |
7309 | if test x${enable_multilib} = x ; then | |
671aa708 | 7310 | target_configargs="--enable-multilib ${target_configargs}" |
dc683a3f | 7311 | fi |
671aa708 NN |
7312 | |
7313 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7314 | # changed from the earlier setting of with_newlib. | |
7315 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7316 | target_configargs="--with-newlib ${target_configargs}" | |
7317 | fi | |
7318 | ||
6b9eb62c NN |
7319 | # Different target subdirs use different values of certain variables |
7320 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7321 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7322 | # it doesn't automatically accept command-line overrides of them. | |
7323 | # This means it's not safe for target subdirs to share a cache file, | |
7324 | # which is disgusting, but there you have it. Hopefully this can be | |
7325 | # fixed in future. It's still worthwhile to use a cache file for each | |
7326 | # directory. I think. | |
7327 | ||
bebcd931 MS |
7328 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7329 | # We need to pass --target, as newer autoconf's requires consistency | |
7330 | # for target_alias and gcc doesn't manage it consistently. | |
e69bf64b | 7331 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
671aa708 | 7332 | |
671aa708 NN |
7333 | FLAGS_FOR_TARGET= |
7334 | case " $target_configdirs " in | |
7335 | *" newlib "*) | |
7336 | case " $target_configargs " in | |
7337 | *" --with-newlib "*) | |
7338 | case "$target" in | |
5d571eaa OS |
7339 | *-cygwin*) |
7340 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7341 | ;; | |
671aa708 NN |
7342 | esac |
7343 | ||
7344 | # If we're not building GCC, don't discard standard headers. | |
7345 | if test -d ${srcdir}/gcc; then | |
7346 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7347 | ||
7348 | if test "${build}" != "${host}"; then | |
7349 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7350 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7351 | # to it. This is right: we don't want to search that directory | |
7352 | # for binaries, but we want the header files in there, so add | |
7353 | # them explicitly. | |
0463992b | 7354 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
671aa708 NN |
7355 | |
7356 | # Someone might think of using the pre-installed headers on | |
7357 | # Canadian crosses, in case the installed compiler is not fully | |
7358 | # compatible with the compiler being built. In this case, it | |
7359 | # would be better to flag an error than risking having | |
7360 | # incompatible object files being constructed. We can't | |
7361 | # guarantee that an error will be flagged, but let's hope the | |
7362 | # compiler will do it, when presented with incompatible header | |
7363 | # files. | |
7364 | fi | |
7365 | fi | |
7366 | ||
7367 | case "${target}-${is_cross_compiler}" in | |
f2a0e225 | 7368 | i[3456789]86-*-linux*-no) |
671aa708 NN |
7369 | # Here host == target, so we don't need to build gcc, |
7370 | # so we don't want to discard standard headers. | |
7371 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7372 | ;; | |
7373 | *) | |
7374 | # If we're building newlib, use its generic headers last, but search | |
7375 | # for any libc-related directories first (so make it the last -B | |
7376 | # switch). | |
7377 | 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 |
7378 | |
7379 | # If we're building libgloss, find the startup file, simulator library | |
7380 | # and linker script. | |
7381 | case " $target_configdirs " in | |
7382 | *" libgloss "*) | |
7383 | # Look for startup file, simulator library and maybe linker script. | |
7384 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7385 | # Look for libnosys.a in case the target needs it. | |
7386 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7387 | # Most targets have the linker script in the source directory. | |
7388 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7389 | ;; | |
7390 | esac | |
671aa708 NN |
7391 | ;; |
7392 | esac | |
7393 | ;; | |
7394 | esac | |
7395 | ;; | |
7396 | esac | |
5d571eaa | 7397 | |
b91f0a41 | 7398 | case "$target" in |
5d571eaa OS |
7399 | x86_64-*mingw* | *-w64-mingw*) |
7400 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7401 | # however, use a symlink named 'mingw' in ${prefix} . | |
7402 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7403 | ;; | |
7404 | *-mingw*) | |
7405 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7406 | 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' | |
7407 | ;; | |
b91f0a41 | 7408 | esac |
671aa708 | 7409 | |
6691a79e ME |
7410 | # Allow the user to override the flags for |
7411 | # our build compiler if desired. | |
f019adc1 MF |
7412 | if test x"${build}" = x"${host}" ; then |
7413 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7414 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7415 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7416 | fi | |
6691a79e | 7417 | |
671aa708 NN |
7418 | # On Canadian crosses, we'll be searching the right directories for |
7419 | # the previously-installed cross compiler, so don't bother to add | |
7420 | # flags for directories within the install tree of the compiler | |
7421 | # being built; programs in there won't even run. | |
7422 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7423 | # Search for pre-installed headers if nothing else fits. | |
9124bc53 | 7424 | 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 |
7425 | fi |
7426 | ||
7427 | if test "x${use_gnu_ld}" = x && | |
7428 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7429 | # Arrange for us to find uninstalled linker scripts. | |
215c351a | 7430 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
671aa708 NN |
7431 | fi |
7432 | ||
e88a2c09 DD |
7433 | # Search for other target-specific linker scripts and such. |
7434 | case "${target}" in | |
3e19841a PB |
7435 | mep*) |
7436 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7437 | ;; | |
e88a2c09 DD |
7438 | esac |
7439 | ||
671aa708 | 7440 | # Makefile fragments. |
7b61653a PE |
7441 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7442 | do | |
7443 | eval fragval=\$$frag | |
7444 | if test $fragval != /dev/null; then | |
7445 | eval $frag=${srcdir}/$fragval | |
7446 | fi | |
7447 | done | |
671aa708 NN |
7448 | |
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | # Miscellanea: directories, flags, etc. | |
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
d89f0ad6 | 7461 | |
23f6b2f9 | 7462 | # Build module lists & subconfigure args. |
671aa708 NN |
7463 | |
7464 | ||
7465 | ||
2abefe3d PB |
7466 | # Host module lists & subconfigure args. |
7467 | ||
7468 | ||
7469 | ||
aae29963 | 7470 | |
2abefe3d PB |
7471 | # Target module lists & subconfigure args. |
7472 | ||
7473 | ||
7474 | ||
7475 | # Build tools. | |
7476 | ||
7477 | ||
7478 | ||
0999159b PB |
7479 | |
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
2abefe3d PB |
7493 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7494 | # on the build machine. These are used if the Makefile can't locate these | |
7495 | # programs in objdir. | |
7496 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7497 | ||
7498 | for ac_prog in 'bison -y' byacc yacc | |
7499 | do | |
1c710c3c | 7500 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7501 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7503 | $as_echo_n "checking for $ac_word... " >&6; } | |
7504 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7505 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7506 | else |
7507 | if test -n "$YACC"; then | |
7508 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7509 | else | |
1c710c3c DJ |
7510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7511 | for as_dir in $PATH | |
7512 | do | |
7513 | IFS=$as_save_IFS | |
7514 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7515 | for ac_exec_ext in '' $ac_executable_extensions; do |
7516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7517 | ac_cv_prog_YACC="$ac_prog" |
5213506e | 7518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7519 | break 2 |
7520 | fi | |
7521 | done | |
5213506e RW |
7522 | done |
7523 | IFS=$as_save_IFS | |
1c710c3c | 7524 | |
2abefe3d PB |
7525 | fi |
7526 | fi | |
1c710c3c | 7527 | YACC=$ac_cv_prog_YACC |
2abefe3d | 7528 | if test -n "$YACC"; then |
5213506e RW |
7529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7530 | $as_echo "$YACC" >&6; } | |
2abefe3d | 7531 | else |
5213506e RW |
7532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7533 | $as_echo "no" >&6; } | |
2abefe3d PB |
7534 | fi |
7535 | ||
5213506e | 7536 | |
1c710c3c | 7537 | test -n "$YACC" && break |
2abefe3d PB |
7538 | done |
7539 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7540 | ||
7541 | case " $build_configdirs " in | |
7542 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
2abefe3d PB |
7543 | esac |
7544 | ||
7545 | for ac_prog in bison | |
7546 | do | |
1c710c3c | 7547 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7548 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7550 | $as_echo_n "checking for $ac_word... " >&6; } | |
7551 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7552 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7553 | else |
7554 | if test -n "$BISON"; then | |
7555 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7556 | else | |
1c710c3c DJ |
7557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7558 | for as_dir in $PATH | |
7559 | do | |
7560 | IFS=$as_save_IFS | |
7561 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7562 | for ac_exec_ext in '' $ac_executable_extensions; do |
7563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7564 | ac_cv_prog_BISON="$ac_prog" |
5213506e | 7565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7566 | break 2 |
7567 | fi | |
7568 | done | |
5213506e RW |
7569 | done |
7570 | IFS=$as_save_IFS | |
1c710c3c | 7571 | |
2abefe3d PB |
7572 | fi |
7573 | fi | |
1c710c3c | 7574 | BISON=$ac_cv_prog_BISON |
2abefe3d | 7575 | if test -n "$BISON"; then |
5213506e RW |
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7577 | $as_echo "$BISON" >&6; } | |
2abefe3d | 7578 | else |
5213506e RW |
7579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7580 | $as_echo "no" >&6; } | |
2abefe3d PB |
7581 | fi |
7582 | ||
5213506e | 7583 | |
1c710c3c | 7584 | test -n "$BISON" && break |
2abefe3d PB |
7585 | done |
7586 | test -n "$BISON" || BISON="$MISSING bison" | |
7587 | ||
7588 | case " $build_configdirs " in | |
7589 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7590 | esac | |
7591 | ||
7592 | for ac_prog in gm4 gnum4 m4 | |
7593 | do | |
1c710c3c | 7594 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7595 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7597 | $as_echo_n "checking for $ac_word... " >&6; } | |
7598 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7599 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7600 | else |
7601 | if test -n "$M4"; then | |
7602 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7603 | else | |
1c710c3c DJ |
7604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7605 | for as_dir in $PATH | |
7606 | do | |
7607 | IFS=$as_save_IFS | |
7608 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7609 | for ac_exec_ext in '' $ac_executable_extensions; do |
7610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7611 | ac_cv_prog_M4="$ac_prog" |
5213506e | 7612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7613 | break 2 |
7614 | fi | |
7615 | done | |
5213506e RW |
7616 | done |
7617 | IFS=$as_save_IFS | |
1c710c3c | 7618 | |
2abefe3d PB |
7619 | fi |
7620 | fi | |
1c710c3c | 7621 | M4=$ac_cv_prog_M4 |
2abefe3d | 7622 | if test -n "$M4"; then |
5213506e RW |
7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7624 | $as_echo "$M4" >&6; } | |
2abefe3d | 7625 | else |
5213506e RW |
7626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7627 | $as_echo "no" >&6; } | |
2abefe3d PB |
7628 | fi |
7629 | ||
5213506e | 7630 | |
1c710c3c | 7631 | test -n "$M4" && break |
2abefe3d PB |
7632 | done |
7633 | test -n "$M4" || M4="$MISSING m4" | |
7634 | ||
7635 | case " $build_configdirs " in | |
7636 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7637 | esac | |
7638 | ||
7639 | for ac_prog in flex lex | |
7640 | do | |
1c710c3c | 7641 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7642 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7644 | $as_echo_n "checking for $ac_word... " >&6; } | |
7645 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7646 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7647 | else |
7648 | if test -n "$LEX"; then | |
7649 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7650 | else | |
1c710c3c DJ |
7651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7652 | for as_dir in $PATH | |
7653 | do | |
7654 | IFS=$as_save_IFS | |
7655 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7656 | for ac_exec_ext in '' $ac_executable_extensions; do |
7657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7658 | ac_cv_prog_LEX="$ac_prog" |
5213506e | 7659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7660 | break 2 |
7661 | fi | |
7662 | done | |
5213506e RW |
7663 | done |
7664 | IFS=$as_save_IFS | |
1c710c3c | 7665 | |
2abefe3d PB |
7666 | fi |
7667 | fi | |
1c710c3c | 7668 | LEX=$ac_cv_prog_LEX |
2abefe3d | 7669 | if test -n "$LEX"; then |
5213506e RW |
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7671 | $as_echo "$LEX" >&6; } | |
2abefe3d | 7672 | else |
5213506e RW |
7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7674 | $as_echo "no" >&6; } | |
2abefe3d PB |
7675 | fi |
7676 | ||
5213506e | 7677 | |
1c710c3c | 7678 | test -n "$LEX" && break |
2abefe3d PB |
7679 | done |
7680 | test -n "$LEX" || LEX="$MISSING flex" | |
7681 | ||
7682 | case " $build_configdirs " in | |
7683 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7684 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7685 | esac | |
7686 | ||
7687 | for ac_prog in flex | |
7688 | do | |
1c710c3c | 7689 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7690 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7692 | $as_echo_n "checking for $ac_word... " >&6; } | |
7693 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7694 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7695 | else |
7696 | if test -n "$FLEX"; then | |
7697 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7698 | else | |
1c710c3c DJ |
7699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7700 | for as_dir in $PATH | |
7701 | do | |
7702 | IFS=$as_save_IFS | |
7703 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7704 | for ac_exec_ext in '' $ac_executable_extensions; do |
7705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7706 | ac_cv_prog_FLEX="$ac_prog" |
5213506e | 7707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7708 | break 2 |
7709 | fi | |
7710 | done | |
5213506e RW |
7711 | done |
7712 | IFS=$as_save_IFS | |
1c710c3c | 7713 | |
2abefe3d PB |
7714 | fi |
7715 | fi | |
1c710c3c | 7716 | FLEX=$ac_cv_prog_FLEX |
2abefe3d | 7717 | if test -n "$FLEX"; then |
5213506e RW |
7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7719 | $as_echo "$FLEX" >&6; } | |
2abefe3d | 7720 | else |
5213506e RW |
7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7722 | $as_echo "no" >&6; } | |
2abefe3d PB |
7723 | fi |
7724 | ||
5213506e | 7725 | |
1c710c3c | 7726 | test -n "$FLEX" && break |
2abefe3d PB |
7727 | done |
7728 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7729 | ||
7730 | case " $build_configdirs " in | |
7731 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7732 | esac | |
7733 | ||
7734 | for ac_prog in makeinfo | |
7735 | do | |
1c710c3c | 7736 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7737 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7739 | $as_echo_n "checking for $ac_word... " >&6; } | |
7740 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7741 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7742 | else |
7743 | if test -n "$MAKEINFO"; then | |
7744 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7745 | else | |
1c710c3c DJ |
7746 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7747 | for as_dir in $PATH | |
7748 | do | |
7749 | IFS=$as_save_IFS | |
7750 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7751 | for ac_exec_ext in '' $ac_executable_extensions; do |
7752 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7753 | ac_cv_prog_MAKEINFO="$ac_prog" |
5213506e | 7754 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7755 | break 2 |
7756 | fi | |
7757 | done | |
5213506e RW |
7758 | done |
7759 | IFS=$as_save_IFS | |
1c710c3c | 7760 | |
2abefe3d PB |
7761 | fi |
7762 | fi | |
1c710c3c | 7763 | MAKEINFO=$ac_cv_prog_MAKEINFO |
2abefe3d | 7764 | if test -n "$MAKEINFO"; then |
5213506e RW |
7765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7766 | $as_echo "$MAKEINFO" >&6; } | |
2abefe3d | 7767 | else |
5213506e RW |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7769 | $as_echo "no" >&6; } | |
2abefe3d PB |
7770 | fi |
7771 | ||
5213506e | 7772 | |
1c710c3c | 7773 | test -n "$MAKEINFO" && break |
2abefe3d PB |
7774 | done |
7775 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7776 | ||
7777 | case " $build_configdirs " in | |
7778 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7779 | *) | |
7780 | ||
d18ff35a | 7781 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
2abefe3d PB |
7782 | # higher, else we use the "missing" dummy. |
7783 | if ${MAKEINFO} --version \ | |
d18ff35a | 7784 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
2abefe3d PB |
7785 | : |
7786 | else | |
7787 | MAKEINFO="$MISSING makeinfo" | |
7788 | fi | |
7789 | ;; | |
7790 | ||
7791 | esac | |
671aa708 | 7792 | |
2abefe3d | 7793 | # FIXME: expect and dejagnu may become build tools? |
671aa708 | 7794 | |
2abefe3d PB |
7795 | for ac_prog in expect |
7796 | do | |
1c710c3c | 7797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7798 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7800 | $as_echo_n "checking for $ac_word... " >&6; } | |
7801 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7802 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7803 | else |
7804 | if test -n "$EXPECT"; then | |
7805 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7806 | else | |
1c710c3c DJ |
7807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7808 | for as_dir in $PATH | |
7809 | do | |
7810 | IFS=$as_save_IFS | |
7811 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7812 | for ac_exec_ext in '' $ac_executable_extensions; do |
7813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7814 | ac_cv_prog_EXPECT="$ac_prog" |
5213506e | 7815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7816 | break 2 |
7817 | fi | |
7818 | done | |
5213506e RW |
7819 | done |
7820 | IFS=$as_save_IFS | |
1c710c3c | 7821 | |
2abefe3d PB |
7822 | fi |
7823 | fi | |
1c710c3c | 7824 | EXPECT=$ac_cv_prog_EXPECT |
2abefe3d | 7825 | if test -n "$EXPECT"; then |
5213506e RW |
7826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7827 | $as_echo "$EXPECT" >&6; } | |
2abefe3d | 7828 | else |
5213506e RW |
7829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7830 | $as_echo "no" >&6; } | |
2abefe3d | 7831 | fi |
671aa708 | 7832 | |
5213506e | 7833 | |
1c710c3c | 7834 | test -n "$EXPECT" && break |
2abefe3d PB |
7835 | done |
7836 | test -n "$EXPECT" || EXPECT="expect" | |
671aa708 | 7837 | |
2abefe3d PB |
7838 | case " $configdirs " in |
7839 | *" expect "*) | |
7840 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7841 | ;; | |
7842 | esac | |
671aa708 | 7843 | |
2abefe3d PB |
7844 | for ac_prog in runtest |
7845 | do | |
1c710c3c | 7846 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2abefe3d | 7847 | set dummy $ac_prog; ac_word=$2 |
5213506e RW |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7849 | $as_echo_n "checking for $ac_word... " >&6; } | |
7850 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7851 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
7852 | else |
7853 | if test -n "$RUNTEST"; then | |
7854 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
fb0103e5 | 7855 | else |
1c710c3c DJ |
7856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7857 | for as_dir in $PATH | |
7858 | do | |
7859 | IFS=$as_save_IFS | |
7860 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7861 | for ac_exec_ext in '' $ac_executable_extensions; do |
7862 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7863 | ac_cv_prog_RUNTEST="$ac_prog" |
5213506e | 7864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7865 | break 2 |
7866 | fi | |
7867 | done | |
5213506e RW |
7868 | done |
7869 | IFS=$as_save_IFS | |
1c710c3c | 7870 | |
2abefe3d PB |
7871 | fi |
7872 | fi | |
1c710c3c | 7873 | RUNTEST=$ac_cv_prog_RUNTEST |
2abefe3d | 7874 | if test -n "$RUNTEST"; then |
5213506e RW |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7876 | $as_echo "$RUNTEST" >&6; } | |
2abefe3d | 7877 | else |
5213506e RW |
7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7879 | $as_echo "no" >&6; } | |
2abefe3d | 7880 | fi |
671aa708 | 7881 | |
5213506e | 7882 | |
1c710c3c | 7883 | test -n "$RUNTEST" && break |
2abefe3d PB |
7884 | done |
7885 | test -n "$RUNTEST" || RUNTEST="runtest" | |
671aa708 | 7886 | |
2abefe3d PB |
7887 | case " $configdirs " in |
7888 | *" dejagnu "*) | |
c394e891 | 7889 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
2abefe3d PB |
7890 | ;; |
7891 | esac | |
671aa708 NN |
7892 | |
7893 | ||
671aa708 | 7894 | # Host tools. |
ca9f4b81 AO |
7895 | ncn_tool_prefix= |
7896 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7897 | ncn_target_tool_prefix= | |
7898 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7899 | ||
278a7a38 AO |
7900 | |
7901 | ||
7902 | if test -n "$AR"; then | |
7903 | ac_cv_prog_AR=$AR | |
7904 | elif test -n "$ac_cv_prog_AR"; then | |
7905 | AR=$ac_cv_prog_AR | |
7906 | fi | |
7907 | ||
7908 | if test -n "$ac_cv_prog_AR"; then | |
7909 | for ncn_progname in ar; do | |
7910 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7911 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7913 | $as_echo_n "checking for $ac_word... " >&6; } | |
7914 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7915 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
7916 | else |
7917 | if test -n "$AR"; then | |
7918 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7919 | else | |
7920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7921 | for as_dir in $PATH | |
7922 | do | |
7923 | IFS=$as_save_IFS | |
7924 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7925 | for ac_exec_ext in '' $ac_executable_extensions; do |
7926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 7927 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 7928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
7929 | break 2 |
7930 | fi | |
7931 | done | |
5213506e RW |
7932 | done |
7933 | IFS=$as_save_IFS | |
278a7a38 AO |
7934 | |
7935 | fi | |
7936 | fi | |
7937 | AR=$ac_cv_prog_AR | |
7938 | if test -n "$AR"; then | |
5213506e RW |
7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7940 | $as_echo "$AR" >&6; } | |
278a7a38 | 7941 | else |
5213506e RW |
7942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7943 | $as_echo "no" >&6; } | |
278a7a38 AO |
7944 | fi |
7945 | ||
5213506e | 7946 | |
278a7a38 AO |
7947 | done |
7948 | fi | |
7949 | ||
7950 | for ncn_progname in ar; do | |
2693c0b0 PB |
7951 | if test -n "$ncn_tool_prefix"; then |
7952 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7953 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7955 | $as_echo_n "checking for $ac_word... " >&6; } | |
7956 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7957 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
7958 | else |
7959 | if test -n "$AR"; then | |
7960 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7961 | else | |
1c710c3c DJ |
7962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7963 | for as_dir in $PATH | |
7964 | do | |
7965 | IFS=$as_save_IFS | |
7966 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
7967 | for ac_exec_ext in '' $ac_executable_extensions; do |
7968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 7969 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 7970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
7971 | break 2 |
7972 | fi | |
7973 | done | |
5213506e RW |
7974 | done |
7975 | IFS=$as_save_IFS | |
1c710c3c | 7976 | |
ca9f4b81 AO |
7977 | fi |
7978 | fi | |
1c710c3c | 7979 | AR=$ac_cv_prog_AR |
ca9f4b81 | 7980 | if test -n "$AR"; then |
5213506e RW |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7982 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 7983 | else |
5213506e RW |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7985 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
7986 | fi |
7987 | ||
5213506e | 7988 | |
2693c0b0 PB |
7989 | fi |
7990 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7991 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7992 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7994 | $as_echo_n "checking for $ac_word... " >&6; } | |
7995 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7996 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 7997 | else |
2693c0b0 | 7998 | if test -n "$AR"; then |
af71363e AS |
7999 | ac_cv_prog_AR="$AR" # Let the user override the test. |
8000 | else | |
1c710c3c DJ |
8001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8002 | for as_dir in $PATH | |
8003 | do | |
8004 | IFS=$as_save_IFS | |
8005 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8006 | for ac_exec_ext in '' $ac_executable_extensions; do |
8007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8008 | ac_cv_prog_AR="${ncn_progname}" |
5213506e | 8009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8010 | break 2 |
8011 | fi | |
8012 | done | |
5213506e RW |
8013 | done |
8014 | IFS=$as_save_IFS | |
1c710c3c | 8015 | |
ca9f4b81 AO |
8016 | fi |
8017 | fi | |
1c710c3c | 8018 | AR=$ac_cv_prog_AR |
2693c0b0 | 8019 | if test -n "$AR"; then |
5213506e RW |
8020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8021 | $as_echo "$AR" >&6; } | |
ca9f4b81 | 8022 | else |
5213506e RW |
8023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8024 | $as_echo "no" >&6; } | |
ca9f4b81 | 8025 | fi |
1c710c3c | 8026 | |
5213506e | 8027 | |
2693c0b0 PB |
8028 | fi |
8029 | test -n "$ac_cv_prog_AR" && break | |
8030 | done | |
8031 | ||
8032 | if test -z "$ac_cv_prog_AR" ; then | |
8033 | set dummy ar | |
8034 | if test $build = $host ; then | |
8035 | AR="$2" | |
ca9f4b81 | 8036 | else |
2693c0b0 | 8037 | AR="${ncn_tool_prefix}$2" |
ca9f4b81 | 8038 | fi |
ca9f4b81 AO |
8039 | fi |
8040 | ||
278a7a38 AO |
8041 | |
8042 | ||
8043 | if test -n "$AS"; then | |
8044 | ac_cv_prog_AS=$AS | |
8045 | elif test -n "$ac_cv_prog_AS"; then | |
8046 | AS=$ac_cv_prog_AS | |
8047 | fi | |
8048 | ||
8049 | if test -n "$ac_cv_prog_AS"; then | |
8050 | for ncn_progname in as; do | |
8051 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8052 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8054 | $as_echo_n "checking for $ac_word... " >&6; } | |
8055 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8056 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8057 | else |
8058 | if test -n "$AS"; then | |
8059 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8060 | else | |
8061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8062 | for as_dir in $PATH | |
8063 | do | |
8064 | IFS=$as_save_IFS | |
8065 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8066 | for ac_exec_ext in '' $ac_executable_extensions; do |
8067 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8068 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8069 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8070 | break 2 |
8071 | fi | |
8072 | done | |
5213506e RW |
8073 | done |
8074 | IFS=$as_save_IFS | |
278a7a38 AO |
8075 | |
8076 | fi | |
8077 | fi | |
8078 | AS=$ac_cv_prog_AS | |
8079 | if test -n "$AS"; then | |
5213506e RW |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8081 | $as_echo "$AS" >&6; } | |
278a7a38 | 8082 | else |
5213506e RW |
8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8084 | $as_echo "no" >&6; } | |
278a7a38 AO |
8085 | fi |
8086 | ||
5213506e | 8087 | |
278a7a38 AO |
8088 | done |
8089 | fi | |
8090 | ||
8091 | for ncn_progname in as; do | |
2693c0b0 PB |
8092 | if test -n "$ncn_tool_prefix"; then |
8093 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8094 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8096 | $as_echo_n "checking for $ac_word... " >&6; } | |
8097 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8098 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8099 | else |
8100 | if test -n "$AS"; then | |
8101 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
0b0dc272 | 8102 | else |
1c710c3c DJ |
8103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8104 | for as_dir in $PATH | |
8105 | do | |
8106 | IFS=$as_save_IFS | |
8107 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8108 | for ac_exec_ext in '' $ac_executable_extensions; do |
8109 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8110 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8112 | break 2 |
8113 | fi | |
8114 | done | |
5213506e RW |
8115 | done |
8116 | IFS=$as_save_IFS | |
1c710c3c | 8117 | |
ca9f4b81 AO |
8118 | fi |
8119 | fi | |
1c710c3c | 8120 | AS=$ac_cv_prog_AS |
ca9f4b81 | 8121 | if test -n "$AS"; then |
5213506e RW |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8123 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8124 | else |
5213506e RW |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8126 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8127 | fi |
8128 | ||
5213506e | 8129 | |
2693c0b0 PB |
8130 | fi |
8131 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8132 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8133 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8135 | $as_echo_n "checking for $ac_word... " >&6; } | |
8136 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8137 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8138 | else |
2693c0b0 PB |
8139 | if test -n "$AS"; then |
8140 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
ca9f4b81 | 8141 | else |
1c710c3c DJ |
8142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8143 | for as_dir in $PATH | |
8144 | do | |
8145 | IFS=$as_save_IFS | |
8146 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8147 | for ac_exec_ext in '' $ac_executable_extensions; do |
8148 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8149 | ac_cv_prog_AS="${ncn_progname}" |
5213506e | 8150 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8151 | break 2 |
8152 | fi | |
8153 | done | |
5213506e RW |
8154 | done |
8155 | IFS=$as_save_IFS | |
1c710c3c | 8156 | |
ca9f4b81 AO |
8157 | fi |
8158 | fi | |
1c710c3c | 8159 | AS=$ac_cv_prog_AS |
2693c0b0 | 8160 | if test -n "$AS"; then |
5213506e RW |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8162 | $as_echo "$AS" >&6; } | |
ca9f4b81 | 8163 | else |
5213506e RW |
8164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8165 | $as_echo "no" >&6; } | |
ca9f4b81 | 8166 | fi |
1c710c3c | 8167 | |
5213506e | 8168 | |
2693c0b0 PB |
8169 | fi |
8170 | test -n "$ac_cv_prog_AS" && break | |
8171 | done | |
8172 | ||
8173 | if test -z "$ac_cv_prog_AS" ; then | |
8174 | set dummy as | |
8175 | if test $build = $host ; then | |
8176 | AS="$2" | |
ca9f4b81 | 8177 | else |
2693c0b0 | 8178 | AS="${ncn_tool_prefix}$2" |
ca9f4b81 | 8179 | fi |
ca9f4b81 AO |
8180 | fi |
8181 | ||
278a7a38 AO |
8182 | |
8183 | ||
8184 | if test -n "$DLLTOOL"; then | |
8185 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8186 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8187 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8188 | fi | |
8189 | ||
8190 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8191 | for ncn_progname in dlltool; do | |
8192 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8193 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8195 | $as_echo_n "checking for $ac_word... " >&6; } | |
8196 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8197 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8198 | else |
8199 | if test -n "$DLLTOOL"; then | |
8200 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8201 | else | |
8202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8203 | for as_dir in $PATH | |
8204 | do | |
8205 | IFS=$as_save_IFS | |
8206 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8207 | for ac_exec_ext in '' $ac_executable_extensions; do |
8208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8209 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8211 | break 2 |
8212 | fi | |
8213 | done | |
5213506e RW |
8214 | done |
8215 | IFS=$as_save_IFS | |
278a7a38 AO |
8216 | |
8217 | fi | |
8218 | fi | |
8219 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8220 | if test -n "$DLLTOOL"; then | |
5213506e RW |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8222 | $as_echo "$DLLTOOL" >&6; } | |
278a7a38 | 8223 | else |
5213506e RW |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8225 | $as_echo "no" >&6; } | |
278a7a38 AO |
8226 | fi |
8227 | ||
5213506e | 8228 | |
278a7a38 AO |
8229 | done |
8230 | fi | |
8231 | ||
8232 | for ncn_progname in dlltool; do | |
2693c0b0 PB |
8233 | if test -n "$ncn_tool_prefix"; then |
8234 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8235 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8237 | $as_echo_n "checking for $ac_word... " >&6; } | |
8238 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8239 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8240 | else |
8241 | if test -n "$DLLTOOL"; then | |
8242 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8243 | else | |
1c710c3c DJ |
8244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8245 | for as_dir in $PATH | |
8246 | do | |
8247 | IFS=$as_save_IFS | |
8248 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8249 | for ac_exec_ext in '' $ac_executable_extensions; do |
8250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8251 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8253 | break 2 |
8254 | fi | |
8255 | done | |
5213506e RW |
8256 | done |
8257 | IFS=$as_save_IFS | |
1c710c3c | 8258 | |
ca9f4b81 AO |
8259 | fi |
8260 | fi | |
1c710c3c | 8261 | DLLTOOL=$ac_cv_prog_DLLTOOL |
ca9f4b81 | 8262 | if test -n "$DLLTOOL"; then |
5213506e RW |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8264 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8265 | else |
5213506e RW |
8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8267 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8268 | fi |
8269 | ||
5213506e | 8270 | |
2693c0b0 PB |
8271 | fi |
8272 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8273 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8274 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8276 | $as_echo_n "checking for $ac_word... " >&6; } | |
8277 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8278 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8279 | else |
2693c0b0 PB |
8280 | if test -n "$DLLTOOL"; then |
8281 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
ca9f4b81 | 8282 | else |
1c710c3c DJ |
8283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8284 | for as_dir in $PATH | |
8285 | do | |
8286 | IFS=$as_save_IFS | |
8287 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8288 | for ac_exec_ext in '' $ac_executable_extensions; do |
8289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8290 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
5213506e | 8291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8292 | break 2 |
8293 | fi | |
8294 | done | |
5213506e RW |
8295 | done |
8296 | IFS=$as_save_IFS | |
1c710c3c | 8297 | |
ca9f4b81 AO |
8298 | fi |
8299 | fi | |
1c710c3c | 8300 | DLLTOOL=$ac_cv_prog_DLLTOOL |
2693c0b0 | 8301 | if test -n "$DLLTOOL"; then |
5213506e RW |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8303 | $as_echo "$DLLTOOL" >&6; } | |
ca9f4b81 | 8304 | else |
5213506e RW |
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8306 | $as_echo "no" >&6; } | |
ca9f4b81 | 8307 | fi |
1c710c3c | 8308 | |
5213506e | 8309 | |
2693c0b0 PB |
8310 | fi |
8311 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8312 | done | |
8313 | ||
8314 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8315 | set dummy dlltool | |
8316 | if test $build = $host ; then | |
8317 | DLLTOOL="$2" | |
ca9f4b81 | 8318 | else |
2693c0b0 | 8319 | DLLTOOL="${ncn_tool_prefix}$2" |
ca9f4b81 | 8320 | fi |
ca9f4b81 AO |
8321 | fi |
8322 | ||
278a7a38 AO |
8323 | |
8324 | ||
8325 | if test -n "$LD"; then | |
8326 | ac_cv_prog_LD=$LD | |
8327 | elif test -n "$ac_cv_prog_LD"; then | |
8328 | LD=$ac_cv_prog_LD | |
8329 | fi | |
8330 | ||
8331 | if test -n "$ac_cv_prog_LD"; then | |
8332 | for ncn_progname in ld; do | |
8333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8334 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8336 | $as_echo_n "checking for $ac_word... " >&6; } | |
8337 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8338 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8339 | else |
8340 | if test -n "$LD"; then | |
8341 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8342 | else | |
8343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8344 | for as_dir in $PATH | |
8345 | do | |
8346 | IFS=$as_save_IFS | |
8347 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8348 | for ac_exec_ext in '' $ac_executable_extensions; do |
8349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8350 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8352 | break 2 |
8353 | fi | |
8354 | done | |
5213506e RW |
8355 | done |
8356 | IFS=$as_save_IFS | |
278a7a38 AO |
8357 | |
8358 | fi | |
8359 | fi | |
8360 | LD=$ac_cv_prog_LD | |
8361 | if test -n "$LD"; then | |
5213506e RW |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8363 | $as_echo "$LD" >&6; } | |
278a7a38 | 8364 | else |
5213506e RW |
8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8366 | $as_echo "no" >&6; } | |
278a7a38 AO |
8367 | fi |
8368 | ||
5213506e | 8369 | |
278a7a38 AO |
8370 | done |
8371 | fi | |
8372 | ||
8373 | for ncn_progname in ld; do | |
2693c0b0 PB |
8374 | if test -n "$ncn_tool_prefix"; then |
8375 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8376 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8378 | $as_echo_n "checking for $ac_word... " >&6; } | |
8379 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8380 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8381 | else |
8382 | if test -n "$LD"; then | |
8383 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8384 | else | |
1c710c3c DJ |
8385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8386 | for as_dir in $PATH | |
8387 | do | |
8388 | IFS=$as_save_IFS | |
8389 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8390 | for ac_exec_ext in '' $ac_executable_extensions; do |
8391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8392 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8394 | break 2 |
8395 | fi | |
8396 | done | |
5213506e RW |
8397 | done |
8398 | IFS=$as_save_IFS | |
1c710c3c | 8399 | |
ca9f4b81 AO |
8400 | fi |
8401 | fi | |
1c710c3c | 8402 | LD=$ac_cv_prog_LD |
ca9f4b81 | 8403 | if test -n "$LD"; then |
5213506e RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8405 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8406 | else |
5213506e RW |
8407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8408 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8409 | fi |
8410 | ||
5213506e | 8411 | |
2693c0b0 PB |
8412 | fi |
8413 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8415 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8417 | $as_echo_n "checking for $ac_word... " >&6; } | |
8418 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8419 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8420 | else |
2693c0b0 PB |
8421 | if test -n "$LD"; then |
8422 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
6b65a26d | 8423 | else |
1c710c3c DJ |
8424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8425 | for as_dir in $PATH | |
8426 | do | |
8427 | IFS=$as_save_IFS | |
8428 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8429 | for ac_exec_ext in '' $ac_executable_extensions; do |
8430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8431 | ac_cv_prog_LD="${ncn_progname}" |
5213506e | 8432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8433 | break 2 |
8434 | fi | |
8435 | done | |
5213506e RW |
8436 | done |
8437 | IFS=$as_save_IFS | |
1c710c3c | 8438 | |
ca9f4b81 AO |
8439 | fi |
8440 | fi | |
1c710c3c | 8441 | LD=$ac_cv_prog_LD |
2693c0b0 | 8442 | if test -n "$LD"; then |
5213506e RW |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8444 | $as_echo "$LD" >&6; } | |
ca9f4b81 | 8445 | else |
5213506e RW |
8446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8447 | $as_echo "no" >&6; } | |
ca9f4b81 | 8448 | fi |
1c710c3c | 8449 | |
5213506e | 8450 | |
2693c0b0 PB |
8451 | fi |
8452 | test -n "$ac_cv_prog_LD" && break | |
8453 | done | |
8454 | ||
8455 | if test -z "$ac_cv_prog_LD" ; then | |
8456 | set dummy ld | |
8457 | if test $build = $host ; then | |
8458 | LD="$2" | |
ca9f4b81 | 8459 | else |
2693c0b0 | 8460 | LD="${ncn_tool_prefix}$2" |
ca9f4b81 | 8461 | fi |
ca9f4b81 AO |
8462 | fi |
8463 | ||
278a7a38 AO |
8464 | |
8465 | ||
8466 | if test -n "$LIPO"; then | |
8467 | ac_cv_prog_LIPO=$LIPO | |
8468 | elif test -n "$ac_cv_prog_LIPO"; then | |
8469 | LIPO=$ac_cv_prog_LIPO | |
8470 | fi | |
8471 | ||
8472 | if test -n "$ac_cv_prog_LIPO"; then | |
8473 | for ncn_progname in lipo; do | |
8474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8475 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8477 | $as_echo_n "checking for $ac_word... " >&6; } | |
8478 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8479 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8480 | else |
8481 | if test -n "$LIPO"; then | |
8482 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8483 | else | |
8484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8485 | for as_dir in $PATH | |
8486 | do | |
8487 | IFS=$as_save_IFS | |
8488 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8489 | for ac_exec_ext in '' $ac_executable_extensions; do |
8490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8491 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8493 | break 2 |
8494 | fi | |
8495 | done | |
5213506e RW |
8496 | done |
8497 | IFS=$as_save_IFS | |
278a7a38 AO |
8498 | |
8499 | fi | |
8500 | fi | |
8501 | LIPO=$ac_cv_prog_LIPO | |
8502 | if test -n "$LIPO"; then | |
5213506e RW |
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8504 | $as_echo "$LIPO" >&6; } | |
278a7a38 | 8505 | else |
5213506e RW |
8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8507 | $as_echo "no" >&6; } | |
278a7a38 AO |
8508 | fi |
8509 | ||
5213506e | 8510 | |
278a7a38 AO |
8511 | done |
8512 | fi | |
8513 | ||
8514 | for ncn_progname in lipo; do | |
2abefe3d PB |
8515 | if test -n "$ncn_tool_prefix"; then |
8516 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8517 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8519 | $as_echo_n "checking for $ac_word... " >&6; } | |
8520 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8521 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8522 | else |
8523 | if test -n "$LIPO"; then | |
8524 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8525 | else | |
1c710c3c DJ |
8526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8527 | for as_dir in $PATH | |
8528 | do | |
8529 | IFS=$as_save_IFS | |
8530 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8531 | for ac_exec_ext in '' $ac_executable_extensions; do |
8532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8533 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8535 | break 2 |
8536 | fi | |
8537 | done | |
5213506e RW |
8538 | done |
8539 | IFS=$as_save_IFS | |
1c710c3c | 8540 | |
2abefe3d PB |
8541 | fi |
8542 | fi | |
1c710c3c | 8543 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8544 | if test -n "$LIPO"; then |
5213506e RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8546 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8547 | else |
5213506e RW |
8548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8549 | $as_echo "no" >&6; } | |
2abefe3d PB |
8550 | fi |
8551 | ||
5213506e | 8552 | |
2abefe3d PB |
8553 | fi |
8554 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8555 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8556 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8558 | $as_echo_n "checking for $ac_word... " >&6; } | |
8559 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8560 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8561 | else |
8562 | if test -n "$LIPO"; then | |
8563 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8564 | else | |
1c710c3c DJ |
8565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8566 | for as_dir in $PATH | |
8567 | do | |
8568 | IFS=$as_save_IFS | |
8569 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8570 | for ac_exec_ext in '' $ac_executable_extensions; do |
8571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8572 | ac_cv_prog_LIPO="${ncn_progname}" |
5213506e | 8573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8574 | break 2 |
8575 | fi | |
8576 | done | |
5213506e RW |
8577 | done |
8578 | IFS=$as_save_IFS | |
1c710c3c | 8579 | |
2abefe3d PB |
8580 | fi |
8581 | fi | |
1c710c3c | 8582 | LIPO=$ac_cv_prog_LIPO |
2abefe3d | 8583 | if test -n "$LIPO"; then |
5213506e RW |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8585 | $as_echo "$LIPO" >&6; } | |
2abefe3d | 8586 | else |
5213506e RW |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8588 | $as_echo "no" >&6; } | |
2abefe3d | 8589 | fi |
1c710c3c | 8590 | |
5213506e | 8591 | |
2abefe3d PB |
8592 | fi |
8593 | test -n "$ac_cv_prog_LIPO" && break | |
8594 | done | |
8595 | ||
8596 | if test -z "$ac_cv_prog_LIPO" ; then | |
8597 | set dummy lipo | |
8598 | if test $build = $host ; then | |
8599 | LIPO="$2" | |
8600 | else | |
8601 | LIPO="${ncn_tool_prefix}$2" | |
8602 | fi | |
8603 | fi | |
8604 | ||
278a7a38 AO |
8605 | |
8606 | ||
8607 | if test -n "$NM"; then | |
8608 | ac_cv_prog_NM=$NM | |
8609 | elif test -n "$ac_cv_prog_NM"; then | |
8610 | NM=$ac_cv_prog_NM | |
8611 | fi | |
8612 | ||
8613 | if test -n "$ac_cv_prog_NM"; then | |
8614 | for ncn_progname in nm; do | |
8615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8616 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8618 | $as_echo_n "checking for $ac_word... " >&6; } | |
8619 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8620 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8621 | else |
8622 | if test -n "$NM"; then | |
8623 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8624 | else | |
1c710c3c DJ |
8625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8626 | for as_dir in $PATH | |
8627 | do | |
8628 | IFS=$as_save_IFS | |
8629 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8630 | for ac_exec_ext in '' $ac_executable_extensions; do |
8631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8632 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8634 | break 2 |
8635 | fi | |
8636 | done | |
5213506e RW |
8637 | done |
8638 | IFS=$as_save_IFS | |
1c710c3c | 8639 | |
ca9f4b81 AO |
8640 | fi |
8641 | fi | |
1c710c3c | 8642 | NM=$ac_cv_prog_NM |
ca9f4b81 | 8643 | if test -n "$NM"; then |
5213506e RW |
8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8645 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8646 | else |
5213506e RW |
8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8648 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8649 | fi |
8650 | ||
5213506e | 8651 | |
278a7a38 AO |
8652 | done |
8653 | fi | |
8654 | ||
8655 | for ncn_progname in nm; do | |
8656 | if test -n "$ncn_tool_prefix"; then | |
8657 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8658 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8660 | $as_echo_n "checking for $ac_word... " >&6; } | |
8661 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8662 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8663 | else |
2693c0b0 PB |
8664 | if test -n "$NM"; then |
8665 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
ca9f4b81 | 8666 | else |
1c710c3c DJ |
8667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8668 | for as_dir in $PATH | |
8669 | do | |
8670 | IFS=$as_save_IFS | |
8671 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8672 | for ac_exec_ext in '' $ac_executable_extensions; do |
8673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8674 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8676 | break 2 |
8677 | fi | |
8678 | done | |
5213506e RW |
8679 | done |
8680 | IFS=$as_save_IFS | |
1c710c3c | 8681 | |
ca9f4b81 AO |
8682 | fi |
8683 | fi | |
1c710c3c | 8684 | NM=$ac_cv_prog_NM |
2693c0b0 | 8685 | if test -n "$NM"; then |
5213506e RW |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8687 | $as_echo "$NM" >&6; } | |
ca9f4b81 | 8688 | else |
5213506e RW |
8689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8690 | $as_echo "no" >&6; } | |
ca9f4b81 | 8691 | fi |
1c710c3c | 8692 | |
5213506e | 8693 | |
2693c0b0 | 8694 | fi |
278a7a38 AO |
8695 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8696 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8697 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8699 | $as_echo_n "checking for $ac_word... " >&6; } | |
8700 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8701 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8702 | else |
8703 | if test -n "$NM"; then | |
8704 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8705 | else | |
8706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8707 | for as_dir in $PATH | |
8708 | do | |
8709 | IFS=$as_save_IFS | |
8710 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8711 | for ac_exec_ext in '' $ac_executable_extensions; do |
8712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8713 | ac_cv_prog_NM="${ncn_progname}" |
5213506e | 8714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8715 | break 2 |
8716 | fi | |
8717 | done | |
5213506e RW |
8718 | done |
8719 | IFS=$as_save_IFS | |
278a7a38 AO |
8720 | |
8721 | fi | |
8722 | fi | |
8723 | NM=$ac_cv_prog_NM | |
8724 | if test -n "$NM"; then | |
5213506e RW |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8726 | $as_echo "$NM" >&6; } | |
278a7a38 | 8727 | else |
5213506e RW |
8728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8729 | $as_echo "no" >&6; } | |
278a7a38 AO |
8730 | fi |
8731 | ||
5213506e | 8732 | |
278a7a38 AO |
8733 | fi |
8734 | test -n "$ac_cv_prog_NM" && break | |
8735 | done | |
8736 | ||
8737 | if test -z "$ac_cv_prog_NM" ; then | |
8738 | set dummy nm | |
8739 | if test $build = $host ; then | |
8740 | NM="$2" | |
8741 | else | |
8742 | NM="${ncn_tool_prefix}$2" | |
8743 | fi | |
8744 | fi | |
8745 | ||
8746 | ||
8747 | ||
8748 | if test -n "$RANLIB"; then | |
8749 | ac_cv_prog_RANLIB=$RANLIB | |
8750 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8751 | RANLIB=$ac_cv_prog_RANLIB | |
8752 | fi | |
8753 | ||
8754 | if test -n "$ac_cv_prog_RANLIB"; then | |
8755 | for ncn_progname in ranlib; do | |
8756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8757 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8759 | $as_echo_n "checking for $ac_word... " >&6; } | |
8760 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8761 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8762 | else |
8763 | if test -n "$RANLIB"; then | |
8764 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8765 | else | |
8766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8767 | for as_dir in $PATH | |
8768 | do | |
8769 | IFS=$as_save_IFS | |
8770 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8771 | for ac_exec_ext in '' $ac_executable_extensions; do |
8772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8773 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8775 | break 2 |
8776 | fi | |
8777 | done | |
5213506e RW |
8778 | done |
8779 | IFS=$as_save_IFS | |
278a7a38 AO |
8780 | |
8781 | fi | |
8782 | fi | |
8783 | RANLIB=$ac_cv_prog_RANLIB | |
8784 | if test -n "$RANLIB"; then | |
5213506e RW |
8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8786 | $as_echo "$RANLIB" >&6; } | |
278a7a38 | 8787 | else |
5213506e RW |
8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8789 | $as_echo "no" >&6; } | |
278a7a38 AO |
8790 | fi |
8791 | ||
5213506e | 8792 | |
278a7a38 AO |
8793 | done |
8794 | fi | |
ca9f4b81 | 8795 | |
278a7a38 | 8796 | for ncn_progname in ranlib; do |
2693c0b0 PB |
8797 | if test -n "$ncn_tool_prefix"; then |
8798 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8799 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8801 | $as_echo_n "checking for $ac_word... " >&6; } | |
8802 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8803 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
8804 | else |
8805 | if test -n "$RANLIB"; then | |
8806 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8807 | else | |
1c710c3c DJ |
8808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8809 | for as_dir in $PATH | |
8810 | do | |
8811 | IFS=$as_save_IFS | |
8812 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8813 | for ac_exec_ext in '' $ac_executable_extensions; do |
8814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8815 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8817 | break 2 |
8818 | fi | |
8819 | done | |
5213506e RW |
8820 | done |
8821 | IFS=$as_save_IFS | |
1c710c3c | 8822 | |
ca9f4b81 AO |
8823 | fi |
8824 | fi | |
1c710c3c | 8825 | RANLIB=$ac_cv_prog_RANLIB |
ca9f4b81 | 8826 | if test -n "$RANLIB"; then |
5213506e RW |
8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8828 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8829 | else |
5213506e RW |
8830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8831 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
8832 | fi |
8833 | ||
5213506e | 8834 | |
2693c0b0 PB |
8835 | fi |
8836 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8838 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8840 | $as_echo_n "checking for $ac_word... " >&6; } | |
8841 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8842 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 8843 | else |
2693c0b0 PB |
8844 | if test -n "$RANLIB"; then |
8845 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
ca9f4b81 | 8846 | else |
1c710c3c DJ |
8847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8848 | for as_dir in $PATH | |
8849 | do | |
8850 | IFS=$as_save_IFS | |
8851 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8852 | for ac_exec_ext in '' $ac_executable_extensions; do |
8853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8854 | ac_cv_prog_RANLIB="${ncn_progname}" |
5213506e | 8855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8856 | break 2 |
8857 | fi | |
8858 | done | |
5213506e RW |
8859 | done |
8860 | IFS=$as_save_IFS | |
1c710c3c | 8861 | |
ca9f4b81 AO |
8862 | fi |
8863 | fi | |
1c710c3c | 8864 | RANLIB=$ac_cv_prog_RANLIB |
2693c0b0 | 8865 | if test -n "$RANLIB"; then |
5213506e RW |
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8867 | $as_echo "$RANLIB" >&6; } | |
ca9f4b81 | 8868 | else |
5213506e RW |
8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8870 | $as_echo "no" >&6; } | |
ca9f4b81 | 8871 | fi |
1c710c3c | 8872 | |
5213506e | 8873 | |
ca9f4b81 | 8874 | fi |
2693c0b0 PB |
8875 | test -n "$ac_cv_prog_RANLIB" && break |
8876 | done | |
8877 | ||
8878 | if test -z "$ac_cv_prog_RANLIB" ; then | |
8927b7c0 | 8879 | RANLIB="true" |
ca9f4b81 AO |
8880 | fi |
8881 | ||
278a7a38 AO |
8882 | |
8883 | ||
8884 | if test -n "$STRIP"; then | |
8885 | ac_cv_prog_STRIP=$STRIP | |
8886 | elif test -n "$ac_cv_prog_STRIP"; then | |
8887 | STRIP=$ac_cv_prog_STRIP | |
8888 | fi | |
8889 | ||
8890 | if test -n "$ac_cv_prog_STRIP"; then | |
8891 | for ncn_progname in strip; do | |
8892 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8893 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8895 | $as_echo_n "checking for $ac_word... " >&6; } | |
8896 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8897 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
8898 | else |
8899 | if test -n "$STRIP"; then | |
8900 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8901 | else | |
8902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8903 | for as_dir in $PATH | |
8904 | do | |
8905 | IFS=$as_save_IFS | |
8906 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8907 | for ac_exec_ext in '' $ac_executable_extensions; do |
8908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 8909 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 8910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
8911 | break 2 |
8912 | fi | |
8913 | done | |
5213506e RW |
8914 | done |
8915 | IFS=$as_save_IFS | |
278a7a38 AO |
8916 | |
8917 | fi | |
8918 | fi | |
8919 | STRIP=$ac_cv_prog_STRIP | |
8920 | if test -n "$STRIP"; then | |
5213506e RW |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8922 | $as_echo "$STRIP" >&6; } | |
278a7a38 | 8923 | else |
5213506e RW |
8924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8925 | $as_echo "no" >&6; } | |
278a7a38 AO |
8926 | fi |
8927 | ||
5213506e | 8928 | |
278a7a38 AO |
8929 | done |
8930 | fi | |
8931 | ||
8932 | for ncn_progname in strip; do | |
2abefe3d PB |
8933 | if test -n "$ncn_tool_prefix"; then |
8934 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8935 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
8936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8937 | $as_echo_n "checking for $ac_word... " >&6; } | |
8938 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8939 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8940 | else |
8941 | if test -n "$STRIP"; then | |
8942 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8943 | else | |
1c710c3c DJ |
8944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8945 | for as_dir in $PATH | |
8946 | do | |
8947 | IFS=$as_save_IFS | |
8948 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8949 | for ac_exec_ext in '' $ac_executable_extensions; do |
8950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8951 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 8952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8953 | break 2 |
8954 | fi | |
8955 | done | |
5213506e RW |
8956 | done |
8957 | IFS=$as_save_IFS | |
1c710c3c | 8958 | |
2abefe3d PB |
8959 | fi |
8960 | fi | |
1c710c3c | 8961 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 8962 | if test -n "$STRIP"; then |
5213506e RW |
8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8964 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 8965 | else |
5213506e RW |
8966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8967 | $as_echo "no" >&6; } | |
2abefe3d PB |
8968 | fi |
8969 | ||
5213506e | 8970 | |
2abefe3d PB |
8971 | fi |
8972 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8973 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8974 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
8975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8976 | $as_echo_n "checking for $ac_word... " >&6; } | |
8977 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8978 | $as_echo_n "(cached) " >&6 | |
2abefe3d PB |
8979 | else |
8980 | if test -n "$STRIP"; then | |
8981 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8982 | else | |
1c710c3c DJ |
8983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8984 | for as_dir in $PATH | |
8985 | do | |
8986 | IFS=$as_save_IFS | |
8987 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
8988 | for ac_exec_ext in '' $ac_executable_extensions; do |
8989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 8990 | ac_cv_prog_STRIP="${ncn_progname}" |
5213506e | 8991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
8992 | break 2 |
8993 | fi | |
8994 | done | |
5213506e RW |
8995 | done |
8996 | IFS=$as_save_IFS | |
1c710c3c | 8997 | |
2abefe3d PB |
8998 | fi |
8999 | fi | |
1c710c3c | 9000 | STRIP=$ac_cv_prog_STRIP |
2abefe3d | 9001 | if test -n "$STRIP"; then |
5213506e RW |
9002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9003 | $as_echo "$STRIP" >&6; } | |
2abefe3d | 9004 | else |
5213506e RW |
9005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9006 | $as_echo "no" >&6; } | |
2abefe3d | 9007 | fi |
1c710c3c | 9008 | |
5213506e | 9009 | |
2abefe3d PB |
9010 | fi |
9011 | test -n "$ac_cv_prog_STRIP" && break | |
9012 | done | |
9013 | ||
9014 | if test -z "$ac_cv_prog_STRIP" ; then | |
8927b7c0 | 9015 | STRIP="true" |
2abefe3d PB |
9016 | fi |
9017 | ||
278a7a38 AO |
9018 | |
9019 | ||
9020 | if test -n "$WINDRES"; then | |
9021 | ac_cv_prog_WINDRES=$WINDRES | |
9022 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9023 | WINDRES=$ac_cv_prog_WINDRES | |
9024 | fi | |
9025 | ||
9026 | if test -n "$ac_cv_prog_WINDRES"; then | |
9027 | for ncn_progname in windres; do | |
9028 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9029 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9031 | $as_echo_n "checking for $ac_word... " >&6; } | |
9032 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9033 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9034 | else |
9035 | if test -n "$WINDRES"; then | |
9036 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9037 | else | |
9038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9039 | for as_dir in $PATH | |
9040 | do | |
9041 | IFS=$as_save_IFS | |
9042 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9043 | for ac_exec_ext in '' $ac_executable_extensions; do |
9044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9045 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9047 | break 2 |
9048 | fi | |
9049 | done | |
5213506e RW |
9050 | done |
9051 | IFS=$as_save_IFS | |
278a7a38 AO |
9052 | |
9053 | fi | |
9054 | fi | |
9055 | WINDRES=$ac_cv_prog_WINDRES | |
9056 | if test -n "$WINDRES"; then | |
5213506e RW |
9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9058 | $as_echo "$WINDRES" >&6; } | |
278a7a38 | 9059 | else |
5213506e RW |
9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9061 | $as_echo "no" >&6; } | |
278a7a38 AO |
9062 | fi |
9063 | ||
5213506e | 9064 | |
278a7a38 AO |
9065 | done |
9066 | fi | |
9067 | ||
9068 | for ncn_progname in windres; do | |
2693c0b0 PB |
9069 | if test -n "$ncn_tool_prefix"; then |
9070 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9071 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9073 | $as_echo_n "checking for $ac_word... " >&6; } | |
9074 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9075 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9076 | else |
9077 | if test -n "$WINDRES"; then | |
9078 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9079 | else | |
1c710c3c DJ |
9080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9081 | for as_dir in $PATH | |
9082 | do | |
9083 | IFS=$as_save_IFS | |
9084 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9085 | for ac_exec_ext in '' $ac_executable_extensions; do |
9086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9087 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9089 | break 2 |
9090 | fi | |
9091 | done | |
5213506e RW |
9092 | done |
9093 | IFS=$as_save_IFS | |
1c710c3c | 9094 | |
ca9f4b81 AO |
9095 | fi |
9096 | fi | |
1c710c3c | 9097 | WINDRES=$ac_cv_prog_WINDRES |
ca9f4b81 | 9098 | if test -n "$WINDRES"; then |
5213506e RW |
9099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9100 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9101 | else |
5213506e RW |
9102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9103 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9104 | fi |
9105 | ||
5213506e | 9106 | |
2693c0b0 PB |
9107 | fi |
9108 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9109 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9110 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9112 | $as_echo_n "checking for $ac_word... " >&6; } | |
9113 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9114 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9115 | else |
2693c0b0 PB |
9116 | if test -n "$WINDRES"; then |
9117 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
ca9f4b81 | 9118 | else |
1c710c3c DJ |
9119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9120 | for as_dir in $PATH | |
9121 | do | |
9122 | IFS=$as_save_IFS | |
9123 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9124 | for ac_exec_ext in '' $ac_executable_extensions; do |
9125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9126 | ac_cv_prog_WINDRES="${ncn_progname}" |
5213506e | 9127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9128 | break 2 |
9129 | fi | |
9130 | done | |
5213506e RW |
9131 | done |
9132 | IFS=$as_save_IFS | |
1c710c3c | 9133 | |
ca9f4b81 AO |
9134 | fi |
9135 | fi | |
1c710c3c | 9136 | WINDRES=$ac_cv_prog_WINDRES |
2693c0b0 | 9137 | if test -n "$WINDRES"; then |
5213506e RW |
9138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9139 | $as_echo "$WINDRES" >&6; } | |
ca9f4b81 | 9140 | else |
5213506e RW |
9141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9142 | $as_echo "no" >&6; } | |
ca9f4b81 | 9143 | fi |
1c710c3c | 9144 | |
5213506e | 9145 | |
2693c0b0 PB |
9146 | fi |
9147 | test -n "$ac_cv_prog_WINDRES" && break | |
9148 | done | |
9149 | ||
9150 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9151 | set dummy windres | |
9152 | if test $build = $host ; then | |
9153 | WINDRES="$2" | |
ca9f4b81 | 9154 | else |
2693c0b0 | 9155 | WINDRES="${ncn_tool_prefix}$2" |
ca9f4b81 | 9156 | fi |
ca9f4b81 AO |
9157 | fi |
9158 | ||
278a7a38 AO |
9159 | |
9160 | ||
901119ae KT |
9161 | if test -n "$WINDMC"; then |
9162 | ac_cv_prog_WINDMC=$WINDMC | |
9163 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9164 | WINDMC=$ac_cv_prog_WINDMC | |
9165 | fi | |
9166 | ||
9167 | if test -n "$ac_cv_prog_WINDMC"; then | |
9168 | for ncn_progname in windmc; do | |
9169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9170 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9172 | $as_echo_n "checking for $ac_word... " >&6; } | |
9173 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9174 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9175 | else |
9176 | if test -n "$WINDMC"; then | |
9177 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9178 | else | |
9179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9180 | for as_dir in $PATH | |
9181 | do | |
9182 | IFS=$as_save_IFS | |
9183 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9184 | for ac_exec_ext in '' $ac_executable_extensions; do |
9185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9186 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9188 | break 2 |
9189 | fi | |
9190 | done | |
5213506e RW |
9191 | done |
9192 | IFS=$as_save_IFS | |
901119ae KT |
9193 | |
9194 | fi | |
9195 | fi | |
9196 | WINDMC=$ac_cv_prog_WINDMC | |
9197 | if test -n "$WINDMC"; then | |
5213506e RW |
9198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9199 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9200 | else |
5213506e RW |
9201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9202 | $as_echo "no" >&6; } | |
901119ae KT |
9203 | fi |
9204 | ||
5213506e | 9205 | |
901119ae KT |
9206 | done |
9207 | fi | |
9208 | ||
9209 | for ncn_progname in windmc; do | |
9210 | if test -n "$ncn_tool_prefix"; then | |
9211 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9212 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9214 | $as_echo_n "checking for $ac_word... " >&6; } | |
9215 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9216 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9217 | else |
9218 | if test -n "$WINDMC"; then | |
9219 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9220 | else | |
9221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9222 | for as_dir in $PATH | |
9223 | do | |
9224 | IFS=$as_save_IFS | |
9225 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9226 | for ac_exec_ext in '' $ac_executable_extensions; do |
9227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9228 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9230 | break 2 |
9231 | fi | |
9232 | done | |
5213506e RW |
9233 | done |
9234 | IFS=$as_save_IFS | |
901119ae KT |
9235 | |
9236 | fi | |
9237 | fi | |
9238 | WINDMC=$ac_cv_prog_WINDMC | |
9239 | if test -n "$WINDMC"; then | |
5213506e RW |
9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9241 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9242 | else |
5213506e RW |
9243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9244 | $as_echo "no" >&6; } | |
901119ae KT |
9245 | fi |
9246 | ||
5213506e | 9247 | |
901119ae KT |
9248 | fi |
9249 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9251 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9253 | $as_echo_n "checking for $ac_word... " >&6; } | |
9254 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9255 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
9256 | else |
9257 | if test -n "$WINDMC"; then | |
9258 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9259 | else | |
9260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9261 | for as_dir in $PATH | |
9262 | do | |
9263 | IFS=$as_save_IFS | |
9264 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9265 | for ac_exec_ext in '' $ac_executable_extensions; do |
9266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 9267 | ac_cv_prog_WINDMC="${ncn_progname}" |
5213506e | 9268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
9269 | break 2 |
9270 | fi | |
9271 | done | |
5213506e RW |
9272 | done |
9273 | IFS=$as_save_IFS | |
901119ae KT |
9274 | |
9275 | fi | |
9276 | fi | |
9277 | WINDMC=$ac_cv_prog_WINDMC | |
9278 | if test -n "$WINDMC"; then | |
5213506e RW |
9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9280 | $as_echo "$WINDMC" >&6; } | |
901119ae | 9281 | else |
5213506e RW |
9282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9283 | $as_echo "no" >&6; } | |
901119ae KT |
9284 | fi |
9285 | ||
5213506e | 9286 | |
901119ae KT |
9287 | fi |
9288 | test -n "$ac_cv_prog_WINDMC" && break | |
9289 | done | |
9290 | ||
9291 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9292 | set dummy windmc | |
9293 | if test $build = $host ; then | |
9294 | WINDMC="$2" | |
9295 | else | |
9296 | WINDMC="${ncn_tool_prefix}$2" | |
9297 | fi | |
9298 | fi | |
9299 | ||
9300 | ||
9301 | ||
278a7a38 AO |
9302 | if test -n "$OBJCOPY"; then |
9303 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9304 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9305 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9306 | fi | |
9307 | ||
9308 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9309 | for ncn_progname in objcopy; do | |
9310 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9311 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9313 | $as_echo_n "checking for $ac_word... " >&6; } | |
9314 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9315 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9316 | else |
9317 | if test -n "$OBJCOPY"; then | |
9318 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9319 | else | |
9320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9321 | for as_dir in $PATH | |
9322 | do | |
9323 | IFS=$as_save_IFS | |
9324 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9325 | for ac_exec_ext in '' $ac_executable_extensions; do |
9326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9327 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9329 | break 2 |
9330 | fi | |
9331 | done | |
5213506e RW |
9332 | done |
9333 | IFS=$as_save_IFS | |
278a7a38 AO |
9334 | |
9335 | fi | |
9336 | fi | |
9337 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9338 | if test -n "$OBJCOPY"; then | |
5213506e RW |
9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9340 | $as_echo "$OBJCOPY" >&6; } | |
278a7a38 | 9341 | else |
5213506e RW |
9342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9343 | $as_echo "no" >&6; } | |
278a7a38 AO |
9344 | fi |
9345 | ||
5213506e | 9346 | |
278a7a38 AO |
9347 | done |
9348 | fi | |
9349 | ||
9350 | for ncn_progname in objcopy; do | |
2693c0b0 PB |
9351 | if test -n "$ncn_tool_prefix"; then |
9352 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9353 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9355 | $as_echo_n "checking for $ac_word... " >&6; } | |
9356 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9357 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9358 | else |
9359 | if test -n "$OBJCOPY"; then | |
9360 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9361 | else | |
1c710c3c DJ |
9362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9363 | for as_dir in $PATH | |
9364 | do | |
9365 | IFS=$as_save_IFS | |
9366 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9367 | for ac_exec_ext in '' $ac_executable_extensions; do |
9368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9369 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9371 | break 2 |
9372 | fi | |
9373 | done | |
5213506e RW |
9374 | done |
9375 | IFS=$as_save_IFS | |
1c710c3c | 9376 | |
ca9f4b81 AO |
9377 | fi |
9378 | fi | |
1c710c3c | 9379 | OBJCOPY=$ac_cv_prog_OBJCOPY |
ca9f4b81 | 9380 | if test -n "$OBJCOPY"; then |
5213506e RW |
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9382 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9383 | else |
5213506e RW |
9384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9385 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9386 | fi |
9387 | ||
5213506e | 9388 | |
2693c0b0 PB |
9389 | fi |
9390 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9392 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9394 | $as_echo_n "checking for $ac_word... " >&6; } | |
9395 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9396 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9397 | else |
2693c0b0 PB |
9398 | if test -n "$OBJCOPY"; then |
9399 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
ca9f4b81 | 9400 | else |
1c710c3c DJ |
9401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9402 | for as_dir in $PATH | |
9403 | do | |
9404 | IFS=$as_save_IFS | |
9405 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9406 | for ac_exec_ext in '' $ac_executable_extensions; do |
9407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9408 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
5213506e | 9409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9410 | break 2 |
9411 | fi | |
9412 | done | |
5213506e RW |
9413 | done |
9414 | IFS=$as_save_IFS | |
1c710c3c | 9415 | |
ca9f4b81 AO |
9416 | fi |
9417 | fi | |
1c710c3c | 9418 | OBJCOPY=$ac_cv_prog_OBJCOPY |
2693c0b0 | 9419 | if test -n "$OBJCOPY"; then |
5213506e RW |
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9421 | $as_echo "$OBJCOPY" >&6; } | |
ca9f4b81 | 9422 | else |
5213506e RW |
9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9424 | $as_echo "no" >&6; } | |
ca9f4b81 | 9425 | fi |
1c710c3c | 9426 | |
5213506e | 9427 | |
2693c0b0 PB |
9428 | fi |
9429 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9430 | done | |
9431 | ||
9432 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9433 | set dummy objcopy | |
9434 | if test $build = $host ; then | |
9435 | OBJCOPY="$2" | |
ca9f4b81 | 9436 | else |
2693c0b0 | 9437 | OBJCOPY="${ncn_tool_prefix}$2" |
ca9f4b81 | 9438 | fi |
ca9f4b81 AO |
9439 | fi |
9440 | ||
278a7a38 AO |
9441 | |
9442 | ||
9443 | if test -n "$OBJDUMP"; then | |
9444 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9445 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9446 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9447 | fi | |
9448 | ||
9449 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9450 | for ncn_progname in objdump; do | |
9451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9452 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9454 | $as_echo_n "checking for $ac_word... " >&6; } | |
9455 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9456 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9457 | else |
9458 | if test -n "$OBJDUMP"; then | |
9459 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9460 | else | |
9461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9462 | for as_dir in $PATH | |
9463 | do | |
9464 | IFS=$as_save_IFS | |
9465 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9466 | for ac_exec_ext in '' $ac_executable_extensions; do |
9467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9468 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9470 | break 2 |
9471 | fi | |
9472 | done | |
5213506e RW |
9473 | done |
9474 | IFS=$as_save_IFS | |
278a7a38 AO |
9475 | |
9476 | fi | |
9477 | fi | |
9478 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9479 | if test -n "$OBJDUMP"; then | |
5213506e RW |
9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9481 | $as_echo "$OBJDUMP" >&6; } | |
278a7a38 | 9482 | else |
5213506e RW |
9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9484 | $as_echo "no" >&6; } | |
278a7a38 AO |
9485 | fi |
9486 | ||
5213506e | 9487 | |
278a7a38 AO |
9488 | done |
9489 | fi | |
9490 | ||
9491 | for ncn_progname in objdump; do | |
2693c0b0 PB |
9492 | if test -n "$ncn_tool_prefix"; then |
9493 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9494 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
9495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9496 | $as_echo_n "checking for $ac_word... " >&6; } | |
9497 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9498 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 AO |
9499 | else |
9500 | if test -n "$OBJDUMP"; then | |
9501 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9502 | else | |
1c710c3c DJ |
9503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9504 | for as_dir in $PATH | |
9505 | do | |
9506 | IFS=$as_save_IFS | |
9507 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9508 | for ac_exec_ext in '' $ac_executable_extensions; do |
9509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9510 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
5213506e | 9511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9512 | break 2 |
9513 | fi | |
9514 | done | |
5213506e RW |
9515 | done |
9516 | IFS=$as_save_IFS | |
1c710c3c | 9517 | |
ca9f4b81 AO |
9518 | fi |
9519 | fi | |
1c710c3c | 9520 | OBJDUMP=$ac_cv_prog_OBJDUMP |
ca9f4b81 | 9521 | if test -n "$OBJDUMP"; then |
5213506e RW |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9523 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9524 | else |
5213506e RW |
9525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9526 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
9527 | fi |
9528 | ||
5213506e | 9529 | |
2693c0b0 PB |
9530 | fi |
9531 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9533 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9535 | $as_echo_n "checking for $ac_word... " >&6; } | |
9536 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9537 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 9538 | else |
2693c0b0 PB |
9539 | if test -n "$OBJDUMP"; then |
9540 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
ca9f4b81 | 9541 | else |
1c710c3c DJ |
9542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9543 | for as_dir in $PATH | |
9544 | do | |
9545 | IFS=$as_save_IFS | |
9546 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9547 | for ac_exec_ext in '' $ac_executable_extensions; do |
9548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9549 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
5213506e | 9550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9551 | break 2 |
9552 | fi | |
9553 | done | |
5213506e RW |
9554 | done |
9555 | IFS=$as_save_IFS | |
1c710c3c | 9556 | |
ca9f4b81 AO |
9557 | fi |
9558 | fi | |
1c710c3c | 9559 | OBJDUMP=$ac_cv_prog_OBJDUMP |
2693c0b0 | 9560 | if test -n "$OBJDUMP"; then |
5213506e RW |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9562 | $as_echo "$OBJDUMP" >&6; } | |
ca9f4b81 | 9563 | else |
5213506e RW |
9564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9565 | $as_echo "no" >&6; } | |
ca9f4b81 | 9566 | fi |
1c710c3c | 9567 | |
5213506e | 9568 | |
2693c0b0 PB |
9569 | fi |
9570 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9571 | done | |
9572 | ||
9573 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9574 | set dummy objdump | |
9575 | if test $build = $host ; then | |
9576 | OBJDUMP="$2" | |
ca9f4b81 | 9577 | else |
2693c0b0 | 9578 | OBJDUMP="${ncn_tool_prefix}$2" |
ca9f4b81 | 9579 | fi |
ca9f4b81 AO |
9580 | fi |
9581 | ||
671aa708 NN |
9582 | |
9583 | ||
9584 | ||
9585 | ||
9586 | ||
2abefe3d | 9587 | # Target tools. |
1c710c3c | 9588 | |
5213506e RW |
9589 | # Check whether --with-build-time-tools was given. |
9590 | if test "${with_build_time_tools+set}" = set; then : | |
9591 | withval=$with_build_time_tools; case x"$withval" in | |
e8b05380 PB |
9592 | x/*) ;; |
9593 | *) | |
9594 | with_build_time_tools= | |
5213506e RW |
9595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9596 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
e8b05380 PB |
9597 | ;; |
9598 | esac | |
ca9f4b81 | 9599 | else |
e8b05380 | 9600 | with_build_time_tools= |
5213506e RW |
9601 | fi |
9602 | ||
ca9f4b81 | 9603 | |
278a7a38 AO |
9604 | |
9605 | ||
9606 | if test -n "$CC_FOR_TARGET"; then | |
9607 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9608 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9609 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9610 | fi | |
9611 | ||
9612 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9613 | for ncn_progname in cc gcc; do | |
9614 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9615 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9617 | $as_echo_n "checking for $ac_word... " >&6; } | |
9618 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9619 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9620 | else |
9621 | if test -n "$CC_FOR_TARGET"; then | |
9622 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9623 | else | |
9624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9625 | for as_dir in $PATH | |
9626 | do | |
9627 | IFS=$as_save_IFS | |
9628 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9629 | for ac_exec_ext in '' $ac_executable_extensions; do |
9630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9631 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9633 | break 2 |
9634 | fi | |
9635 | done | |
5213506e RW |
9636 | done |
9637 | IFS=$as_save_IFS | |
278a7a38 AO |
9638 | |
9639 | fi | |
9640 | fi | |
9641 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9642 | if test -n "$CC_FOR_TARGET"; then | |
5213506e RW |
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9644 | $as_echo "$CC_FOR_TARGET" >&6; } | |
278a7a38 | 9645 | else |
5213506e RW |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9647 | $as_echo "no" >&6; } | |
278a7a38 AO |
9648 | fi |
9649 | ||
5213506e | 9650 | |
278a7a38 AO |
9651 | done |
9652 | fi | |
9653 | ||
9654 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9655 | for ncn_progname in cc gcc; do |
5213506e RW |
9656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9657 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9658 | if test -x $with_build_time_tools/${ncn_progname}; then |
9659 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9661 | $as_echo "yes" >&6; } | |
72a7ab82 | 9662 | break |
e8b05380 | 9663 | else |
5213506e RW |
9664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9665 | $as_echo "no" >&6; } | |
72a7ab82 AP |
9666 | fi |
9667 | done | |
4de997d1 PB |
9668 | fi |
9669 | ||
e8b05380 PB |
9670 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9671 | for ncn_progname in cc gcc; do | |
9672 | if test -n "$ncn_target_tool_prefix"; then | |
9673 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9674 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9676 | $as_echo_n "checking for $ac_word... " >&6; } | |
9677 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9678 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9679 | else |
9680 | if test -n "$CC_FOR_TARGET"; then | |
9681 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9682 | else | |
1c710c3c DJ |
9683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9684 | for as_dir in $PATH | |
9685 | do | |
9686 | IFS=$as_save_IFS | |
9687 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9688 | for ac_exec_ext in '' $ac_executable_extensions; do |
9689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9690 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9692 | break 2 |
9693 | fi | |
9694 | done | |
5213506e RW |
9695 | done |
9696 | IFS=$as_save_IFS | |
1c710c3c | 9697 | |
4de997d1 PB |
9698 | fi |
9699 | fi | |
1c710c3c | 9700 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
4de997d1 | 9701 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9703 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9704 | else |
5213506e RW |
9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9706 | $as_echo "no" >&6; } | |
4de997d1 PB |
9707 | fi |
9708 | ||
5213506e | 9709 | |
e8b05380 PB |
9710 | fi |
9711 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9712 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9713 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
9714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9715 | $as_echo_n "checking for $ac_word... " >&6; } | |
9716 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9717 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 9718 | else |
2693c0b0 PB |
9719 | if test -n "$CC_FOR_TARGET"; then |
9720 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9721 | else |
1c710c3c DJ |
9722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9723 | for as_dir in $PATH | |
9724 | do | |
9725 | IFS=$as_save_IFS | |
9726 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9727 | for ac_exec_ext in '' $ac_executable_extensions; do |
9728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9729 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
5213506e | 9730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9731 | break 2 |
9732 | fi | |
9733 | done | |
5213506e RW |
9734 | done |
9735 | IFS=$as_save_IFS | |
1c710c3c | 9736 | |
4de997d1 PB |
9737 | fi |
9738 | fi | |
1c710c3c | 9739 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
2693c0b0 | 9740 | if test -n "$CC_FOR_TARGET"; then |
5213506e RW |
9741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9742 | $as_echo "$CC_FOR_TARGET" >&6; } | |
4de997d1 | 9743 | else |
5213506e RW |
9744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9745 | $as_echo "no" >&6; } | |
4de997d1 | 9746 | fi |
1c710c3c | 9747 | |
5213506e | 9748 | |
e8b05380 PB |
9749 | fi |
9750 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9751 | done | |
9752 | fi | |
1c710c3c | 9753 | |
2693c0b0 PB |
9754 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9755 | set dummy cc gcc | |
9756 | if test $build = $target ; then | |
9757 | CC_FOR_TARGET="$2" | |
4de997d1 | 9758 | else |
2693c0b0 | 9759 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 9760 | fi |
1c00b503 PB |
9761 | else |
9762 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
4de997d1 PB |
9763 | fi |
9764 | ||
278a7a38 AO |
9765 | |
9766 | ||
9767 | if test -n "$CXX_FOR_TARGET"; then | |
9768 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9769 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9770 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9771 | fi | |
9772 | ||
9773 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9774 | for ncn_progname in c++ g++ cxx gxx; do | |
9775 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9776 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9778 | $as_echo_n "checking for $ac_word... " >&6; } | |
9779 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9780 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9781 | else |
9782 | if test -n "$CXX_FOR_TARGET"; then | |
9783 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9784 | else | |
9785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9786 | for as_dir in $PATH | |
9787 | do | |
9788 | IFS=$as_save_IFS | |
9789 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9790 | for ac_exec_ext in '' $ac_executable_extensions; do |
9791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9792 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 9793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9794 | break 2 |
9795 | fi | |
9796 | done | |
5213506e RW |
9797 | done |
9798 | IFS=$as_save_IFS | |
278a7a38 AO |
9799 | |
9800 | fi | |
9801 | fi | |
9802 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9803 | if test -n "$CXX_FOR_TARGET"; then | |
5213506e RW |
9804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9805 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
278a7a38 | 9806 | else |
5213506e RW |
9807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9808 | $as_echo "no" >&6; } | |
278a7a38 AO |
9809 | fi |
9810 | ||
5213506e | 9811 | |
278a7a38 AO |
9812 | done |
9813 | fi | |
9814 | ||
9815 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9816 | for ncn_progname in c++ g++ cxx gxx; do |
5213506e RW |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9818 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9819 | if test -x $with_build_time_tools/${ncn_progname}; then |
9820 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9822 | $as_echo "yes" >&6; } | |
e8b05380 PB |
9823 | break |
9824 | else | |
5213506e RW |
9825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9826 | $as_echo "no" >&6; } | |
e8b05380 PB |
9827 | fi |
9828 | done | |
9829 | fi | |
9830 | ||
9831 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9832 | for ncn_progname in c++ g++ cxx gxx; do | |
9833 | if test -n "$ncn_target_tool_prefix"; then | |
9834 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9835 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9837 | $as_echo_n "checking for $ac_word... " >&6; } | |
9838 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9839 | $as_echo_n "(cached) " >&6 | |
4de997d1 PB |
9840 | else |
9841 | if test -n "$CXX_FOR_TARGET"; then | |
9842 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9843 | else | |
1c710c3c DJ |
9844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9845 | for as_dir in $PATH | |
9846 | do | |
9847 | IFS=$as_save_IFS | |
9848 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9849 | for ac_exec_ext in '' $ac_executable_extensions; do |
9850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9851 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 9852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9853 | break 2 |
9854 | fi | |
9855 | done | |
5213506e RW |
9856 | done |
9857 | IFS=$as_save_IFS | |
1c710c3c | 9858 | |
4de997d1 PB |
9859 | fi |
9860 | fi | |
1c710c3c | 9861 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
4de997d1 | 9862 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
9863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9864 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 9865 | else |
5213506e RW |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9867 | $as_echo "no" >&6; } | |
4de997d1 PB |
9868 | fi |
9869 | ||
5213506e | 9870 | |
e8b05380 PB |
9871 | fi |
9872 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9873 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9874 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
9875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9876 | $as_echo_n "checking for $ac_word... " >&6; } | |
9877 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9878 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 9879 | else |
2693c0b0 PB |
9880 | if test -n "$CXX_FOR_TARGET"; then |
9881 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 9882 | else |
1c710c3c DJ |
9883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9884 | for as_dir in $PATH | |
9885 | do | |
9886 | IFS=$as_save_IFS | |
9887 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9888 | for ac_exec_ext in '' $ac_executable_extensions; do |
9889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 9890 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
5213506e | 9891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
9892 | break 2 |
9893 | fi | |
9894 | done | |
5213506e RW |
9895 | done |
9896 | IFS=$as_save_IFS | |
1c710c3c | 9897 | |
4de997d1 PB |
9898 | fi |
9899 | fi | |
1c710c3c | 9900 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
2693c0b0 | 9901 | if test -n "$CXX_FOR_TARGET"; then |
5213506e RW |
9902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9903 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
4de997d1 | 9904 | else |
5213506e RW |
9905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9906 | $as_echo "no" >&6; } | |
4de997d1 | 9907 | fi |
1c710c3c | 9908 | |
5213506e | 9909 | |
e8b05380 PB |
9910 | fi |
9911 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9912 | done | |
9913 | fi | |
1c710c3c | 9914 | |
2693c0b0 PB |
9915 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9916 | set dummy c++ g++ cxx gxx | |
9917 | if test $build = $target ; then | |
9918 | CXX_FOR_TARGET="$2" | |
4de997d1 | 9919 | else |
2693c0b0 | 9920 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
4de997d1 | 9921 | fi |
1c00b503 PB |
9922 | else |
9923 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
ca9f4b81 AO |
9924 | fi |
9925 | ||
278a7a38 AO |
9926 | |
9927 | ||
9928 | if test -n "$GCC_FOR_TARGET"; then | |
9929 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9930 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9931 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9932 | fi | |
9933 | ||
9934 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9935 | for ncn_progname in gcc; do | |
9936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9937 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
9938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9939 | $as_echo_n "checking for $ac_word... " >&6; } | |
9940 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9941 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
9942 | else |
9943 | if test -n "$GCC_FOR_TARGET"; then | |
9944 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9945 | else | |
9946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9947 | for as_dir in $PATH | |
9948 | do | |
9949 | IFS=$as_save_IFS | |
9950 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
9951 | for ac_exec_ext in '' $ac_executable_extensions; do |
9952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 9953 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 9954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
9955 | break 2 |
9956 | fi | |
9957 | done | |
5213506e RW |
9958 | done |
9959 | IFS=$as_save_IFS | |
278a7a38 AO |
9960 | |
9961 | fi | |
9962 | fi | |
9963 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9964 | if test -n "$GCC_FOR_TARGET"; then | |
5213506e RW |
9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9966 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
278a7a38 | 9967 | else |
5213506e RW |
9968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9969 | $as_echo "no" >&6; } | |
278a7a38 AO |
9970 | fi |
9971 | ||
5213506e | 9972 | |
278a7a38 AO |
9973 | done |
9974 | fi | |
9975 | ||
9976 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 9977 | for ncn_progname in gcc; do |
5213506e RW |
9978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9979 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
9980 | if test -x $with_build_time_tools/${ncn_progname}; then |
9981 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
9982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9983 | $as_echo "yes" >&6; } | |
e8b05380 PB |
9984 | break |
9985 | else | |
5213506e RW |
9986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9987 | $as_echo "no" >&6; } | |
e8b05380 PB |
9988 | fi |
9989 | done | |
9990 | fi | |
9991 | ||
9992 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9993 | for ncn_progname in gcc; do | |
9994 | if test -n "$ncn_target_tool_prefix"; then | |
9995 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 9996 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9998 | $as_echo_n "checking for $ac_word... " >&6; } | |
9999 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10000 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10001 | else |
e8b05380 PB |
10002 | if test -n "$GCC_FOR_TARGET"; then |
10003 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10004 | else |
1c710c3c DJ |
10005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10006 | for as_dir in $PATH | |
10007 | do | |
10008 | IFS=$as_save_IFS | |
10009 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10010 | for ac_exec_ext in '' $ac_executable_extensions; do |
10011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10012 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10014 | break 2 |
10015 | fi | |
10016 | done | |
5213506e RW |
10017 | done |
10018 | IFS=$as_save_IFS | |
1c710c3c | 10019 | |
ca9f4b81 AO |
10020 | fi |
10021 | fi | |
1c710c3c | 10022 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10023 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10025 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10026 | else |
5213506e RW |
10027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10028 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
10029 | fi |
10030 | ||
5213506e | 10031 | |
e8b05380 PB |
10032 | fi |
10033 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10034 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10035 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10037 | $as_echo_n "checking for $ac_word... " >&6; } | |
10038 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10039 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 10040 | else |
e8b05380 PB |
10041 | if test -n "$GCC_FOR_TARGET"; then |
10042 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 10043 | else |
1c710c3c DJ |
10044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10045 | for as_dir in $PATH | |
10046 | do | |
10047 | IFS=$as_save_IFS | |
10048 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10049 | for ac_exec_ext in '' $ac_executable_extensions; do |
10050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10051 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
5213506e | 10052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10053 | break 2 |
10054 | fi | |
10055 | done | |
5213506e RW |
10056 | done |
10057 | IFS=$as_save_IFS | |
1c710c3c | 10058 | |
ca9f4b81 AO |
10059 | fi |
10060 | fi | |
1c710c3c | 10061 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
e8b05380 | 10062 | if test -n "$GCC_FOR_TARGET"; then |
5213506e RW |
10063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10064 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
ca9f4b81 | 10065 | else |
5213506e RW |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10067 | $as_echo "no" >&6; } | |
ca9f4b81 | 10068 | fi |
1c710c3c | 10069 | |
5213506e | 10070 | |
e8b05380 PB |
10071 | fi |
10072 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10073 | done | |
10074 | fi | |
1c710c3c | 10075 | |
e8b05380 PB |
10076 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10077 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
1c00b503 PB |
10078 | else |
10079 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
e8b05380 PB |
10080 | fi |
10081 | ||
278a7a38 AO |
10082 | |
10083 | ||
10084 | if test -n "$GCJ_FOR_TARGET"; then | |
10085 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10086 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10087 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10088 | fi | |
10089 | ||
10090 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10091 | for ncn_progname in gcj; do | |
10092 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10093 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10095 | $as_echo_n "checking for $ac_word... " >&6; } | |
10096 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10097 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10098 | else |
10099 | if test -n "$GCJ_FOR_TARGET"; then | |
10100 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10101 | else | |
10102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10103 | for as_dir in $PATH | |
10104 | do | |
10105 | IFS=$as_save_IFS | |
10106 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10107 | for ac_exec_ext in '' $ac_executable_extensions; do |
10108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10109 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10111 | break 2 |
10112 | fi | |
10113 | done | |
5213506e RW |
10114 | done |
10115 | IFS=$as_save_IFS | |
278a7a38 AO |
10116 | |
10117 | fi | |
10118 | fi | |
10119 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10120 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10122 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10123 | else |
5213506e RW |
10124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10125 | $as_echo "no" >&6; } | |
278a7a38 AO |
10126 | fi |
10127 | ||
5213506e | 10128 | |
278a7a38 AO |
10129 | done |
10130 | fi | |
10131 | ||
10132 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10133 | for ncn_progname in gcj; do |
5213506e RW |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10135 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10136 | if test -x $with_build_time_tools/${ncn_progname}; then |
10137 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10139 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10140 | break |
10141 | else | |
5213506e RW |
10142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10143 | $as_echo "no" >&6; } | |
e8b05380 PB |
10144 | fi |
10145 | done | |
10146 | fi | |
10147 | ||
10148 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10149 | for ncn_progname in gcj; do | |
10150 | if test -n "$ncn_target_tool_prefix"; then | |
10151 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10152 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10154 | $as_echo_n "checking for $ac_word... " >&6; } | |
10155 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10156 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10157 | else |
fb0103e5 RG |
10158 | if test -n "$GCJ_FOR_TARGET"; then |
10159 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10160 | else | |
1c710c3c DJ |
10161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10162 | for as_dir in $PATH | |
10163 | do | |
10164 | IFS=$as_save_IFS | |
10165 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10166 | for ac_exec_ext in '' $ac_executable_extensions; do |
10167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10168 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10170 | break 2 |
10171 | fi | |
10172 | done | |
5213506e RW |
10173 | done |
10174 | IFS=$as_save_IFS | |
1c710c3c | 10175 | |
e8b05380 PB |
10176 | fi |
10177 | fi | |
278a7a38 AO |
10178 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10179 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10181 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10182 | else |
5213506e RW |
10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10184 | $as_echo "no" >&6; } | |
278a7a38 AO |
10185 | fi |
10186 | ||
5213506e | 10187 | |
278a7a38 AO |
10188 | fi |
10189 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10190 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10191 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10193 | $as_echo_n "checking for $ac_word... " >&6; } | |
10194 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10195 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10196 | else |
10197 | if test -n "$GCJ_FOR_TARGET"; then | |
10198 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10199 | else | |
10200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10201 | for as_dir in $PATH | |
10202 | do | |
10203 | IFS=$as_save_IFS | |
10204 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10205 | for ac_exec_ext in '' $ac_executable_extensions; do |
10206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10207 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
5213506e | 10208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10209 | break 2 |
10210 | fi | |
10211 | done | |
5213506e RW |
10212 | done |
10213 | IFS=$as_save_IFS | |
278a7a38 AO |
10214 | |
10215 | fi | |
10216 | fi | |
10217 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10218 | if test -n "$GCJ_FOR_TARGET"; then | |
5213506e RW |
10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10220 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
278a7a38 | 10221 | else |
5213506e RW |
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10223 | $as_echo "no" >&6; } | |
278a7a38 AO |
10224 | fi |
10225 | ||
5213506e | 10226 | |
278a7a38 AO |
10227 | fi |
10228 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10229 | done | |
10230 | fi | |
10231 | ||
10232 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10233 | set dummy gcj | |
10234 | if test $build = $target ; then | |
10235 | GCJ_FOR_TARGET="$2" | |
10236 | else | |
10237 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10238 | fi | |
1c00b503 PB |
10239 | else |
10240 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
278a7a38 AO |
10241 | fi |
10242 | ||
10243 | ||
10244 | ||
10245 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10246 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10247 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10248 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
e8b05380 PB |
10249 | fi |
10250 | ||
278a7a38 AO |
10251 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10252 | for ncn_progname in gfortran; do | |
10253 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
e8b05380 | 10254 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10256 | $as_echo_n "checking for $ac_word... " >&6; } | |
10257 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10258 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10259 | else |
278a7a38 AO |
10260 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10261 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
e8b05380 | 10262 | else |
1c710c3c DJ |
10263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10264 | for as_dir in $PATH | |
10265 | do | |
10266 | IFS=$as_save_IFS | |
10267 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10268 | for ac_exec_ext in '' $ac_executable_extensions; do |
10269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10270 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10272 | break 2 |
10273 | fi | |
10274 | done | |
5213506e RW |
10275 | done |
10276 | IFS=$as_save_IFS | |
1c710c3c | 10277 | |
e8b05380 PB |
10278 | fi |
10279 | fi | |
278a7a38 AO |
10280 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10281 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
5213506e RW |
10282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10283 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10284 | else |
5213506e RW |
10285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10286 | $as_echo "no" >&6; } | |
e8b05380 | 10287 | fi |
1c710c3c | 10288 | |
5213506e | 10289 | |
e8b05380 PB |
10290 | done |
10291 | fi | |
1c710c3c | 10292 | |
278a7a38 | 10293 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
e8b05380 | 10294 | for ncn_progname in gfortran; do |
5213506e RW |
10295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10296 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10297 | if test -x $with_build_time_tools/${ncn_progname}; then |
10298 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10300 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10301 | break |
10302 | else | |
5213506e RW |
10303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10304 | $as_echo "no" >&6; } | |
e8b05380 PB |
10305 | fi |
10306 | done | |
10307 | fi | |
10308 | ||
10309 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10310 | for ncn_progname in gfortran; do | |
10311 | if test -n "$ncn_target_tool_prefix"; then | |
10312 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10313 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10315 | $as_echo_n "checking for $ac_word... " >&6; } | |
10316 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10317 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10318 | else |
10319 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
1c710c3c DJ |
10320 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10321 | else | |
10322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10323 | for as_dir in $PATH | |
10324 | do | |
10325 | IFS=$as_save_IFS | |
10326 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10327 | for ac_exec_ext in '' $ac_executable_extensions; do |
10328 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10329 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10330 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10331 | break 2 |
10332 | fi | |
10333 | done | |
5213506e RW |
10334 | done |
10335 | IFS=$as_save_IFS | |
1c710c3c | 10336 | |
e8b05380 PB |
10337 | fi |
10338 | fi | |
1c710c3c | 10339 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10340 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10342 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10343 | else |
5213506e RW |
10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10345 | $as_echo "no" >&6; } | |
e8b05380 PB |
10346 | fi |
10347 | ||
5213506e | 10348 | |
e8b05380 PB |
10349 | fi |
10350 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10351 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10352 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10354 | $as_echo_n "checking for $ac_word... " >&6; } | |
10355 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10356 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10357 | else |
10358 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10359 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10360 | else | |
1c710c3c DJ |
10361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10362 | for as_dir in $PATH | |
10363 | do | |
10364 | IFS=$as_save_IFS | |
10365 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10366 | for ac_exec_ext in '' $ac_executable_extensions; do |
10367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10368 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
5213506e | 10369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10370 | break 2 |
10371 | fi | |
10372 | done | |
5213506e RW |
10373 | done |
10374 | IFS=$as_save_IFS | |
1c710c3c | 10375 | |
e8b05380 PB |
10376 | fi |
10377 | fi | |
1c710c3c | 10378 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
e8b05380 | 10379 | if test -n "$GFORTRAN_FOR_TARGET"; then |
5213506e RW |
10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10381 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
e8b05380 | 10382 | else |
5213506e RW |
10383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10384 | $as_echo "no" >&6; } | |
e8b05380 | 10385 | fi |
1c710c3c | 10386 | |
5213506e | 10387 | |
e8b05380 PB |
10388 | fi |
10389 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10390 | done | |
10391 | fi | |
1c710c3c | 10392 | |
e8b05380 PB |
10393 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10394 | set dummy gfortran | |
2693c0b0 | 10395 | if test $build = $target ; then |
e8b05380 | 10396 | GFORTRAN_FOR_TARGET="$2" |
ca9f4b81 | 10397 | else |
e8b05380 PB |
10398 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
10399 | fi | |
1c00b503 PB |
10400 | else |
10401 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
e8b05380 PB |
10402 | fi |
10403 | ||
10404 | ||
10405 | ||
632e2a07 ILT |
10406 | if test -n "$GOC_FOR_TARGET"; then |
10407 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10408 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10409 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10410 | fi | |
10411 | ||
10412 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10413 | for ncn_progname in gccgo; do | |
10414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10415 | set dummy ${ncn_progname}; ac_word=$2 | |
10416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10417 | $as_echo_n "checking for $ac_word... " >&6; } | |
10418 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10419 | $as_echo_n "(cached) " >&6 | |
10420 | else | |
10421 | if test -n "$GOC_FOR_TARGET"; then | |
10422 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10423 | else | |
10424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10425 | for as_dir in $PATH | |
10426 | do | |
10427 | IFS=$as_save_IFS | |
10428 | test -z "$as_dir" && as_dir=. | |
10429 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10431 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10433 | break 2 | |
10434 | fi | |
10435 | done | |
10436 | done | |
10437 | IFS=$as_save_IFS | |
10438 | ||
10439 | fi | |
10440 | fi | |
10441 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10442 | if test -n "$GOC_FOR_TARGET"; then | |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10444 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10445 | else | |
10446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10447 | $as_echo "no" >&6; } | |
10448 | fi | |
10449 | ||
10450 | ||
10451 | done | |
10452 | fi | |
10453 | ||
10454 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10455 | for ncn_progname in gccgo; do | |
10456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10457 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10458 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10459 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10461 | $as_echo "yes" >&6; } | |
10462 | break | |
10463 | else | |
10464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10465 | $as_echo "no" >&6; } | |
10466 | fi | |
10467 | done | |
10468 | fi | |
10469 | ||
10470 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10471 | for ncn_progname in gccgo; do | |
10472 | if test -n "$ncn_target_tool_prefix"; then | |
10473 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10474 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10476 | $as_echo_n "checking for $ac_word... " >&6; } | |
10477 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10478 | $as_echo_n "(cached) " >&6 | |
10479 | else | |
10480 | if test -n "$GOC_FOR_TARGET"; then | |
10481 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10482 | else | |
10483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10484 | for as_dir in $PATH | |
10485 | do | |
10486 | IFS=$as_save_IFS | |
10487 | test -z "$as_dir" && as_dir=. | |
10488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10490 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10492 | break 2 | |
10493 | fi | |
10494 | done | |
10495 | done | |
10496 | IFS=$as_save_IFS | |
10497 | ||
10498 | fi | |
10499 | fi | |
10500 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10501 | if test -n "$GOC_FOR_TARGET"; then | |
10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10503 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10504 | else | |
10505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10506 | $as_echo "no" >&6; } | |
10507 | fi | |
10508 | ||
10509 | ||
10510 | fi | |
10511 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10512 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10513 | set dummy ${ncn_progname}; ac_word=$2 | |
10514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10515 | $as_echo_n "checking for $ac_word... " >&6; } | |
10516 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10517 | $as_echo_n "(cached) " >&6 | |
10518 | else | |
10519 | if test -n "$GOC_FOR_TARGET"; then | |
10520 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10521 | else | |
10522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10523 | for as_dir in $PATH | |
10524 | do | |
10525 | IFS=$as_save_IFS | |
10526 | test -z "$as_dir" && as_dir=. | |
10527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10529 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10531 | break 2 | |
10532 | fi | |
10533 | done | |
10534 | done | |
10535 | IFS=$as_save_IFS | |
10536 | ||
10537 | fi | |
10538 | fi | |
10539 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10540 | if test -n "$GOC_FOR_TARGET"; then | |
10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10542 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10543 | else | |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10545 | $as_echo "no" >&6; } | |
10546 | fi | |
10547 | ||
10548 | ||
10549 | fi | |
10550 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10551 | done | |
10552 | fi | |
10553 | ||
10554 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10555 | set dummy gccgo | |
10556 | if test $build = $target ; then | |
10557 | GOC_FOR_TARGET="$2" | |
10558 | else | |
10559 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10560 | fi | |
10561 | else | |
10562 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10563 | fi | |
10564 | ||
10565 | ||
10566 | ||
e8b05380 PB |
10567 | cat > conftest.c << \EOF |
10568 | #ifdef __GNUC__ | |
10569 | gcc_yay; | |
10570 | #endif | |
10571 | EOF | |
10572 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10573 | have_gcc_for_target=yes | |
10574 | else | |
10575 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc | |
10576 | have_gcc_for_target=no | |
10577 | fi | |
10578 | rm conftest.c | |
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
10584 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10586 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10587 | if test -x $with_build_time_tools/ar; then |
10588 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10589 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
5213506e RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10591 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
d1f8db0c | 10592 | else |
5213506e RW |
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10594 | $as_echo "no" >&6; } | |
d1f8db0c | 10595 | fi |
e8b05380 PB |
10596 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10597 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
1c00b503 PB |
10598 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10599 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
e8b05380 PB |
10600 | fi |
10601 | fi | |
3e19841a | 10602 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10603 | # Extract the first word of "ar", so it can be a program name with args. |
10604 | set dummy ar; ac_word=$2 | |
5213506e RW |
10605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10606 | $as_echo_n "checking for $ac_word... " >&6; } | |
10607 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10608 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10609 | else |
1c710c3c DJ |
10610 | case $AR_FOR_TARGET in |
10611 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10612 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10613 | ;; | |
e8b05380 | 10614 | *) |
1c710c3c DJ |
10615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10616 | for as_dir in $gcc_cv_tool_dirs | |
10617 | do | |
10618 | IFS=$as_save_IFS | |
10619 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10620 | for ac_exec_ext in '' $ac_executable_extensions; do |
10621 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10622 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10624 | break 2 |
10625 | fi | |
10626 | done | |
5213506e RW |
10627 | done |
10628 | IFS=$as_save_IFS | |
1c710c3c | 10629 | |
e8b05380 PB |
10630 | ;; |
10631 | esac | |
10632 | fi | |
1c710c3c | 10633 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
e8b05380 | 10634 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10636 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10637 | else |
5213506e RW |
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10639 | $as_echo "no" >&6; } | |
4de997d1 PB |
10640 | fi |
10641 | ||
5213506e | 10642 | |
e8b05380 PB |
10643 | fi |
10644 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
278a7a38 AO |
10645 | |
10646 | ||
10647 | if test -n "$AR_FOR_TARGET"; then | |
10648 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10649 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10650 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10651 | fi | |
10652 | ||
10653 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10654 | for ncn_progname in ar; do | |
10655 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10656 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10658 | $as_echo_n "checking for $ac_word... " >&6; } | |
10659 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10660 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10661 | else |
10662 | if test -n "$AR_FOR_TARGET"; then | |
10663 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10664 | else | |
10665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10666 | for as_dir in $PATH | |
10667 | do | |
10668 | IFS=$as_save_IFS | |
10669 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10670 | for ac_exec_ext in '' $ac_executable_extensions; do |
10671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10672 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10674 | break 2 |
10675 | fi | |
10676 | done | |
5213506e RW |
10677 | done |
10678 | IFS=$as_save_IFS | |
278a7a38 AO |
10679 | |
10680 | fi | |
10681 | fi | |
10682 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10683 | if test -n "$AR_FOR_TARGET"; then | |
5213506e RW |
10684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10685 | $as_echo "$AR_FOR_TARGET" >&6; } | |
278a7a38 | 10686 | else |
5213506e RW |
10687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10688 | $as_echo "no" >&6; } | |
278a7a38 AO |
10689 | fi |
10690 | ||
5213506e | 10691 | |
278a7a38 AO |
10692 | done |
10693 | fi | |
10694 | ||
10695 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10696 | for ncn_progname in ar; do |
5213506e RW |
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10698 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10699 | if test -x $with_build_time_tools/${ncn_progname}; then |
10700 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10702 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10703 | break |
10704 | else | |
5213506e RW |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10706 | $as_echo "no" >&6; } | |
e8b05380 PB |
10707 | fi |
10708 | done | |
10709 | fi | |
10710 | ||
10711 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then | |
10712 | for ncn_progname in ar; do | |
10713 | if test -n "$ncn_target_tool_prefix"; then | |
10714 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10715 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
10716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10717 | $as_echo_n "checking for $ac_word... " >&6; } | |
10718 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10719 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10720 | else |
e8b05380 PB |
10721 | if test -n "$AR_FOR_TARGET"; then |
10722 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10723 | else |
1c710c3c DJ |
10724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10725 | for as_dir in $PATH | |
10726 | do | |
10727 | IFS=$as_save_IFS | |
10728 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10729 | for ac_exec_ext in '' $ac_executable_extensions; do |
10730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10731 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10733 | break 2 |
10734 | fi | |
10735 | done | |
5213506e RW |
10736 | done |
10737 | IFS=$as_save_IFS | |
1c710c3c | 10738 | |
4de997d1 PB |
10739 | fi |
10740 | fi | |
1c710c3c | 10741 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10742 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10744 | $as_echo "$AR_FOR_TARGET" >&6; } | |
4de997d1 | 10745 | else |
5213506e RW |
10746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10747 | $as_echo "no" >&6; } | |
4de997d1 PB |
10748 | fi |
10749 | ||
5213506e | 10750 | |
e8b05380 PB |
10751 | fi |
10752 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10753 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10754 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10756 | $as_echo_n "checking for $ac_word... " >&6; } | |
10757 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10758 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10759 | else |
10760 | if test -n "$AR_FOR_TARGET"; then | |
10761 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10762 | else | |
1c710c3c DJ |
10763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10764 | for as_dir in $PATH | |
10765 | do | |
10766 | IFS=$as_save_IFS | |
10767 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10768 | for ac_exec_ext in '' $ac_executable_extensions; do |
10769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10770 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
5213506e | 10771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10772 | break 2 |
10773 | fi | |
10774 | done | |
5213506e RW |
10775 | done |
10776 | IFS=$as_save_IFS | |
1c710c3c | 10777 | |
e8b05380 PB |
10778 | fi |
10779 | fi | |
1c710c3c | 10780 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
e8b05380 | 10781 | if test -n "$AR_FOR_TARGET"; then |
5213506e RW |
10782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10783 | $as_echo "$AR_FOR_TARGET" >&6; } | |
e8b05380 | 10784 | else |
5213506e RW |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10786 | $as_echo "no" >&6; } | |
e8b05380 | 10787 | fi |
1c710c3c | 10788 | |
5213506e | 10789 | |
e8b05380 PB |
10790 | fi |
10791 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10792 | done | |
10793 | fi | |
1c710c3c | 10794 | |
e8b05380 PB |
10795 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10796 | set dummy ar | |
10797 | if test $build = $target ; then | |
10798 | AR_FOR_TARGET="$2" | |
10799 | else | |
10800 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
2693c0b0 | 10801 | fi |
1c00b503 PB |
10802 | else |
10803 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
e8b05380 PB |
10804 | fi |
10805 | ||
d1f8db0c PB |
10806 | else |
10807 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
e8b05380 PB |
10808 | fi |
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10814 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10816 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10817 | if test -x $with_build_time_tools/as; then |
10818 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10819 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
5213506e RW |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10821 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
d1f8db0c | 10822 | else |
5213506e RW |
10823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10824 | $as_echo "no" >&6; } | |
d1f8db0c | 10825 | fi |
e8b05380 PB |
10826 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10827 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
1c00b503 PB |
10828 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10829 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
e8b05380 PB |
10830 | fi |
10831 | fi | |
3e19841a | 10832 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
10833 | # Extract the first word of "as", so it can be a program name with args. |
10834 | set dummy as; ac_word=$2 | |
5213506e RW |
10835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10836 | $as_echo_n "checking for $ac_word... " >&6; } | |
10837 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10838 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 10839 | else |
1c710c3c DJ |
10840 | case $AS_FOR_TARGET in |
10841 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
10842 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10843 | ;; | |
e8b05380 | 10844 | *) |
1c710c3c DJ |
10845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10846 | for as_dir in $gcc_cv_tool_dirs | |
10847 | do | |
10848 | IFS=$as_save_IFS | |
10849 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10850 | for ac_exec_ext in '' $ac_executable_extensions; do |
10851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10852 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 10853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10854 | break 2 |
10855 | fi | |
10856 | done | |
5213506e RW |
10857 | done |
10858 | IFS=$as_save_IFS | |
1c710c3c | 10859 | |
e8b05380 PB |
10860 | ;; |
10861 | esac | |
10862 | fi | |
1c710c3c | 10863 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
e8b05380 | 10864 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10866 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 10867 | else |
5213506e RW |
10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10869 | $as_echo "no" >&6; } | |
e8b05380 PB |
10870 | fi |
10871 | ||
5213506e | 10872 | |
e8b05380 PB |
10873 | fi |
10874 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
278a7a38 AO |
10875 | |
10876 | ||
10877 | if test -n "$AS_FOR_TARGET"; then | |
10878 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10879 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10880 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10881 | fi | |
10882 | ||
10883 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10884 | for ncn_progname in as; do | |
10885 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10886 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10888 | $as_echo_n "checking for $ac_word... " >&6; } | |
10889 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10890 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
10891 | else |
10892 | if test -n "$AS_FOR_TARGET"; then | |
10893 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10894 | else | |
10895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10896 | for as_dir in $PATH | |
10897 | do | |
10898 | IFS=$as_save_IFS | |
10899 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10900 | for ac_exec_ext in '' $ac_executable_extensions; do |
10901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 10902 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 10903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
10904 | break 2 |
10905 | fi | |
10906 | done | |
5213506e RW |
10907 | done |
10908 | IFS=$as_save_IFS | |
278a7a38 AO |
10909 | |
10910 | fi | |
10911 | fi | |
10912 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10913 | if test -n "$AS_FOR_TARGET"; then | |
5213506e RW |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10915 | $as_echo "$AS_FOR_TARGET" >&6; } | |
278a7a38 | 10916 | else |
5213506e RW |
10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10918 | $as_echo "no" >&6; } | |
278a7a38 AO |
10919 | fi |
10920 | ||
5213506e | 10921 | |
278a7a38 AO |
10922 | done |
10923 | fi | |
10924 | ||
10925 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 10926 | for ncn_progname in as; do |
5213506e RW |
10927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10928 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
10929 | if test -x $with_build_time_tools/${ncn_progname}; then |
10930 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10932 | $as_echo "yes" >&6; } | |
e8b05380 PB |
10933 | break |
10934 | else | |
5213506e RW |
10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10936 | $as_echo "no" >&6; } | |
e8b05380 PB |
10937 | fi |
10938 | done | |
10939 | fi | |
10940 | ||
10941 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10942 | for ncn_progname in as; do | |
10943 | if test -n "$ncn_target_tool_prefix"; then | |
10944 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10945 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10947 | $as_echo_n "checking for $ac_word... " >&6; } | |
10948 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10949 | $as_echo_n "(cached) " >&6 | |
e8b05380 PB |
10950 | else |
10951 | if test -n "$AS_FOR_TARGET"; then | |
10952 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10953 | else | |
1c710c3c DJ |
10954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10955 | for as_dir in $PATH | |
10956 | do | |
10957 | IFS=$as_save_IFS | |
10958 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10959 | for ac_exec_ext in '' $ac_executable_extensions; do |
10960 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 10961 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 10962 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
10963 | break 2 |
10964 | fi | |
10965 | done | |
5213506e RW |
10966 | done |
10967 | IFS=$as_save_IFS | |
1c710c3c | 10968 | |
e8b05380 PB |
10969 | fi |
10970 | fi | |
1c710c3c | 10971 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 10972 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10974 | $as_echo "$AS_FOR_TARGET" >&6; } | |
e8b05380 | 10975 | else |
5213506e RW |
10976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10977 | $as_echo "no" >&6; } | |
e8b05380 PB |
10978 | fi |
10979 | ||
5213506e | 10980 | |
e8b05380 PB |
10981 | fi |
10982 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10983 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 10984 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
10985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10986 | $as_echo_n "checking for $ac_word... " >&6; } | |
10987 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10988 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 10989 | else |
e8b05380 PB |
10990 | if test -n "$AS_FOR_TARGET"; then |
10991 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 10992 | else |
1c710c3c DJ |
10993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10994 | for as_dir in $PATH | |
10995 | do | |
10996 | IFS=$as_save_IFS | |
10997 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
10998 | for ac_exec_ext in '' $ac_executable_extensions; do |
10999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11000 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
5213506e | 11001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11002 | break 2 |
11003 | fi | |
11004 | done | |
5213506e RW |
11005 | done |
11006 | IFS=$as_save_IFS | |
1c710c3c | 11007 | |
4de997d1 PB |
11008 | fi |
11009 | fi | |
1c710c3c | 11010 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
e8b05380 | 11011 | if test -n "$AS_FOR_TARGET"; then |
5213506e RW |
11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11013 | $as_echo "$AS_FOR_TARGET" >&6; } | |
4de997d1 | 11014 | else |
5213506e RW |
11015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11016 | $as_echo "no" >&6; } | |
4de997d1 | 11017 | fi |
1c710c3c | 11018 | |
5213506e | 11019 | |
e8b05380 PB |
11020 | fi |
11021 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11022 | done | |
11023 | fi | |
1c710c3c | 11024 | |
e8b05380 PB |
11025 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11026 | set dummy as | |
11027 | if test $build = $target ; then | |
11028 | AS_FOR_TARGET="$2" | |
11029 | else | |
11030 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
4de997d1 | 11031 | fi |
1c00b503 PB |
11032 | else |
11033 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
e8b05380 | 11034 | fi |
2693c0b0 | 11035 | |
d1f8db0c PB |
11036 | else |
11037 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
4de997d1 PB |
11038 | fi |
11039 | ||
e8b05380 PB |
11040 | |
11041 | ||
11042 | ||
11043 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11044 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11046 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11047 | if test -x $with_build_time_tools/dlltool; then |
11048 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11049 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
5213506e RW |
11050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11051 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
d1f8db0c | 11052 | else |
5213506e RW |
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11054 | $as_echo "no" >&6; } | |
d1f8db0c | 11055 | fi |
e8b05380 PB |
11056 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11057 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
1c00b503 PB |
11058 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11059 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11060 | fi |
11061 | fi | |
3e19841a | 11062 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11063 | # Extract the first word of "dlltool", so it can be a program name with args. |
11064 | set dummy dlltool; ac_word=$2 | |
5213506e RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11066 | $as_echo_n "checking for $ac_word... " >&6; } | |
11067 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11068 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11069 | else |
1c710c3c DJ |
11070 | case $DLLTOOL_FOR_TARGET in |
11071 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11072 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11073 | ;; | |
e8b05380 | 11074 | *) |
1c710c3c DJ |
11075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11076 | for as_dir in $gcc_cv_tool_dirs | |
11077 | do | |
11078 | IFS=$as_save_IFS | |
11079 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11080 | for ac_exec_ext in '' $ac_executable_extensions; do |
11081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11082 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11084 | break 2 |
11085 | fi | |
11086 | done | |
5213506e RW |
11087 | done |
11088 | IFS=$as_save_IFS | |
1c710c3c | 11089 | |
e8b05380 PB |
11090 | ;; |
11091 | esac | |
4de997d1 | 11092 | fi |
1c710c3c | 11093 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
e8b05380 | 11094 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11096 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11097 | else |
5213506e RW |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11099 | $as_echo "no" >&6; } | |
4de997d1 PB |
11100 | fi |
11101 | ||
5213506e | 11102 | |
e8b05380 PB |
11103 | fi |
11104 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
278a7a38 AO |
11105 | |
11106 | ||
11107 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11108 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11109 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11110 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11111 | fi | |
11112 | ||
11113 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11114 | for ncn_progname in dlltool; do | |
11115 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11116 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11118 | $as_echo_n "checking for $ac_word... " >&6; } | |
11119 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11120 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11121 | else |
11122 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11123 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11124 | else | |
11125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11126 | for as_dir in $PATH | |
11127 | do | |
11128 | IFS=$as_save_IFS | |
11129 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11130 | for ac_exec_ext in '' $ac_executable_extensions; do |
11131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11132 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11134 | break 2 |
11135 | fi | |
11136 | done | |
5213506e RW |
11137 | done |
11138 | IFS=$as_save_IFS | |
278a7a38 AO |
11139 | |
11140 | fi | |
11141 | fi | |
11142 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11143 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
5213506e RW |
11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11145 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
278a7a38 | 11146 | else |
5213506e RW |
11147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11148 | $as_echo "no" >&6; } | |
278a7a38 AO |
11149 | fi |
11150 | ||
5213506e | 11151 | |
278a7a38 AO |
11152 | done |
11153 | fi | |
11154 | ||
11155 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11156 | for ncn_progname in dlltool; do |
5213506e RW |
11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11158 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11159 | if test -x $with_build_time_tools/${ncn_progname}; then |
11160 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11162 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11163 | break |
11164 | else | |
5213506e RW |
11165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11166 | $as_echo "no" >&6; } | |
e8b05380 PB |
11167 | fi |
11168 | done | |
11169 | fi | |
11170 | ||
11171 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11172 | for ncn_progname in dlltool; do | |
11173 | if test -n "$ncn_target_tool_prefix"; then | |
11174 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11175 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11177 | $as_echo_n "checking for $ac_word... " >&6; } | |
11178 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11179 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11180 | else |
e8b05380 PB |
11181 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11182 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11183 | else |
1c710c3c DJ |
11184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11185 | for as_dir in $PATH | |
11186 | do | |
11187 | IFS=$as_save_IFS | |
11188 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11189 | for ac_exec_ext in '' $ac_executable_extensions; do |
11190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11191 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11193 | break 2 |
11194 | fi | |
11195 | done | |
5213506e RW |
11196 | done |
11197 | IFS=$as_save_IFS | |
1c710c3c | 11198 | |
4de997d1 PB |
11199 | fi |
11200 | fi | |
1c710c3c | 11201 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11202 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11204 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11205 | else |
5213506e RW |
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11207 | $as_echo "no" >&6; } | |
4de997d1 | 11208 | fi |
4de997d1 | 11209 | |
5213506e | 11210 | |
e8b05380 PB |
11211 | fi |
11212 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11213 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11214 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11216 | $as_echo_n "checking for $ac_word... " >&6; } | |
11217 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11218 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11219 | else |
e8b05380 PB |
11220 | if test -n "$DLLTOOL_FOR_TARGET"; then |
11221 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
4de997d1 | 11222 | else |
1c710c3c DJ |
11223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11224 | for as_dir in $PATH | |
11225 | do | |
11226 | IFS=$as_save_IFS | |
11227 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11228 | for ac_exec_ext in '' $ac_executable_extensions; do |
11229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11230 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
5213506e | 11231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11232 | break 2 |
11233 | fi | |
11234 | done | |
5213506e RW |
11235 | done |
11236 | IFS=$as_save_IFS | |
1c710c3c | 11237 | |
4de997d1 PB |
11238 | fi |
11239 | fi | |
1c710c3c | 11240 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
e8b05380 | 11241 | if test -n "$DLLTOOL_FOR_TARGET"; then |
5213506e RW |
11242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11243 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
4de997d1 | 11244 | else |
5213506e RW |
11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11246 | $as_echo "no" >&6; } | |
4de997d1 | 11247 | fi |
1c710c3c | 11248 | |
5213506e | 11249 | |
e8b05380 PB |
11250 | fi |
11251 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11252 | done | |
11253 | fi | |
1c710c3c | 11254 | |
e8b05380 PB |
11255 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11256 | set dummy dlltool | |
11257 | if test $build = $target ; then | |
11258 | DLLTOOL_FOR_TARGET="$2" | |
11259 | else | |
11260 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11261 | fi | |
1c00b503 PB |
11262 | else |
11263 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
e8b05380 PB |
11264 | fi |
11265 | ||
d1f8db0c PB |
11266 | else |
11267 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
e8b05380 PB |
11268 | fi |
11269 | ||
4de997d1 | 11270 | |
e8b05380 PB |
11271 | |
11272 | ||
11273 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11274 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11276 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11277 | if test -x $with_build_time_tools/ld; then |
11278 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11279 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
5213506e RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11281 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
d1f8db0c | 11282 | else |
5213506e RW |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11284 | $as_echo "no" >&6; } | |
d1f8db0c | 11285 | fi |
e8b05380 PB |
11286 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11287 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
1c00b503 PB |
11288 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11289 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2693c0b0 | 11290 | fi |
e8b05380 | 11291 | fi |
3e19841a | 11292 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11293 | # Extract the first word of "ld", so it can be a program name with args. |
11294 | set dummy ld; ac_word=$2 | |
5213506e RW |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11296 | $as_echo_n "checking for $ac_word... " >&6; } | |
11297 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11298 | $as_echo_n "(cached) " >&6 | |
4de997d1 | 11299 | else |
1c710c3c DJ |
11300 | case $LD_FOR_TARGET in |
11301 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11302 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11303 | ;; | |
e8b05380 | 11304 | *) |
1c710c3c DJ |
11305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11306 | for as_dir in $gcc_cv_tool_dirs | |
11307 | do | |
11308 | IFS=$as_save_IFS | |
11309 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11310 | for ac_exec_ext in '' $ac_executable_extensions; do |
11311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11312 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11313 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11314 | break 2 |
11315 | fi | |
11316 | done | |
5213506e RW |
11317 | done |
11318 | IFS=$as_save_IFS | |
1c710c3c | 11319 | |
e8b05380 PB |
11320 | ;; |
11321 | esac | |
4de997d1 | 11322 | fi |
1c710c3c | 11323 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
e8b05380 | 11324 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11326 | $as_echo "$LD_FOR_TARGET" >&6; } | |
4de997d1 | 11327 | else |
5213506e RW |
11328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11329 | $as_echo "no" >&6; } | |
4de997d1 | 11330 | fi |
2693c0b0 | 11331 | |
5213506e | 11332 | |
e8b05380 PB |
11333 | fi |
11334 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
278a7a38 AO |
11335 | |
11336 | ||
11337 | if test -n "$LD_FOR_TARGET"; then | |
11338 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11339 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11340 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11341 | fi | |
11342 | ||
11343 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11344 | for ncn_progname in ld; do | |
11345 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11346 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11348 | $as_echo_n "checking for $ac_word... " >&6; } | |
11349 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11350 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11351 | else |
11352 | if test -n "$LD_FOR_TARGET"; then | |
11353 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11354 | else | |
11355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11356 | for as_dir in $PATH | |
11357 | do | |
11358 | IFS=$as_save_IFS | |
11359 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11360 | for ac_exec_ext in '' $ac_executable_extensions; do |
11361 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11362 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11364 | break 2 |
11365 | fi | |
11366 | done | |
5213506e RW |
11367 | done |
11368 | IFS=$as_save_IFS | |
278a7a38 AO |
11369 | |
11370 | fi | |
11371 | fi | |
11372 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11373 | if test -n "$LD_FOR_TARGET"; then | |
5213506e RW |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11375 | $as_echo "$LD_FOR_TARGET" >&6; } | |
278a7a38 | 11376 | else |
5213506e RW |
11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11378 | $as_echo "no" >&6; } | |
278a7a38 AO |
11379 | fi |
11380 | ||
5213506e | 11381 | |
278a7a38 AO |
11382 | done |
11383 | fi | |
11384 | ||
11385 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11386 | for ncn_progname in ld; do |
5213506e RW |
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11388 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11389 | if test -x $with_build_time_tools/${ncn_progname}; then |
11390 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11392 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11393 | break |
11394 | else | |
5213506e RW |
11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11396 | $as_echo "no" >&6; } | |
e8b05380 PB |
11397 | fi |
11398 | done | |
ca9f4b81 AO |
11399 | fi |
11400 | ||
e8b05380 PB |
11401 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then |
11402 | for ncn_progname in ld; do | |
11403 | if test -n "$ncn_target_tool_prefix"; then | |
11404 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11405 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11407 | $as_echo_n "checking for $ac_word... " >&6; } | |
11408 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11409 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11410 | else |
4de997d1 PB |
11411 | if test -n "$LD_FOR_TARGET"; then |
11412 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11413 | else |
1c710c3c DJ |
11414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11415 | for as_dir in $PATH | |
11416 | do | |
11417 | IFS=$as_save_IFS | |
11418 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11419 | for ac_exec_ext in '' $ac_executable_extensions; do |
11420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11421 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11423 | break 2 |
11424 | fi | |
11425 | done | |
5213506e RW |
11426 | done |
11427 | IFS=$as_save_IFS | |
1c710c3c | 11428 | |
ca9f4b81 AO |
11429 | fi |
11430 | fi | |
1c710c3c | 11431 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
4de997d1 | 11432 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11434 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11435 | else |
5213506e RW |
11436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11437 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11438 | fi |
11439 | ||
5213506e | 11440 | |
e8b05380 PB |
11441 | fi |
11442 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11443 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11444 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11446 | $as_echo_n "checking for $ac_word... " >&6; } | |
11447 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11448 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11449 | else |
2693c0b0 PB |
11450 | if test -n "$LD_FOR_TARGET"; then |
11451 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11452 | else |
1c710c3c DJ |
11453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11454 | for as_dir in $PATH | |
11455 | do | |
11456 | IFS=$as_save_IFS | |
11457 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11458 | for ac_exec_ext in '' $ac_executable_extensions; do |
11459 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11460 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
5213506e | 11461 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11462 | break 2 |
11463 | fi | |
11464 | done | |
5213506e RW |
11465 | done |
11466 | IFS=$as_save_IFS | |
1c710c3c | 11467 | |
ca9f4b81 AO |
11468 | fi |
11469 | fi | |
1c710c3c | 11470 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2693c0b0 | 11471 | if test -n "$LD_FOR_TARGET"; then |
5213506e RW |
11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11473 | $as_echo "$LD_FOR_TARGET" >&6; } | |
ca9f4b81 | 11474 | else |
5213506e RW |
11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11476 | $as_echo "no" >&6; } | |
ca9f4b81 | 11477 | fi |
1c710c3c | 11478 | |
5213506e | 11479 | |
e8b05380 PB |
11480 | fi |
11481 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11482 | done | |
11483 | fi | |
1c710c3c | 11484 | |
2693c0b0 PB |
11485 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11486 | set dummy ld | |
11487 | if test $build = $target ; then | |
11488 | LD_FOR_TARGET="$2" | |
ca9f4b81 | 11489 | else |
2693c0b0 | 11490 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11491 | fi |
1c00b503 PB |
11492 | else |
11493 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
ca9f4b81 AO |
11494 | fi |
11495 | ||
d1f8db0c PB |
11496 | else |
11497 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
e8b05380 PB |
11498 | fi |
11499 | ||
11500 | ||
11501 | ||
11502 | ||
11503 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11504 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11506 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11507 | if test -x $with_build_time_tools/lipo; then |
11508 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11509 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
5213506e RW |
11510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11511 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
d1f8db0c | 11512 | else |
5213506e RW |
11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11514 | $as_echo "no" >&6; } | |
d1f8db0c | 11515 | fi |
e8b05380 PB |
11516 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11517 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
1c00b503 PB |
11518 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11519 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
e8b05380 PB |
11520 | fi |
11521 | fi | |
278a7a38 AO |
11522 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11523 | # Extract the first word of "lipo", so it can be a program name with args. | |
11524 | set dummy lipo; ac_word=$2 | |
5213506e RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11526 | $as_echo_n "checking for $ac_word... " >&6; } | |
11527 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11528 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11529 | else |
11530 | case $LIPO_FOR_TARGET in | |
11531 | [\\/]* | ?:[\\/]*) | |
11532 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11533 | ;; | |
11534 | *) | |
11535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11536 | for as_dir in $gcc_cv_tool_dirs | |
11537 | do | |
11538 | IFS=$as_save_IFS | |
11539 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11540 | for ac_exec_ext in '' $ac_executable_extensions; do |
11541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11542 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11544 | break 2 |
11545 | fi | |
11546 | done | |
5213506e RW |
11547 | done |
11548 | IFS=$as_save_IFS | |
278a7a38 AO |
11549 | |
11550 | ;; | |
11551 | esac | |
11552 | fi | |
11553 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
278a7a38 | 11554 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11556 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
278a7a38 | 11557 | else |
5213506e RW |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11559 | $as_echo "no" >&6; } | |
278a7a38 AO |
11560 | fi |
11561 | ||
5213506e | 11562 | |
278a7a38 AO |
11563 | fi |
11564 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11565 | ||
11566 | ||
11567 | if test -n "$LIPO_FOR_TARGET"; then | |
11568 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11569 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11570 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11571 | fi | |
11572 | ||
11573 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11574 | for ncn_progname in lipo; do | |
11575 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11576 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11578 | $as_echo_n "checking for $ac_word... " >&6; } | |
11579 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11580 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11581 | else |
278a7a38 AO |
11582 | if test -n "$LIPO_FOR_TARGET"; then |
11583 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11584 | else | |
11585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11586 | for as_dir in $PATH | |
1c710c3c DJ |
11587 | do |
11588 | IFS=$as_save_IFS | |
11589 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11590 | for ac_exec_ext in '' $ac_executable_extensions; do |
11591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11592 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11594 | break 2 |
11595 | fi | |
11596 | done | |
5213506e RW |
11597 | done |
11598 | IFS=$as_save_IFS | |
1c710c3c | 11599 | |
e8b05380 | 11600 | fi |
278a7a38 AO |
11601 | fi |
11602 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
e8b05380 | 11603 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11605 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
e8b05380 | 11606 | else |
5213506e RW |
11607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11608 | $as_echo "no" >&6; } | |
e8b05380 PB |
11609 | fi |
11610 | ||
5213506e | 11611 | |
278a7a38 | 11612 | done |
e8b05380 | 11613 | fi |
278a7a38 AO |
11614 | |
11615 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11616 | for ncn_progname in lipo; do |
5213506e RW |
11617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11618 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11619 | if test -x $with_build_time_tools/${ncn_progname}; then |
11620 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11622 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11623 | break |
11624 | else | |
5213506e RW |
11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11626 | $as_echo "no" >&6; } | |
e8b05380 PB |
11627 | fi |
11628 | done | |
11629 | fi | |
11630 | ||
11631 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11632 | for ncn_progname in lipo; do | |
11633 | if test -n "$ncn_target_tool_prefix"; then | |
11634 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11635 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11637 | $as_echo_n "checking for $ac_word... " >&6; } | |
11638 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11639 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11640 | else |
11641 | if test -n "$LIPO_FOR_TARGET"; then | |
11642 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11643 | else | |
1c710c3c DJ |
11644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11645 | for as_dir in $PATH | |
11646 | do | |
11647 | IFS=$as_save_IFS | |
11648 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11649 | for ac_exec_ext in '' $ac_executable_extensions; do |
11650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11651 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11653 | break 2 |
11654 | fi | |
11655 | done | |
5213506e RW |
11656 | done |
11657 | IFS=$as_save_IFS | |
1c710c3c | 11658 | |
040b1c5a GK |
11659 | fi |
11660 | fi | |
1c710c3c | 11661 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11662 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11664 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11665 | else |
5213506e RW |
11666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11667 | $as_echo "no" >&6; } | |
040b1c5a GK |
11668 | fi |
11669 | ||
5213506e | 11670 | |
e8b05380 PB |
11671 | fi |
11672 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11674 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11676 | $as_echo_n "checking for $ac_word... " >&6; } | |
11677 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11678 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
11679 | else |
11680 | if test -n "$LIPO_FOR_TARGET"; then | |
72a7ab82 AP |
11681 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. |
11682 | else | |
1c710c3c DJ |
11683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11684 | for as_dir in $PATH | |
11685 | do | |
11686 | IFS=$as_save_IFS | |
11687 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11688 | for ac_exec_ext in '' $ac_executable_extensions; do |
11689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11690 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
5213506e | 11691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11692 | break 2 |
11693 | fi | |
11694 | done | |
5213506e RW |
11695 | done |
11696 | IFS=$as_save_IFS | |
1c710c3c | 11697 | |
040b1c5a GK |
11698 | fi |
11699 | fi | |
1c710c3c | 11700 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
040b1c5a | 11701 | if test -n "$LIPO_FOR_TARGET"; then |
5213506e RW |
11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11703 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
040b1c5a | 11704 | else |
5213506e RW |
11705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11706 | $as_echo "no" >&6; } | |
040b1c5a | 11707 | fi |
1c710c3c | 11708 | |
5213506e | 11709 | |
e8b05380 PB |
11710 | fi |
11711 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11712 | done | |
11713 | fi | |
1c710c3c | 11714 | |
040b1c5a GK |
11715 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11716 | set dummy lipo | |
11717 | if test $build = $target ; then | |
11718 | LIPO_FOR_TARGET="$2" | |
11719 | else | |
11720 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11721 | fi | |
1c00b503 PB |
11722 | else |
11723 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
040b1c5a GK |
11724 | fi |
11725 | ||
d1f8db0c PB |
11726 | else |
11727 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
e8b05380 PB |
11728 | fi |
11729 | ||
11730 | ||
11731 | ||
11732 | ||
11733 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11734 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11736 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11737 | if test -x $with_build_time_tools/nm; then |
11738 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11739 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
5213506e RW |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11741 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
d1f8db0c | 11742 | else |
5213506e RW |
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11744 | $as_echo "no" >&6; } | |
d1f8db0c | 11745 | fi |
e8b05380 PB |
11746 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11747 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
1c00b503 PB |
11748 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11749 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
e8b05380 PB |
11750 | fi |
11751 | fi | |
3e19841a | 11752 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11753 | # Extract the first word of "nm", so it can be a program name with args. |
11754 | set dummy nm; ac_word=$2 | |
5213506e RW |
11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11756 | $as_echo_n "checking for $ac_word... " >&6; } | |
11757 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11758 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11759 | else |
1c710c3c DJ |
11760 | case $NM_FOR_TARGET in |
11761 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11762 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11763 | ;; | |
e8b05380 | 11764 | *) |
1c710c3c DJ |
11765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11766 | for as_dir in $gcc_cv_tool_dirs | |
11767 | do | |
11768 | IFS=$as_save_IFS | |
11769 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11770 | for ac_exec_ext in '' $ac_executable_extensions; do |
11771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11772 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 11773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11774 | break 2 |
11775 | fi | |
11776 | done | |
5213506e RW |
11777 | done |
11778 | IFS=$as_save_IFS | |
1c710c3c | 11779 | |
e8b05380 PB |
11780 | ;; |
11781 | esac | |
11782 | fi | |
1c710c3c | 11783 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
e8b05380 | 11784 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11786 | $as_echo "$NM_FOR_TARGET" >&6; } | |
e8b05380 | 11787 | else |
5213506e RW |
11788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11789 | $as_echo "no" >&6; } | |
e8b05380 PB |
11790 | fi |
11791 | ||
5213506e | 11792 | |
e8b05380 PB |
11793 | fi |
11794 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
278a7a38 AO |
11795 | |
11796 | ||
11797 | if test -n "$NM_FOR_TARGET"; then | |
11798 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11799 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11800 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11801 | fi | |
11802 | ||
11803 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11804 | for ncn_progname in nm; do | |
11805 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11806 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11808 | $as_echo_n "checking for $ac_word... " >&6; } | |
11809 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11810 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
11811 | else |
11812 | if test -n "$NM_FOR_TARGET"; then | |
11813 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11814 | else | |
11815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11816 | for as_dir in $PATH | |
11817 | do | |
11818 | IFS=$as_save_IFS | |
11819 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11820 | for ac_exec_ext in '' $ac_executable_extensions; do |
11821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 11822 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 11823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
11824 | break 2 |
11825 | fi | |
11826 | done | |
5213506e RW |
11827 | done |
11828 | IFS=$as_save_IFS | |
278a7a38 AO |
11829 | |
11830 | fi | |
11831 | fi | |
11832 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11833 | if test -n "$NM_FOR_TARGET"; then | |
5213506e RW |
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11835 | $as_echo "$NM_FOR_TARGET" >&6; } | |
278a7a38 | 11836 | else |
5213506e RW |
11837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11838 | $as_echo "no" >&6; } | |
278a7a38 AO |
11839 | fi |
11840 | ||
5213506e | 11841 | |
278a7a38 AO |
11842 | done |
11843 | fi | |
11844 | ||
11845 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 11846 | for ncn_progname in nm; do |
5213506e RW |
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11848 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11849 | if test -x $with_build_time_tools/${ncn_progname}; then |
11850 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11852 | $as_echo "yes" >&6; } | |
e8b05380 PB |
11853 | break |
11854 | else | |
5213506e RW |
11855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11856 | $as_echo "no" >&6; } | |
e8b05380 PB |
11857 | fi |
11858 | done | |
11859 | fi | |
11860 | ||
11861 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11862 | for ncn_progname in nm; do | |
11863 | if test -n "$ncn_target_tool_prefix"; then | |
11864 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 11865 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11867 | $as_echo_n "checking for $ac_word... " >&6; } | |
11868 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11869 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11870 | else |
4de997d1 PB |
11871 | if test -n "$NM_FOR_TARGET"; then |
11872 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11873 | else |
1c710c3c DJ |
11874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11875 | for as_dir in $PATH | |
11876 | do | |
11877 | IFS=$as_save_IFS | |
11878 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11879 | for ac_exec_ext in '' $ac_executable_extensions; do |
11880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11881 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 11882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11883 | break 2 |
11884 | fi | |
11885 | done | |
5213506e RW |
11886 | done |
11887 | IFS=$as_save_IFS | |
1c710c3c | 11888 | |
ca9f4b81 AO |
11889 | fi |
11890 | fi | |
1c710c3c | 11891 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
4de997d1 | 11892 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11894 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 11895 | else |
5213506e RW |
11896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11897 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
11898 | fi |
11899 | ||
5213506e | 11900 | |
e8b05380 PB |
11901 | fi |
11902 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11903 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 11904 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11906 | $as_echo_n "checking for $ac_word... " >&6; } | |
11907 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11908 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 11909 | else |
2693c0b0 PB |
11910 | if test -n "$NM_FOR_TARGET"; then |
11911 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 11912 | else |
1c710c3c DJ |
11913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11914 | for as_dir in $PATH | |
11915 | do | |
11916 | IFS=$as_save_IFS | |
11917 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
11918 | for ac_exec_ext in '' $ac_executable_extensions; do |
11919 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 11920 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
5213506e | 11921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
11922 | break 2 |
11923 | fi | |
11924 | done | |
5213506e RW |
11925 | done |
11926 | IFS=$as_save_IFS | |
1c710c3c | 11927 | |
ca9f4b81 AO |
11928 | fi |
11929 | fi | |
1c710c3c | 11930 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
2693c0b0 | 11931 | if test -n "$NM_FOR_TARGET"; then |
5213506e RW |
11932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11933 | $as_echo "$NM_FOR_TARGET" >&6; } | |
ca9f4b81 | 11934 | else |
5213506e RW |
11935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11936 | $as_echo "no" >&6; } | |
ca9f4b81 | 11937 | fi |
1c710c3c | 11938 | |
5213506e | 11939 | |
e8b05380 PB |
11940 | fi |
11941 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11942 | done | |
11943 | fi | |
1c710c3c | 11944 | |
2693c0b0 PB |
11945 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11946 | set dummy nm | |
11947 | if test $build = $target ; then | |
11948 | NM_FOR_TARGET="$2" | |
ca9f4b81 | 11949 | else |
2693c0b0 | 11950 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 11951 | fi |
1c00b503 PB |
11952 | else |
11953 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
ca9f4b81 AO |
11954 | fi |
11955 | ||
d1f8db0c PB |
11956 | else |
11957 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
e8b05380 PB |
11958 | fi |
11959 | ||
11960 | ||
11961 | ||
11962 | ||
11963 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11964 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
11965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11966 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
11967 | if test -x $with_build_time_tools/objdump; then |
11968 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11969 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
5213506e RW |
11970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11971 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
d1f8db0c | 11972 | else |
5213506e RW |
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11974 | $as_echo "no" >&6; } | |
d1f8db0c | 11975 | fi |
e8b05380 PB |
11976 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11977 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
1c00b503 PB |
11978 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11979 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
e8b05380 PB |
11980 | fi |
11981 | fi | |
3e19841a | 11982 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
11983 | # Extract the first word of "objdump", so it can be a program name with args. |
11984 | set dummy objdump; ac_word=$2 | |
5213506e RW |
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11986 | $as_echo_n "checking for $ac_word... " >&6; } | |
11987 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11988 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 11989 | else |
1c710c3c DJ |
11990 | case $OBJDUMP_FOR_TARGET in |
11991 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
11992 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
11993 | ;; | |
e8b05380 | 11994 | *) |
1c710c3c DJ |
11995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11996 | for as_dir in $gcc_cv_tool_dirs | |
11997 | do | |
11998 | IFS=$as_save_IFS | |
11999 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12000 | for ac_exec_ext in '' $ac_executable_extensions; do |
12001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12002 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12004 | break 2 |
12005 | fi | |
12006 | done | |
5213506e RW |
12007 | done |
12008 | IFS=$as_save_IFS | |
1c710c3c | 12009 | |
e8b05380 PB |
12010 | ;; |
12011 | esac | |
12012 | fi | |
1c710c3c | 12013 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
e8b05380 | 12014 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12016 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
e8b05380 | 12017 | else |
5213506e RW |
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12019 | $as_echo "no" >&6; } | |
e8b05380 PB |
12020 | fi |
12021 | ||
5213506e | 12022 | |
e8b05380 PB |
12023 | fi |
12024 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
278a7a38 AO |
12025 | |
12026 | ||
12027 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12028 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12029 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12030 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12031 | fi | |
12032 | ||
12033 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12034 | for ncn_progname in objdump; do | |
12035 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12036 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12038 | $as_echo_n "checking for $ac_word... " >&6; } | |
12039 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12040 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12041 | else |
12042 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12043 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12044 | else | |
12045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12046 | for as_dir in $PATH | |
12047 | do | |
12048 | IFS=$as_save_IFS | |
12049 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12050 | for ac_exec_ext in '' $ac_executable_extensions; do |
12051 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12052 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12053 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12054 | break 2 |
12055 | fi | |
12056 | done | |
5213506e RW |
12057 | done |
12058 | IFS=$as_save_IFS | |
278a7a38 AO |
12059 | |
12060 | fi | |
12061 | fi | |
12062 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12063 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
5213506e RW |
12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12065 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
278a7a38 | 12066 | else |
5213506e RW |
12067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12068 | $as_echo "no" >&6; } | |
278a7a38 AO |
12069 | fi |
12070 | ||
5213506e | 12071 | |
278a7a38 AO |
12072 | done |
12073 | fi | |
12074 | ||
12075 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12076 | for ncn_progname in objdump; do |
5213506e RW |
12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12078 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12079 | if test -x $with_build_time_tools/${ncn_progname}; then |
12080 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12082 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12083 | break |
12084 | else | |
5213506e RW |
12085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12086 | $as_echo "no" >&6; } | |
e8b05380 PB |
12087 | fi |
12088 | done | |
12089 | fi | |
12090 | ||
12091 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12092 | for ncn_progname in objdump; do | |
12093 | if test -n "$ncn_target_tool_prefix"; then | |
12094 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12095 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12097 | $as_echo_n "checking for $ac_word... " >&6; } | |
12098 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12099 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12100 | else |
12101 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12102 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12103 | else | |
1c710c3c DJ |
12104 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12105 | for as_dir in $PATH | |
12106 | do | |
12107 | IFS=$as_save_IFS | |
12108 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12109 | for ac_exec_ext in '' $ac_executable_extensions; do |
12110 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12111 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12112 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12113 | break 2 |
12114 | fi | |
12115 | done | |
5213506e RW |
12116 | done |
12117 | IFS=$as_save_IFS | |
1c710c3c | 12118 | |
d739199a DJ |
12119 | fi |
12120 | fi | |
1c710c3c | 12121 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12122 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12124 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12125 | else |
5213506e RW |
12126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12127 | $as_echo "no" >&6; } | |
d739199a DJ |
12128 | fi |
12129 | ||
5213506e | 12130 | |
e8b05380 PB |
12131 | fi |
12132 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12133 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
d739199a | 12134 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12136 | $as_echo_n "checking for $ac_word... " >&6; } | |
12137 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12138 | $as_echo_n "(cached) " >&6 | |
d739199a DJ |
12139 | else |
12140 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12141 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12142 | else | |
1c710c3c DJ |
12143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12144 | for as_dir in $PATH | |
12145 | do | |
12146 | IFS=$as_save_IFS | |
12147 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12148 | for ac_exec_ext in '' $ac_executable_extensions; do |
12149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12150 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
5213506e | 12151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12152 | break 2 |
12153 | fi | |
12154 | done | |
5213506e RW |
12155 | done |
12156 | IFS=$as_save_IFS | |
1c710c3c | 12157 | |
d739199a DJ |
12158 | fi |
12159 | fi | |
1c710c3c | 12160 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
d739199a | 12161 | if test -n "$OBJDUMP_FOR_TARGET"; then |
5213506e RW |
12162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12163 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
d739199a | 12164 | else |
5213506e RW |
12165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12166 | $as_echo "no" >&6; } | |
d739199a | 12167 | fi |
1c710c3c | 12168 | |
5213506e | 12169 | |
e8b05380 PB |
12170 | fi |
12171 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12172 | done | |
12173 | fi | |
1c710c3c | 12174 | |
d739199a DJ |
12175 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12176 | set dummy objdump | |
12177 | if test $build = $target ; then | |
12178 | OBJDUMP_FOR_TARGET="$2" | |
12179 | else | |
12180 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12181 | fi | |
1c00b503 PB |
12182 | else |
12183 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
d739199a DJ |
12184 | fi |
12185 | ||
d1f8db0c PB |
12186 | else |
12187 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
e8b05380 PB |
12188 | fi |
12189 | ||
12190 | ||
12191 | ||
12192 | ||
12193 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12194 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12196 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12197 | if test -x $with_build_time_tools/ranlib; then |
12198 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12199 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
5213506e RW |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12201 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
d1f8db0c | 12202 | else |
5213506e RW |
12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12204 | $as_echo "no" >&6; } | |
d1f8db0c | 12205 | fi |
e8b05380 PB |
12206 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12207 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
1c00b503 PB |
12208 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12209 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
e8b05380 PB |
12210 | fi |
12211 | fi | |
3e19841a | 12212 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12213 | # Extract the first word of "ranlib", so it can be a program name with args. |
12214 | set dummy ranlib; ac_word=$2 | |
5213506e RW |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12216 | $as_echo_n "checking for $ac_word... " >&6; } | |
12217 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12218 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12219 | else |
1c710c3c DJ |
12220 | case $RANLIB_FOR_TARGET in |
12221 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12222 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12223 | ;; | |
e8b05380 | 12224 | *) |
1c710c3c DJ |
12225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12226 | for as_dir in $gcc_cv_tool_dirs | |
12227 | do | |
12228 | IFS=$as_save_IFS | |
12229 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12230 | for ac_exec_ext in '' $ac_executable_extensions; do |
12231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12232 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12234 | break 2 |
12235 | fi | |
12236 | done | |
5213506e RW |
12237 | done |
12238 | IFS=$as_save_IFS | |
1c710c3c | 12239 | |
e8b05380 PB |
12240 | ;; |
12241 | esac | |
12242 | fi | |
1c710c3c | 12243 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
e8b05380 | 12244 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12246 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
e8b05380 | 12247 | else |
5213506e RW |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12249 | $as_echo "no" >&6; } | |
e8b05380 PB |
12250 | fi |
12251 | ||
5213506e | 12252 | |
e8b05380 PB |
12253 | fi |
12254 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
278a7a38 AO |
12255 | |
12256 | ||
12257 | if test -n "$RANLIB_FOR_TARGET"; then | |
12258 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12259 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12260 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12261 | fi | |
12262 | ||
12263 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12264 | for ncn_progname in ranlib; do | |
12265 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12266 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12268 | $as_echo_n "checking for $ac_word... " >&6; } | |
12269 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12270 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12271 | else |
12272 | if test -n "$RANLIB_FOR_TARGET"; then | |
12273 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12274 | else | |
12275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12276 | for as_dir in $PATH | |
12277 | do | |
12278 | IFS=$as_save_IFS | |
12279 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12280 | for ac_exec_ext in '' $ac_executable_extensions; do |
12281 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12282 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12283 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12284 | break 2 |
12285 | fi | |
12286 | done | |
5213506e RW |
12287 | done |
12288 | IFS=$as_save_IFS | |
278a7a38 AO |
12289 | |
12290 | fi | |
12291 | fi | |
12292 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12293 | if test -n "$RANLIB_FOR_TARGET"; then | |
5213506e RW |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12295 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
278a7a38 | 12296 | else |
5213506e RW |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12298 | $as_echo "no" >&6; } | |
278a7a38 AO |
12299 | fi |
12300 | ||
5213506e | 12301 | |
278a7a38 AO |
12302 | done |
12303 | fi | |
12304 | ||
12305 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12306 | for ncn_progname in ranlib; do |
5213506e RW |
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12308 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12309 | if test -x $with_build_time_tools/${ncn_progname}; then |
12310 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12312 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12313 | break |
12314 | else | |
5213506e RW |
12315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12316 | $as_echo "no" >&6; } | |
e8b05380 PB |
12317 | fi |
12318 | done | |
12319 | fi | |
12320 | ||
12321 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12322 | for ncn_progname in ranlib; do | |
12323 | if test -n "$ncn_target_tool_prefix"; then | |
12324 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
d739199a | 12325 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12327 | $as_echo_n "checking for $ac_word... " >&6; } | |
12328 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12329 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12330 | else |
4de997d1 PB |
12331 | if test -n "$RANLIB_FOR_TARGET"; then |
12332 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12333 | else |
1c710c3c DJ |
12334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12335 | for as_dir in $PATH | |
12336 | do | |
12337 | IFS=$as_save_IFS | |
12338 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12339 | for ac_exec_ext in '' $ac_executable_extensions; do |
12340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12341 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12343 | break 2 |
12344 | fi | |
12345 | done | |
5213506e RW |
12346 | done |
12347 | IFS=$as_save_IFS | |
1c710c3c | 12348 | |
ca9f4b81 AO |
12349 | fi |
12350 | fi | |
1c710c3c | 12351 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
4de997d1 | 12352 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12354 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12355 | else |
5213506e RW |
12356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12357 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12358 | fi |
12359 | ||
5213506e | 12360 | |
e8b05380 PB |
12361 | fi |
12362 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12363 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12364 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12366 | $as_echo_n "checking for $ac_word... " >&6; } | |
12367 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12368 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12369 | else |
2693c0b0 PB |
12370 | if test -n "$RANLIB_FOR_TARGET"; then |
12371 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12372 | else |
1c710c3c DJ |
12373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12374 | for as_dir in $PATH | |
12375 | do | |
12376 | IFS=$as_save_IFS | |
12377 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12378 | for ac_exec_ext in '' $ac_executable_extensions; do |
12379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12380 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
5213506e | 12381 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12382 | break 2 |
12383 | fi | |
12384 | done | |
5213506e RW |
12385 | done |
12386 | IFS=$as_save_IFS | |
1c710c3c | 12387 | |
ca9f4b81 AO |
12388 | fi |
12389 | fi | |
1c710c3c | 12390 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
2693c0b0 | 12391 | if test -n "$RANLIB_FOR_TARGET"; then |
5213506e RW |
12392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12393 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
ca9f4b81 | 12394 | else |
5213506e RW |
12395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12396 | $as_echo "no" >&6; } | |
ca9f4b81 | 12397 | fi |
1c710c3c | 12398 | |
5213506e | 12399 | |
e8b05380 PB |
12400 | fi |
12401 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12402 | done | |
12403 | fi | |
1c710c3c | 12404 | |
e8b05380 PB |
12405 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12406 | set dummy ranlib | |
12407 | if test $build = $target ; then | |
12408 | RANLIB_FOR_TARGET="$2" | |
12409 | else | |
12410 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
ca9f4b81 | 12411 | fi |
1c00b503 PB |
12412 | else |
12413 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
e8b05380 | 12414 | fi |
2693c0b0 | 12415 | |
d1f8db0c PB |
12416 | else |
12417 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
ca9f4b81 AO |
12418 | fi |
12419 | ||
e8b05380 PB |
12420 | |
12421 | ||
12422 | ||
12423 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12424 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12426 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12427 | if test -x $with_build_time_tools/strip; then |
12428 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12429 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
5213506e RW |
12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12431 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
d1f8db0c | 12432 | else |
5213506e RW |
12433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12434 | $as_echo "no" >&6; } | |
d1f8db0c | 12435 | fi |
e8b05380 PB |
12436 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12437 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
1c00b503 PB |
12438 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12439 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
e8b05380 PB |
12440 | fi |
12441 | fi | |
3e19841a | 12442 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12443 | # Extract the first word of "strip", so it can be a program name with args. |
12444 | set dummy strip; ac_word=$2 | |
5213506e RW |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12446 | $as_echo_n "checking for $ac_word... " >&6; } | |
12447 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12448 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12449 | else |
1c710c3c DJ |
12450 | case $STRIP_FOR_TARGET in |
12451 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12452 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12453 | ;; | |
e8b05380 | 12454 | *) |
1c710c3c DJ |
12455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12456 | for as_dir in $gcc_cv_tool_dirs | |
12457 | do | |
12458 | IFS=$as_save_IFS | |
12459 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12460 | for ac_exec_ext in '' $ac_executable_extensions; do |
12461 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12462 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12464 | break 2 |
12465 | fi | |
12466 | done | |
5213506e RW |
12467 | done |
12468 | IFS=$as_save_IFS | |
1c710c3c | 12469 | |
e8b05380 PB |
12470 | ;; |
12471 | esac | |
12472 | fi | |
1c710c3c | 12473 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
e8b05380 | 12474 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12476 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
e8b05380 | 12477 | else |
5213506e RW |
12478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12479 | $as_echo "no" >&6; } | |
e8b05380 PB |
12480 | fi |
12481 | ||
5213506e | 12482 | |
e8b05380 PB |
12483 | fi |
12484 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
278a7a38 AO |
12485 | |
12486 | ||
12487 | if test -n "$STRIP_FOR_TARGET"; then | |
12488 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12489 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12490 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12491 | fi | |
12492 | ||
12493 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12494 | for ncn_progname in strip; do | |
12495 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12496 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12498 | $as_echo_n "checking for $ac_word... " >&6; } | |
12499 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12500 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12501 | else |
12502 | if test -n "$STRIP_FOR_TARGET"; then | |
12503 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12504 | else | |
12505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12506 | for as_dir in $PATH | |
12507 | do | |
12508 | IFS=$as_save_IFS | |
12509 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12510 | for ac_exec_ext in '' $ac_executable_extensions; do |
12511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12512 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 12513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12514 | break 2 |
12515 | fi | |
12516 | done | |
5213506e RW |
12517 | done |
12518 | IFS=$as_save_IFS | |
278a7a38 AO |
12519 | |
12520 | fi | |
12521 | fi | |
12522 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12523 | if test -n "$STRIP_FOR_TARGET"; then | |
5213506e RW |
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12525 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
278a7a38 | 12526 | else |
5213506e RW |
12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12528 | $as_echo "no" >&6; } | |
278a7a38 AO |
12529 | fi |
12530 | ||
5213506e | 12531 | |
278a7a38 AO |
12532 | done |
12533 | fi | |
12534 | ||
12535 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12536 | for ncn_progname in strip; do |
5213506e RW |
12537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12538 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12539 | if test -x $with_build_time_tools/${ncn_progname}; then |
12540 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12542 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12543 | break |
12544 | else | |
5213506e RW |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12546 | $as_echo "no" >&6; } | |
e8b05380 PB |
12547 | fi |
12548 | done | |
12549 | fi | |
12550 | ||
12551 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12552 | for ncn_progname in strip; do | |
12553 | if test -n "$ncn_target_tool_prefix"; then | |
12554 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12555 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12557 | $as_echo_n "checking for $ac_word... " >&6; } | |
12558 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12559 | $as_echo_n "(cached) " >&6 | |
af71363e AS |
12560 | else |
12561 | if test -n "$STRIP_FOR_TARGET"; then | |
1c710c3c DJ |
12562 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. |
12563 | else | |
12564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12565 | for as_dir in $PATH | |
12566 | do | |
12567 | IFS=$as_save_IFS | |
12568 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12569 | for ac_exec_ext in '' $ac_executable_extensions; do |
12570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12571 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12573 | break 2 |
12574 | fi | |
12575 | done | |
5213506e RW |
12576 | done |
12577 | IFS=$as_save_IFS | |
1c710c3c | 12578 | |
040b1c5a GK |
12579 | fi |
12580 | fi | |
1c710c3c | 12581 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 12582 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12584 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 12585 | else |
5213506e RW |
12586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12587 | $as_echo "no" >&6; } | |
040b1c5a GK |
12588 | fi |
12589 | ||
5213506e | 12590 | |
e8b05380 PB |
12591 | fi |
12592 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12593 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
040b1c5a | 12594 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12596 | $as_echo_n "checking for $ac_word... " >&6; } | |
12597 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12598 | $as_echo_n "(cached) " >&6 | |
040b1c5a GK |
12599 | else |
12600 | if test -n "$STRIP_FOR_TARGET"; then | |
12601 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12602 | else | |
1c710c3c DJ |
12603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12604 | for as_dir in $PATH | |
12605 | do | |
12606 | IFS=$as_save_IFS | |
12607 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12608 | for ac_exec_ext in '' $ac_executable_extensions; do |
12609 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12610 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
5213506e | 12611 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12612 | break 2 |
12613 | fi | |
12614 | done | |
5213506e RW |
12615 | done |
12616 | IFS=$as_save_IFS | |
1c710c3c | 12617 | |
040b1c5a GK |
12618 | fi |
12619 | fi | |
1c710c3c | 12620 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
040b1c5a | 12621 | if test -n "$STRIP_FOR_TARGET"; then |
5213506e RW |
12622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12623 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
040b1c5a | 12624 | else |
5213506e RW |
12625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12626 | $as_echo "no" >&6; } | |
040b1c5a | 12627 | fi |
1c710c3c | 12628 | |
5213506e | 12629 | |
e8b05380 PB |
12630 | fi |
12631 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12632 | done | |
12633 | fi | |
1c710c3c | 12634 | |
040b1c5a GK |
12635 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12636 | set dummy strip | |
12637 | if test $build = $target ; then | |
12638 | STRIP_FOR_TARGET="$2" | |
12639 | else | |
12640 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12641 | fi | |
1c00b503 PB |
12642 | else |
12643 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
040b1c5a GK |
12644 | fi |
12645 | ||
d1f8db0c PB |
12646 | else |
12647 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
e8b05380 PB |
12648 | fi |
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12654 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12656 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12657 | if test -x $with_build_time_tools/windres; then |
12658 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12659 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
5213506e RW |
12660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12661 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
d1f8db0c | 12662 | else |
5213506e RW |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12664 | $as_echo "no" >&6; } | |
d1f8db0c | 12665 | fi |
e8b05380 PB |
12666 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12667 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
1c00b503 PB |
12668 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12669 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
e8b05380 PB |
12670 | fi |
12671 | fi | |
3e19841a | 12672 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
e8b05380 PB |
12673 | # Extract the first word of "windres", so it can be a program name with args. |
12674 | set dummy windres; ac_word=$2 | |
5213506e RW |
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12676 | $as_echo_n "checking for $ac_word... " >&6; } | |
12677 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12678 | $as_echo_n "(cached) " >&6 | |
e8b05380 | 12679 | else |
1c710c3c DJ |
12680 | case $WINDRES_FOR_TARGET in |
12681 | [\\/]* | ?:[\\/]*) | |
e8b05380 PB |
12682 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12683 | ;; | |
e8b05380 | 12684 | *) |
1c710c3c DJ |
12685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12686 | for as_dir in $gcc_cv_tool_dirs | |
12687 | do | |
12688 | IFS=$as_save_IFS | |
12689 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12690 | for ac_exec_ext in '' $ac_executable_extensions; do |
12691 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12692 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12694 | break 2 |
12695 | fi | |
12696 | done | |
5213506e RW |
12697 | done |
12698 | IFS=$as_save_IFS | |
1c710c3c | 12699 | |
e8b05380 PB |
12700 | ;; |
12701 | esac | |
12702 | fi | |
1c710c3c | 12703 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
e8b05380 | 12704 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12706 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
e8b05380 | 12707 | else |
5213506e RW |
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12709 | $as_echo "no" >&6; } | |
e8b05380 PB |
12710 | fi |
12711 | ||
5213506e | 12712 | |
e8b05380 PB |
12713 | fi |
12714 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
278a7a38 AO |
12715 | |
12716 | ||
12717 | if test -n "$WINDRES_FOR_TARGET"; then | |
12718 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12719 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12720 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12721 | fi | |
12722 | ||
12723 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12724 | for ncn_progname in windres; do | |
12725 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12726 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12728 | $as_echo_n "checking for $ac_word... " >&6; } | |
12729 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12730 | $as_echo_n "(cached) " >&6 | |
278a7a38 AO |
12731 | else |
12732 | if test -n "$WINDRES_FOR_TARGET"; then | |
12733 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12734 | else | |
12735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12736 | for as_dir in $PATH | |
12737 | do | |
12738 | IFS=$as_save_IFS | |
12739 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12740 | for ac_exec_ext in '' $ac_executable_extensions; do |
12741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
278a7a38 | 12742 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 12743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
278a7a38 AO |
12744 | break 2 |
12745 | fi | |
12746 | done | |
5213506e RW |
12747 | done |
12748 | IFS=$as_save_IFS | |
278a7a38 AO |
12749 | |
12750 | fi | |
12751 | fi | |
12752 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12753 | if test -n "$WINDRES_FOR_TARGET"; then | |
5213506e RW |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12755 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
278a7a38 | 12756 | else |
5213506e RW |
12757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12758 | $as_echo "no" >&6; } | |
278a7a38 AO |
12759 | fi |
12760 | ||
5213506e | 12761 | |
278a7a38 AO |
12762 | done |
12763 | fi | |
12764 | ||
12765 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
e8b05380 | 12766 | for ncn_progname in windres; do |
5213506e RW |
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12768 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
d1f8db0c PB |
12769 | if test -x $with_build_time_tools/${ncn_progname}; then |
12770 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12772 | $as_echo "yes" >&6; } | |
e8b05380 PB |
12773 | break |
12774 | else | |
5213506e RW |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12776 | $as_echo "no" >&6; } | |
e8b05380 PB |
12777 | fi |
12778 | done | |
12779 | fi | |
12780 | ||
12781 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12782 | for ncn_progname in windres; do | |
12783 | if test -n "$ncn_target_tool_prefix"; then | |
12784 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12785 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
5213506e RW |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12787 | $as_echo_n "checking for $ac_word... " >&6; } | |
12788 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12789 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12790 | else |
4de997d1 PB |
12791 | if test -n "$WINDRES_FOR_TARGET"; then |
12792 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12793 | else |
1c710c3c DJ |
12794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12795 | for as_dir in $PATH | |
12796 | do | |
12797 | IFS=$as_save_IFS | |
12798 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12799 | for ac_exec_ext in '' $ac_executable_extensions; do |
12800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12801 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 12802 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12803 | break 2 |
12804 | fi | |
12805 | done | |
5213506e RW |
12806 | done |
12807 | IFS=$as_save_IFS | |
1c710c3c | 12808 | |
ca9f4b81 AO |
12809 | fi |
12810 | fi | |
1c710c3c | 12811 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
4de997d1 | 12812 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
12813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12814 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 12815 | else |
5213506e RW |
12816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12817 | $as_echo "no" >&6; } | |
ca9f4b81 AO |
12818 | fi |
12819 | ||
5213506e | 12820 | |
e8b05380 PB |
12821 | fi |
12822 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12823 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
2693c0b0 | 12824 | set dummy ${ncn_progname}; ac_word=$2 |
5213506e RW |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12826 | $as_echo_n "checking for $ac_word... " >&6; } | |
12827 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12828 | $as_echo_n "(cached) " >&6 | |
ca9f4b81 | 12829 | else |
2693c0b0 PB |
12830 | if test -n "$WINDRES_FOR_TARGET"; then |
12831 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
ca9f4b81 | 12832 | else |
1c710c3c DJ |
12833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12834 | for as_dir in $PATH | |
12835 | do | |
12836 | IFS=$as_save_IFS | |
12837 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12838 | for ac_exec_ext in '' $ac_executable_extensions; do |
12839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
1c710c3c | 12840 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
5213506e | 12841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1c710c3c DJ |
12842 | break 2 |
12843 | fi | |
12844 | done | |
5213506e RW |
12845 | done |
12846 | IFS=$as_save_IFS | |
1c710c3c | 12847 | |
ca9f4b81 AO |
12848 | fi |
12849 | fi | |
1c710c3c | 12850 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
2693c0b0 | 12851 | if test -n "$WINDRES_FOR_TARGET"; then |
5213506e RW |
12852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12853 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
ca9f4b81 | 12854 | else |
5213506e RW |
12855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12856 | $as_echo "no" >&6; } | |
ca9f4b81 | 12857 | fi |
1c710c3c | 12858 | |
5213506e | 12859 | |
e8b05380 PB |
12860 | fi |
12861 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
12862 | done | |
12863 | fi | |
1c710c3c | 12864 | |
2693c0b0 PB |
12865 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
12866 | set dummy windres | |
12867 | if test $build = $target ; then | |
12868 | WINDRES_FOR_TARGET="$2" | |
ca9f4b81 | 12869 | else |
2693c0b0 | 12870 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
ca9f4b81 | 12871 | fi |
1c00b503 PB |
12872 | else |
12873 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
ca9f4b81 AO |
12874 | fi |
12875 | ||
d1f8db0c PB |
12876 | else |
12877 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
e8b05380 PB |
12878 | fi |
12879 | ||
4977bab6 | 12880 | |
901119ae KT |
12881 | |
12882 | ||
12883 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12884 | if test -n "$with_build_time_tools"; then | |
5213506e RW |
12885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
12886 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
901119ae KT |
12887 | if test -x $with_build_time_tools/windmc; then |
12888 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
12889 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
5213506e RW |
12890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
12891 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
901119ae | 12892 | else |
5213506e RW |
12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12894 | $as_echo "no" >&6; } | |
901119ae KT |
12895 | fi |
12896 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12897 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
1c00b503 PB |
12898 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= |
12899 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
901119ae KT |
12900 | fi |
12901 | fi | |
12902 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12903 | # Extract the first word of "windmc", so it can be a program name with args. | |
12904 | set dummy windmc; ac_word=$2 | |
5213506e RW |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12906 | $as_echo_n "checking for $ac_word... " >&6; } | |
12907 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
12908 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
12909 | else |
12910 | case $WINDMC_FOR_TARGET in | |
12911 | [\\/]* | ?:[\\/]*) | |
12912 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
12913 | ;; | |
12914 | *) | |
12915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12916 | for as_dir in $gcc_cv_tool_dirs | |
12917 | do | |
12918 | IFS=$as_save_IFS | |
12919 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12920 | for ac_exec_ext in '' $ac_executable_extensions; do |
12921 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 12922 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
5213506e | 12923 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12924 | break 2 |
12925 | fi | |
12926 | done | |
5213506e RW |
12927 | done |
12928 | IFS=$as_save_IFS | |
901119ae KT |
12929 | |
12930 | ;; | |
12931 | esac | |
12932 | fi | |
12933 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
901119ae | 12934 | if test -n "$WINDMC_FOR_TARGET"; then |
5213506e RW |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12936 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 12937 | else |
5213506e RW |
12938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12939 | $as_echo "no" >&6; } | |
901119ae KT |
12940 | fi |
12941 | ||
5213506e | 12942 | |
901119ae KT |
12943 | fi |
12944 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12945 | ||
12946 | ||
12947 | if test -n "$WINDMC_FOR_TARGET"; then | |
12948 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12949 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12950 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12951 | fi | |
12952 | ||
12953 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12954 | for ncn_progname in windmc; do | |
12955 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12956 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12958 | $as_echo_n "checking for $ac_word... " >&6; } | |
12959 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12960 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
12961 | else |
12962 | if test -n "$WINDMC_FOR_TARGET"; then | |
12963 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
12964 | else | |
12965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12966 | for as_dir in $PATH | |
12967 | do | |
12968 | IFS=$as_save_IFS | |
12969 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
12970 | for ac_exec_ext in '' $ac_executable_extensions; do |
12971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 12972 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 12973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
12974 | break 2 |
12975 | fi | |
12976 | done | |
5213506e RW |
12977 | done |
12978 | IFS=$as_save_IFS | |
901119ae KT |
12979 | |
12980 | fi | |
12981 | fi | |
12982 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12983 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12985 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 12986 | else |
5213506e RW |
12987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12988 | $as_echo "no" >&6; } | |
901119ae KT |
12989 | fi |
12990 | ||
5213506e | 12991 | |
901119ae KT |
12992 | done |
12993 | fi | |
12994 | ||
12995 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12996 | for ncn_progname in windmc; do | |
5213506e RW |
12997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12998 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
901119ae KT |
12999 | if test -x $with_build_time_tools/${ncn_progname}; then |
13000 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
5213506e RW |
13001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13002 | $as_echo "yes" >&6; } | |
901119ae KT |
13003 | break |
13004 | else | |
5213506e RW |
13005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13006 | $as_echo "no" >&6; } | |
901119ae KT |
13007 | fi |
13008 | done | |
13009 | fi | |
13010 | ||
13011 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13012 | for ncn_progname in windmc; do | |
13013 | if test -n "$ncn_target_tool_prefix"; then | |
13014 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13015 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
5213506e RW |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13017 | $as_echo_n "checking for $ac_word... " >&6; } | |
13018 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13019 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13020 | else |
13021 | if test -n "$WINDMC_FOR_TARGET"; then | |
13022 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13023 | else | |
13024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13025 | for as_dir in $PATH | |
13026 | do | |
13027 | IFS=$as_save_IFS | |
13028 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13029 | for ac_exec_ext in '' $ac_executable_extensions; do |
13030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13031 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
5213506e | 13032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13033 | break 2 |
13034 | fi | |
13035 | done | |
5213506e RW |
13036 | done |
13037 | IFS=$as_save_IFS | |
901119ae KT |
13038 | |
13039 | fi | |
13040 | fi | |
13041 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13042 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13044 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13045 | else |
5213506e RW |
13046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13047 | $as_echo "no" >&6; } | |
901119ae KT |
13048 | fi |
13049 | ||
5213506e | 13050 | |
901119ae KT |
13051 | fi |
13052 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13053 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13054 | set dummy ${ncn_progname}; ac_word=$2 | |
5213506e RW |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13056 | $as_echo_n "checking for $ac_word... " >&6; } | |
13057 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13058 | $as_echo_n "(cached) " >&6 | |
901119ae KT |
13059 | else |
13060 | if test -n "$WINDMC_FOR_TARGET"; then | |
13061 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13062 | else | |
13063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13064 | for as_dir in $PATH | |
13065 | do | |
13066 | IFS=$as_save_IFS | |
13067 | test -z "$as_dir" && as_dir=. | |
5213506e RW |
13068 | for ac_exec_ext in '' $ac_executable_extensions; do |
13069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
901119ae | 13070 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
5213506e | 13071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
901119ae KT |
13072 | break 2 |
13073 | fi | |
13074 | done | |
5213506e RW |
13075 | done |
13076 | IFS=$as_save_IFS | |
901119ae KT |
13077 | |
13078 | fi | |
13079 | fi | |
13080 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13081 | if test -n "$WINDMC_FOR_TARGET"; then | |
5213506e RW |
13082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13083 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
901119ae | 13084 | else |
5213506e RW |
13085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13086 | $as_echo "no" >&6; } | |
901119ae KT |
13087 | fi |
13088 | ||
5213506e | 13089 | |
901119ae KT |
13090 | fi |
13091 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13092 | done | |
13093 | fi | |
13094 | ||
13095 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13096 | set dummy windmc | |
13097 | if test $build = $target ; then | |
13098 | WINDMC_FOR_TARGET="$2" | |
13099 | else | |
13100 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13101 | fi | |
1c00b503 PB |
13102 | else |
13103 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
901119ae KT |
13104 | fi |
13105 | ||
13106 | else | |
13107 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13108 | fi | |
13109 | ||
13110 | ||
2abefe3d PB |
13111 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13112 | ||
5213506e RW |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13114 | $as_echo_n "checking where to find the target ar... " >&6; } | |
2abefe3d | 13115 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13116 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13117 | # We already found the complete path | |
172e41aa | 13118 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13120 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13121 | else |
13122 | # Canadian cross, just use what we found | |
5213506e RW |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13124 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13125 | fi |
2abefe3d PB |
13126 | else |
13127 | ok=yes | |
13128 | case " ${configdirs} " in | |
13129 | *" binutils "*) ;; | |
13130 | *) ok=no ;; | |
13131 | esac | |
1c710c3c | 13132 | |
2abefe3d PB |
13133 | if test $ok = yes; then |
13134 | # An in-tree tool is available and we can use it | |
13135 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
5213506e RW |
13136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13137 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13138 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13139 | # We already found the complete path | |
172e41aa | 13140 | ac_dir=`dirname $AR_FOR_TARGET` |
5213506e RW |
13141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13142 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13143 | elif test "x$target" = "x$host"; then |
13144 | # We can use an host tool | |
13145 | AR_FOR_TARGET='$(AR)' | |
5213506e RW |
13146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13147 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13148 | else |
13149 | # We need a cross tool | |
5213506e RW |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13151 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13152 | fi |
13153 | fi | |
0b0dc272 | 13154 | |
5213506e RW |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13156 | $as_echo_n "checking where to find the target as... " >&6; } | |
2abefe3d | 13157 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13158 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13159 | # We already found the complete path | |
172e41aa | 13160 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13162 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13163 | else |
13164 | # Canadian cross, just use what we found | |
5213506e RW |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13166 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13167 | fi |
2abefe3d PB |
13168 | else |
13169 | ok=yes | |
13170 | case " ${configdirs} " in | |
13171 | *" gas "*) ;; | |
13172 | *) ok=no ;; | |
13173 | esac | |
1c710c3c | 13174 | |
2abefe3d PB |
13175 | if test $ok = yes; then |
13176 | # An in-tree tool is available and we can use it | |
13177 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
5213506e RW |
13178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13179 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13180 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13181 | # We already found the complete path | |
172e41aa | 13182 | ac_dir=`dirname $AS_FOR_TARGET` |
5213506e RW |
13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13184 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13185 | elif test "x$target" = "x$host"; then |
13186 | # We can use an host tool | |
13187 | AS_FOR_TARGET='$(AS)' | |
5213506e RW |
13188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13189 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13190 | else |
13191 | # We need a cross tool | |
5213506e RW |
13192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13193 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13194 | fi |
13195 | fi | |
0b0dc272 | 13196 | |
5213506e RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13198 | $as_echo_n "checking where to find the target cc... " >&6; } | |
2abefe3d | 13199 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13200 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13201 | # We already found the complete path | |
172e41aa | 13202 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13204 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13205 | else |
13206 | # Canadian cross, just use what we found | |
5213506e RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13208 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13209 | fi |
2abefe3d PB |
13210 | else |
13211 | ok=yes | |
13212 | case " ${configdirs} " in | |
13213 | *" gcc "*) ;; | |
13214 | *) ok=no ;; | |
13215 | esac | |
1c710c3c | 13216 | |
2abefe3d PB |
13217 | if test $ok = yes; then |
13218 | # An in-tree tool is available and we can use it | |
13219 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13221 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13222 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13223 | # We already found the complete path | |
172e41aa | 13224 | ac_dir=`dirname $CC_FOR_TARGET` |
5213506e RW |
13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13226 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13227 | elif test "x$target" = "x$host"; then |
13228 | # We can use an host tool | |
13229 | CC_FOR_TARGET='$(CC)' | |
5213506e RW |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13231 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13232 | else |
13233 | # We need a cross tool | |
5213506e RW |
13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13235 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13236 | fi |
13237 | fi | |
0b0dc272 | 13238 | |
5213506e RW |
13239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13240 | $as_echo_n "checking where to find the target c++... " >&6; } | |
2abefe3d | 13241 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13242 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13243 | # We already found the complete path | |
172e41aa | 13244 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13246 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13247 | else |
13248 | # Canadian cross, just use what we found | |
5213506e RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13250 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13251 | fi |
2abefe3d PB |
13252 | else |
13253 | ok=yes | |
13254 | case " ${configdirs} " in | |
13255 | *" gcc "*) ;; | |
13256 | *) ok=no ;; | |
13257 | esac | |
13258 | case ,${enable_languages}, in | |
13259 | *,c++,*) ;; | |
13260 | *) ok=no ;; | |
13261 | esac | |
13262 | if test $ok = yes; then | |
13263 | # An in-tree tool is available and we can use it | |
9aff220f | 13264 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
5213506e RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13266 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13267 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13268 | # We already found the complete path | |
172e41aa | 13269 | ac_dir=`dirname $CXX_FOR_TARGET` |
5213506e RW |
13270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13271 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13272 | elif test "x$target" = "x$host"; then |
13273 | # We can use an host tool | |
13274 | CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13276 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13277 | else |
13278 | # We need a cross tool | |
5213506e RW |
13279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13280 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13281 | fi |
13282 | fi | |
0b0dc272 | 13283 | |
5213506e RW |
13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13285 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
2abefe3d | 13286 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13287 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13288 | # We already found the complete path | |
172e41aa | 13289 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13291 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13292 | else |
13293 | # Canadian cross, just use what we found | |
5213506e RW |
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13295 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13296 | fi |
2abefe3d PB |
13297 | else |
13298 | ok=yes | |
13299 | case " ${configdirs} " in | |
13300 | *" gcc "*) ;; | |
13301 | *) ok=no ;; | |
13302 | esac | |
13303 | case ,${enable_languages}, in | |
13304 | *,c++,*) ;; | |
13305 | *) ok=no ;; | |
13306 | esac | |
13307 | if test $ok = yes; then | |
13308 | # An in-tree tool is available and we can use it | |
13309 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' | |
5213506e RW |
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13311 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13312 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13313 | # We already found the complete path | |
172e41aa | 13314 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
5213506e RW |
13315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13316 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13317 | elif test "x$target" = "x$host"; then |
13318 | # We can use an host tool | |
13319 | RAW_CXX_FOR_TARGET='$(CXX)' | |
5213506e RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13321 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13322 | else |
13323 | # We need a cross tool | |
5213506e RW |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13325 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13326 | fi |
13327 | fi | |
0b0dc272 | 13328 | |
5213506e RW |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13330 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
2abefe3d | 13331 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13332 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13333 | # We already found the complete path | |
172e41aa | 13334 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13336 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13337 | else |
13338 | # Canadian cross, just use what we found | |
5213506e RW |
13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13340 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13341 | fi |
2abefe3d PB |
13342 | else |
13343 | ok=yes | |
13344 | case " ${configdirs} " in | |
13345 | *" binutils "*) ;; | |
13346 | *) ok=no ;; | |
13347 | esac | |
1c710c3c | 13348 | |
2abefe3d PB |
13349 | if test $ok = yes; then |
13350 | # An in-tree tool is available and we can use it | |
13351 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
5213506e RW |
13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13353 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13354 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13355 | # We already found the complete path | |
172e41aa | 13356 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
5213506e RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13358 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13359 | elif test "x$target" = "x$host"; then |
13360 | # We can use an host tool | |
13361 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
5213506e RW |
13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13363 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13364 | else |
13365 | # We need a cross tool | |
5213506e RW |
13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13367 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13368 | fi |
13369 | fi | |
0b0dc272 | 13370 | |
5213506e RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13372 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
2abefe3d | 13373 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13374 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13375 | # We already found the complete path | |
172e41aa | 13376 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13378 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13379 | else |
13380 | # Canadian cross, just use what we found | |
5213506e RW |
13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13382 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13383 | fi |
2abefe3d PB |
13384 | else |
13385 | ok=yes | |
13386 | case " ${configdirs} " in | |
13387 | *" gcc "*) ;; | |
13388 | *) ok=no ;; | |
13389 | esac | |
1c710c3c | 13390 | |
2abefe3d PB |
13391 | if test $ok = yes; then |
13392 | # An in-tree tool is available and we can use it | |
13393 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13395 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13396 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13397 | # We already found the complete path | |
172e41aa | 13398 | ac_dir=`dirname $GCC_FOR_TARGET` |
5213506e RW |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13400 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13401 | elif test "x$target" = "x$host"; then |
13402 | # We can use an host tool | |
13403 | GCC_FOR_TARGET='$()' | |
5213506e RW |
13404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13405 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13406 | else |
13407 | # We need a cross tool | |
5213506e RW |
13408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13409 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13410 | fi |
13411 | fi | |
0b0dc272 | 13412 | |
5213506e RW |
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13414 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
2abefe3d | 13415 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13416 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13417 | # We already found the complete path | |
172e41aa | 13418 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13420 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13421 | else |
13422 | # Canadian cross, just use what we found | |
5213506e RW |
13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13424 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13425 | fi |
2abefe3d PB |
13426 | else |
13427 | ok=yes | |
13428 | case " ${configdirs} " in | |
13429 | *" gcc "*) ;; | |
13430 | *) ok=no ;; | |
13431 | esac | |
13432 | case ,${enable_languages}, in | |
13433 | *,java,*) ;; | |
13434 | *) ok=no ;; | |
13435 | esac | |
13436 | if test $ok = yes; then | |
13437 | # An in-tree tool is available and we can use it | |
13438 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13440 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13441 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13442 | # We already found the complete path | |
172e41aa | 13443 | ac_dir=`dirname $GCJ_FOR_TARGET` |
5213506e RW |
13444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13445 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13446 | elif test "x$target" = "x$host"; then |
13447 | # We can use an host tool | |
13448 | GCJ_FOR_TARGET='$(GCJ)' | |
5213506e RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13450 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13451 | else |
13452 | # We need a cross tool | |
5213506e RW |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13454 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13455 | fi |
13456 | fi | |
0b0dc272 | 13457 | |
5213506e RW |
13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13459 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
2abefe3d | 13460 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13461 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13462 | # We already found the complete path | |
172e41aa | 13463 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13465 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13466 | else |
13467 | # Canadian cross, just use what we found | |
5213506e RW |
13468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13469 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13470 | fi |
2abefe3d PB |
13471 | else |
13472 | ok=yes | |
13473 | case " ${configdirs} " in | |
13474 | *" gcc "*) ;; | |
13475 | *) ok=no ;; | |
13476 | esac | |
13477 | case ,${enable_languages}, in | |
13478 | *,fortran,*) ;; | |
13479 | *) ok=no ;; | |
13480 | esac | |
13481 | if test $ok = yes; then | |
13482 | # An in-tree tool is available and we can use it | |
13483 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
5213506e RW |
13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13485 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13486 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13487 | # We already found the complete path | |
172e41aa | 13488 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
5213506e RW |
13489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13490 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13491 | elif test "x$target" = "x$host"; then |
13492 | # We can use an host tool | |
13493 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
5213506e RW |
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13495 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13496 | else |
13497 | # We need a cross tool | |
5213506e RW |
13498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13499 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13500 | fi |
13501 | fi | |
0b0dc272 | 13502 | |
632e2a07 ILT |
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13504 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13505 | if test "x${build}" != "x${host}" ; then | |
13506 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13507 | # We already found the complete path | |
13508 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13510 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13511 | else | |
13512 | # Canadian cross, just use what we found | |
13513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13514 | $as_echo "pre-installed" >&6; } | |
13515 | fi | |
13516 | else | |
13517 | ok=yes | |
13518 | case " ${configdirs} " in | |
13519 | *" gcc "*) ;; | |
13520 | *) ok=no ;; | |
13521 | esac | |
13522 | case ,${enable_languages}, in | |
13523 | *,go,*) ;; | |
13524 | *) ok=no ;; | |
13525 | esac | |
13526 | if test $ok = yes; then | |
13527 | # An in-tree tool is available and we can use it | |
13528 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13530 | $as_echo "just compiled" >&6; } | |
13531 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13532 | # We already found the complete path | |
13533 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13535 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13536 | elif test "x$target" = "x$host"; then | |
13537 | # We can use an host tool | |
13538 | GOC_FOR_TARGET='$(GOC)' | |
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13540 | $as_echo "host tool" >&6; } | |
13541 | else | |
13542 | # We need a cross tool | |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13544 | $as_echo "pre-installed" >&6; } | |
13545 | fi | |
13546 | fi | |
13547 | ||
5213506e RW |
13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13549 | $as_echo_n "checking where to find the target ld... " >&6; } | |
2abefe3d | 13550 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13551 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13552 | # We already found the complete path | |
172e41aa | 13553 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
13554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13555 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13556 | else |
13557 | # Canadian cross, just use what we found | |
5213506e RW |
13558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13559 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13560 | fi |
2abefe3d PB |
13561 | else |
13562 | ok=yes | |
13563 | case " ${configdirs} " in | |
13564 | *" ld "*) ;; | |
13565 | *) ok=no ;; | |
13566 | esac | |
1c710c3c | 13567 | |
2abefe3d PB |
13568 | if test $ok = yes; then |
13569 | # An in-tree tool is available and we can use it | |
13570 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
5213506e RW |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13572 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13573 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13574 | # We already found the complete path | |
172e41aa | 13575 | ac_dir=`dirname $LD_FOR_TARGET` |
5213506e RW |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13577 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13578 | elif test "x$target" = "x$host"; then |
13579 | # We can use an host tool | |
13580 | LD_FOR_TARGET='$(LD)' | |
5213506e RW |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13582 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13583 | else |
13584 | # We need a cross tool | |
5213506e RW |
13585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13586 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13587 | fi |
13588 | fi | |
0b0dc272 | 13589 | |
5213506e RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13591 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
2abefe3d | 13592 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13593 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13594 | # We already found the complete path | |
172e41aa | 13595 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13597 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13598 | else |
13599 | # Canadian cross, just use what we found | |
5213506e RW |
13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13601 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13602 | fi |
2abefe3d | 13603 | else |
e8b05380 PB |
13604 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13605 | # We already found the complete path | |
172e41aa | 13606 | ac_dir=`dirname $LIPO_FOR_TARGET` |
5213506e RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13608 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 | 13609 | elif test "x$target" = "x$host"; then |
2abefe3d PB |
13610 | # We can use an host tool |
13611 | LIPO_FOR_TARGET='$(LIPO)' | |
5213506e RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13613 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13614 | else |
13615 | # We need a cross tool | |
5213506e RW |
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13617 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13618 | fi |
13619 | fi | |
0b0dc272 | 13620 | |
5213506e RW |
13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13622 | $as_echo_n "checking where to find the target nm... " >&6; } | |
2abefe3d | 13623 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13624 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13625 | # We already found the complete path | |
172e41aa | 13626 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13628 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13629 | else |
13630 | # Canadian cross, just use what we found | |
5213506e RW |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13632 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13633 | fi |
2abefe3d PB |
13634 | else |
13635 | ok=yes | |
13636 | case " ${configdirs} " in | |
13637 | *" binutils "*) ;; | |
13638 | *) ok=no ;; | |
13639 | esac | |
1c710c3c | 13640 | |
2abefe3d PB |
13641 | if test $ok = yes; then |
13642 | # An in-tree tool is available and we can use it | |
13643 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
5213506e RW |
13644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13645 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13646 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13647 | # We already found the complete path | |
172e41aa | 13648 | ac_dir=`dirname $NM_FOR_TARGET` |
5213506e RW |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13650 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13651 | elif test "x$target" = "x$host"; then |
13652 | # We can use an host tool | |
13653 | NM_FOR_TARGET='$(NM)' | |
5213506e RW |
13654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13655 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13656 | else |
13657 | # We need a cross tool | |
5213506e RW |
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13659 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13660 | fi |
13661 | fi | |
0b0dc272 | 13662 | |
5213506e RW |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13664 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
2abefe3d | 13665 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13666 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13667 | # We already found the complete path | |
172e41aa | 13668 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
13669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13670 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13671 | else |
13672 | # Canadian cross, just use what we found | |
5213506e RW |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13674 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13675 | fi |
2abefe3d PB |
13676 | else |
13677 | ok=yes | |
13678 | case " ${configdirs} " in | |
13679 | *" binutils "*) ;; | |
13680 | *) ok=no ;; | |
13681 | esac | |
1c710c3c | 13682 | |
2abefe3d PB |
13683 | if test $ok = yes; then |
13684 | # An in-tree tool is available and we can use it | |
13685 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
5213506e RW |
13686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13687 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13688 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13689 | # We already found the complete path | |
172e41aa | 13690 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
5213506e RW |
13691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13692 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13693 | elif test "x$target" = "x$host"; then |
13694 | # We can use an host tool | |
13695 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
5213506e RW |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13697 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13698 | else |
13699 | # We need a cross tool | |
5213506e RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13701 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13702 | fi |
13703 | fi | |
0b0dc272 | 13704 | |
5213506e RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13706 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
2abefe3d | 13707 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13708 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13709 | # We already found the complete path | |
172e41aa | 13710 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13712 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13713 | else |
13714 | # Canadian cross, just use what we found | |
5213506e RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13716 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13717 | fi |
2abefe3d PB |
13718 | else |
13719 | ok=yes | |
13720 | case " ${configdirs} " in | |
13721 | *" binutils "*) ;; | |
13722 | *) ok=no ;; | |
13723 | esac | |
1c710c3c | 13724 | |
2abefe3d PB |
13725 | if test $ok = yes; then |
13726 | # An in-tree tool is available and we can use it | |
13727 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
5213506e RW |
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13729 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13730 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13731 | # We already found the complete path | |
172e41aa | 13732 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
5213506e RW |
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13734 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13735 | elif test "x$target" = "x$host"; then |
13736 | # We can use an host tool | |
13737 | RANLIB_FOR_TARGET='$(RANLIB)' | |
5213506e RW |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13739 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13740 | else |
13741 | # We need a cross tool | |
5213506e RW |
13742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13743 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13744 | fi |
13745 | fi | |
0b0dc272 | 13746 | |
5213506e RW |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13748 | $as_echo_n "checking where to find the target strip... " >&6; } | |
2abefe3d | 13749 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13750 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13751 | # We already found the complete path | |
172e41aa | 13752 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13754 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13755 | else |
13756 | # Canadian cross, just use what we found | |
5213506e RW |
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13758 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13759 | fi |
2abefe3d PB |
13760 | else |
13761 | ok=yes | |
13762 | case " ${configdirs} " in | |
13763 | *" binutils "*) ;; | |
13764 | *) ok=no ;; | |
13765 | esac | |
1c710c3c | 13766 | |
2abefe3d PB |
13767 | if test $ok = yes; then |
13768 | # An in-tree tool is available and we can use it | |
455c8f48 | 13769 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
5213506e RW |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13771 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13772 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13773 | # We already found the complete path | |
172e41aa | 13774 | ac_dir=`dirname $STRIP_FOR_TARGET` |
5213506e RW |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13776 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13777 | elif test "x$target" = "x$host"; then |
13778 | # We can use an host tool | |
13779 | STRIP_FOR_TARGET='$(STRIP)' | |
5213506e RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13781 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13782 | else |
13783 | # We need a cross tool | |
5213506e RW |
13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13785 | $as_echo "pre-installed" >&6; } | |
2abefe3d PB |
13786 | fi |
13787 | fi | |
0b0dc272 | 13788 | |
5213506e RW |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13790 | $as_echo_n "checking where to find the target windres... " >&6; } | |
2abefe3d | 13791 | if test "x${build}" != "x${host}" ; then |
e8b05380 PB |
13792 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13793 | # We already found the complete path | |
172e41aa | 13794 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13796 | $as_echo "pre-installed in $ac_dir" >&6; } | |
e8b05380 PB |
13797 | else |
13798 | # Canadian cross, just use what we found | |
5213506e RW |
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13800 | $as_echo "pre-installed" >&6; } | |
e8b05380 | 13801 | fi |
2abefe3d PB |
13802 | else |
13803 | ok=yes | |
13804 | case " ${configdirs} " in | |
13805 | *" binutils "*) ;; | |
13806 | *) ok=no ;; | |
13807 | esac | |
1c710c3c | 13808 | |
2abefe3d PB |
13809 | if test $ok = yes; then |
13810 | # An in-tree tool is available and we can use it | |
13811 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
5213506e RW |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13813 | $as_echo "just compiled" >&6; } | |
e8b05380 PB |
13814 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13815 | # We already found the complete path | |
172e41aa | 13816 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
5213506e RW |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13818 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2abefe3d PB |
13819 | elif test "x$target" = "x$host"; then |
13820 | # We can use an host tool | |
13821 | WINDRES_FOR_TARGET='$(WINDRES)' | |
5213506e RW |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13823 | $as_echo "host tool" >&6; } | |
2abefe3d PB |
13824 | else |
13825 | # We need a cross tool | |
5213506e RW |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13827 | $as_echo "pre-installed" >&6; } | |
2abefe3d | 13828 | fi |
671aa708 | 13829 | fi |
be912515 | 13830 | |
5213506e RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
13832 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
901119ae KT |
13833 | if test "x${build}" != "x${host}" ; then |
13834 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
13835 | # We already found the complete path | |
13836 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
5213506e RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13838 | $as_echo "pre-installed in $ac_dir" >&6; } | |
901119ae KT |
13839 | else |
13840 | # Canadian cross, just use what we found | |
5213506e RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13842 | $as_echo "pre-installed" >&6; } | |
901119ae KT |
13843 | fi |
13844 | else | |
13845 | ok=yes | |
13846 | case " ${configdirs} " in | |
13847 | *" binutils "*) ;; | |
13848 | *) ok=no ;; | |
13849 | esac | |
13850 | ||
13851 | if test $ok = yes; then | |
13852 | # An in-tree tool is available and we can use it | |
13853 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
5213506e RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13855 | $as_echo "just compiled" >&6; } | |
901119ae KT |
13856 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
13857 | # We already found the complete path | |
13858 | ac_dir=`dirname $WINDMC_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; } | |
901119ae KT |
13861 | elif test "x$target" = "x$host"; then |
13862 | # We can use an host tool | |
13863 | WINDMC_FOR_TARGET='$(WINDMC)' | |
5213506e RW |
13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13865 | $as_echo "host tool" >&6; } | |
901119ae KT |
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; } | |
901119ae KT |
13870 | fi |
13871 | fi | |
13872 | ||
be912515 NN |
13873 | |
13874 | ||
2abefe3d | 13875 | |
0b0dc272 | 13876 | |
671aa708 NN |
13877 | # Certain tools may need extra flags. |
13878 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
13879 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
13880 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
13881 | ||
2abefe3d PB |
13882 | # When building target libraries, except in a Canadian cross, we use |
13883 | # the same toolchain as the compiler we just built. | |
13884 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
13885 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
13886 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
13887 | if test $host = $build; then | |
13888 | case " $configdirs " in | |
13889 | *" gcc "*) | |
13890 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
13891 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
13892 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
13893 | ;; | |
13894 | esac | |
13895 | fi | |
13896 | ||
13897 | ||
13898 | ||
13899 | ||
13900 | ||
5213506e RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13902 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13903 | # Check whether --enable-maintainer-mode was given. | |
13904 | if test "${enable_maintainer_mode+set}" = set; then : | |
13905 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
ee03dc5e AO |
13906 | else |
13907 | USE_MAINTAINER_MODE=no | |
5213506e RW |
13908 | fi |
13909 | ||
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13911 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
ee03dc5e AO |
13912 | |
13913 | ||
13914 | if test "$USE_MAINTAINER_MODE" = yes; then | |
13915 | MAINTAINER_MODE_TRUE= | |
13916 | MAINTAINER_MODE_FALSE='#' | |
13917 | else | |
13918 | MAINTAINER_MODE_TRUE='#' | |
13919 | MAINTAINER_MODE_FALSE= | |
1c710c3c | 13920 | fi |
ee03dc5e AO |
13921 | MAINT=$MAINTAINER_MODE_TRUE |
13922 | ||
2805b53a NN |
13923 | # --------------------- |
13924 | # GCC bootstrap support | |
13925 | # --------------------- | |
13926 | ||
13927 | # Stage specific cflags for build. | |
13928 | stage1_cflags="-g" | |
13929 | case $build in | |
13930 | vax-*-*) | |
13931 | case ${GCC} in | |
13932 | yes) stage1_cflags="-g -Wa,-J" ;; | |
13933 | *) stage1_cflags="-g -J" ;; | |
13934 | esac ;; | |
2805b53a NN |
13935 | esac |
13936 | ||
0b50988a | 13937 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
00020c16 | 13938 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
0b50988a EB |
13939 | saved_CFLAGS="$CFLAGS" |
13940 | ||
13941 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
13942 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
5213506e RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
13944 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
13945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1c710c3c DJ |
13946 | /* end confdefs.h. */ |
13947 | ||
9cc1244e JJ |
13948 | #if (__GNUC__ < 3) \ |
13949 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
13950 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
13951 | #error http://gcc.gnu.org/PR29382 | |
13952 | #endif | |
13953 | ||
1c710c3c DJ |
13954 | int |
13955 | main () | |
13956 | { | |
13957 | ||
13958 | ; | |
13959 | return 0; | |
13960 | } | |
13961 | _ACEOF | |
5213506e RW |
13962 | if ac_fn_c_try_compile "$LINENO"; then : |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13964 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
1c710c3c | 13965 | else |
5213506e RW |
13966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13967 | $as_echo "no" >&6; } | |
1c710c3c | 13968 | fi |
5213506e | 13969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0b50988a EB |
13970 | |
13971 | CFLAGS="$saved_CFLAGS" | |
13972 | fi | |
13973 | ||
13974 | ||
2805b53a | 13975 | |
8efea775 | 13976 | # Enable --enable-checking in stage1 of the compiler. |
5213506e RW |
13977 | # Check whether --enable-stage1-checking was given. |
13978 | if test "${enable_stage1_checking+set}" = set; then : | |
13979 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8efea775 | 13980 | else |
e643dc23 | 13981 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
7e98624c | 13982 | stage1_checking=--enable-checking=yes,types |
8efea775 | 13983 | else |
e643dc23 | 13984 | stage1_checking=--enable-checking=$enable_checking,types |
8efea775 | 13985 | fi |
5213506e | 13986 | fi |
8efea775 PB |
13987 | |
13988 | ||
2aeb72e9 | 13989 | |
5213506e RW |
13990 | # Enable -Werror in bootstrap stage2 and later. |
13991 | # Check whether --enable-werror was given. | |
13992 | if test "${enable_werror+set}" = set; then : | |
13993 | enableval=$enable_werror; | |
2805b53a | 13994 | else |
416cfb5e | 13995 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
2805b53a | 13996 | enable_werror=yes |
88fceb68 PB |
13997 | else |
13998 | enable_werror=no | |
13999 | fi | |
5213506e RW |
14000 | fi |
14001 | ||
09a9c095 NN |
14002 | case ${enable_werror} in |
14003 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14004 | *) stage2_werror_flag="" ;; | |
2805b53a NN |
14005 | esac |
14006 | ||
14007 | ||
78767fd9 ILT |
14008 | # If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass |
14009 | # --enable-build-with-cxx after stage1. | |
14010 | if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then | |
14011 | POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx | |
14012 | else | |
14013 | POSTSTAGE1_CONFIGURE_FLAGS= | |
14014 | fi | |
14015 | ||
14016 | ||
f2689b09 SE |
14017 | # Specify what files to not compare during bootstrap. |
14018 | ||
14019 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14020 | case "$target" in | |
14021 | hppa*64*-*-hpux*) ;; | |
14022 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14023 | esac | |
f61428ed AO |
14024 | case " $configdirs " in |
14025 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
14026 | esac | |
f2689b09 SE |
14027 | |
14028 | ||
5213506e RW |
14029 | ac_config_files="$ac_config_files Makefile" |
14030 | ||
1c710c3c | 14031 | cat >confcache <<\_ACEOF |
671aa708 NN |
14032 | # This file is a shell script that caches the results of configure |
14033 | # tests run on this system so they can be shared between configure | |
1c710c3c DJ |
14034 | # scripts and configure runs, see configure's option --config-cache. |
14035 | # It is not useful on other systems. If it contains results you don't | |
14036 | # want to keep, you may remove or edit it. | |
671aa708 | 14037 | # |
1c710c3c DJ |
14038 | # config.status only pays attention to the cache file if you give it |
14039 | # the --recheck option to rerun configure. | |
671aa708 | 14040 | # |
1c710c3c DJ |
14041 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14042 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14043 | # following values. | |
14044 | ||
14045 | _ACEOF | |
14046 | ||
671aa708 NN |
14047 | # The following way of writing the cache mishandles newlines in values, |
14048 | # but we know of no workaround that is simple, portable, and efficient. | |
5213506e | 14049 | # So, we kill variables containing newlines. |
671aa708 NN |
14050 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14051 | # and sets the high bit in the cache file unless we assign to the vars. | |
5213506e RW |
14052 | ( |
14053 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14054 | eval ac_val=\$$ac_var | |
14055 | case $ac_val in #( | |
14056 | *${as_nl}*) | |
14057 | case $ac_var in #( | |
14058 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14059 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14060 | esac | |
14061 | case $ac_var in #( | |
14062 | _ | IFS | as_nl) ;; #( | |
14063 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14064 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14065 | esac ;; | |
14066 | esac | |
14067 | done | |
14068 | ||
1c710c3c | 14069 | (set) 2>&1 | |
5213506e RW |
14070 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14071 | *${as_nl}ac_space=\ *) | |
14072 | # `set' does not quote correctly, so add quotes: double-quote | |
14073 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
1c710c3c DJ |
14074 | sed -n \ |
14075 | "s/'/'\\\\''/g; | |
14076 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5213506e | 14077 | ;; #( |
1c710c3c DJ |
14078 | *) |
14079 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5213506e | 14080 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1c710c3c | 14081 | ;; |
5213506e RW |
14082 | esac | |
14083 | sort | |
14084 | ) | | |
1c710c3c | 14085 | sed ' |
5213506e | 14086 | /^ac_cv_env_/b end |
1c710c3c | 14087 | t clear |
5213506e | 14088 | :clear |
1c710c3c DJ |
14089 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14090 | t end | |
5213506e RW |
14091 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14092 | :end' >>confcache | |
14093 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14094 | if test -w "$cache_file"; then | |
14095 | test "x$cache_file" != "x/dev/null" && | |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14097 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
1c710c3c | 14098 | cat confcache >$cache_file |
671aa708 | 14099 | else |
5213506e RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14101 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
671aa708 | 14102 | fi |
4977bab6 | 14103 | fi |
671aa708 | 14104 | rm -f confcache |
79c06341 | 14105 | |
671aa708 NN |
14106 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14107 | # Let make expand exec_prefix. | |
14108 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4e77e8f1 | 14109 | |
671aa708 NN |
14110 | # Transform confdefs.h into DEFS. |
14111 | # Protect against shell expansion while executing Makefile rules. | |
14112 | # Protect against Makefile macro expansion. | |
1c710c3c DJ |
14113 | # |
14114 | # If the first sed substitution is executed (which looks for macros that | |
5213506e | 14115 | # take arguments), then branch to the quote section. Otherwise, |
1c710c3c | 14116 | # look for a macro that doesn't take arguments. |
5213506e RW |
14117 | ac_script=' |
14118 | :mline | |
14119 | /\\$/{ | |
14120 | N | |
14121 | s,\\\n,, | |
14122 | b mline | |
14123 | } | |
1c710c3c | 14124 | t clear |
5213506e RW |
14125 | :clear |
14126 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
1c710c3c | 14127 | t quote |
5213506e | 14128 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
1c710c3c | 14129 | t quote |
5213506e RW |
14130 | b any |
14131 | :quote | |
14132 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14133 | s/\[/\\&/g | |
14134 | s/\]/\\&/g | |
14135 | s/\$/$$/g | |
14136 | H | |
14137 | :any | |
14138 | ${ | |
14139 | g | |
14140 | s/^\n// | |
14141 | s/\n/ /g | |
14142 | p | |
14143 | } | |
14144 | ' | |
14145 | DEFS=`sed -n "$ac_script" confdefs.h` | |
1c710c3c DJ |
14146 | |
14147 | ||
14148 | ac_libobjs= | |
14149 | ac_ltlibobjs= | |
14150 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14151 | # 1. Remove the extension, and $U if already installed. | |
5213506e RW |
14152 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14153 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14154 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14155 | # will be set to the directory where LIBOBJS objects are built. | |
14156 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14157 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
1c710c3c DJ |
14158 | done |
14159 | LIBOBJS=$ac_libobjs | |
fb0103e5 | 14160 | |
1c710c3c | 14161 | LTLIBOBJS=$ac_ltlibobjs |
0b0dc272 | 14162 | |
af71363e | 14163 | |
1c710c3c DJ |
14164 | |
14165 | : ${CONFIG_STATUS=./config.status} | |
5213506e | 14166 | ac_write_fail=0 |
1c710c3c DJ |
14167 | ac_clean_files_save=$ac_clean_files |
14168 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5213506e RW |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14170 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14171 | as_write_fail=0 | |
14172 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
1c710c3c DJ |
14173 | #! $SHELL |
14174 | # Generated by $as_me. | |
671aa708 | 14175 | # Run this file to recreate the current configuration. |
671aa708 | 14176 | # Compiler output produced by configure, useful for debugging |
1c710c3c | 14177 | # configure, is in config.log if it exists. |
0b0dc272 | 14178 | |
1c710c3c DJ |
14179 | debug=false |
14180 | ac_cs_recheck=false | |
14181 | ac_cs_silent=false | |
1c710c3c | 14182 | |
5213506e RW |
14183 | SHELL=\${CONFIG_SHELL-$SHELL} |
14184 | export SHELL | |
14185 | _ASEOF | |
14186 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14187 | ## -------------------- ## | |
14188 | ## M4sh Initialization. ## | |
14189 | ## -------------------- ## | |
14190 | ||
14191 | # Be more Bourne compatible | |
14192 | DUALCASE=1; export DUALCASE # for MKS sh | |
14193 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
1c710c3c DJ |
14194 | emulate sh |
14195 | NULLCMD=: | |
5213506e | 14196 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
1c710c3c DJ |
14197 | # is contrary to our usage. Disable this feature. |
14198 | alias -g '${1+"$@"}'='"$@"' | |
5213506e RW |
14199 | setopt NO_GLOB_SUBST |
14200 | else | |
14201 | case `(set -o) 2>/dev/null` in #( | |
14202 | *posix*) : | |
14203 | set -o posix ;; #( | |
14204 | *) : | |
14205 | ;; | |
14206 | esac | |
1c710c3c | 14207 | fi |
1c710c3c | 14208 | |
5213506e RW |
14209 | |
14210 | as_nl=' | |
14211 | ' | |
14212 | export as_nl | |
14213 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14214 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14215 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14216 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14217 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14218 | # but without wasting forks for bash or zsh. | |
14219 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14220 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14221 | as_echo='print -r --' | |
14222 | as_echo_n='print -rn --' | |
14223 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14224 | as_echo='printf %s\n' | |
14225 | as_echo_n='printf %s' | |
14226 | else | |
14227 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14228 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14229 | as_echo_n='/usr/ucb/echo -n' | |
14230 | else | |
14231 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14232 | as_echo_n_body='eval | |
14233 | arg=$1; | |
14234 | case $arg in #( | |
14235 | *"$as_nl"*) | |
14236 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14237 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14238 | esac; | |
14239 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14240 | ' | |
14241 | export as_echo_n_body | |
14242 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14243 | fi | |
14244 | export as_echo_body | |
14245 | as_echo='sh -c $as_echo_body as_echo' | |
1c710c3c DJ |
14246 | fi |
14247 | ||
5213506e RW |
14248 | # The user is always right. |
14249 | if test "${PATH_SEPARATOR+set}" != set; then | |
14250 | PATH_SEPARATOR=: | |
14251 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14252 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14253 | PATH_SEPARATOR=';' | |
14254 | } | |
14255 | fi | |
14256 | ||
14257 | ||
14258 | # IFS | |
14259 | # We need space, tab and new line, in precisely that order. Quoting is | |
14260 | # there to prevent editors from complaining about space-tab. | |
14261 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14262 | # splitting by setting IFS to empty value.) | |
14263 | IFS=" "" $as_nl" | |
14264 | ||
14265 | # Find who we are. Look in the path if we contain no directory separator. | |
14266 | case $0 in #(( | |
14267 | *[\\/]* ) as_myself=$0 ;; | |
14268 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14269 | for as_dir in $PATH | |
14270 | do | |
14271 | IFS=$as_save_IFS | |
14272 | test -z "$as_dir" && as_dir=. | |
14273 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14274 | done | |
14275 | IFS=$as_save_IFS | |
14276 | ||
14277 | ;; | |
14278 | esac | |
14279 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14280 | # in which case we are not to be found in the path. | |
14281 | if test "x$as_myself" = x; then | |
14282 | as_myself=$0 | |
14283 | fi | |
14284 | if test ! -f "$as_myself"; then | |
14285 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14286 | exit 1 | |
14287 | fi | |
1c710c3c | 14288 | |
5213506e RW |
14289 | # Unset variables that we do not need and which cause bugs (e.g. in |
14290 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14291 | # suppresses any "Segmentation fault" message there. '((' could | |
14292 | # trigger a bug in pdksh 5.2.14. | |
14293 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14294 | do eval test x\${$as_var+set} = xset \ | |
14295 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14296 | done | |
1c710c3c DJ |
14297 | PS1='$ ' |
14298 | PS2='> ' | |
14299 | PS4='+ ' | |
14300 | ||
14301 | # NLS nuisances. | |
5213506e RW |
14302 | LC_ALL=C |
14303 | export LC_ALL | |
14304 | LANGUAGE=C | |
14305 | export LANGUAGE | |
14306 | ||
14307 | # CDPATH. | |
14308 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14309 | ||
14310 | ||
14311 | # as_fn_error ERROR [LINENO LOG_FD] | |
14312 | # --------------------------------- | |
14313 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14314 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14315 | # script with status $?, using 1 if that was 0. | |
14316 | as_fn_error () | |
14317 | { | |
14318 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14319 | if test "$3"; then | |
14320 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14321 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
1c710c3c | 14322 | fi |
5213506e RW |
14323 | $as_echo "$as_me: error: $1" >&2 |
14324 | as_fn_exit $as_status | |
14325 | } # as_fn_error | |
14326 | ||
14327 | ||
14328 | # as_fn_set_status STATUS | |
14329 | # ----------------------- | |
14330 | # Set $? to STATUS, without forking. | |
14331 | as_fn_set_status () | |
14332 | { | |
14333 | return $1 | |
14334 | } # as_fn_set_status | |
14335 | ||
14336 | # as_fn_exit STATUS | |
14337 | # ----------------- | |
14338 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14339 | as_fn_exit () | |
14340 | { | |
14341 | set +e | |
14342 | as_fn_set_status $1 | |
14343 | exit $1 | |
14344 | } # as_fn_exit | |
14345 | ||
14346 | # as_fn_unset VAR | |
14347 | # --------------- | |
14348 | # Portably unset VAR. | |
14349 | as_fn_unset () | |
14350 | { | |
14351 | { eval $1=; unset $1;} | |
14352 | } | |
14353 | as_unset=as_fn_unset | |
14354 | # as_fn_append VAR VALUE | |
14355 | # ---------------------- | |
14356 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14357 | # advantage of any shell optimizations that allow amortized linear growth over | |
14358 | # repeated appends, instead of the typical quadratic growth present in naive | |
14359 | # implementations. | |
14360 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14361 | eval 'as_fn_append () | |
14362 | { | |
14363 | eval $1+=\$2 | |
14364 | }' | |
14365 | else | |
14366 | as_fn_append () | |
14367 | { | |
14368 | eval $1=\$$1\$2 | |
14369 | } | |
14370 | fi # as_fn_append | |
14371 | ||
14372 | # as_fn_arith ARG... | |
14373 | # ------------------ | |
14374 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14375 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14376 | # must be portable across $(()) and expr. | |
14377 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14378 | eval 'as_fn_arith () | |
14379 | { | |
14380 | as_val=$(( $* )) | |
14381 | }' | |
14382 | else | |
14383 | as_fn_arith () | |
14384 | { | |
14385 | as_val=`expr "$@" || test $? -eq 1` | |
14386 | } | |
14387 | fi # as_fn_arith | |
14388 | ||
1c710c3c | 14389 | |
5213506e RW |
14390 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14391 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
1c710c3c DJ |
14392 | as_expr=expr |
14393 | else | |
14394 | as_expr=false | |
14395 | fi | |
14396 | ||
5213506e | 14397 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
1c710c3c DJ |
14398 | as_basename=basename |
14399 | else | |
14400 | as_basename=false | |
14401 | fi | |
14402 | ||
5213506e RW |
14403 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14404 | as_dirname=dirname | |
14405 | else | |
14406 | as_dirname=false | |
14407 | fi | |
1c710c3c | 14408 | |
5213506e | 14409 | as_me=`$as_basename -- "$0" || |
1c710c3c DJ |
14410 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14411 | X"$0" : 'X\(//\)$' \| \ | |
5213506e RW |
14412 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14413 | $as_echo X/"$0" | | |
14414 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14415 | s//\1/ | |
14416 | q | |
14417 | } | |
14418 | /^X\/\(\/\/\)$/{ | |
14419 | s//\1/ | |
14420 | q | |
14421 | } | |
14422 | /^X\/\(\/\).*/{ | |
14423 | s//\1/ | |
14424 | q | |
14425 | } | |
14426 | s/.*/./; q'` | |
2aeb72e9 | 14427 | |
2aeb72e9 DD |
14428 | # Avoid depending upon Character Ranges. |
14429 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14430 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14431 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14432 | as_cr_digits='0123456789' | |
14433 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14434 | ||
5213506e RW |
14435 | ECHO_C= ECHO_N= ECHO_T= |
14436 | case `echo -n x` in #((((( | |
14437 | -n*) | |
14438 | case `echo 'xy\c'` in | |
14439 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14440 | xy) ECHO_C='\c';; | |
14441 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14442 | ECHO_T=' ';; | |
14443 | esac;; | |
14444 | *) | |
14445 | ECHO_N='-n';; | |
1c710c3c DJ |
14446 | esac |
14447 | ||
5213506e RW |
14448 | rm -f conf$$ conf$$.exe conf$$.file |
14449 | if test -d conf$$.dir; then | |
14450 | rm -f conf$$.dir/conf$$.file | |
1c710c3c | 14451 | else |
5213506e RW |
14452 | rm -f conf$$.dir |
14453 | mkdir conf$$.dir 2>/dev/null | |
1c710c3c | 14454 | fi |
5213506e RW |
14455 | if (echo >conf$$.file) 2>/dev/null; then |
14456 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
2aeb72e9 | 14457 | as_ln_s='ln -s' |
5213506e RW |
14458 | # ... but there are two gotchas: |
14459 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14460 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14461 | # In both cases, we have to default to `cp -p'. | |
14462 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14463 | as_ln_s='cp -p' | |
14464 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14465 | as_ln_s=ln | |
14466 | else | |
14467 | as_ln_s='cp -p' | |
2aeb72e9 | 14468 | fi |
1c710c3c DJ |
14469 | else |
14470 | as_ln_s='cp -p' | |
14471 | fi | |
5213506e RW |
14472 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14473 | rmdir conf$$.dir 2>/dev/null | |
14474 | ||
14475 | ||
14476 | # as_fn_mkdir_p | |
14477 | # ------------- | |
14478 | # Create "$as_dir" as a directory, including parents if necessary. | |
14479 | as_fn_mkdir_p () | |
14480 | { | |
14481 | ||
14482 | case $as_dir in #( | |
14483 | -*) as_dir=./$as_dir;; | |
14484 | esac | |
14485 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14486 | as_dirs= | |
14487 | while :; do | |
14488 | case $as_dir in #( | |
14489 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14490 | *) as_qdir=$as_dir;; | |
14491 | esac | |
14492 | as_dirs="'$as_qdir' $as_dirs" | |
14493 | as_dir=`$as_dirname -- "$as_dir" || | |
14494 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14495 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14496 | X"$as_dir" : 'X\(//\)$' \| \ | |
14497 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14498 | $as_echo X"$as_dir" | | |
14499 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14500 | s//\1/ | |
14501 | q | |
14502 | } | |
14503 | /^X\(\/\/\)[^/].*/{ | |
14504 | s//\1/ | |
14505 | q | |
14506 | } | |
14507 | /^X\(\/\/\)$/{ | |
14508 | s//\1/ | |
14509 | q | |
14510 | } | |
14511 | /^X\(\/\).*/{ | |
14512 | s//\1/ | |
14513 | q | |
14514 | } | |
14515 | s/.*/./; q'` | |
14516 | test -d "$as_dir" && break | |
14517 | done | |
14518 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14519 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14520 | ||
1c710c3c | 14521 | |
5213506e | 14522 | } # as_fn_mkdir_p |
1c710c3c | 14523 | if mkdir -p . 2>/dev/null; then |
5213506e | 14524 | as_mkdir_p='mkdir -p "$as_dir"' |
1c710c3c DJ |
14525 | else |
14526 | test -d ./-p && rmdir ./-p | |
14527 | as_mkdir_p=false | |
14528 | fi | |
14529 | ||
5213506e RW |
14530 | if test -x / >/dev/null 2>&1; then |
14531 | as_test_x='test -x' | |
14532 | else | |
14533 | if ls -dL / >/dev/null 2>&1; then | |
14534 | as_ls_L_option=L | |
14535 | else | |
14536 | as_ls_L_option= | |
14537 | fi | |
14538 | as_test_x=' | |
14539 | eval sh -c '\'' | |
14540 | if test -d "$1"; then | |
14541 | test -d "$1/."; | |
14542 | else | |
14543 | case $1 in #( | |
14544 | -*)set "./$1";; | |
14545 | esac; | |
14546 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14547 | ???[sx]*):;;*)false;;esac;fi | |
14548 | '\'' sh | |
14549 | ' | |
14550 | fi | |
14551 | as_executable_p=$as_test_x | |
1c710c3c DJ |
14552 | |
14553 | # Sed expression to map a string onto a valid CPP name. | |
14554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14555 | ||
14556 | # Sed expression to map a string onto a valid variable name. | |
14557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14558 | ||
14559 | ||
1c710c3c | 14560 | exec 6>&1 |
5213506e RW |
14561 | ## ----------------------------------- ## |
14562 | ## Main body of $CONFIG_STATUS script. ## | |
14563 | ## ----------------------------------- ## | |
14564 | _ASEOF | |
14565 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14566 | ||
14567 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14568 | # Save the log message, to keep $0 and so on meaningful, and to | |
1c710c3c | 14569 | # report actual input values of CONFIG_FILES etc. instead of their |
5213506e RW |
14570 | # values after options handling. |
14571 | ac_log=" | |
1c710c3c | 14572 | This file was extended by $as_me, which was |
5213506e | 14573 | generated by GNU Autoconf 2.64. Invocation command line was |
1c710c3c DJ |
14574 | |
14575 | CONFIG_FILES = $CONFIG_FILES | |
14576 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14577 | CONFIG_LINKS = $CONFIG_LINKS | |
14578 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14579 | $ $0 $@ | |
14580 | ||
5213506e RW |
14581 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14582 | " | |
14583 | ||
1c710c3c DJ |
14584 | _ACEOF |
14585 | ||
5213506e RW |
14586 | case $ac_config_files in *" |
14587 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14588 | esac | |
1c710c3c | 14589 | |
2aeb72e9 | 14590 | |
2aeb72e9 | 14591 | |
5213506e RW |
14592 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14593 | # Files that config.status was made for. | |
14594 | config_files="$ac_config_files" | |
1c710c3c | 14595 | |
5213506e | 14596 | _ACEOF |
2aeb72e9 | 14597 | |
5213506e | 14598 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c | 14599 | ac_cs_usage="\ |
5213506e RW |
14600 | \`$as_me' instantiates files and other configuration actions |
14601 | from templates according to the current configuration. Unless the files | |
14602 | and actions are specified as TAGs, all are instantiated by default. | |
1c710c3c | 14603 | |
5213506e | 14604 | Usage: $0 [OPTION]... [TAG]... |
1c710c3c DJ |
14605 | |
14606 | -h, --help print this help, then exit | |
5213506e RW |
14607 | -V, --version print version number and configuration settings, then exit |
14608 | -q, --quiet, --silent | |
14609 | do not print progress messages | |
1c710c3c DJ |
14610 | -d, --debug don't remove temporary files |
14611 | --recheck update $as_me by reconfiguring in the same conditions | |
5213506e RW |
14612 | --file=FILE[:TEMPLATE] |
14613 | instantiate the configuration file FILE | |
1c710c3c DJ |
14614 | |
14615 | Configuration files: | |
14616 | $config_files | |
14617 | ||
5213506e | 14618 | Report bugs to the package provider." |
2aeb72e9 | 14619 | |
5213506e RW |
14620 | _ACEOF |
14621 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
1c710c3c DJ |
14622 | ac_cs_version="\\ |
14623 | config.status | |
5213506e RW |
14624 | configured by $0, generated by GNU Autoconf 2.64, |
14625 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
1c710c3c | 14626 | |
5213506e | 14627 | Copyright (C) 2009 Free Software Foundation, Inc. |
1c710c3c DJ |
14628 | This config.status script is free software; the Free Software Foundation |
14629 | gives unlimited permission to copy, distribute and modify it." | |
5213506e RW |
14630 | |
14631 | ac_pwd='$ac_pwd' | |
14632 | srcdir='$srcdir' | |
14633 | INSTALL='$INSTALL' | |
87264276 | 14634 | AWK='$AWK' |
5213506e | 14635 | test -n "\$AWK" || AWK=awk |
1c710c3c DJ |
14636 | _ACEOF |
14637 | ||
5213506e RW |
14638 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14639 | # The default lists apply if the user does not specify any file. | |
1c710c3c DJ |
14640 | ac_need_defaults=: |
14641 | while test $# != 0 | |
a4b9e93e | 14642 | do |
1c710c3c DJ |
14643 | case $1 in |
14644 | --*=*) | |
5213506e RW |
14645 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14646 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
1c710c3c DJ |
14647 | ac_shift=: |
14648 | ;; | |
5213506e | 14649 | *) |
1c710c3c DJ |
14650 | ac_option=$1 |
14651 | ac_optarg=$2 | |
14652 | ac_shift=shift | |
14653 | ;; | |
1c710c3c DJ |
14654 | esac |
14655 | ||
14656 | case $ac_option in | |
14657 | # Handling of the options. | |
671aa708 | 14658 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
1c710c3c | 14659 | ac_cs_recheck=: ;; |
5213506e RW |
14660 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14661 | $as_echo "$ac_cs_version"; exit ;; | |
14662 | --debug | --debu | --deb | --de | --d | -d ) | |
1c710c3c DJ |
14663 | debug=: ;; |
14664 | --file | --fil | --fi | --f ) | |
14665 | $ac_shift | |
5213506e RW |
14666 | case $ac_optarg in |
14667 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14668 | esac | |
14669 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
2aeb72e9 | 14670 | ac_need_defaults=false;; |
5213506e RW |
14671 | --he | --h | --help | --hel | -h ) |
14672 | $as_echo "$ac_cs_usage"; exit ;; | |
1c710c3c DJ |
14673 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14674 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14675 | ac_cs_silent=: ;; | |
14676 | ||
14677 | # This is an error. | |
5213506e RW |
14678 | -*) as_fn_error "unrecognized option: \`$1' |
14679 | Try \`$0 --help' for more information." ;; | |
1c710c3c | 14680 | |
5213506e RW |
14681 | *) as_fn_append ac_config_targets " $1" |
14682 | ac_need_defaults=false ;; | |
1c710c3c | 14683 | |
0b0dc272 | 14684 | esac |
1c710c3c | 14685 | shift |
0b0dc272 AM |
14686 | done |
14687 | ||
1c710c3c | 14688 | ac_configure_extra_args= |
0b0dc272 | 14689 | |
1c710c3c DJ |
14690 | if $ac_cs_silent; then |
14691 | exec 6>/dev/null | |
14692 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14693 | fi | |
0b0dc272 | 14694 | |
1c710c3c | 14695 | _ACEOF |
5213506e | 14696 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
1c710c3c | 14697 | if \$ac_cs_recheck; then |
5213506e RW |
14698 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14699 | shift | |
14700 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14701 | CONFIG_SHELL='$SHELL' | |
14702 | export CONFIG_SHELL | |
14703 | exec "\$@" | |
1c710c3c DJ |
14704 | fi |
14705 | ||
14706 | _ACEOF | |
5213506e RW |
14707 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14708 | exec 5>>config.log | |
14709 | { | |
14710 | echo | |
14711 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14712 | ## Running $as_me. ## | |
14713 | _ASBOX | |
14714 | $as_echo "$ac_log" | |
14715 | } >&5 | |
1c710c3c | 14716 | |
5213506e RW |
14717 | _ACEOF |
14718 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3e54529c RW |
14719 | # |
14720 | # INIT-COMMANDS | |
14721 | # | |
14722 | extrasub_build="$extrasub_build" | |
14723 | extrasub_host="$extrasub_host" | |
14724 | extrasub_target="$extrasub_target" | |
14725 | ||
5213506e | 14726 | _ACEOF |
1c710c3c | 14727 | |
5213506e | 14728 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
11a67599 | 14729 | |
5213506e | 14730 | # Handling of arguments. |
1c710c3c DJ |
14731 | for ac_config_target in $ac_config_targets |
14732 | do | |
5213506e RW |
14733 | case $ac_config_target in |
14734 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14735 | ||
14736 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
1c710c3c DJ |
14737 | esac |
14738 | done | |
14739 | ||
5213506e | 14740 | |
1c710c3c DJ |
14741 | # If the user did not use the arguments to specify the items to instantiate, |
14742 | # then the envvar interface is used. Set only those that are not. | |
14743 | # We use the long form for the default assignment because of an extremely | |
14744 | # bizarre bug on SunOS 4.1.3. | |
14745 | if $ac_need_defaults; then | |
14746 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14747 | fi | |
14748 | ||
14749 | # Have a temporary directory for convenience. Make it in the build tree | |
5213506e | 14750 | # simply because there is no reason against having it here, and in addition, |
1c710c3c | 14751 | # creating and moving files from /tmp can sometimes cause problems. |
5213506e RW |
14752 | # Hook for its removal unless debugging. |
14753 | # Note that there is a small window in which the directory will not be cleaned: | |
14754 | # after its creation but before its name has been assigned to `$tmp'. | |
1c710c3c DJ |
14755 | $debug || |
14756 | { | |
5213506e RW |
14757 | tmp= |
14758 | trap 'exit_status=$? | |
14759 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14760 | ' 0 | |
14761 | trap 'as_fn_exit 1' 1 2 13 15 | |
1c710c3c | 14762 | } |
1c710c3c DJ |
14763 | # Create a (secure) tmp directory for tmp files. |
14764 | ||
14765 | { | |
5213506e | 14766 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
1c710c3c DJ |
14767 | test -n "$tmp" && test -d "$tmp" |
14768 | } || | |
14769 | { | |
5213506e RW |
14770 | tmp=./conf$$-$RANDOM |
14771 | (umask 077 && mkdir "$tmp") | |
14772 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14773 | ||
14774 | # Set up the scripts for CONFIG_FILES section. | |
14775 | # No need to generate them if there are no CONFIG_FILES. | |
14776 | # This happens for instance with `./config.status config.h'. | |
14777 | if test -n "$CONFIG_FILES"; then | |
14778 | ||
14779 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14780 | ac_cs_awk_getline=: | |
14781 | ac_cs_awk_pipe_init= | |
14782 | ac_cs_awk_read_file=' | |
14783 | while ((getline aline < (F[key])) > 0) | |
14784 | print(aline) | |
14785 | close(F[key])' | |
14786 | ac_cs_awk_pipe_fini= | |
14787 | else | |
14788 | ac_cs_awk_getline=false | |
14789 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14790 | ac_cs_awk_read_file=' | |
14791 | print "|#_!!_#|" | |
14792 | print "cat " F[key] " &&" | |
14793 | '$ac_cs_awk_pipe_init | |
14794 | # The final `:' finishes the AND list. | |
14795 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14796 | fi | |
14797 | ac_cr=`echo X | tr X '\015'` | |
14798 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14799 | # But we know of no other shell where ac_cr would be empty at this | |
14800 | # point, so we can use a bashism as a fallback. | |
14801 | if test "x$ac_cr" = x; then | |
14802 | eval ac_cr=\$\'\\r\' | |
14803 | fi | |
14804 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14805 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14806 | ac_cs_awk_cr='\r' | |
14807 | else | |
14808 | ac_cs_awk_cr=$ac_cr | |
14809 | fi | |
14810 | ||
14811 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14812 | _ACEOF | |
14813 | ||
14814 | # Create commands to substitute file output variables. | |
1c710c3c | 14815 | { |
5213506e RW |
14816 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14817 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14818 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14819 | echo "_ACAWK" && | |
14820 | echo "_ACEOF" | |
14821 | } >conf$$files.sh && | |
14822 | . ./conf$$files.sh || | |
14823 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14824 | rm -f conf$$files.sh | |
1c710c3c | 14825 | |
5213506e RW |
14826 | { |
14827 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14828 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14829 | echo "_ACEOF" | |
14830 | } >conf$$subs.sh || | |
14831 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14832 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14833 | ac_delim='%!_!# ' | |
14834 | for ac_last_try in false false false false false :; do | |
14835 | . ./conf$$subs.sh || | |
14836 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14837 | ||
14838 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14839 | if test $ac_delim_n = $ac_delim_num; then | |
14840 | break | |
14841 | elif $ac_last_try; then | |
14842 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14843 | else | |
14844 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14845 | fi | |
14846 | done | |
14847 | rm -f conf$$subs.sh | |
14848 | ||
14849 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14850 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
2aeb72e9 | 14851 | _ACEOF |
5213506e RW |
14852 | sed -n ' |
14853 | h | |
14854 | s/^/S["/; s/!.*/"]=/ | |
14855 | p | |
14856 | g | |
14857 | s/^[^!]*!// | |
14858 | :repl | |
14859 | t repl | |
14860 | s/'"$ac_delim"'$// | |
14861 | t delim | |
14862 | :nl | |
14863 | h | |
14864 | s/\(.\{148\}\).*/\1/ | |
14865 | t more1 | |
14866 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14867 | p | |
14868 | n | |
14869 | b repl | |
14870 | :more1 | |
14871 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14872 | p | |
14873 | g | |
14874 | s/.\{148\}// | |
14875 | t nl | |
14876 | :delim | |
14877 | h | |
14878 | s/\(.\{148\}\).*/\1/ | |
14879 | t more2 | |
14880 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14881 | p | |
14882 | b | |
14883 | :more2 | |
14884 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14885 | p | |
14886 | g | |
14887 | s/.\{148\}// | |
14888 | t delim | |
14889 | ' <conf$$subs.awk | sed ' | |
14890 | /^[^""]/{ | |
14891 | N | |
14892 | s/\n// | |
14893 | } | |
14894 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14895 | rm -f conf$$subs.awk | |
14896 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14897 | _ACAWK | |
14898 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14899 | for (key in S) S_is_set[key] = 1 | |
14900 | FS = "\a" | |
14901 | \$ac_cs_awk_pipe_init | |
14902 | } | |
14903 | { | |
14904 | line = $ 0 | |
14905 | nfields = split(line, field, "@") | |
14906 | substed = 0 | |
14907 | len = length(field[1]) | |
14908 | for (i = 2; i < nfields; i++) { | |
14909 | key = field[i] | |
14910 | keylen = length(key) | |
14911 | if (S_is_set[key]) { | |
14912 | value = S[key] | |
14913 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14914 | len += length(value) + length(field[++i]) | |
14915 | substed = 1 | |
14916 | } else | |
14917 | len += 1 + keylen | |
14918 | } | |
14919 | if (nfields == 3 && !substed) { | |
14920 | key = field[2] | |
14921 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14922 | \$ac_cs_awk_read_file | |
14923 | next | |
14924 | } | |
14925 | } | |
14926 | print line | |
14927 | } | |
14928 | \$ac_cs_awk_pipe_fini | |
14929 | _ACAWK | |
14930 | _ACEOF | |
14931 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14932 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14933 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14934 | else | |
14935 | cat | |
14936 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14937 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
14938 | _ACEOF | |
14939 | ||
14940 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14941 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14942 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14943 | # (actually we leave an empty line to preserve line numbers). | |
14944 | if test "x$srcdir" = x.; then | |
14945 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14946 | s/:*\$(srcdir):*/:/ | |
14947 | s/:*\${srcdir}:*/:/ | |
14948 | s/:*@srcdir@:*/:/ | |
14949 | s/^\([^=]*=[ ]*\):*/\1/ | |
14950 | s/:*$// | |
14951 | s/^[^=]*=[ ]*$// | |
14952 | }' | |
14953 | fi | |
2aeb72e9 | 14954 | |
5213506e RW |
14955 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14956 | fi # test -n "$CONFIG_FILES" | |
2aeb72e9 | 14957 | |
1c710c3c | 14958 | |
5213506e RW |
14959 | eval set X " :F $CONFIG_FILES " |
14960 | shift | |
14961 | for ac_tag | |
14962 | do | |
14963 | case $ac_tag in | |
14964 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14965 | esac | |
14966 | case $ac_mode$ac_tag in | |
14967 | :[FHL]*:*);; | |
14968 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14969 | :[FH]-) ac_tag=-:-;; | |
14970 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14971 | esac | |
14972 | ac_save_IFS=$IFS | |
14973 | IFS=: | |
14974 | set x $ac_tag | |
14975 | IFS=$ac_save_IFS | |
14976 | shift | |
14977 | ac_file=$1 | |
14978 | shift | |
79c06341 | 14979 | |
5213506e RW |
14980 | case $ac_mode in |
14981 | :L) ac_source=$1;; | |
14982 | :[FH]) | |
14983 | ac_file_inputs= | |
14984 | for ac_f | |
14985 | do | |
14986 | case $ac_f in | |
14987 | -) ac_f="$tmp/stdin";; | |
14988 | *) # Look for the file first in the build tree, then in the source tree | |
14989 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14990 | # because $ac_f cannot contain `:'. | |
14991 | test -f "$ac_f" || | |
14992 | case $ac_f in | |
14993 | [\\/$]*) false;; | |
14994 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14995 | esac || | |
14996 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
14997 | esac | |
14998 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14999 | as_fn_append ac_file_inputs " '$ac_f'" | |
15000 | done | |
1c710c3c | 15001 | |
5213506e RW |
15002 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15003 | # use $as_me), people would be surprised to read: | |
15004 | # /* config.h. Generated by config.status. */ | |
15005 | configure_input='Generated from '` | |
15006 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15007 | `' by configure.' | |
15008 | if test x"$ac_file" != x-; then | |
15009 | configure_input="$ac_file. $configure_input" | |
15010 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15011 | $as_echo "$as_me: creating $ac_file" >&6;} | |
2aeb72e9 | 15012 | fi |
5213506e RW |
15013 | # Neutralize special characters interpreted by sed in replacement strings. |
15014 | case $configure_input in #( | |
15015 | *\&* | *\|* | *\\* ) | |
15016 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15017 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15018 | *) ac_sed_conf_input=$configure_input;; | |
15019 | esac | |
11a67599 | 15020 | |
5213506e RW |
15021 | case $ac_tag in |
15022 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15023 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15024 | esac | |
15025 | ;; | |
11a67599 ZW |
15026 | esac |
15027 | ||
5213506e | 15028 | ac_dir=`$as_dirname -- "$ac_file" || |
1c710c3c DJ |
15029 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15030 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15031 | X"$ac_file" : 'X\(//\)$' \| \ | |
5213506e RW |
15032 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15033 | $as_echo X"$ac_file" | | |
15034 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15035 | s//\1/ | |
15036 | q | |
15037 | } | |
15038 | /^X\(\/\/\)[^/].*/{ | |
15039 | s//\1/ | |
15040 | q | |
15041 | } | |
15042 | /^X\(\/\/\)$/{ | |
15043 | s//\1/ | |
15044 | q | |
15045 | } | |
15046 | /^X\(\/\).*/{ | |
15047 | s//\1/ | |
15048 | q | |
15049 | } | |
15050 | s/.*/./; q'` | |
15051 | as_dir="$ac_dir"; as_fn_mkdir_p | |
1c710c3c | 15052 | ac_builddir=. |
0b0dc272 | 15053 | |
5213506e RW |
15054 | case "$ac_dir" in |
15055 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15056 | *) | |
15057 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15058 | # A ".." for each directory in $ac_dir_suffix. | |
15059 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15060 | case $ac_top_builddir_sub in | |
15061 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15062 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15063 | esac ;; | |
15064 | esac | |
15065 | ac_abs_top_builddir=$ac_pwd | |
15066 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15067 | # for backward compatibility: | |
15068 | ac_top_builddir=$ac_top_build_prefix | |
1c710c3c DJ |
15069 | |
15070 | case $srcdir in | |
5213506e | 15071 | .) # We are building in place. |
1c710c3c | 15072 | ac_srcdir=. |
5213506e RW |
15073 | ac_top_srcdir=$ac_top_builddir_sub |
15074 | ac_abs_top_srcdir=$ac_pwd ;; | |
15075 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1c710c3c | 15076 | ac_srcdir=$srcdir$ac_dir_suffix; |
5213506e RW |
15077 | ac_top_srcdir=$srcdir |
15078 | ac_abs_top_srcdir=$srcdir ;; | |
15079 | *) # Relative name. | |
15080 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15081 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15082 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1c710c3c | 15083 | esac |
5213506e | 15084 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a4b9e93e | 15085 | |
0b0dc272 | 15086 | |
5213506e RW |
15087 | case $ac_mode in |
15088 | :F) | |
15089 | # | |
15090 | # CONFIG_FILE | |
15091 | # | |
1c710c3c DJ |
15092 | |
15093 | case $INSTALL in | |
15094 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5213506e | 15095 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
671aa708 | 15096 | esac |
5213506e | 15097 | _ACEOF |
11a67599 | 15098 | |
5213506e RW |
15099 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15100 | # If the template does not know about datarootdir, expand it. | |
15101 | # FIXME: This hack should be removed a few years after 2.60. | |
15102 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15103 | ac_sed_dataroot=' | |
15104 | /datarootdir/ { | |
15105 | p | |
15106 | q | |
15107 | } | |
15108 | /@datadir@/p | |
15109 | /@docdir@/p | |
15110 | /@infodir@/p | |
15111 | /@localedir@/p | |
15112 | /@mandir@/p' | |
15113 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15114 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15115 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15116 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15117 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11a67599 | 15118 | _ACEOF |
5213506e RW |
15119 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15120 | ac_datarootdir_hack=' | |
15121 | s&@datadir@&$datadir&g | |
15122 | s&@docdir@&$docdir&g | |
15123 | s&@infodir@&$infodir&g | |
15124 | s&@localedir@&$localedir&g | |
15125 | s&@mandir@&$mandir&g | |
15126 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15127 | esac | |
15128 | _ACEOF | |
15129 | ||
15130 | # Neutralize VPATH when `$srcdir' = `.'. | |
15131 | # Shell code in configure.ac might set extrasub. | |
15132 | # FIXME: do we really want to maintain this feature? | |
15133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15134 | ac_sed_extra="$ac_vpsub | |
1c710c3c DJ |
15135 | $extrasub |
15136 | _ACEOF | |
5213506e | 15137 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
1c710c3c DJ |
15138 | :t |
15139 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5213506e RW |
15140 | s|@configure_input@|$ac_sed_conf_input|;t t |
15141 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15142 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15143 | s&@srcdir@&$ac_srcdir&;t t | |
15144 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15145 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15146 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15147 | s&@builddir@&$ac_builddir&;t t | |
15148 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15149 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15150 | s&@INSTALL@&$ac_INSTALL&;t t | |
15151 | $ac_datarootdir_hack | |
15152 | " | |
15153 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15154 | if $ac_cs_awk_getline; then | |
15155 | $AWK -f "$tmp/subs.awk" | |
15156 | else | |
15157 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15158 | fi >$tmp/out \ | |
15159 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15160 | ||
15161 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15162 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15163 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15165 | which seems to be undefined. Please make sure it is defined." >&5 | |
15166 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15167 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15168 | ||
15169 | rm -f "$tmp/stdin" | |
15170 | case $ac_file in | |
15171 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15172 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15173 | esac \ | |
15174 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15175 | ;; | |
11a67599 | 15176 | |
11a67599 | 15177 | |
79c06341 | 15178 | |
5213506e RW |
15179 | esac |
15180 | ||
3e54529c RW |
15181 | |
15182 | case $ac_file$ac_mode in | |
15183 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15184 | sed "$extrasub_host" | | |
15185 | sed "$extrasub_target" > mf$$ | |
15186 | mv -f mf$$ Makefile ;; | |
15187 | ||
15188 | esac | |
5213506e RW |
15189 | done # for ac_tag |
15190 | ||
15191 | ||
15192 | as_fn_exit 0 | |
1c710c3c | 15193 | _ACEOF |
1c710c3c DJ |
15194 | ac_clean_files=$ac_clean_files_save |
15195 | ||
5213506e RW |
15196 | test $ac_write_fail = 0 || |
15197 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15198 | ||
1c710c3c DJ |
15199 | |
15200 | # configure is writing to config.log, and then calls config.status. | |
15201 | # config.status does its own redirection, appending to config.log. | |
15202 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15203 | # by configure, so config.status won't be able to write to it; its | |
15204 | # output is simply discarded. So we exec the FD to /dev/null, | |
15205 | # effectively closing config.log, so it can be properly (re)opened and | |
15206 | # appended to by config.status. When coming back to configure, we | |
15207 | # need to make the FD available again. | |
15208 | if test "$no_create" != yes; then | |
15209 | ac_cs_success=: | |
15210 | ac_config_status_args= | |
15211 | test "$silent" = yes && | |
15212 | ac_config_status_args="$ac_config_status_args --quiet" | |
15213 | exec 5>/dev/null | |
15214 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15215 | exec 5>>config.log | |
15216 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15217 | # would make configure fail if this is the last instruction. | |
5213506e RW |
15218 | $ac_cs_success || as_fn_exit $? |
15219 | fi | |
15220 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15221 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15222 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
1c710c3c | 15223 | fi |
79c06341 | 15224 |