]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb 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. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb 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 : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb 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 | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb 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 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb 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 | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb 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'\" && | |
8e957354 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" | |
81ecdfbb 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 | |
c6b750e1 | 184 | do |
81ecdfbb 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." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell [email protected] 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." | |
c6b750e1 | 233 | fi |
81ecdfbb 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 | |
c6b750e1 | 263 | |
81ecdfbb 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 | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb 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 | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb 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'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
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 | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb 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 | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb 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; } | |
c6b750e1 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 | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb 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';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb 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' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb 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 | |
c6b750e1 DJ |
519 | |
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 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
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 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
82033c9b | 559 | host_shared |
81ecdfbb 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 | |
b121d7d4 | 574 | READELF_FOR_TARGET |
81ecdfbb RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
6b91c541 | 577 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
e552509b | 584 | GOC_FOR_TARGET |
81ecdfbb RW |
585 | GFORTRAN_FOR_TARGET |
586 | GCJ_FOR_TARGET | |
587 | GCC_FOR_TARGET | |
588 | CXX_FOR_TARGET | |
589 | CC_FOR_TARGET | |
b121d7d4 | 590 | READELF |
81ecdfbb RW |
591 | OBJDUMP |
592 | OBJCOPY | |
593 | WINDMC | |
594 | WINDRES | |
595 | STRIP | |
596 | RANLIB | |
597 | NM | |
598 | LIPO | |
599 | LD | |
600 | DLLTOOL | |
601 | AS | |
602 | AR | |
603 | RUNTEST | |
604 | EXPECT | |
605 | MAKEINFO | |
606 | FLEX | |
607 | LEX | |
608 | M4 | |
609 | BISON | |
610 | YACC | |
81ecdfbb RW |
611 | WINDRES_FOR_BUILD |
612 | WINDMC_FOR_BUILD | |
613 | RANLIB_FOR_BUILD | |
614 | NM_FOR_BUILD | |
615 | LD_FOR_BUILD | |
616 | LDFLAGS_FOR_BUILD | |
e552509b | 617 | GOC_FOR_BUILD |
81ecdfbb RW |
618 | GFORTRAN_FOR_BUILD |
619 | GCJ_FOR_BUILD | |
620 | DLLTOOL_FOR_BUILD | |
621 | CXX_FOR_BUILD | |
622 | CXXFLAGS_FOR_BUILD | |
623 | CFLAGS_FOR_BUILD | |
624 | CC_FOR_BUILD | |
625 | AS_FOR_BUILD | |
626 | AR_FOR_BUILD | |
911e63d0 | 627 | target_configdirs |
81ecdfbb | 628 | configdirs |
81ecdfbb | 629 | build_configdirs |
81ecdfbb RW |
630 | INSTALL_GDB_TK |
631 | GDB_TK | |
632 | CONFIGURE_GDB_TK | |
633 | build_tooldir | |
634 | tooldir | |
635 | GCC_SHLIB_SUBDIR | |
636 | RPATH_ENVVAR | |
4074d5f2 RW |
637 | target_configargs |
638 | host_configargs | |
639 | build_configargs | |
96655cc4 | 640 | BUILD_CONFIG |
91c1f14c | 641 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
642 | CXXFLAGS_FOR_TARGET |
643 | CFLAGS_FOR_TARGET | |
644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
645 | SYSROOT_CFLAGS_FOR_TARGET | |
e81d5d05 | 646 | extra_host_zlib_configure_flags |
700d40ca | 647 | extra_host_libiberty_configure_flags |
1b6c0831 L |
648 | stage1_languages |
649 | extra_linker_plugin_flags | |
650 | extra_linker_plugin_configure_flags | |
7ec59b9e | 651 | islinc |
1b6c0831 | 652 | isllibs |
81ecdfbb | 653 | poststage1_ldflags |
143754cd | 654 | poststage1_libs |
81ecdfbb | 655 | stage1_ldflags |
b3676d82 | 656 | stage1_libs |
7ec59b9e | 657 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
658 | extra_mpc_mpfr_configure_flags |
659 | extra_mpc_gmp_configure_flags | |
660 | extra_mpfr_configure_flags | |
661 | gmpinc | |
662 | gmplibs | |
663 | do_compare | |
664 | GNATMAKE | |
665 | GNATBIND | |
666 | ac_ct_CXX | |
667 | CXXFLAGS | |
668 | CXX | |
669 | OBJEXT | |
670 | EXEEXT | |
671 | ac_ct_CC | |
672 | CPPFLAGS | |
673 | LDFLAGS | |
674 | CFLAGS | |
675 | CC | |
ffdd6afc | 676 | EXTRA_CONFIGARGS_LIBJAVA |
1b6c0831 | 677 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
678 | target_subdir |
679 | host_subdir | |
680 | build_subdir | |
681 | build_libsubdir | |
8e957354 PB |
682 | AWK |
683 | SED | |
81ecdfbb RW |
684 | LN_S |
685 | LN | |
686 | INSTALL_DATA | |
687 | INSTALL_SCRIPT | |
688 | INSTALL_PROGRAM | |
689 | target_os | |
690 | target_vendor | |
691 | target_cpu | |
692 | target | |
693 | host_os | |
694 | host_vendor | |
695 | host_cpu | |
696 | host | |
697 | target_noncanonical | |
698 | host_noncanonical | |
699 | build_noncanonical | |
700 | build_os | |
701 | build_vendor | |
702 | build_cpu | |
703 | build | |
704 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
705 | target_alias | |
706 | host_alias | |
707 | build_alias | |
708 | LIBS | |
709 | ECHO_T | |
710 | ECHO_N | |
711 | ECHO_C | |
712 | DEFS | |
713 | mandir | |
714 | localedir | |
715 | libdir | |
716 | psdir | |
717 | pdfdir | |
718 | dvidir | |
719 | htmldir | |
720 | infodir | |
721 | docdir | |
722 | oldincludedir | |
723 | includedir | |
724 | localstatedir | |
725 | sharedstatedir | |
726 | sysconfdir | |
727 | datadir | |
728 | datarootdir | |
729 | libexecdir | |
730 | sbindir | |
731 | bindir | |
732 | program_transform_name | |
733 | prefix | |
734 | exec_prefix | |
735 | PACKAGE_URL | |
736 | PACKAGE_BUGREPORT | |
737 | PACKAGE_STRING | |
738 | PACKAGE_VERSION | |
739 | PACKAGE_TARNAME | |
740 | PACKAGE_NAME | |
741 | PATH_SEPARATOR | |
742 | SHELL' | |
743 | ac_subst_files='serialization_dependencies | |
744 | host_makefile_frag | |
745 | target_makefile_frag | |
746 | alphaieee_frag | |
747 | ospace_frag' | |
748 | ac_user_opts=' | |
749 | enable_option_checking | |
750 | with_build_libsubdir | |
cf39cfc5 | 751 | with_system_zlib |
1b6c0831 L |
752 | enable_as_accelerator_for |
753 | enable_offload_targets | |
81ecdfbb | 754 | enable_gold |
c7791212 | 755 | enable_ld |
89a1e9c3 PB |
756 | enable_libquadmath |
757 | enable_libquadmath_support | |
81ecdfbb RW |
758 | enable_libada |
759 | enable_libssp | |
f66a9a70 | 760 | enable_libstdcxx |
1b6c0831 | 761 | enable_liboffloadmic |
ffdd6afc ILT |
762 | enable_static_libjava |
763 | enable_bootstrap | |
81ecdfbb RW |
764 | with_mpc |
765 | with_mpc_include | |
766 | with_mpc_lib | |
767 | with_mpfr_dir | |
768 | with_mpfr | |
769 | with_mpfr_include | |
770 | with_mpfr_lib | |
771 | with_gmp_dir | |
772 | with_gmp | |
773 | with_gmp_include | |
774 | with_gmp_lib | |
775 | with_host_libstdcxx | |
81ecdfbb | 776 | with_stage1_libs |
b3676d82 | 777 | with_stage1_ldflags |
81ecdfbb | 778 | with_boot_libs |
143754cd | 779 | with_boot_ldflags |
7ec59b9e L |
780 | with_isl |
781 | with_isl_include | |
782 | with_isl_lib | |
783 | enable_isl_version_check | |
700d40ca | 784 | enable_lto |
1b6c0831 L |
785 | enable_linker_plugin_configure_flags |
786 | enable_linker_plugin_flags | |
81ecdfbb RW |
787 | enable_stage1_languages |
788 | enable_objc_gc | |
789 | with_build_sysroot | |
790 | with_debug_prefix_map | |
96655cc4 | 791 | with_build_config |
730af8ee | 792 | enable_vtable_verify |
81ecdfbb RW |
793 | enable_serial_configure |
794 | with_build_time_tools | |
795 | enable_maintainer_mode | |
796 | enable_stage1_checking | |
797 | enable_werror | |
82033c9b | 798 | enable_host_shared |
81ecdfbb RW |
799 | ' |
800 | ac_precious_vars='build_alias | |
801 | host_alias | |
802 | target_alias | |
803 | CC | |
804 | CFLAGS | |
805 | LDFLAGS | |
806 | LIBS | |
807 | CPPFLAGS | |
808 | CXX | |
809 | CXXFLAGS | |
810 | CCC | |
4074d5f2 RW |
811 | build_configargs |
812 | host_configargs | |
813 | target_configargs | |
81ecdfbb RW |
814 | AR |
815 | AS | |
816 | DLLTOOL | |
817 | LD | |
818 | LIPO | |
819 | NM | |
820 | RANLIB | |
821 | STRIP | |
822 | WINDRES | |
823 | WINDMC | |
824 | OBJCOPY | |
825 | OBJDUMP | |
b121d7d4 | 826 | READELF |
81ecdfbb RW |
827 | CC_FOR_TARGET |
828 | CXX_FOR_TARGET | |
829 | GCC_FOR_TARGET | |
830 | GCJ_FOR_TARGET | |
831 | GFORTRAN_FOR_TARGET | |
e552509b | 832 | GOC_FOR_TARGET |
81ecdfbb RW |
833 | AR_FOR_TARGET |
834 | AS_FOR_TARGET | |
835 | DLLTOOL_FOR_TARGET | |
836 | LD_FOR_TARGET | |
837 | LIPO_FOR_TARGET | |
838 | NM_FOR_TARGET | |
6b91c541 | 839 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
840 | OBJDUMP_FOR_TARGET |
841 | RANLIB_FOR_TARGET | |
b121d7d4 | 842 | READELF_FOR_TARGET |
81ecdfbb RW |
843 | STRIP_FOR_TARGET |
844 | WINDRES_FOR_TARGET | |
845 | WINDMC_FOR_TARGET' | |
846 | ||
a0da8069 NN |
847 | |
848 | # Initialize some variables set by options. | |
c6b750e1 DJ |
849 | ac_init_help= |
850 | ac_init_version=false | |
81ecdfbb RW |
851 | ac_unrecognized_opts= |
852 | ac_unrecognized_sep= | |
a0da8069 NN |
853 | # The variables have the same names as the options, with |
854 | # dashes changed to underlines. | |
c6b750e1 | 855 | cache_file=/dev/null |
a0da8069 | 856 | exec_prefix=NONE |
a0da8069 | 857 | no_create= |
a0da8069 NN |
858 | no_recursion= |
859 | prefix=NONE | |
860 | program_prefix=NONE | |
861 | program_suffix=NONE | |
862 | program_transform_name=s,x,x, | |
863 | silent= | |
864 | site= | |
865 | srcdir= | |
a0da8069 NN |
866 | verbose= |
867 | x_includes=NONE | |
868 | x_libraries=NONE | |
c6b750e1 DJ |
869 | |
870 | # Installation directory options. | |
871 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
872 | # and all the variables that are supposed to be based on exec_prefix | |
873 | # by default will actually change. | |
874 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 875 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
876 | bindir='${exec_prefix}/bin' |
877 | sbindir='${exec_prefix}/sbin' | |
878 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
879 | datarootdir='${prefix}/share' |
880 | datadir='${datarootdir}' | |
a0da8069 NN |
881 | sysconfdir='${prefix}/etc' |
882 | sharedstatedir='${prefix}/com' | |
883 | localstatedir='${prefix}/var' | |
a0da8069 NN |
884 | includedir='${prefix}/include' |
885 | oldincludedir='/usr/include' | |
81ecdfbb RW |
886 | docdir='${datarootdir}/doc/${PACKAGE}' |
887 | infodir='${datarootdir}/info' | |
888 | htmldir='${docdir}' | |
889 | dvidir='${docdir}' | |
890 | pdfdir='${docdir}' | |
891 | psdir='${docdir}' | |
892 | libdir='${exec_prefix}/lib' | |
893 | localedir='${datarootdir}/locale' | |
894 | mandir='${datarootdir}/man' | |
252b5132 | 895 | |
a0da8069 | 896 | ac_prev= |
81ecdfbb | 897 | ac_dashdash= |
a0da8069 NN |
898 | for ac_option |
899 | do | |
a0da8069 NN |
900 | # If the previous option needs an argument, assign it. |
901 | if test -n "$ac_prev"; then | |
81ecdfbb | 902 | eval $ac_prev=\$ac_option |
a0da8069 NN |
903 | ac_prev= |
904 | continue | |
905 | fi | |
252b5132 | 906 | |
81ecdfbb RW |
907 | case $ac_option in |
908 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
909 | *) ac_optarg=yes ;; | |
910 | esac | |
a0da8069 NN |
911 | |
912 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
913 | ||
81ecdfbb RW |
914 | case $ac_dashdash$ac_option in |
915 | --) | |
916 | ac_dashdash=yes ;; | |
a0da8069 NN |
917 | |
918 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
919 | ac_prev=bindir ;; | |
920 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 921 | bindir=$ac_optarg ;; |
a0da8069 NN |
922 | |
923 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 924 | ac_prev=build_alias ;; |
a0da8069 | 925 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 926 | build_alias=$ac_optarg ;; |
a0da8069 NN |
927 | |
928 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
929 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
930 | ac_prev=cache_file ;; | |
931 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
932 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
933 | cache_file=$ac_optarg ;; |
934 | ||
935 | --config-cache | -C) | |
936 | cache_file=config.cache ;; | |
a0da8069 | 937 | |
81ecdfbb | 938 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 939 | ac_prev=datadir ;; |
81ecdfbb | 940 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 941 | datadir=$ac_optarg ;; |
a0da8069 | 942 | |
81ecdfbb RW |
943 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
944 | | --dataroo | --dataro | --datar) | |
945 | ac_prev=datarootdir ;; | |
946 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
947 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
948 | datarootdir=$ac_optarg ;; | |
949 | ||
a0da8069 | 950 | -disable-* | --disable-*) |
81ecdfbb | 951 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 952 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
953 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
954 | as_fn_error "invalid feature name: $ac_useropt" | |
955 | ac_useropt_orig=$ac_useropt | |
956 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
957 | case $ac_user_opts in | |
958 | *" | |
959 | "enable_$ac_useropt" | |
960 | "*) ;; | |
961 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
962 | ac_unrecognized_sep=', ';; | |
963 | esac | |
964 | eval enable_$ac_useropt=no ;; | |
965 | ||
966 | -docdir | --docdir | --docdi | --doc | --do) | |
967 | ac_prev=docdir ;; | |
968 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
969 | docdir=$ac_optarg ;; | |
970 | ||
971 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
972 | ac_prev=dvidir ;; | |
973 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
974 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
975 | |
976 | -enable-* | --enable-*) | |
81ecdfbb | 977 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 978 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
979 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
980 | as_fn_error "invalid feature name: $ac_useropt" | |
981 | ac_useropt_orig=$ac_useropt | |
982 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
983 | case $ac_user_opts in | |
984 | *" | |
985 | "enable_$ac_useropt" | |
986 | "*) ;; | |
987 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
988 | ac_unrecognized_sep=', ';; | |
a0da8069 | 989 | esac |
81ecdfbb | 990 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
991 | |
992 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
993 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
994 | | --exec | --exe | --ex) | |
995 | ac_prev=exec_prefix ;; | |
996 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
997 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
998 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 999 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1000 | |
1001 | -gas | --gas | --ga | --g) | |
1002 | # Obsolete; use --with-gas. | |
1003 | with_gas=yes ;; | |
1004 | ||
c6b750e1 DJ |
1005 | -help | --help | --hel | --he | -h) |
1006 | ac_init_help=long ;; | |
1007 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1008 | ac_init_help=recursive ;; | |
1009 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1010 | ac_init_help=short ;; | |
a0da8069 NN |
1011 | |
1012 | -host | --host | --hos | --ho) | |
c6b750e1 | 1013 | ac_prev=host_alias ;; |
a0da8069 | 1014 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1015 | host_alias=$ac_optarg ;; |
a0da8069 | 1016 | |
81ecdfbb RW |
1017 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1018 | ac_prev=htmldir ;; | |
1019 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1020 | | --ht=*) | |
1021 | htmldir=$ac_optarg ;; | |
1022 | ||
a0da8069 NN |
1023 | -includedir | --includedir | --includedi | --included | --include \ |
1024 | | --includ | --inclu | --incl | --inc) | |
1025 | ac_prev=includedir ;; | |
1026 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1027 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1028 | includedir=$ac_optarg ;; |
a0da8069 NN |
1029 | |
1030 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1031 | ac_prev=infodir ;; | |
1032 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1033 | infodir=$ac_optarg ;; |
a0da8069 NN |
1034 | |
1035 | -libdir | --libdir | --libdi | --libd) | |
1036 | ac_prev=libdir ;; | |
1037 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1038 | libdir=$ac_optarg ;; |
a0da8069 NN |
1039 | |
1040 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1041 | | --libexe | --libex | --libe) | |
1042 | ac_prev=libexecdir ;; | |
1043 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1044 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1045 | libexecdir=$ac_optarg ;; |
a0da8069 | 1046 | |
81ecdfbb RW |
1047 | -localedir | --localedir | --localedi | --localed | --locale) |
1048 | ac_prev=localedir ;; | |
1049 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1050 | localedir=$ac_optarg ;; | |
1051 | ||
a0da8069 | 1052 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1053 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1054 | ac_prev=localstatedir ;; |
1055 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1056 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1057 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1058 | |
1059 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1060 | ac_prev=mandir ;; | |
1061 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1062 | mandir=$ac_optarg ;; |
a0da8069 NN |
1063 | |
1064 | -nfp | --nfp | --nf) | |
1065 | # Obsolete; use --without-fp. | |
1066 | with_fp=no ;; | |
1067 | ||
1068 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1069 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1070 | no_create=yes ;; |
1071 | ||
1072 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1073 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1074 | no_recursion=yes ;; | |
1075 | ||
1076 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1077 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1078 | | --oldin | --oldi | --old | --ol | --o) | |
1079 | ac_prev=oldincludedir ;; | |
1080 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1081 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1082 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1083 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1084 | |
1085 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1086 | ac_prev=prefix ;; | |
1087 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1088 | prefix=$ac_optarg ;; |
a0da8069 NN |
1089 | |
1090 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1091 | | --program-pre | --program-pr | --program-p) | |
1092 | ac_prev=program_prefix ;; | |
1093 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1094 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1095 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1096 | |
1097 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1098 | | --program-suf | --program-su | --program-s) | |
1099 | ac_prev=program_suffix ;; | |
1100 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1101 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1102 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1103 | |
1104 | -program-transform-name | --program-transform-name \ | |
1105 | | --program-transform-nam | --program-transform-na \ | |
1106 | | --program-transform-n | --program-transform- \ | |
1107 | | --program-transform | --program-transfor \ | |
1108 | | --program-transfo | --program-transf \ | |
1109 | | --program-trans | --program-tran \ | |
1110 | | --progr-tra | --program-tr | --program-t) | |
1111 | ac_prev=program_transform_name ;; | |
1112 | -program-transform-name=* | --program-transform-name=* \ | |
1113 | | --program-transform-nam=* | --program-transform-na=* \ | |
1114 | | --program-transform-n=* | --program-transform-=* \ | |
1115 | | --program-transform=* | --program-transfor=* \ | |
1116 | | --program-transfo=* | --program-transf=* \ | |
1117 | | --program-trans=* | --program-tran=* \ | |
1118 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1119 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1120 | |
81ecdfbb RW |
1121 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1122 | ac_prev=pdfdir ;; | |
1123 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1124 | pdfdir=$ac_optarg ;; | |
1125 | ||
1126 | -psdir | --psdir | --psdi | --psd | --ps) | |
1127 | ac_prev=psdir ;; | |
1128 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1129 | psdir=$ac_optarg ;; | |
1130 | ||
a0da8069 NN |
1131 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1132 | | -silent | --silent | --silen | --sile | --sil) | |
1133 | silent=yes ;; | |
1134 | ||
1135 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1136 | ac_prev=sbindir ;; | |
1137 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1138 | | --sbi=* | --sb=*) | |
c6b750e1 | 1139 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1140 | |
1141 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1142 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1143 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1144 | | --sha | --sh) | |
1145 | ac_prev=sharedstatedir ;; | |
1146 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1147 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1148 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1149 | | --sha=* | --sh=*) | |
c6b750e1 | 1150 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1151 | |
1152 | -site | --site | --sit) | |
1153 | ac_prev=site ;; | |
1154 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1155 | site=$ac_optarg ;; |
a0da8069 NN |
1156 | |
1157 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1158 | ac_prev=srcdir ;; | |
1159 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1160 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1161 | |
1162 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1163 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1164 | ac_prev=sysconfdir ;; | |
1165 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1166 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1167 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1168 | |
1169 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1170 | ac_prev=target_alias ;; |
a0da8069 | 1171 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1172 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1173 | |
1174 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1175 | verbose=yes ;; | |
1176 | ||
c6b750e1 DJ |
1177 | -version | --version | --versio | --versi | --vers | -V) |
1178 | ac_init_version=: ;; | |
a0da8069 NN |
1179 | |
1180 | -with-* | --with-*) | |
81ecdfbb | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1182 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 | as_fn_error "invalid package name: $ac_useropt" | |
1185 | ac_useropt_orig=$ac_useropt | |
1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1187 | case $ac_user_opts in | |
1188 | *" | |
1189 | "with_$ac_useropt" | |
1190 | "*) ;; | |
1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1192 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1193 | esac |
81ecdfbb | 1194 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1195 | |
1196 | -without-* | --without-*) | |
81ecdfbb | 1197 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1198 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1199 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1200 | as_fn_error "invalid package name: $ac_useropt" | |
1201 | ac_useropt_orig=$ac_useropt | |
1202 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1203 | case $ac_user_opts in | |
1204 | *" | |
1205 | "with_$ac_useropt" | |
1206 | "*) ;; | |
1207 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1208 | ac_unrecognized_sep=', ';; | |
1209 | esac | |
1210 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1211 | |
1212 | --x) | |
1213 | # Obsolete; use --with-x. | |
1214 | with_x=yes ;; | |
1215 | ||
1216 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1217 | | --x-incl | --x-inc | --x-in | --x-i) | |
1218 | ac_prev=x_includes ;; | |
1219 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1220 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1221 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1222 | |
1223 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1224 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1225 | ac_prev=x_libraries ;; | |
1226 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1227 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1228 | x_libraries=$ac_optarg ;; |
a0da8069 | 1229 | |
81ecdfbb RW |
1230 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1231 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1232 | ;; |
1233 | ||
c6b750e1 DJ |
1234 | *=*) |
1235 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1236 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1237 | case $ac_envvar in #( |
1238 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1239 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1240 | esac | |
1241 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1242 | export $ac_envvar ;; |
1243 | ||
a0da8069 | 1244 | *) |
c6b750e1 | 1245 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1246 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1247 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1248 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1249 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1250 | ;; |
1251 | ||
1252 | esac | |
1253 | done | |
1254 | ||
1255 | if test -n "$ac_prev"; then | |
c6b750e1 | 1256 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1257 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1258 | fi |
a0da8069 | 1259 | |
81ecdfbb RW |
1260 | if test -n "$ac_unrecognized_opts"; then |
1261 | case $enable_option_checking in | |
1262 | no) ;; | |
1263 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1264 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1265 | esac |
81ecdfbb | 1266 | fi |
a0da8069 | 1267 | |
81ecdfbb RW |
1268 | # Check all directory arguments for consistency. |
1269 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1270 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1271 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1272 | libdir localedir mandir | |
a0da8069 | 1273 | do |
81ecdfbb RW |
1274 | eval ac_val=\$$ac_var |
1275 | # Remove trailing slashes. | |
1276 | case $ac_val in | |
1277 | */ ) | |
1278 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1279 | eval $ac_var=\$ac_val;; | |
1280 | esac | |
1281 | # Be sure to have absolute directory names. | |
c6b750e1 | 1282 | case $ac_val in |
81ecdfbb RW |
1283 | [\\/$]* | ?:[\\/]* ) continue;; |
1284 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1285 | esac |
81ecdfbb | 1286 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1287 | done |
1288 | ||
c6b750e1 DJ |
1289 | # There might be people who depend on the old broken behavior: `$host' |
1290 | # used to hold the argument of --host etc. | |
1291 | # FIXME: To remove some day. | |
1292 | build=$build_alias | |
1293 | host=$host_alias | |
1294 | target=$target_alias | |
376a0e54 | 1295 | |
c6b750e1 DJ |
1296 | # FIXME: To remove some day. |
1297 | if test "x$host_alias" != x; then | |
1298 | if test "x$build_alias" = x; then | |
1299 | cross_compiling=maybe | |
81ecdfbb | 1300 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1301 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1302 | elif test "x$build_alias" != "x$host_alias"; then | |
1303 | cross_compiling=yes | |
1304 | fi | |
1305 | fi | |
1306 | ||
1307 | ac_tool_prefix= | |
1308 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1309 | ||
1310 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1311 | |
a0da8069 | 1312 | |
81ecdfbb RW |
1313 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1314 | ac_ls_di=`ls -di .` && | |
1315 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1316 | as_fn_error "working directory cannot be determined" | |
1317 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1318 | as_fn_error "pwd does not report name of working directory" | |
1319 | ||
1320 | ||
a0da8069 NN |
1321 | # Find the source files, if location was not specified. |
1322 | if test -z "$srcdir"; then | |
1323 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1324 | # Try the directory containing this script, then the parent directory. |
1325 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1326 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1327 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1328 | X"$as_myself" : 'X\(//\)$' \| \ | |
1329 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1330 | $as_echo X"$as_myself" | | |
1331 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\/\)[^/].*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | /^X\(\/\/\)$/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\).*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | s/.*/./; q'` | |
a0da8069 | 1348 | srcdir=$ac_confdir |
81ecdfbb | 1349 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1350 | srcdir=.. |
1351 | fi | |
1352 | else | |
1353 | ac_srcdir_defaulted=no | |
1354 | fi | |
81ecdfbb RW |
1355 | if test ! -r "$srcdir/$ac_unique_file"; then |
1356 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1357 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1358 | fi | |
1359 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1360 | ac_abs_confdir=`( | |
1361 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1362 | pwd)` | |
1363 | # When building in place, set srcdir=. | |
1364 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1365 | srcdir=. | |
1366 | fi | |
1367 | # Remove unnecessary trailing slashes from srcdir. | |
1368 | # Double slashes in file names in object file debugging info | |
1369 | # mess up M-x gdb in Emacs. | |
1370 | case $srcdir in | |
1371 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1372 | esac | |
6d0cd39e AM |
1373 | case $srcdir in |
1374 | *" "*) | |
1375 | as_fn_error "path to source, $srcdir, contains spaces" | |
1376 | ;; | |
1377 | esac | |
9cc8ae67 PB |
1378 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1379 | ||
81ecdfbb RW |
1380 | for ac_var in $ac_precious_vars; do |
1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1382 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1385 | done | |
c6b750e1 DJ |
1386 | |
1387 | # | |
1388 | # Report the --help message. | |
1389 | # | |
1390 | if test "$ac_init_help" = "long"; then | |
1391 | # Omit some internal or obsolete options to make the list less imposing. | |
1392 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1393 | cat <<_ACEOF | |
1394 | \`configure' configures this package to adapt to many kinds of systems. | |
1395 | ||
1396 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1397 | ||
1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1399 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1400 | ||
1401 | Defaults for the options are specified in brackets. | |
1402 | ||
1403 | Configuration: | |
1404 | -h, --help display this help and exit | |
1405 | --help=short display options specific to this package | |
1406 | --help=recursive display the short help of all the included packages | |
1407 | -V, --version display version information and exit | |
1408 | -q, --quiet, --silent do not print \`checking...' messages | |
1409 | --cache-file=FILE cache test results in FILE [disabled] | |
1410 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1411 | -n, --no-create do not create output files | |
1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1413 | ||
c6b750e1 DJ |
1414 | Installation directories: |
1415 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1416 | [$ac_default_prefix] |
c6b750e1 | 1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1418 | [PREFIX] |
c6b750e1 DJ |
1419 | |
1420 | By default, \`make install' will install all the files in | |
1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1423 | for instance \`--prefix=\$HOME'. | |
1424 | ||
1425 | For better control, use the options below. | |
1426 | ||
1427 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1428 | --bindir=DIR user executables [EPREFIX/bin] |
1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1430 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1434 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1435 | --includedir=DIR C header files [PREFIX/include] | |
1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1439 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1441 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1443 | --htmldir=DIR html documentation [DOCDIR] | |
1444 | --dvidir=DIR dvi documentation [DOCDIR] | |
1445 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1446 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1447 | _ACEOF |
1448 | ||
1449 | cat <<\_ACEOF | |
1450 | ||
1451 | Program names: | |
1452 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1453 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1454 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1455 | ||
1456 | System types: | |
1457 | --build=BUILD configure for building on BUILD [guessed] | |
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1459 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1460 | _ACEOF | |
a0da8069 | 1461 | fi |
a0da8069 | 1462 | |
c6b750e1 DJ |
1463 | if test -n "$ac_init_help"; then |
1464 | ||
1465 | cat <<\_ACEOF | |
1466 | ||
1467 | Optional Features: | |
81ecdfbb | 1468 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1469 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1470 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1471 | --enable-as-accelerator-for=ARG |
1472 | build as offload target compiler. Specify offload | |
1473 | host triple by ARG | |
1474 | --enable-offload-targets=LIST | |
1475 | enable offloading to devices from comma-separated | |
1476 | LIST of TARGET[=DIR]. Use optional path to find | |
1477 | offload target compiler during the build | |
c7791212 | 1478 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1479 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1480 | --disable-libquadmath do not build libquadmath directory |
1481 | --disable-libquadmath-support | |
1482 | disable libquadmath support for Fortran | |
521ec477 DD |
1483 | --enable-libada build libada directory |
1484 | --enable-libssp build libssp directory | |
f66a9a70 | 1485 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1486 | --enable-liboffloadmic=ARG |
1487 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc ILT |
1488 | --enable-static-libjava[=ARG] |
1489 | build static libjava [default=no] | |
1490 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e L |
1491 | --disable-isl-version-check |
1492 | disable check for ISL version | |
700d40ca | 1493 | --enable-lto enable link time optimization support |
1b6c0831 L |
1494 | --enable-linker-plugin-configure-flags=FLAGS |
1495 | additional flags for configuring linker plugins | |
1496 | [none] | |
1497 | --enable-linker-plugin-flags=FLAGS | |
1498 | additional flags for configuring and building linker | |
1499 | plugins [none] | |
7837304f AS |
1500 | --enable-stage1-languages[=all] |
1501 | choose additional languages to build during stage1. | |
1502 | Mostly useful for compiler development | |
1503 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1504 | Objective-C runtime | |
730af8ee | 1505 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1506 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1507 | force sequential configuration of sub-packages for |
1508 | the host, target or build machine, or all | |
1509 | sub-packages | |
1510 | --enable-maintainer-mode | |
1511 | enable make rules and dependencies not useful (and | |
1512 | sometimes confusing) to the casual installer | |
1513 | --enable-stage1-checking[=all] | |
1514 | choose additional checking for stage1 of the | |
1515 | compiler | |
c6b750e1 | 1516 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1517 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1518 | |
1519 | Optional Packages: | |
1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1522 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1523 | --with-system-zlib use installed libz |
7837304f AS |
1524 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1525 | Equivalent to --with-mpc-include=PATH/include plus | |
1526 | --with-mpc-lib=PATH/lib | |
1527 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1528 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1529 | --with-mpfr-dir=PATH this option has been REMOVED |
1530 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1531 | Equivalent to --with-mpfr-include=PATH/include plus |
1532 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1533 | --with-mpfr-include=PATH |
521ec477 DD |
1534 | specify directory for installed MPFR include files |
1535 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1536 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1537 | --with-gmp=PATH specify prefix directory for the installed GMP |
1538 | package. Equivalent to | |
1539 | --with-gmp-include=PATH/include plus | |
1540 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1541 | --with-gmp-include=PATH specify directory for installed GMP include files |
1542 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1543 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1544 | linking with PPL | |
b3676d82 | 1545 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1546 | --with-stage1-ldflags=FLAGS |
1547 | linker flags for stage1 | |
7837304f AS |
1548 | --with-boot-libs=LIBS libraries for stage2 and later |
1549 | --with-boot-ldflags=FLAGS | |
1550 | linker flags for stage2 and later | |
7ec59b9e | 1551 | --with-isl=PATH Specify prefix directory for the installed ISL |
7837304f | 1552 | package. Equivalent to |
7ec59b9e L |
1553 | --with-isl-include=PATH/include plus |
1554 | --with-isl-lib=PATH/lib | |
1555 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1556 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
521ec477 | 1557 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1558 | use sysroot as the system root during the build |
8a6ee3ab | 1559 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1560 | map A to B, C to D ... in debug information |
1561 | --with-build-config='NAME NAME2...' | |
1562 | use config/NAME.mk build configuration | |
521ec477 | 1563 | --with-build-time-tools=PATH |
c6b750e1 | 1564 | use given path to find target tools during the build |
c6b750e1 DJ |
1565 | |
1566 | Some influential environment variables: | |
1567 | CC C compiler command | |
1568 | CFLAGS C compiler flags | |
1569 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1570 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1571 | LIBS libraries to pass to the linker, e.g. -l<library> |
1572 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1573 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1574 | CXX C++ compiler command |
1575 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1576 | build_configargs |
1577 | additional configure arguments for build directories | |
1578 | host_configargs | |
1579 | additional configure arguments for host directories | |
1580 | target_configargs | |
1581 | additional configure arguments for target directories | |
9a819804 AO |
1582 | AR AR for the host |
1583 | AS AS for the host | |
1584 | DLLTOOL DLLTOOL for the host | |
1585 | LD LD for the host | |
1586 | LIPO LIPO for the host | |
1587 | NM NM for the host | |
1588 | RANLIB RANLIB for the host | |
1589 | STRIP STRIP for the host | |
1590 | WINDRES WINDRES for the host | |
0c24b341 | 1591 | WINDMC WINDMC for the host |
9a819804 AO |
1592 | OBJCOPY OBJCOPY for the host |
1593 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1594 | READELF READELF for the host |
9a819804 AO |
1595 | CC_FOR_TARGET |
1596 | CC for the target | |
1597 | CXX_FOR_TARGET | |
1598 | CXX for the target | |
1599 | GCC_FOR_TARGET | |
1600 | GCC for the target | |
1601 | GCJ_FOR_TARGET | |
1602 | GCJ for the target | |
1603 | GFORTRAN_FOR_TARGET | |
1604 | GFORTRAN for the target | |
e552509b ILT |
1605 | GOC_FOR_TARGET |
1606 | GOC for the target | |
9a819804 AO |
1607 | AR_FOR_TARGET |
1608 | AR for the target | |
1609 | AS_FOR_TARGET | |
1610 | AS for the target | |
1611 | DLLTOOL_FOR_TARGET | |
1612 | DLLTOOL for the target | |
1613 | LD_FOR_TARGET | |
1614 | LD for the target | |
1615 | LIPO_FOR_TARGET | |
1616 | LIPO for the target | |
1617 | NM_FOR_TARGET | |
1618 | NM for the target | |
6b91c541 AP |
1619 | OBJCOPY_FOR_TARGET |
1620 | OBJCOPY for the target | |
9a819804 AO |
1621 | OBJDUMP_FOR_TARGET |
1622 | OBJDUMP for the target | |
1623 | RANLIB_FOR_TARGET | |
1624 | RANLIB for the target | |
b121d7d4 DD |
1625 | READELF_FOR_TARGET |
1626 | READELF for the target | |
9a819804 AO |
1627 | STRIP_FOR_TARGET |
1628 | STRIP for the target | |
1629 | WINDRES_FOR_TARGET | |
1630 | WINDRES for the target | |
0c24b341 NC |
1631 | WINDMC_FOR_TARGET |
1632 | WINDMC for the target | |
c6b750e1 DJ |
1633 | |
1634 | Use these variables to override the choices made by `configure' or to help | |
1635 | it to find libraries and programs with nonstandard names/locations. | |
1636 | ||
81ecdfbb | 1637 | Report bugs to the package provider. |
c6b750e1 | 1638 | _ACEOF |
81ecdfbb | 1639 | ac_status=$? |
c6b750e1 DJ |
1640 | fi |
1641 | ||
1642 | if test "$ac_init_help" = "recursive"; then | |
1643 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1644 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1645 | test -d "$ac_dir" || |
1646 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1647 | continue | |
c6b750e1 DJ |
1648 | ac_builddir=. |
1649 | ||
81ecdfbb RW |
1650 | case "$ac_dir" in |
1651 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1652 | *) | |
1653 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1654 | # A ".." for each directory in $ac_dir_suffix. | |
1655 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1656 | case $ac_top_builddir_sub in | |
1657 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1658 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1659 | esac ;; | |
1660 | esac | |
1661 | ac_abs_top_builddir=$ac_pwd | |
1662 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1663 | # for backward compatibility: | |
1664 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1665 | |
1666 | case $srcdir in | |
81ecdfbb | 1667 | .) # We are building in place. |
c6b750e1 | 1668 | ac_srcdir=. |
81ecdfbb RW |
1669 | ac_top_srcdir=$ac_top_builddir_sub |
1670 | ac_abs_top_srcdir=$ac_pwd ;; | |
1671 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1672 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1673 | ac_top_srcdir=$srcdir |
1674 | ac_abs_top_srcdir=$srcdir ;; | |
1675 | *) # Relative name. | |
1676 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1677 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1678 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1679 | esac |
81ecdfbb RW |
1680 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1681 | ||
1682 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1683 | # Check for guested configure. | |
1684 | if test -f "$ac_srcdir/configure.gnu"; then | |
1685 | echo && | |
1686 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1687 | elif test -f "$ac_srcdir/configure"; then | |
1688 | echo && | |
1689 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1690 | else |
81ecdfbb RW |
1691 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1692 | fi || ac_status=$? | |
1693 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1694 | done |
1695 | fi | |
1696 | ||
81ecdfbb | 1697 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1698 | if $ac_init_version; then |
1699 | cat <<\_ACEOF | |
81ecdfbb RW |
1700 | configure |
1701 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1702 | |
81ecdfbb | 1703 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1704 | This configure script is free software; the Free Software Foundation |
1705 | gives unlimited permission to copy, distribute and modify it. | |
1706 | _ACEOF | |
81ecdfbb | 1707 | exit |
c6b750e1 | 1708 | fi |
81ecdfbb RW |
1709 | |
1710 | ## ------------------------ ## | |
1711 | ## Autoconf initialization. ## | |
1712 | ## ------------------------ ## | |
1713 | ||
1714 | # ac_fn_c_try_compile LINENO | |
1715 | # -------------------------- | |
1716 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1717 | ac_fn_c_try_compile () | |
1718 | { | |
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1720 | rm -f conftest.$ac_objext | |
1721 | if { { ac_try="$ac_compile" | |
1722 | case "(($ac_try" in | |
1723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 | *) ac_try_echo=$ac_try;; | |
1725 | esac | |
1726 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 | $as_echo "$ac_try_echo"; } >&5 | |
1728 | (eval "$ac_compile") 2>conftest.err | |
1729 | ac_status=$? | |
1730 | if test -s conftest.err; then | |
1731 | grep -v '^ *+' conftest.err >conftest.er1 | |
1732 | cat conftest.er1 >&5 | |
1733 | mv -f conftest.er1 conftest.err | |
1734 | fi | |
1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1736 | test $ac_status = 0; } && { | |
1737 | test -z "$ac_c_werror_flag" || | |
1738 | test ! -s conftest.err | |
1739 | } && test -s conftest.$ac_objext; then : | |
1740 | ac_retval=0 | |
1741 | else | |
1742 | $as_echo "$as_me: failed program was:" >&5 | |
1743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1744 | ||
1745 | ac_retval=1 | |
1746 | fi | |
1747 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1748 | return $ac_retval | |
1749 | ||
1750 | } # ac_fn_c_try_compile | |
1751 | ||
1752 | # ac_fn_cxx_try_compile LINENO | |
1753 | # ---------------------------- | |
1754 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1755 | ac_fn_cxx_try_compile () | |
1756 | { | |
1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1758 | rm -f conftest.$ac_objext | |
1759 | if { { ac_try="$ac_compile" | |
1760 | case "(($ac_try" in | |
1761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1762 | *) ac_try_echo=$ac_try;; | |
1763 | esac | |
1764 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1765 | $as_echo "$ac_try_echo"; } >&5 | |
1766 | (eval "$ac_compile") 2>conftest.err | |
1767 | ac_status=$? | |
1768 | if test -s conftest.err; then | |
1769 | grep -v '^ *+' conftest.err >conftest.er1 | |
1770 | cat conftest.er1 >&5 | |
1771 | mv -f conftest.er1 conftest.err | |
1772 | fi | |
1773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1774 | test $ac_status = 0; } && { | |
1775 | test -z "$ac_cxx_werror_flag" || | |
1776 | test ! -s conftest.err | |
1777 | } && test -s conftest.$ac_objext; then : | |
1778 | ac_retval=0 | |
1779 | else | |
1780 | $as_echo "$as_me: failed program was:" >&5 | |
1781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1782 | ||
1783 | ac_retval=1 | |
1784 | fi | |
1785 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1786 | return $ac_retval | |
1787 | ||
1788 | } # ac_fn_cxx_try_compile | |
1789 | ||
b3676d82 EB |
1790 | # ac_fn_cxx_try_link LINENO |
1791 | # ------------------------- | |
1792 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1793 | ac_fn_cxx_try_link () | |
1794 | { | |
1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1797 | if { { ac_try="$ac_link" | |
1798 | case "(($ac_try" in | |
1799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1800 | *) ac_try_echo=$ac_try;; | |
1801 | esac | |
1802 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1803 | $as_echo "$ac_try_echo"; } >&5 | |
1804 | (eval "$ac_link") 2>conftest.err | |
1805 | ac_status=$? | |
1806 | if test -s conftest.err; then | |
1807 | grep -v '^ *+' conftest.err >conftest.er1 | |
1808 | cat conftest.er1 >&5 | |
1809 | mv -f conftest.er1 conftest.err | |
1810 | fi | |
1811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1812 | test $ac_status = 0; } && { | |
1813 | test -z "$ac_cxx_werror_flag" || | |
1814 | test ! -s conftest.err | |
1815 | } && test -s conftest$ac_exeext && { | |
1816 | test "$cross_compiling" = yes || | |
1817 | $as_test_x conftest$ac_exeext | |
1818 | }; then : | |
1819 | ac_retval=0 | |
1820 | else | |
1821 | $as_echo "$as_me: failed program was:" >&5 | |
1822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1823 | ||
1824 | ac_retval=1 | |
1825 | fi | |
1826 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1827 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1828 | # interfere with the next link command; also delete a directory that is | |
1829 | # left behind by Apple's compiler. We do this before executing the actions. | |
1830 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1831 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1832 | return $ac_retval | |
1833 | ||
1834 | } # ac_fn_cxx_try_link | |
1835 | ||
81ecdfbb RW |
1836 | # ac_fn_c_try_link LINENO |
1837 | # ----------------------- | |
1838 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1839 | ac_fn_c_try_link () | |
1840 | { | |
1841 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1843 | if { { ac_try="$ac_link" | |
1844 | case "(($ac_try" in | |
1845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1846 | *) ac_try_echo=$ac_try;; | |
1847 | esac | |
1848 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1849 | $as_echo "$ac_try_echo"; } >&5 | |
1850 | (eval "$ac_link") 2>conftest.err | |
1851 | ac_status=$? | |
1852 | if test -s conftest.err; then | |
1853 | grep -v '^ *+' conftest.err >conftest.er1 | |
1854 | cat conftest.er1 >&5 | |
1855 | mv -f conftest.er1 conftest.err | |
1856 | fi | |
1857 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1858 | test $ac_status = 0; } && { | |
1859 | test -z "$ac_c_werror_flag" || | |
1860 | test ! -s conftest.err | |
1861 | } && test -s conftest$ac_exeext && { | |
1862 | test "$cross_compiling" = yes || | |
1863 | $as_test_x conftest$ac_exeext | |
1864 | }; then : | |
1865 | ac_retval=0 | |
1866 | else | |
1867 | $as_echo "$as_me: failed program was:" >&5 | |
1868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1869 | ||
1870 | ac_retval=1 | |
1871 | fi | |
1872 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1873 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1874 | # interfere with the next link command; also delete a directory that is | |
1875 | # left behind by Apple's compiler. We do this before executing the actions. | |
1876 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1877 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1878 | return $ac_retval | |
1879 | ||
1880 | } # ac_fn_c_try_link | |
1881 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1882 | This file contains any messages produced by compilers while |
1883 | running configure, to aid debugging if configure makes a mistake. | |
1884 | ||
1885 | It was created by $as_me, which was | |
81ecdfbb | 1886 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1887 | |
1888 | $ $0 $@ | |
1889 | ||
1890 | _ACEOF | |
81ecdfbb | 1891 | exec 5>>config.log |
c6b750e1 DJ |
1892 | { |
1893 | cat <<_ASUNAME | |
1894 | ## --------- ## | |
1895 | ## Platform. ## | |
1896 | ## --------- ## | |
1897 | ||
1898 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1899 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1900 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1901 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1902 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1903 | ||
1904 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1905 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1906 | ||
1907 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1908 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1909 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1910 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1911 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1912 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1913 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1914 | ||
1915 | _ASUNAME | |
1916 | ||
1917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1918 | for as_dir in $PATH | |
1919 | do | |
1920 | IFS=$as_save_IFS | |
1921 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1922 | $as_echo "PATH: $as_dir" |
1923 | done | |
1924 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1925 | |
1926 | } >&5 | |
1927 | ||
1928 | cat >&5 <<_ACEOF | |
1929 | ||
1930 | ||
1931 | ## ----------- ## | |
1932 | ## Core tests. ## | |
1933 | ## ----------- ## | |
1934 | ||
1935 | _ACEOF | |
1936 | ||
1937 | ||
1938 | # Keep a trace of the command line. | |
1939 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1940 | # Strip out --silent because we don't want to record it for future runs. | |
1941 | # Also quote any args containing shell meta-characters. | |
1942 | # Make two passes to allow for proper duplicate-argument suppression. | |
1943 | ac_configure_args= | |
1944 | ac_configure_args0= | |
1945 | ac_configure_args1= | |
c6b750e1 DJ |
1946 | ac_must_keep_next=false |
1947 | for ac_pass in 1 2 | |
1948 | do | |
1949 | for ac_arg | |
1950 | do | |
1951 | case $ac_arg in | |
1952 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1954 | | -silent | --silent | --silen | --sile | --sil) | |
1955 | continue ;; | |
81ecdfbb RW |
1956 | *\'*) |
1957 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1958 | esac |
1959 | case $ac_pass in | |
81ecdfbb | 1960 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1961 | 2) |
81ecdfbb | 1962 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1963 | if test $ac_must_keep_next = true; then |
1964 | ac_must_keep_next=false # Got value, back to normal. | |
1965 | else | |
1966 | case $ac_arg in | |
1967 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1968 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1969 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1970 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1971 | case "$ac_configure_args0 " in | |
1972 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1973 | esac | |
1974 | ;; | |
1975 | -* ) ac_must_keep_next=true ;; | |
1976 | esac | |
1977 | fi | |
81ecdfbb | 1978 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1979 | ;; |
1980 | esac | |
1981 | done | |
1982 | done | |
81ecdfbb RW |
1983 | { ac_configure_args0=; unset ac_configure_args0;} |
1984 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1985 | |
1986 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1987 | # config.log. We remove comments because anyway the quotes in there | |
1988 | # would cause problems or look ugly. | |
81ecdfbb RW |
1989 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1990 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1991 | trap 'exit_status=$? |
1992 | # Save into config.log some information that might help in debugging. | |
1993 | { | |
1994 | echo | |
1995 | ||
1996 | cat <<\_ASBOX | |
1997 | ## ---------------- ## | |
1998 | ## Cache variables. ## | |
1999 | ## ---------------- ## | |
2000 | _ASBOX | |
2001 | echo | |
2002 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2003 | ( |
2004 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2005 | eval ac_val=\$$ac_var | |
2006 | case $ac_val in #( | |
2007 | *${as_nl}*) | |
2008 | case $ac_var in #( | |
2009 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2010 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2011 | esac | |
2012 | case $ac_var in #( | |
2013 | _ | IFS | as_nl) ;; #( | |
2014 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2015 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2016 | esac ;; | |
2017 | esac | |
2018 | done | |
c6b750e1 | 2019 | (set) 2>&1 | |
81ecdfbb RW |
2020 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2021 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2022 | sed -n \ |
81ecdfbb RW |
2023 | "s/'\''/'\''\\\\'\'''\''/g; |
2024 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2025 | ;; #( | |
c6b750e1 | 2026 | *) |
81ecdfbb | 2027 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2028 | ;; |
81ecdfbb RW |
2029 | esac | |
2030 | sort | |
2031 | ) | |
c6b750e1 DJ |
2032 | echo |
2033 | ||
2034 | cat <<\_ASBOX | |
2035 | ## ----------------- ## | |
2036 | ## Output variables. ## | |
2037 | ## ----------------- ## | |
2038 | _ASBOX | |
2039 | echo | |
2040 | for ac_var in $ac_subst_vars | |
2041 | do | |
81ecdfbb RW |
2042 | eval ac_val=\$$ac_var |
2043 | case $ac_val in | |
2044 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2045 | esac | |
2046 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2047 | done | sort |
2048 | echo | |
2049 | ||
2050 | if test -n "$ac_subst_files"; then | |
2051 | cat <<\_ASBOX | |
81ecdfbb RW |
2052 | ## ------------------- ## |
2053 | ## File substitutions. ## | |
2054 | ## ------------------- ## | |
c6b750e1 DJ |
2055 | _ASBOX |
2056 | echo | |
2057 | for ac_var in $ac_subst_files | |
2058 | do | |
81ecdfbb RW |
2059 | eval ac_val=\$$ac_var |
2060 | case $ac_val in | |
2061 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2062 | esac | |
2063 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2064 | done | sort |
2065 | echo | |
2066 | fi | |
2067 | ||
2068 | if test -s confdefs.h; then | |
2069 | cat <<\_ASBOX | |
2070 | ## ----------- ## | |
2071 | ## confdefs.h. ## | |
2072 | ## ----------- ## | |
2073 | _ASBOX | |
2074 | echo | |
81ecdfbb | 2075 | cat confdefs.h |
c6b750e1 DJ |
2076 | echo |
2077 | fi | |
2078 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2079 | $as_echo "$as_me: caught signal $ac_signal" |
2080 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2081 | } >&5 |
81ecdfbb RW |
2082 | rm -f core *.core core.conftest.* && |
2083 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2084 | exit $exit_status |
81ecdfbb | 2085 | ' 0 |
c6b750e1 | 2086 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2087 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2088 | done |
2089 | ac_signal=0 | |
2090 | ||
2091 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2092 | rm -f -r conftest* confdefs.h |
2093 | ||
2094 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2095 | |
2096 | # Predefined preprocessor variables. | |
2097 | ||
2098 | cat >>confdefs.h <<_ACEOF | |
2099 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2100 | _ACEOF | |
2101 | ||
c6b750e1 DJ |
2102 | cat >>confdefs.h <<_ACEOF |
2103 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2104 | _ACEOF | |
2105 | ||
c6b750e1 DJ |
2106 | cat >>confdefs.h <<_ACEOF |
2107 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2108 | _ACEOF | |
2109 | ||
c6b750e1 DJ |
2110 | cat >>confdefs.h <<_ACEOF |
2111 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2112 | _ACEOF | |
2113 | ||
c6b750e1 DJ |
2114 | cat >>confdefs.h <<_ACEOF |
2115 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2116 | _ACEOF | |
2117 | ||
81ecdfbb RW |
2118 | cat >>confdefs.h <<_ACEOF |
2119 | #define PACKAGE_URL "$PACKAGE_URL" | |
2120 | _ACEOF | |
2121 | ||
c6b750e1 DJ |
2122 | |
2123 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2124 | # Prefer an explicitly selected file to automatically selected ones. |
2125 | ac_site_file1=NONE | |
2126 | ac_site_file2=NONE | |
2127 | if test -n "$CONFIG_SITE"; then | |
2128 | ac_site_file1=$CONFIG_SITE | |
2129 | elif test "x$prefix" != xNONE; then | |
2130 | ac_site_file1=$prefix/share/config.site | |
2131 | ac_site_file2=$prefix/etc/config.site | |
2132 | else | |
2133 | ac_site_file1=$ac_default_prefix/share/config.site | |
2134 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2135 | fi |
81ecdfbb RW |
2136 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2137 | do | |
2138 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2139 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2140 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2141 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2142 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2143 | . "$ac_site_file" |
2144 | fi | |
2145 | done | |
2146 | ||
2147 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2148 | # Some versions of bash will fail to source /dev/null (special |
2149 | # files actually), so we avoid doing that. | |
2150 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2151 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2152 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2153 | case $cache_file in |
81ecdfbb RW |
2154 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2155 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2156 | esac |
2157 | fi | |
a0da8069 | 2158 | else |
81ecdfbb RW |
2159 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2160 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2161 | >$cache_file |
2162 | fi | |
2163 | ||
2164 | # Check that the precious variables saved in the cache have kept the same | |
2165 | # value. | |
2166 | ac_cache_corrupted=false | |
81ecdfbb | 2167 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2168 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2169 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2170 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2171 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2172 | case $ac_old_set,$ac_new_set in |
2173 | set,) | |
81ecdfbb RW |
2174 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2175 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2176 | ac_cache_corrupted=: ;; |
2177 | ,set) | |
81ecdfbb RW |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2179 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2180 | ac_cache_corrupted=: ;; |
2181 | ,);; | |
2182 | *) | |
2183 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2184 | # differences in whitespace do not lead to failure. |
2185 | ac_old_val_w=`echo x $ac_old_val` | |
2186 | ac_new_val_w=`echo x $ac_new_val` | |
2187 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2189 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2190 | ac_cache_corrupted=: | |
2191 | else | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2193 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2194 | eval $ac_var=\$ac_old_val | |
2195 | fi | |
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2197 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2199 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2200 | fi;; |
2201 | esac | |
2202 | # Pass precious variables to config.status. | |
2203 | if test "$ac_new_set" = set; then | |
2204 | case $ac_new_val in | |
81ecdfbb | 2205 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2206 | *) ac_arg=$ac_var=$ac_new_val ;; |
2207 | esac | |
2208 | case " $ac_configure_args " in | |
2209 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2210 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2211 | esac |
2212 | fi | |
2213 | done | |
2214 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2216 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2218 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2219 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2220 | fi |
81ecdfbb RW |
2221 | ## -------------------- ## |
2222 | ## Main body of script. ## | |
2223 | ## -------------------- ## | |
a0da8069 NN |
2224 | |
2225 | ac_ext=c | |
a0da8069 | 2226 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2227 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2230 | ||
2231 | ||
2232 | ||
2233 | ||
c6b750e1 DJ |
2234 | |
2235 | ||
34a0f3cf | 2236 | |
c6b750e1 | 2237 | |
5b553f7e RW |
2238 | |
2239 | progname=$0 | |
2240 | # if PWD already has a value, it is probably wrong. | |
2241 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2242 | ||
2243 | # Export original configure arguments for use by sub-configures. | |
2244 | # Quote arguments with shell meta charatcers. | |
2245 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2246 | set -- "$progname" "$@" | |
2247 | for ac_arg | |
2248 | do | |
2249 | case "$ac_arg" in | |
2250 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2251 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2252 | # if the argument is of the form -foo=baz, quote the baz part only | |
2253 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2254 | *) ;; | |
2255 | esac | |
2256 | # Add the quoted argument to the list. | |
2257 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2258 | done | |
2259 | if test "$silent" = yes; then | |
2260 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2261 | fi | |
2262 | # Remove the initial space we just introduced and, as these will be | |
2263 | # expanded by make, quote '$'. | |
2264 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2265 | ||
c6b750e1 DJ |
2266 | |
2267 | # Find the build, host, and target systems. | |
a0da8069 | 2268 | ac_aux_dir= |
81ecdfbb RW |
2269 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2270 | for ac_t in install-sh install.sh shtool; do | |
2271 | if test -f "$ac_dir/$ac_t"; then | |
2272 | ac_aux_dir=$ac_dir | |
2273 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2274 | break 2 | |
2275 | fi | |
2276 | done | |
a0da8069 NN |
2277 | done |
2278 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2279 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2280 | fi |
81ecdfbb RW |
2281 | |
2282 | # These three variables are undocumented and unsupported, | |
2283 | # and are intended to be withdrawn in a future Autoconf release. | |
2284 | # They can cause serious problems if a builder's source tree is in a directory | |
2285 | # whose full name contains unusual characters. | |
2286 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2287 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2288 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2289 | ||
a0da8069 | 2290 | |
c6b750e1 | 2291 | # Make sure we can run config.sub. |
81ecdfbb RW |
2292 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2293 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2294 | ||
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2296 | $as_echo_n "checking build system type... " >&6; } | |
2297 | if test "${ac_cv_build+set}" = set; then : | |
2298 | $as_echo_n "(cached) " >&6 | |
2299 | else | |
2300 | ac_build_alias=$build_alias | |
2301 | test "x$ac_build_alias" = x && | |
2302 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2303 | test "x$ac_build_alias" = x && | |
2304 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2305 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2306 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2307 | ||
2308 | fi | |
2309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2310 | $as_echo "$ac_cv_build" >&6; } | |
2311 | case $ac_cv_build in | |
2312 | *-*-*) ;; | |
2313 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2314 | esac | |
c6b750e1 | 2315 | build=$ac_cv_build |
81ecdfbb RW |
2316 | ac_save_IFS=$IFS; IFS='-' |
2317 | set x $ac_cv_build | |
2318 | shift | |
2319 | build_cpu=$1 | |
2320 | build_vendor=$2 | |
2321 | shift; shift | |
2322 | # Remember, the first character of IFS is used to create $*, | |
2323 | # except with old shells: | |
2324 | build_os=$* | |
2325 | IFS=$ac_save_IFS | |
2326 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2327 | |
a0da8069 | 2328 | |
c6b750e1 DJ |
2329 | case ${build_alias} in |
2330 | "") build_noncanonical=${build} ;; | |
2331 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2332 | esac |
2333 | ||
2334 | ||
cac3d6c4 | 2335 | |
c6b750e1 DJ |
2336 | case ${host_alias} in |
2337 | "") host_noncanonical=${build_noncanonical} ;; | |
2338 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2339 | esac |
2340 | ||
cac3d6c4 | 2341 | |
c6b750e1 DJ |
2342 | |
2343 | case ${target_alias} in | |
2344 | "") target_noncanonical=${host_noncanonical} ;; | |
2345 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2346 | esac |
2347 | ||
cac3d6c4 | 2348 | |
c6b750e1 DJ |
2349 | |
2350 | ||
2351 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2352 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2353 | NONENONEs,x,x, && | |
c6b750e1 | 2354 | program_transform_name=s,y,y, |
cac3d6c4 | 2355 | |
81ecdfbb RW |
2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2357 | $as_echo_n "checking host system type... " >&6; } | |
2358 | if test "${ac_cv_host+set}" = set; then : | |
2359 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2360 | else |
81ecdfbb RW |
2361 | if test "x$host_alias" = x; then |
2362 | ac_cv_host=$ac_cv_build | |
2363 | else | |
2364 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2365 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2366 | fi | |
c6b750e1 DJ |
2367 | |
2368 | fi | |
81ecdfbb RW |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2370 | $as_echo "$ac_cv_host" >&6; } | |
2371 | case $ac_cv_host in | |
2372 | *-*-*) ;; | |
2373 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2374 | esac | |
c6b750e1 | 2375 | host=$ac_cv_host |
81ecdfbb RW |
2376 | ac_save_IFS=$IFS; IFS='-' |
2377 | set x $ac_cv_host | |
2378 | shift | |
2379 | host_cpu=$1 | |
2380 | host_vendor=$2 | |
2381 | shift; shift | |
2382 | # Remember, the first character of IFS is used to create $*, | |
2383 | # except with old shells: | |
2384 | host_os=$* | |
2385 | IFS=$ac_save_IFS | |
2386 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2387 | |
2388 | ||
81ecdfbb RW |
2389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2390 | $as_echo_n "checking target system type... " >&6; } | |
2391 | if test "${ac_cv_target+set}" = set; then : | |
2392 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2393 | else |
81ecdfbb RW |
2394 | if test "x$target_alias" = x; then |
2395 | ac_cv_target=$ac_cv_host | |
2396 | else | |
2397 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2398 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2399 | fi | |
c6b750e1 | 2400 | |
cac3d6c4 | 2401 | fi |
81ecdfbb RW |
2402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2403 | $as_echo "$ac_cv_target" >&6; } | |
2404 | case $ac_cv_target in | |
2405 | *-*-*) ;; | |
2406 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2407 | esac | |
c6b750e1 | 2408 | target=$ac_cv_target |
81ecdfbb RW |
2409 | ac_save_IFS=$IFS; IFS='-' |
2410 | set x $ac_cv_target | |
2411 | shift | |
2412 | target_cpu=$1 | |
2413 | target_vendor=$2 | |
2414 | shift; shift | |
2415 | # Remember, the first character of IFS is used to create $*, | |
2416 | # except with old shells: | |
2417 | target_os=$* | |
2418 | IFS=$ac_save_IFS | |
2419 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2420 | |
2421 | ||
2422 | # The aliases save the names the user supplied, while $host etc. | |
2423 | # will get canonicalized. | |
2424 | test -n "$target_alias" && | |
2425 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2426 | NONENONEs,x,x, && | |
2427 | program_prefix=${target_alias}- | |
81ecdfbb | 2428 | |
a0da8069 | 2429 | test "$program_prefix" != NONE && |
81ecdfbb | 2430 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2431 | # Use a double $ so make ignores it. |
2432 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2433 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2434 | # Double any \ or $. | |
c6b750e1 | 2435 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2436 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2437 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2438 | |
a0da8069 NN |
2439 | |
2440 | ||
e5c3f801 NN |
2441 | # Get 'install' or 'install-sh' and its variants. |
2442 | # Find a good install program. We prefer a C program (faster), | |
2443 | # so one script is as good as another. But avoid the broken or | |
2444 | # incompatible versions: | |
2445 | # SysV /etc/install, /usr/sbin/install | |
2446 | # SunOS /usr/etc/install | |
2447 | # IRIX /sbin/install | |
2448 | # AIX /bin/install | |
c6b750e1 | 2449 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2450 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2451 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2452 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2453 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2454 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2455 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2457 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2458 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2459 | if test "${ac_cv_path_install+set}" = set; then : |
2460 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2461 | else |
2462 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2463 | for as_dir in $PATH | |
2464 | do | |
2465 | IFS=$as_save_IFS | |
2466 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2467 | # Account for people who put trailing slashes in PATH elements. |
2468 | case $as_dir/ in #(( | |
2469 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2470 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2471 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2472 | /usr/ucb/* ) ;; |
2473 | *) | |
2474 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2475 | # Don't use installbsd from OSF since it installs stuff as root | |
2476 | # by default. | |
2477 | for ac_prog in ginstall scoinst install; do | |
2478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2479 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2480 | if test $ac_prog = install && |
c6b750e1 | 2481 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2482 | # AIX install. It has an incompatible calling convention. |
2483 | : | |
c6b750e1 DJ |
2484 | elif test $ac_prog = install && |
2485 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2486 | # program-specific install script used by HP pwplus--don't use. | |
2487 | : | |
e5c3f801 | 2488 | else |
58c85be7 RW |
2489 | rm -rf conftest.one conftest.two conftest.dir |
2490 | echo one > conftest.one | |
2491 | echo two > conftest.two | |
2492 | mkdir conftest.dir | |
2493 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2494 | test -s conftest.one && test -s conftest.two && | |
2495 | test -s conftest.dir/conftest.one && | |
2496 | test -s conftest.dir/conftest.two | |
2497 | then | |
2498 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2499 | break 3 | |
2500 | fi | |
e5c3f801 NN |
2501 | fi |
2502 | fi | |
2503 | done | |
c6b750e1 DJ |
2504 | done |
2505 | ;; | |
2506 | esac | |
81ecdfbb RW |
2507 | |
2508 | done | |
2509 | IFS=$as_save_IFS | |
c6b750e1 | 2510 | |
58c85be7 | 2511 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2512 | |
2513 | fi | |
2514 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2515 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2516 | else |
58c85be7 RW |
2517 | # As a last resort, use the slow shell script. Don't cache a |
2518 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2519 | # break other packages using the cache if that directory is |
58c85be7 | 2520 | # removed, or if the value is a relative name. |
c6b750e1 | 2521 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2522 | fi |
2523 | fi | |
81ecdfbb RW |
2524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2525 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2526 | |
2527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2528 | # It thinks the first close brace ends the variable substitution. | |
2529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2530 | ||
c6b750e1 | 2531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2532 | |
2533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2534 | ||
81ecdfbb RW |
2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2536 | $as_echo_n "checking whether ln works... " >&6; } | |
2537 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2538 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2539 | else |
2540 | rm -f conftestdata_t | |
2541 | echo >conftestdata_f | |
2542 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2543 | then | |
2544 | acx_cv_prog_LN=ln | |
2545 | else | |
2546 | acx_cv_prog_LN=no | |
2547 | fi | |
2548 | rm -f conftestdata_f conftestdata_t | |
2549 | ||
2550 | fi | |
2551 | if test $acx_cv_prog_LN = no; then | |
2552 | LN="cp" | |
81ecdfbb RW |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2554 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2555 | else |
2556 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2558 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2559 | fi |
2560 | ||
81ecdfbb RW |
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2562 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2563 | LN_S=$as_ln_s |
2564 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2566 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2567 | else |
81ecdfbb RW |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2569 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2570 | fi |
2571 | ||
8e957354 PB |
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2573 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2574 | if test "${ac_cv_path_SED+set}" = set; then : | |
2575 | $as_echo_n "(cached) " >&6 | |
2576 | else | |
2577 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2578 | for ac_i in 1 2 3 4 5 6 7; do | |
2579 | ac_script="$ac_script$as_nl$ac_script" | |
2580 | done | |
2581 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2582 | { ac_script=; unset ac_script;} | |
2583 | if test -z "$SED"; then | |
2584 | ac_path_SED_found=false | |
2585 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2587 | for as_dir in $PATH | |
2588 | do | |
2589 | IFS=$as_save_IFS | |
2590 | test -z "$as_dir" && as_dir=. | |
2591 | for ac_prog in sed gsed; do | |
2592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2593 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2594 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2595 | # Check for GNU ac_path_SED and select it if it is found. | |
2596 | # Check for GNU $ac_path_SED | |
2597 | case `"$ac_path_SED" --version 2>&1` in | |
2598 | *GNU*) | |
2599 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2600 | *) | |
2601 | ac_count=0 | |
2602 | $as_echo_n 0123456789 >"conftest.in" | |
2603 | while : | |
2604 | do | |
2605 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2606 | mv "conftest.tmp" "conftest.in" | |
2607 | cp "conftest.in" "conftest.nl" | |
2608 | $as_echo '' >> "conftest.nl" | |
2609 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2610 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2611 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2612 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2613 | # Best one so far, save it but keep looking for a better one | |
2614 | ac_cv_path_SED="$ac_path_SED" | |
2615 | ac_path_SED_max=$ac_count | |
2616 | fi | |
2617 | # 10*(2^10) chars as input seems more than enough | |
2618 | test $ac_count -gt 10 && break | |
2619 | done | |
2620 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2621 | esac | |
2622 | ||
2623 | $ac_path_SED_found && break 3 | |
2624 | done | |
2625 | done | |
2626 | done | |
2627 | IFS=$as_save_IFS | |
2628 | if test -z "$ac_cv_path_SED"; then | |
2629 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2630 | fi | |
2631 | else | |
2632 | ac_cv_path_SED=$SED | |
2633 | fi | |
2634 | ||
2635 | fi | |
2636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2637 | $as_echo "$ac_cv_path_SED" >&6; } | |
2638 | SED="$ac_cv_path_SED" | |
2639 | rm -f conftest.sed | |
2640 | ||
2641 | for ac_prog in gawk mawk nawk awk | |
2642 | do | |
2643 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2644 | set dummy $ac_prog; ac_word=$2 | |
2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2646 | $as_echo_n "checking for $ac_word... " >&6; } | |
2647 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2648 | $as_echo_n "(cached) " >&6 | |
2649 | else | |
2650 | if test -n "$AWK"; then | |
2651 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2652 | else | |
2653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2654 | for as_dir in $PATH | |
2655 | do | |
2656 | IFS=$as_save_IFS | |
2657 | test -z "$as_dir" && as_dir=. | |
2658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2659 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2660 | ac_cv_prog_AWK="$ac_prog" | |
2661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2662 | break 2 | |
2663 | fi | |
2664 | done | |
2665 | done | |
2666 | IFS=$as_save_IFS | |
2667 | ||
2668 | fi | |
2669 | fi | |
2670 | AWK=$ac_cv_prog_AWK | |
2671 | if test -n "$AWK"; then | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2673 | $as_echo "$AWK" >&6; } | |
2674 | else | |
2675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2676 | $as_echo "no" >&6; } | |
2677 | fi | |
2678 | ||
2679 | ||
2680 | test -n "$AWK" && break | |
2681 | done | |
2682 | ||
e5c3f801 | 2683 | |
0fdbe983 DJ |
2684 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2685 | ||
2686 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2687 | # a relative path. | |
2688 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2689 | INSTALL="${srcpwd}/install-sh -c" | |
2690 | fi | |
2691 | ||
a0da8069 NN |
2692 | # Set srcdir to "." if that's what it is. |
2693 | # This is important for multilib support. | |
2694 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2695 | if test "${pwd}" = "${srcpwd}" ; then |
2696 | srcdir=. | |
252b5132 RH |
2697 | fi |
2698 | ||
a0da8069 | 2699 | topsrcdir=$srcpwd |
252b5132 | 2700 | |
a0da8069 | 2701 | extra_host_args= |
afefada0 | 2702 | |
a0da8069 NN |
2703 | ### To add a new directory to the tree, first choose whether it is a target |
2704 | ### or a host dependent tool. Then put it into the appropriate list | |
2705 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2706 | |
c6b750e1 | 2707 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2708 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2709 | |
c6b750e1 DJ |
2710 | # Dependency sorting is only needed when *configuration* must be done in |
2711 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2712 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2713 | |
a0da8069 NN |
2714 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2715 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2716 | |
6a9cf61e PB |
2717 | # these library is used by various programs built for the build |
2718 | # environment | |
2719 | # | |
1b6c0831 | 2720 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2721 | |
2722 | # these tools are built for the build environment | |
a90ef4bf | 2723 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2724 | |
a0da8069 | 2725 | # these libraries are used by various programs built for the host environment |
1b6c0831 L |
2726 | #f |
2727 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
a0da8069 | 2728 | |
a0da8069 NN |
2729 | # these tools are built for the host environment |
2730 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2731 | # know that we are building the simulator. | |
2732 | # binutils, gas and ld appear in that order because it makes sense to run | |
2733 | # "make check" in that particular order. | |
e6de499b | 2734 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2735 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
a0da8069 NN |
2736 | |
2737 | # libgcj represents the runtime libraries only used by gcj. | |
2738 | libgcj="target-libffi \ | |
a0da8069 | 2739 | target-zlib \ |
a0da8069 NN |
2740 | target-libjava" |
2741 | ||
2742 | # these libraries are built for the target environment, and are built after | |
2743 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2744 | # Note that libiberty is not a target library. |
b1299c4e | 2745 | target_libraries="target-libgcc \ |
2bf680c4 | 2746 | target-libbacktrace \ |
a0da8069 NN |
2747 | target-libgloss \ |
2748 | target-newlib \ | |
cff87f51 | 2749 | target-libgomp \ |
522e3d71 | 2750 | target-libcilkrts \ |
1b6c0831 | 2751 | target-liboffloadmic \ |
7ec59b9e | 2752 | target-libatomic \ |
d32e2926 | 2753 | target-libitm \ |
b9459e83 | 2754 | target-libstdc++-v3 \ |
5286fdef | 2755 | target-libsanitizer \ |
95e43135 | 2756 | target-libvtv \ |
1b6c0831 | 2757 | target-libmpx \ |
bb780410 | 2758 | target-libssp \ |
e552509b | 2759 | target-libquadmath \ |
4b1cb4fe | 2760 | target-libgfortran \ |
4f0ef2d8 | 2761 | target-boehm-gc \ |
83326456 | 2762 | ${libgcj} \ |
a2592b1b | 2763 | target-libobjc \ |
e552509b ILT |
2764 | target-libada \ |
2765 | target-libgo" | |
a0da8069 | 2766 | |
9c14acb8 NN |
2767 | # these tools are built using the target libraries, and are intended to |
2768 | # run only in the target environment | |
a0da8069 | 2769 | # |
9c14acb8 | 2770 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2771 | # list belongs in this list. |
a0da8069 | 2772 | # |
a90ef4bf | 2773 | target_tools="target-rda" |
252b5132 | 2774 | |
a0da8069 | 2775 | ################################################################################ |
252b5132 | 2776 | |
a0da8069 NN |
2777 | ## All tools belong in one of the four categories, and are assigned above |
2778 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2779 | ## is important because configure will choke if they ever get through. | |
2780 | ## ${configdirs} is directories we build using the host tools. | |
2781 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2782 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2783 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2784 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2785 | |
9cc8ae67 PB |
2786 | |
2787 | ||
a0da8069 | 2788 | ################################################################################ |
252b5132 | 2789 | |
a0da8069 | 2790 | srcname="gnu development package" |
252b5132 | 2791 | |
a0da8069 NN |
2792 | # This gets set non-empty for some net releases of packages. |
2793 | appdirs="" | |
252b5132 | 2794 | |
a0da8069 NN |
2795 | # Define is_cross_compiler to save on calls to 'test'. |
2796 | is_cross_compiler= | |
2797 | if test x"${host}" = x"${target}" ; then | |
2798 | is_cross_compiler=no | |
252b5132 | 2799 | else |
a0da8069 | 2800 | is_cross_compiler=yes |
c6b750e1 | 2801 | fi |
252b5132 | 2802 | |
9175bfc0 | 2803 | # Find the build and target subdir names. |
dd12c3a8 | 2804 | |
66a79c16 DJ |
2805 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2806 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2807 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2808 | # However, they still use the build modules, because the corresponding | |
2809 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2810 | # finishes. So: | |
2811 | # - build_subdir is where we find build modules, and never changes. | |
2812 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2813 | ||
2814 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2815 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2816 | |
81ecdfbb RW |
2817 | # Check whether --with-build-libsubdir was given. |
2818 | if test "${with_build_libsubdir+set}" = set; then : | |
2819 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2820 | else |
2821 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2822 | fi |
2823 | ||
b00612cc PB |
2824 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2825 | if ( test $srcdir = . && test -d gcc ) \ | |
2826 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2827 | host_subdir="host-${host_noncanonical}" | |
2828 | else | |
2829 | host_subdir=. | |
2830 | fi | |
dd12c3a8 NN |
2831 | # No prefix. |
2832 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2833 | |
2fd0b40b RW |
2834 | # Be sure to cover against remnants of an in-tree build. |
2835 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2836 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2837 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2838 | fi | |
252b5132 | 2839 | |
a0da8069 NN |
2840 | # Skipdirs are removed silently. |
2841 | skipdirs= | |
2842 | # Noconfigdirs are removed loudly. | |
2843 | noconfigdirs="" | |
252b5132 | 2844 | |
a0da8069 NN |
2845 | use_gnu_ld= |
2846 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2847 | if test x$with_gnu_ld = xno ; then | |
2848 | use_gnu_ld=no | |
93f9b408 | 2849 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2850 | fi |
2851 | ||
a0da8069 NN |
2852 | use_gnu_as= |
2853 | # Make sure we don't let GNU as be added if we didn't want it. | |
2854 | if test x$with_gnu_as = xno ; then | |
2855 | use_gnu_as=no | |
2856 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2857 | fi |
2858 | ||
700d40ca | 2859 | use_included_zlib= |
cf39cfc5 L |
2860 | |
2861 | # Check whether --with-system-zlib was given. | |
2862 | if test "${with_system_zlib+set}" = set; then : | |
2863 | withval=$with_system_zlib; | |
2864 | fi | |
2865 | ||
700d40ca ILT |
2866 | # Make sure we don't let ZLIB be added if we didn't want it. |
2867 | if test x$with_system_zlib = xyes ; then | |
2868 | use_included_zlib=no | |
2869 | noconfigdirs="$noconfigdirs zlib" | |
2870 | fi | |
2871 | ||
c6b750e1 | 2872 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2873 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2874 | |
a0da8069 NN |
2875 | case ${with_x} in |
2876 | yes | "") ;; # the default value for this tree is that X11 is available | |
2877 | no) | |
675c6968 | 2878 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2879 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2880 | enable_gdbtk=no |
a0da8069 NN |
2881 | ;; |
2882 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2883 | esac | |
252b5132 | 2884 | |
0377a422 | 2885 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2886 | # Remove these if host=target. |
2887 | cross_only="target-libgloss target-newlib target-opcodes" | |
2888 | ||
2889 | case $is_cross_compiler in | |
2890 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2891 | esac |
252b5132 | 2892 | |
a0da8069 NN |
2893 | # If both --with-headers and --with-libs are specified, default to |
2894 | # --without-newlib. | |
32be62b5 RS |
2895 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2896 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2897 | if test x"${with_newlib}" = x ; then |
2898 | with_newlib=no | |
2899 | fi | |
252b5132 RH |
2900 | fi |
2901 | ||
a0da8069 NN |
2902 | # Recognize --with-newlib/--without-newlib. |
2903 | case ${with_newlib} in | |
2904 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2905 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2906 | esac | |
252b5132 | 2907 | |
1b6c0831 L |
2908 | # Check whether --enable-as-accelerator-for was given. |
2909 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2910 | enableval=$enable_as_accelerator_for; | |
2911 | fi | |
2912 | ||
2913 | ||
2914 | # Check whether --enable-offload-targets was given. | |
2915 | if test "${enable_offload_targets+set}" = set; then : | |
2916 | enableval=$enable_offload_targets; | |
2917 | if test x"$enable_offload_targets" = x; then | |
2918 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2919 | fi | |
2920 | ||
2921 | else | |
2922 | enable_offload_targets= | |
2923 | fi | |
2924 | ||
2925 | ||
c7791212 NC |
2926 | # Handle --enable-gold, --enable-ld. |
2927 | # --disable-gold [--enable-ld] | |
2928 | # Build only ld. Default option. | |
d3b50760 L |
2929 | # --enable-gold [--enable-ld] |
2930 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2931 | # as "ld.bfd" and "ld". | |
2932 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2933 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2934 | # install ld as "ld.bfd". | |
2935 | # --enable-gold[=default] --disable-ld | |
2936 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2937 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2938 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2939 | # and ld.bfd). | |
c7791212 NC |
2940 | # In other words, ld is default |
2941 | # --enable-gold=default --enable-ld=default | |
2942 | # Error. | |
2943 | ||
2944 | default_ld= | |
81ecdfbb RW |
2945 | # Check whether --enable-gold was given. |
2946 | if test "${enable_gold+set}" = set; then : | |
2947 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2948 | else |
2949 | ENABLE_GOLD=no | |
81ecdfbb RW |
2950 | fi |
2951 | ||
c7791212 NC |
2952 | case "${ENABLE_GOLD}" in |
2953 | yes|default) | |
e6de499b NC |
2954 | # Check for ELF target. |
2955 | is_elf=no | |
2956 | case "${target}" in | |
2957 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2958 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2959 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2bda3143 | 2960 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2961 | case "${target}" in |
2962 | *-*-linux*aout* | *-*-linux*oldld*) | |
2963 | ;; | |
2964 | *) | |
2965 | is_elf=yes | |
2966 | ;; | |
2967 | esac | |
2968 | esac | |
2969 | ||
2970 | if test "$is_elf" = "yes"; then | |
2971 | # Check for target supported by gold. | |
93f9b408 | 2972 | case "${target}" in |
6d26190c JY |
2973 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
2974 | | aarch64*-*-* | tilegx*-*-*) | |
c7791212 NC |
2975 | configdirs="$configdirs gold" |
2976 | if test x${ENABLE_GOLD} = xdefault; then | |
2977 | default_ld=gold | |
2978 | fi | |
e6de499b | 2979 | ENABLE_GOLD=yes |
93f9b408 ILT |
2980 | ;; |
2981 | esac | |
e6de499b NC |
2982 | fi |
2983 | ;; | |
2984 | no) | |
2985 | ;; | |
2986 | *) | |
2987 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2988 | ;; | |
c7791212 NC |
2989 | esac |
2990 | ||
2991 | # Check whether --enable-ld was given. | |
2992 | if test "${enable_ld+set}" = set; then : | |
2993 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2994 | else | |
2995 | ENABLE_LD=yes | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | case "${ENABLE_LD}" in | |
3000 | default) | |
d3b50760 | 3001 | if test x${default_ld} != x; then |
c7791212 NC |
3002 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3003 | fi | |
3004 | ;; | |
3005 | yes) | |
3006 | ;; | |
3007 | no) | |
3008 | if test x${ENABLE_GOLD} != xyes; then | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3010 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3011 | fi | |
3012 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3013 | ;; | |
3014 | *) | |
3015 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3016 | ;; | |
3017 | esac | |
93f9b408 | 3018 | |
a0da8069 | 3019 | # Configure extra directories which are host specific |
252b5132 | 3020 | |
a0da8069 NN |
3021 | case "${host}" in |
3022 | *-cygwin*) | |
3023 | configdirs="$configdirs libtermcap" ;; | |
3024 | esac | |
252b5132 | 3025 | |
59f7ec45 HPN |
3026 | # A target can indicate whether a language isn't supported for some reason. |
3027 | # Only spaces may be used in this macro; not newlines or tabs. | |
3028 | unsupported_languages= | |
3029 | ||
c6b750e1 | 3030 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3031 | # target this usually means that a port of the program doesn't |
3032 | # exist yet. | |
252b5132 | 3033 | |
a0da8069 | 3034 | case "${host}" in |
3516a403 | 3035 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3036 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3037 | ;; |
a0da8069 | 3038 | esac |
252b5132 | 3039 | |
4b1cb4fe | 3040 | |
89a1e9c3 PB |
3041 | # Check whether --enable-libquadmath was given. |
3042 | if test "${enable_libquadmath+set}" = set; then : | |
3043 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3044 | else | |
3045 | ENABLE_LIBQUADMATH=yes | |
3046 | fi | |
3047 | ||
3048 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3049 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | # Check whether --enable-libquadmath-support was given. | |
3054 | if test "${enable_libquadmath_support+set}" = set; then : | |
3055 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3056 | else | |
3057 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3058 | fi | |
3059 | ||
3060 | enable_libquadmath_support= | |
3061 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3062 | enable_libquadmath_support=no | |
3063 | fi | |
3064 | ||
3065 | ||
81ecdfbb RW |
3066 | # Check whether --enable-libada was given. |
3067 | if test "${enable_libada+set}" = set; then : | |
3068 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3069 | else |
3070 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3071 | fi |
3072 | ||
a2592b1b | 3073 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3074 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3075 | fi |
3076 | ||
81ecdfbb RW |
3077 | # Check whether --enable-libssp was given. |
3078 | if test "${enable_libssp+set}" = set; then : | |
3079 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3080 | else |
3081 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3082 | fi |
3083 | ||
5f128533 | 3084 | |
f66a9a70 L |
3085 | # Check whether --enable-libstdcxx was given. |
3086 | if test "${enable_libstdcxx+set}" = set; then : | |
3087 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3088 | else | |
3089 | ENABLE_LIBSTDCXX=default | |
3090 | fi | |
3091 | ||
3092 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3093 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3094 | fi | |
3095 | ||
3096 | # If this is accelerator compiler and its target is intelmic we enable | |
3097 | # target liboffloadmic by default. If this is compiler with offloading | |
3098 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3099 | # liboffloadmic is disabled by default. | |
3100 | # Check whether --enable-liboffloadmic was given. | |
3101 | if test "${enable_liboffloadmic+set}" = set; then : | |
3102 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3103 | no | host | target) | |
3104 | enable_liboffloadmic=$enableval ;; | |
3105 | *) | |
3106 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3107 | esac | |
3108 | else | |
3109 | if test x"$enable_as_accelerator_for" != x; then | |
3110 | case "${target}" in | |
3111 | *-intelmic-* | *-intelmicemul-*) | |
3112 | enable_liboffloadmic=target | |
3113 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3114 | ;; | |
3115 | *) | |
3116 | enable_liboffloadmic=no | |
3117 | ;; | |
3118 | esac | |
3119 | else | |
3120 | case "${enable_offload_targets}" in | |
3121 | *-intelmic-* | *-intelmicemul-*) | |
3122 | enable_liboffloadmic=host | |
3123 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3124 | ;; | |
3125 | *) | |
3126 | enable_liboffloadmic=no | |
3127 | ;; | |
3128 | esac | |
3129 | fi | |
f66a9a70 L |
3130 | fi |
3131 | ||
1b6c0831 L |
3132 | |
3133 | ||
a0da8069 NN |
3134 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3135 | # front-end isn't enabled, we still get libgcj disabled. | |
3136 | libgcj_saved=$libgcj | |
3137 | case $enable_libgcj in | |
3138 | yes) | |
3139 | # If we reset it here, it won't get added to noconfigdirs in the | |
3140 | # target-specific build rules, so it will be forcibly enabled | |
3141 | # (unless the Java language itself isn't enabled). | |
3142 | libgcj= | |
3143 | ;; | |
3144 | no) | |
3145 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3146 | # Don't disable libffi, though, other languages use it. |
3147 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3148 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3149 | # built. | |
3150 | libgcj_saved= | |
a0da8069 NN |
3151 | ;; |
3152 | esac | |
252b5132 | 3153 | |
ffdd6afc ILT |
3154 | # Check whether --enable-static-libjava was given. |
3155 | if test "${enable_static_libjava+set}" = set; then : | |
3156 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3157 | else | |
3158 | ENABLE_STATIC_LIBJAVA=no | |
3159 | fi | |
3160 | ||
3161 | enable_static_libjava= | |
3162 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3163 | enable_static_libjava=yes | |
3164 | fi | |
3165 | ||
3166 | if test x$enable_static_libjava != xyes ; then | |
3167 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3168 | fi | |
3169 | ||
4b1cb4fe | 3170 | |
a6df5a19 PB |
3171 | # Disable libgomp on non POSIX hosted systems. |
3172 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3173 | # Enable libgomp by default on hosted POSIX systems. |
3174 | case "${target}" in | |
29383458 | 3175 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3176 | ;; |
5b806d27 | 3177 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3178 | ;; |
2479f722 | 3179 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3180 | ;; |
3181 | *-*-darwin* | *-*-aix*) | |
3182 | ;; | |
3183 | *) | |
3184 | noconfigdirs="$noconfigdirs target-libgomp" | |
3185 | ;; | |
3186 | esac | |
a6df5a19 | 3187 | fi |
b3ded179 | 3188 | |
7ec59b9e L |
3189 | # Disable libatomic on unsupported systems. |
3190 | if test -d ${srcdir}/libatomic; then | |
3191 | if test x$enable_libatomic = x; then | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3193 | $as_echo_n "checking for libatomic support... " >&6; } | |
3194 | if (srcdir=${srcdir}/libatomic; \ | |
3195 | . ${srcdir}/configure.tgt; \ | |
3196 | test -n "$UNSUPPORTED") | |
3197 | then | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3199 | $as_echo "no" >&6; } | |
3200 | noconfigdirs="$noconfigdirs target-libatomic" | |
3201 | else | |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3203 | $as_echo "yes" >&6; } | |
3204 | fi | |
3205 | fi | |
3206 | fi | |
3207 | ||
522e3d71 | 3208 | # Disable libcilkrts on unsupported systems. |
3209 | if test -d ${srcdir}/libcilkrts; then | |
3210 | if test x$enable_libcilkrts = x; then | |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3212 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3213 | if (srcdir=${srcdir}/libcilkrts; \ | |
3214 | . ${srcdir}/configure.tgt; \ | |
3215 | test -n "$UNSUPPORTED") | |
3216 | then | |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3218 | $as_echo "no" >&6; } | |
3219 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3220 | else | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3222 | $as_echo "yes" >&6; } | |
3223 | fi | |
3224 | fi | |
3225 | fi | |
3226 | ||
1b6c0831 L |
3227 | # Disable liboffloadmic on unsupported systems. |
3228 | if test -d ${srcdir}/liboffloadmic; then | |
3229 | if test x$enable_liboffloadmic != xno; then | |
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3231 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3232 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3233 | . ${srcdir}/configure.tgt; \ | |
3234 | test -n "$UNSUPPORTED") | |
3235 | then | |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3237 | $as_echo "no" >&6; } | |
3238 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3239 | else | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3241 | $as_echo "yes" >&6; } | |
3242 | fi | |
3243 | fi | |
3244 | fi | |
3245 | ||
d32e2926 RH |
3246 | # Disable libitm on unsupported systems. |
3247 | if test -d ${srcdir}/libitm; then | |
3248 | if test x$enable_libitm = x; then | |
3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3250 | $as_echo_n "checking for libitm support... " >&6; } | |
3251 | if (srcdir=${srcdir}/libitm; \ | |
3252 | . ${srcdir}/configure.tgt; \ | |
3253 | test -n "$UNSUPPORTED") | |
3254 | then | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3256 | $as_echo "no" >&6; } | |
3257 | noconfigdirs="$noconfigdirs target-libitm" | |
3258 | else | |
3259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3260 | $as_echo "yes" >&6; } | |
3261 | fi | |
3262 | fi | |
3263 | fi | |
3264 | ||
5286fdef L |
3265 | # Disable libsanitizer on unsupported systems. |
3266 | if test -d ${srcdir}/libsanitizer; then | |
3267 | if test x$enable_libsanitizer = x; then | |
3268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3269 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3270 | if (srcdir=${srcdir}/libsanitizer; \ | |
3271 | . ${srcdir}/configure.tgt; \ | |
3272 | test -n "$UNSUPPORTED") | |
3273 | then | |
3274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3275 | $as_echo "no" >&6; } | |
3276 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3277 | else | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3279 | $as_echo "yes" >&6; } | |
3280 | fi | |
3281 | fi | |
3282 | fi | |
3283 | ||
95e43135 JBG |
3284 | # Disable libvtv on unsupported systems. |
3285 | if test -d ${srcdir}/libvtv; then | |
3286 | if test x$enable_libvtv = x; then | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3288 | $as_echo_n "checking for libvtv support... " >&6; } | |
3289 | if (srcdir=${srcdir}/libvtv; \ | |
3290 | . ${srcdir}/configure.tgt; \ | |
3291 | test "$VTV_SUPPORTED" != "yes") | |
3292 | then | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3294 | $as_echo "no" >&6; } | |
3295 | noconfigdirs="$noconfigdirs target-libvtv" | |
3296 | else | |
3297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3298 | $as_echo "yes" >&6; } | |
3299 | fi | |
3300 | fi | |
3301 | fi | |
3302 | ||
1b6c0831 L |
3303 | |
3304 | # Enable libmpx on supported systems by request. | |
3305 | if test -d ${srcdir}/libmpx; then | |
3306 | if test x$enable_libmpx = xyes; then | |
3307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 | |
3308 | $as_echo_n "checking for libmpx support... " >&6; } | |
3309 | if (srcdir=${srcdir}/libmpx; \ | |
3310 | . ${srcdir}/configure.tgt; \ | |
3311 | test "$LIBMPX_SUPPORTED" != "yes") | |
3312 | then | |
3313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3314 | $as_echo "no" >&6; } | |
3315 | noconfigdirs="$noconfigdirs target-libmpx" | |
3316 | else | |
3317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3318 | $as_echo "yes" >&6; } | |
3319 | fi | |
3320 | else | |
3321 | noconfigdirs="$noconfigdirs target-libmpx" | |
3322 | fi | |
3323 | fi | |
3324 | ||
3325 | ||
3326 | ||
1488e230 DE |
3327 | # Disable libquadmath for some systems. |
3328 | case "${target}" in | |
5286fdef L |
3329 | avr-*-*) |
3330 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3331 | ;; | |
1488e230 DE |
3332 | # libquadmath is unused on AIX and libquadmath build process use of |
3333 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3334 | powerpc-*-aix* | rs6000-*-aix*) | |
3335 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3336 | ;; | |
3337 | esac | |
3338 | ||
065a5627 JM |
3339 | # Disable libssp for some systems. |
3340 | case "${target}" in | |
3341 | avr-*-*) | |
c5f5c3c2 | 3342 | # No hosted I/O support. |
065a5627 JM |
3343 | noconfigdirs="$noconfigdirs target-libssp" |
3344 | ;; | |
3345 | powerpc-*-aix* | rs6000-*-aix*) | |
3346 | noconfigdirs="$noconfigdirs target-libssp" | |
3347 | ;; | |
99c513f6 | 3348 | rl78-*-*) |
202e2356 NC |
3349 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3350 | # doesn't fault for those - instead, it gives a build-time error | |
3351 | # for explicit misaligned loads. | |
99c513f6 DD |
3352 | noconfigdirs="$noconfigdirs target-libssp" |
3353 | ;; | |
1b6c0831 L |
3354 | visium-*-*) |
3355 | # No hosted I/O support. | |
3356 | noconfigdirs="$noconfigdirs target-libssp" | |
3357 | ;; | |
065a5627 JM |
3358 | esac |
3359 | ||
065a5627 | 3360 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3361 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3362 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3363 | case "${target}" in | |
3364 | *-*-vxworks*) | |
3365 | # VxWorks uses the Dinkumware C++ library. | |
3366 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3367 | ;; | |
3368 | arm*-wince-pe*) | |
3369 | # the C++ libraries don't build on top of CE's C libraries | |
3370 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3371 | ;; | |
3372 | avr-*-*) | |
3373 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3374 | ;; | |
3375 | esac | |
3376 | fi | |
065a5627 JM |
3377 | |
3378 | # Disable Fortran for some systems. | |
3379 | case "${target}" in | |
3380 | mmix-*-*) | |
3381 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3382 | unsupported_languages="$unsupported_languages fortran" | |
3383 | ;; | |
3384 | esac | |
3385 | ||
0827f9a6 | 3386 | # Disable Java if libffi is not supported. |
9863d716 | 3387 | case "${target}" in |
e7d5abf1 JBG |
3388 | aarch64-*-*) |
3389 | ;; | |
0827f9a6 JM |
3390 | alpha*-*-*) |
3391 | ;; | |
3392 | arm*-*-*) | |
3393 | ;; | |
3394 | cris-*-*) | |
3395 | ;; | |
3396 | frv-*-*) | |
3397 | ;; | |
3398 | hppa*-*-linux*) | |
3399 | ;; | |
3400 | hppa*-*-hpux*) | |
3401 | ;; | |
3402 | i?86-*-*) | |
3403 | ;; | |
3404 | ia64*-*-*) | |
3405 | ;; | |
3406 | m32r*-*-*) | |
3407 | ;; | |
3408 | m68k-*-*) | |
3409 | ;; | |
2479f722 | 3410 | mips*-*-rtems*) |
0827f9a6 JM |
3411 | ;; |
3412 | mips*-*-linux*) | |
3413 | ;; | |
3414 | powerpc*-*-linux*) | |
3415 | ;; | |
3416 | powerpc-*-darwin*) | |
3417 | ;; | |
3418 | powerpc-*-aix* | rs6000-*-aix*) | |
3419 | ;; | |
3420 | powerpc-*-freebsd*) | |
3421 | ;; | |
3422 | powerpc64-*-freebsd*) | |
3423 | ;; | |
3424 | powerpc*-*-rtems*) | |
9863d716 | 3425 | ;; |
0827f9a6 JM |
3426 | s390-*-* | s390x-*-*) |
3427 | ;; | |
3428 | sh-*-* | sh[34]*-*-*) | |
3429 | ;; | |
3430 | sh64-*-* | sh5*-*-*) | |
3431 | ;; | |
3432 | sparc*-*-*) | |
3433 | ;; | |
3434 | x86_64-*-*) | |
3435 | ;; | |
3436 | *-*-*) | |
3437 | unsupported_languages="$unsupported_languages java" | |
3438 | ;; | |
3439 | esac | |
3440 | ||
3441 | # Disable Java, libgcj or related libraries for some systems. | |
3442 | case "${target}" in | |
9863d716 JM |
3443 | powerpc-*-darwin*) |
3444 | ;; | |
3445 | i[3456789]86-*-darwin*) | |
3446 | ;; | |
3447 | x86_64-*-darwin[912]*) | |
3448 | ;; | |
3449 | *-*-darwin*) | |
3450 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3451 | ;; | |
9863d716 JM |
3452 | *-*-netware*) |
3453 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3454 | ;; | |
3455 | *-*-rtems*) | |
3456 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3457 | ;; | |
3458 | *-*-tpf*) | |
3459 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3460 | ;; | |
3461 | *-*-uclinux*) | |
3462 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3463 | ;; | |
3464 | *-*-vxworks*) | |
3465 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3466 | ;; | |
9863d716 JM |
3467 | alpha*-*-*vms*) |
3468 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3469 | ;; | |
1b6c0831 L |
3470 | arm*-*-freebsd*) |
3471 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3472 | ;; | |
0827f9a6 | 3473 | arm-wince-pe) |
9863d716 JM |
3474 | noconfigdirs="$noconfigdirs ${libgcj}" |
3475 | ;; | |
9863d716 JM |
3476 | arm*-*-symbianelf*) |
3477 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3478 | ;; | |
9863d716 | 3479 | bfin-*-*) |
9863d716 JM |
3480 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3481 | ;; | |
9863d716 JM |
3482 | cris-*-* | crisv32-*-*) |
3483 | unsupported_languages="$unsupported_languages java" | |
3484 | case "${target}" in | |
3485 | *-*-linux*) | |
3486 | ;; | |
3487 | *) # See PR46792 regarding target-libffi. | |
3488 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3489 | esac | |
3490 | ;; | |
9863d716 JM |
3491 | hppa*64*-*-linux*) |
3492 | # In this case, it's because the hppa64-linux target is for | |
3493 | # the kernel only at this point and has no libc, and thus no | |
3494 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3495 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3496 | ;; |
82ae827f | 3497 | hppa*64*-*-hpux*) |
9863d716 JM |
3498 | noconfigdirs="$noconfigdirs ${libgcj}" |
3499 | ;; | |
3500 | hppa*-hp-hpux11*) | |
3501 | ;; | |
82ae827f | 3502 | hppa*-*-hpux*) |
9863d716 JM |
3503 | # According to Alexandre Oliva <[email protected]>, libjava won't |
3504 | # build on HP-UX 10.20. | |
3505 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3506 | ;; | |
9863d716 JM |
3507 | ia64*-*-*vms*) |
3508 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3509 | ;; | |
9863d716 JM |
3510 | i[3456789]86-w64-mingw*) |
3511 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3512 | ;; | |
3513 | i[3456789]86-*-mingw*) | |
3514 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3515 | ;; | |
3516 | x86_64-*-mingw*) | |
3517 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3518 | ;; | |
9863d716 JM |
3519 | mmix-*-*) |
3520 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3521 | ;; |
3522 | powerpc-*-aix*) | |
3523 | # copied from rs6000-*-* entry | |
3524 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3525 | ;; | |
9863d716 JM |
3526 | rs6000-*-aix*) |
3527 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3528 | ;; | |
3f8107ab AM |
3529 | ft32-*-*) |
3530 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3531 | ;; | |
9863d716 JM |
3532 | *-*-lynxos*) |
3533 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3534 | ;; | |
9863d716 JM |
3535 | esac |
3536 | ||
1b6c0831 L |
3537 | # Disable the go frontend on systems where it is known to not work. Please keep |
3538 | # this in sync with contrib/config-list.mk. | |
3539 | case "${target}" in | |
3540 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3541 | unsupported_languages="$unsupported_languages go" | |
3542 | ;; | |
3543 | esac | |
3544 | ||
a413f71a ILT |
3545 | # Disable libgo for some systems where it is known to not work. |
3546 | # For testing, you can easily override this with --enable-libgo. | |
3547 | if test x$enable_libgo = x; then | |
3548 | case "${target}" in | |
3549 | *-*-darwin*) | |
3550 | # PR 46986 | |
3551 | noconfigdirs="$noconfigdirs target-libgo" | |
3552 | ;; | |
3553 | *-*-cygwin* | *-*-mingw*) | |
3554 | noconfigdirs="$noconfigdirs target-libgo" | |
3555 | ;; | |
3556 | *-*-aix*) | |
3557 | noconfigdirs="$noconfigdirs target-libgo" | |
3558 | ;; | |
3559 | esac | |
3560 | fi | |
3561 | ||
691bb5a1 DD |
3562 | # Default libgloss CPU subdirectory. |
3563 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3564 | |
ff46fb8f JM |
3565 | case "${target}" in |
3566 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3567 | libgloss_dir=wince | |
3568 | ;; | |
f1dd87fc YZ |
3569 | aarch64*-*-* ) |
3570 | libgloss_dir=aarch64 | |
3571 | ;; | |
ff46fb8f JM |
3572 | arm*-*-*) |
3573 | libgloss_dir=arm | |
3574 | ;; | |
3575 | cris-*-* | crisv32-*-*) | |
3576 | libgloss_dir=cris | |
3577 | ;; | |
3578 | hppa*-*-*) | |
3579 | libgloss_dir=pa | |
3580 | ;; | |
3581 | i[3456789]86-*-*) | |
3582 | libgloss_dir=i386 | |
3583 | ;; | |
3584 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3585 | libgloss_dir=m68hc11 | |
3586 | ;; | |
3587 | m68*-*-* | fido-*-*) | |
3588 | libgloss_dir=m68k | |
3589 | ;; | |
3590 | mips*-*-*) | |
3591 | libgloss_dir=mips | |
3592 | ;; | |
3593 | powerpc*-*-*) | |
3594 | libgloss_dir=rs6000 | |
3595 | ;; | |
3596 | sparc*-*-*) | |
3597 | libgloss_dir=sparc | |
3598 | ;; | |
3599 | esac | |
3600 | ||
c7e4b184 | 3601 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3602 | case "${target}" in |
c7e4b184 JM |
3603 | alpha*-dec-osf*) |
3604 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3605 | ;; | |
3606 | i[3456789]86-*-linux*) | |
3607 | # This section makes it possible to build newlib natively on linux. | |
3608 | # If we are using a cross compiler then don't configure newlib. | |
3609 | if test x${is_cross_compiler} != xno ; then | |
3610 | noconfigdirs="$noconfigdirs target-newlib" | |
3611 | fi | |
3612 | noconfigdirs="$noconfigdirs target-libgloss" | |
3613 | # If we are not using a cross compiler, do configure newlib. | |
3614 | # Note however, that newlib will only be configured in this situation | |
3615 | # if the --with-newlib option has been given, because otherwise | |
3616 | # 'target-newlib' will appear in skipdirs. | |
3617 | ;; | |
3618 | i[3456789]86-*-rdos*) | |
3619 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3620 | ;; | |
3621 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3622 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3623 | ;; | |
3624 | sparc-*-sunos4*) | |
3625 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3626 | ;; | |
3627 | *-*-aix*) | |
3628 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3629 | ;; | |
3630 | *-*-beos*) | |
3631 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3632 | ;; | |
a0da8069 | 3633 | *-*-chorusos) |
b2f14e4a | 3634 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3635 | ;; |
c7e4b184 JM |
3636 | *-*-dragonfly*) |
3637 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3638 | ;; | |
3639 | *-*-freebsd*) | |
3640 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3641 | ;; | |
3642 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3643 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3644 | ;; | |
3645 | *-*-lynxos*) | |
3646 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3647 | ;; | |
3648 | *-*-mingw*) | |
3649 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3650 | ;; | |
3651 | *-*-netbsd*) | |
3652 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3653 | ;; | |
3654 | *-*-netware*) | |
3655 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3656 | ;; | |
3657 | *-*-tpf*) | |
3658 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3659 | ;; | |
3660 | *-*-uclinux*) | |
3661 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3662 | ;; | |
3663 | *-*-vxworks*) | |
3664 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3665 | ;; | |
3666 | esac | |
3667 | ||
3668 | case "${target}" in | |
3669 | *-*-chorusos) | |
3670 | ;; | |
24741ab2 | 3671 | powerpc-*-darwin*) |
9d39db92 | 3672 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3673 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3674 | ;; |
85bd1942 TG |
3675 | i[3456789]86-*-darwin*) |
3676 | noconfigdirs="$noconfigdirs ld gprof" | |
3677 | noconfigdirs="$noconfigdirs sim target-rda" | |
3678 | ;; | |
e8a5fa9c | 3679 | x86_64-*-darwin[912]*) |
652dec25 TG |
3680 | noconfigdirs="$noconfigdirs ld gas gprof" |
3681 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3682 | ;; |
04d1ab34 | 3683 | *-*-darwin*) |
d320aacb | 3684 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3685 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3686 | ;; |
5b806d27 | 3687 | *-*-dragonfly*) |
5b806d27 | 3688 | ;; |
de0b4a87 | 3689 | *-*-freebsd*) |
4b1cb4fe DD |
3690 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3691 | && test -f /usr/local/include/gmp.h; then | |
3692 | with_gmp=/usr/local | |
3693 | fi | |
4b1cb4fe | 3694 | ;; |
f8a495c8 NC |
3695 | *-*-kaos*) |
3696 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3697 | noconfigdirs="$noconfigdirs target-libgloss" |
3698 | ;; | |
a0da8069 | 3699 | *-*-netbsd*) |
a0da8069 | 3700 | ;; |
2a3124ca | 3701 | *-*-netware*) |
a0da8069 NN |
3702 | ;; |
3703 | *-*-rtems*) | |
9863d716 | 3704 | noconfigdirs="$noconfigdirs target-libgloss" |
f8797b5a JB |
3705 | # this is not caught below because this stanza matches earlier |
3706 | case $target in | |
3707 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3708 | esac | |
a0da8069 | 3709 | ;; |
1587117a EC |
3710 | # The tpf target doesn't support gdb yet. |
3711 | *-*-tpf*) | |
c7e4b184 | 3712 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3713 | ;; |
c1968181 | 3714 | *-*-uclinux*) |
c7e4b184 | 3715 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3716 | ;; |
a0da8069 | 3717 | *-*-vxworks*) |
a0da8069 NN |
3718 | ;; |
3719 | alpha*-dec-osf*) | |
3720 | # ld works, but does not support shared libraries. | |
a0da8069 | 3721 | # gas doesn't generate exception information. |
c7e4b184 | 3722 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3723 | ;; |
3724 | alpha*-*-*vms*) | |
9863d716 | 3725 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3726 | ;; |
a0da8069 NN |
3727 | alpha*-*-*) |
3728 | # newlib is not 64 bit ready | |
9863d716 | 3729 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3730 | ;; |
a0da8069 | 3731 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3732 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3733 | ;; |
f4cfb980 | 3734 | arc-*-*|arceb-*-*) |
782cb41f | 3735 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3736 | ;; |
a0da8069 | 3737 | arm-*-pe*) |
9863d716 | 3738 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3739 | ;; |
a0da8069 | 3740 | arm-*-riscix*) |
b2f14e4a | 3741 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3742 | ;; |
8e71395b L |
3743 | avr-*-rtems*) |
3744 | ;; | |
3745 | avr-*-*) | |
3746 | if test x${with_avrlibc} != xno; then | |
3747 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3748 | fi | |
3749 | ;; | |
a0da8069 | 3750 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3751 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3752 | ;; |
b2f14e4a JM |
3753 | tic54x-*-*) |
3754 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3755 | ;; |
a0da8069 | 3756 | d10v-*-*) |
b2f14e4a | 3757 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3758 | ;; |
3759 | d30v-*-*) | |
b2f14e4a | 3760 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3761 | ;; |
3762 | fr30-*-elf*) | |
9863d716 | 3763 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3764 | ;; |
3f8107ab AM |
3765 | ft32-*-*) |
3766 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3767 | ;; | |
20135e4c | 3768 | moxie-*-*) |
10b8fe5e | 3769 | noconfigdirs="$noconfigdirs" |
20135e4c | 3770 | ;; |
a0da8069 | 3771 | h8300*-*-*) |
9863d716 | 3772 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3773 | ;; |
3774 | h8500-*-*) | |
b2f14e4a | 3775 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3776 | ;; |
caeba88f | 3777 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3778 | ;; |
93cc359e | 3779 | hppa*64*-*-linux*) |
a0da8069 | 3780 | ;; |
f0ff0f90 | 3781 | hppa*-*-linux*) |
5dcac624 | 3782 | ;; |
a0da8069 | 3783 | hppa*-*-*elf* | \ |
a0da8069 NN |
3784 | hppa*-*-lites* | \ |
3785 | hppa*-*-openbsd* | \ | |
3786 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3787 | ;; |
3788 | hppa*-hp-hpux11*) | |
0377a422 | 3789 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3790 | ;; |
691bb5a1 | 3791 | hppa*-*-pro*) |
691bb5a1 | 3792 | ;; |
a0da8069 | 3793 | hppa*-*-*) |
9863d716 | 3794 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3795 | ;; |
b07c2aad | 3796 | i960-*-*) |
b2f14e4a | 3797 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3798 | ;; |
a0da8069 NN |
3799 | ia64*-*-elf*) |
3800 | # No gdb support yet. | |
0377a422 | 3801 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3802 | ;; |
3803 | ia64*-**-hpux*) | |
92c9a463 | 3804 | # No ld support yet. |
9863d716 | 3805 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3806 | ;; |
19e99079 | 3807 | ia64*-*-*vms*) |
7ec59b9e L |
3808 | # No ld support yet. |
3809 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3810 | ;; |
1f53ca9a | 3811 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3812 | ;; |
3813 | i[3456789]86-*-mingw*) | |
45055374 | 3814 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3815 | ;; |
a0da8069 NN |
3816 | *-*-cygwin*) |
3817 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3818 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3819 | # always build newlib if winsup directory is present. |
45055374 | 3820 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3821 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3822 | elif test -d "$srcdir/newlib"; then |
45055374 | 3823 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3824 | fi |
c6b750e1 | 3825 | ;; |
ec11bdc6 | 3826 | i[3456789]86-*-pe) |
782cb41f | 3827 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3828 | ;; |
ec11bdc6 | 3829 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3830 | # The linker does not yet know about weak symbols in COFF, |
3831 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3832 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3833 | ;; |
ec11bdc6 | 3834 | i[3456789]86-*-sco*) |
b2f14e4a | 3835 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3836 | ;; |
cff32a7c | 3837 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3838 | noconfigdirs="$noconfigdirs target-libgloss" |
3839 | ;; | |
ec11bdc6 | 3840 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3841 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3842 | ;; |
ec11bdc6 | 3843 | i[3456789]86-*-beos*) |
c7e4b184 | 3844 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3845 | ;; |
b59bea8a | 3846 | i[3456789]86-*-rdos*) |
c7e4b184 | 3847 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3848 | ;; |
a0da8069 | 3849 | mmix-*-*) |
9863d716 | 3850 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3851 | ;; |
4970f871 | 3852 | mt-*-*) |
cdb9b172 AH |
3853 | noconfigdirs="$noconfigdirs sim" |
3854 | ;; | |
a0da8069 NN |
3855 | powerpc-*-aix*) |
3856 | # copied from rs6000-*-* entry | |
c7e4b184 | 3857 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3858 | ;; |
93cc359e | 3859 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3860 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3861 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3862 | # always build newlib. |
3863 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3864 | ;; | |
3865 | # This is temporary until we can link against shared libraries | |
3866 | powerpcle-*-solaris*) | |
b2f14e4a | 3867 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3868 | ;; |
3869 | powerpc-*-beos*) | |
c7e4b184 | 3870 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3871 | ;; |
a0da8069 | 3872 | rs6000-*-lynxos*) |
c7e4b184 | 3873 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3874 | ;; |
3875 | rs6000-*-aix*) | |
c7e4b184 | 3876 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3877 | ;; |
3878 | rs6000-*-*) | |
9863d716 | 3879 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3880 | ;; |
3881 | m68k-apollo-*) | |
b2f14e4a | 3882 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3883 | ;; |
25a07265 | 3884 | microblaze*) |
9863d716 | 3885 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3886 | ;; |
a9d58c06 | 3887 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3888 | if test x$with_newlib = xyes; then |
3889 | noconfigdirs="$noconfigdirs gprof" | |
3890 | fi | |
5bd8be13 | 3891 | ;; |
a0da8069 | 3892 | mips*-*-irix5*) |
b2f14e4a | 3893 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3894 | ;; |
3895 | mips*-*-irix6*) | |
9863d716 | 3896 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3897 | ;; |
a0da8069 | 3898 | mips*-*-bsd*) |
e8044f35 | 3899 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3900 | ;; |
a0da8069 | 3901 | mips*-*-linux*) |
a0da8069 | 3902 | ;; |
e8044f35 RS |
3903 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3904 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3905 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3906 | ;; | |
a0da8069 | 3907 | mips*-*-*) |
9863d716 | 3908 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3909 | ;; |
b25b5cef CJW |
3910 | nds32*-*-*) |
3911 | noconfigdirs="$noconfigdirs gdb" | |
3912 | ;; | |
1b6c0831 L |
3913 | nvptx*-*-*) |
3914 | # nvptx is just a compiler | |
3915 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" | |
3916 | ;; | |
cfbc1a6c JS |
3917 | or1k*-*-*) |
3918 | noconfigdirs="$noconfigdirs gdb" | |
3919 | ;; | |
dbf85af7 | 3920 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3921 | case "${target}" in |
3922 | sh*-*-elf) | |
9863d716 | 3923 | ;; |
e8a5fa9c | 3924 | *) |
9863d716 | 3925 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3926 | esac |
a0da8069 | 3927 | ;; |
a0da8069 | 3928 | sparc-*-sunos4*) |
c7e4b184 | 3929 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3930 | use_gnu_ld=no |
3931 | fi | |
3932 | ;; | |
619a3713 | 3933 | tic6x-*-*) |
40ae9136 | 3934 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3935 | ;; |
68d122bb | 3936 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3937 | noconfigdirs="$noconfigdirs sim" |
3938 | ;; | |
a0da8069 | 3939 | v810-*-*) |
b2f14e4a | 3940 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3941 | ;; |
3942 | vax-*-*) | |
9863d716 | 3943 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3944 | ;; |
a0da8069 | 3945 | esac |
252b5132 | 3946 | |
a0da8069 NN |
3947 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3948 | # depends upon some newlib header files. | |
3949 | case "${noconfigdirs}" in | |
3950 | *target-libgloss*) ;; | |
3951 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3952 | esac | |
3953 | ||
a0da8069 | 3954 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3955 | host_makefile_frag=/dev/null |
3956 | if test -d ${srcdir}/config ; then | |
3957 | case "${host}" in | |
ec11bdc6 | 3958 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3959 | host_makefile_frag="config/mh-djgpp" |
3960 | ;; | |
3961 | *-cygwin*) | |
e33b51a6 | 3962 | |
81ecdfbb RW |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3964 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3965 | echo a >cygwin-cat-check |
1f53ca9a | 3966 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3967 | rm cygwin-cat-check |
81ecdfbb RW |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3969 | $as_echo "yes" >&6; } | |
e33b51a6 | 3970 | else |
8ade07e9 | 3971 | rm cygwin-cat-check |
81ecdfbb RW |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3973 | $as_echo "no" >&6; } | |
3974 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3975 | Please either mount the build directory in binary mode or run the following |
3976 | commands before running any configure script: | |
3977 | set -o igncr | |
3978 | export SHELLOPTS | |
81ecdfbb | 3979 | " "$LINENO" 5 |
e33b51a6 | 3980 | fi |
e33b51a6 | 3981 | |
a0da8069 NN |
3982 | host_makefile_frag="config/mh-cygwin" |
3983 | ;; | |
8a1599ab | 3984 | *-mingw*) |
84e7906e | 3985 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3986 | ;; |
da888c87 | 3987 | hppa*-hp-hpux10*) |
da888c87 | 3988 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3989 | ;; |
3516a403 | 3990 | hppa*-hp-hpux*) |
da888c87 PB |
3991 | host_makefile_frag="config/mh-pa" |
3992 | ;; | |
3993 | hppa*-*) | |
3994 | host_makefile_frag="config/mh-pa" | |
3995 | ;; | |
e552509b ILT |
3996 | *-*-darwin*) |
3997 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3998 | ;; |
f6d183c0 PB |
3999 | powerpc-*-aix*) |
4000 | host_makefile_frag="config/mh-ppc-aix" | |
4001 | ;; | |
4002 | rs6000-*-aix*) | |
4003 | host_makefile_frag="config/mh-ppc-aix" | |
4004 | ;; | |
a0da8069 NN |
4005 | esac |
4006 | fi | |
4007 | ||
9e07f89d | 4008 | if test "${build}" != "${host}" ; then |
1576798e PB |
4009 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4010 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4011 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
4012 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4013 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4014 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 4015 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
4016 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4017 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4018 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4019 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4020 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4021 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4022 | else | |
4023 | AR_FOR_BUILD="\$(AR)" | |
4024 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4025 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
4026 | CXX_FOR_BUILD="\$(CXX)" |
4027 | GCJ_FOR_BUILD="\$(GCJ)" | |
4028 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 4029 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
4030 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4031 | LD_FOR_BUILD="\$(LD)" | |
4032 | NM_FOR_BUILD="\$(NM)" | |
4033 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4034 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4035 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4036 | fi |
4037 | ||
4038 | ac_ext=c | |
c6b750e1 DJ |
4039 | ac_cpp='$CPP $CPPFLAGS' |
4040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4043 | if test -n "$ac_tool_prefix"; then | |
4044 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4045 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4047 | $as_echo_n "checking for $ac_word... " >&6; } | |
4048 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4049 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4050 | else |
4051 | if test -n "$CC"; then | |
4052 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4053 | else | |
4054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4055 | for as_dir in $PATH | |
4056 | do | |
4057 | IFS=$as_save_IFS | |
4058 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4059 | for ac_exec_ext in '' $ac_executable_extensions; do |
4060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4061 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4063 | break 2 |
4064 | fi | |
4065 | done | |
81ecdfbb RW |
4066 | done |
4067 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4068 | |
4069 | fi | |
4070 | fi | |
4071 | CC=$ac_cv_prog_CC | |
4072 | if test -n "$CC"; then | |
81ecdfbb RW |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4074 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4075 | else |
81ecdfbb RW |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4077 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4078 | fi |
4079 | ||
81ecdfbb | 4080 | |
c6b750e1 DJ |
4081 | fi |
4082 | if test -z "$ac_cv_prog_CC"; then | |
4083 | ac_ct_CC=$CC | |
6a9cf61e | 4084 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4085 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4087 | $as_echo_n "checking for $ac_word... " >&6; } | |
4088 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4089 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4090 | else |
4091 | if test -n "$ac_ct_CC"; then | |
4092 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4093 | else | |
4094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4095 | for as_dir in $PATH | |
4096 | do | |
4097 | IFS=$as_save_IFS | |
4098 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4099 | for ac_exec_ext in '' $ac_executable_extensions; do |
4100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4101 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4102 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4103 | break 2 |
4104 | fi | |
4105 | done | |
81ecdfbb RW |
4106 | done |
4107 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4108 | |
4109 | fi | |
4110 | fi | |
4111 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4112 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4114 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4115 | else |
81ecdfbb RW |
4116 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4117 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4118 | fi |
4119 | ||
81ecdfbb RW |
4120 | if test "x$ac_ct_CC" = x; then |
4121 | CC="" | |
4122 | else | |
4123 | case $cross_compiling:$ac_tool_warned in | |
4124 | yes:) | |
4125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4126 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4127 | ac_tool_warned=yes ;; | |
4128 | esac | |
4129 | CC=$ac_ct_CC | |
4130 | fi | |
c6b750e1 DJ |
4131 | else |
4132 | CC="$ac_cv_prog_CC" | |
4133 | fi | |
4134 | ||
4135 | if test -z "$CC"; then | |
81ecdfbb RW |
4136 | if test -n "$ac_tool_prefix"; then |
4137 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4138 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4140 | $as_echo_n "checking for $ac_word... " >&6; } | |
4141 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4142 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4143 | else |
4144 | if test -n "$CC"; then | |
4145 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4146 | else | |
c6b750e1 DJ |
4147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4148 | for as_dir in $PATH | |
4149 | do | |
4150 | IFS=$as_save_IFS | |
4151 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4152 | for ac_exec_ext in '' $ac_executable_extensions; do |
4153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4154 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4156 | break 2 |
4157 | fi | |
4158 | done | |
81ecdfbb RW |
4159 | done |
4160 | IFS=$as_save_IFS | |
c6b750e1 | 4161 | |
9e07f89d NN |
4162 | fi |
4163 | fi | |
c6b750e1 | 4164 | CC=$ac_cv_prog_CC |
9e07f89d | 4165 | if test -n "$CC"; then |
81ecdfbb RW |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4167 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4168 | else |
81ecdfbb RW |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4170 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4171 | fi |
4172 | ||
c6b750e1 | 4173 | |
81ecdfbb | 4174 | fi |
c6b750e1 | 4175 | fi |
9e07f89d NN |
4176 | if test -z "$CC"; then |
4177 | # Extract the first word of "cc", so it can be a program name with args. | |
4178 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4180 | $as_echo_n "checking for $ac_word... " >&6; } | |
4181 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4182 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4183 | else |
4184 | if test -n "$CC"; then | |
4185 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4186 | else | |
9e07f89d | 4187 | ac_prog_rejected=no |
c6b750e1 DJ |
4188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4189 | for as_dir in $PATH | |
4190 | do | |
4191 | IFS=$as_save_IFS | |
4192 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4193 | for ac_exec_ext in '' $ac_executable_extensions; do |
4194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4195 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4196 | ac_prog_rejected=yes | |
4197 | continue | |
4198 | fi | |
4199 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4201 | break 2 |
4202 | fi | |
4203 | done | |
81ecdfbb RW |
4204 | done |
4205 | IFS=$as_save_IFS | |
c6b750e1 | 4206 | |
9e07f89d NN |
4207 | if test $ac_prog_rejected = yes; then |
4208 | # We found a bogon in the path, so make sure we never use it. | |
4209 | set dummy $ac_cv_prog_CC | |
4210 | shift | |
c6b750e1 | 4211 | if test $# != 0; then |
9e07f89d NN |
4212 | # We chose a different compiler from the bogus one. |
4213 | # However, it has the same basename, so the bogon will be chosen | |
4214 | # first if we set CC to just the basename; use the full file name. | |
4215 | shift | |
c6b750e1 | 4216 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4217 | fi |
4218 | fi | |
4219 | fi | |
4220 | fi | |
c6b750e1 | 4221 | CC=$ac_cv_prog_CC |
9e07f89d | 4222 | if test -n "$CC"; then |
81ecdfbb RW |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4224 | $as_echo "$CC" >&6; } | |
9e07f89d | 4225 | else |
81ecdfbb RW |
4226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4227 | $as_echo "no" >&6; } | |
9e07f89d NN |
4228 | fi |
4229 | ||
81ecdfbb | 4230 | |
c6b750e1 DJ |
4231 | fi |
4232 | if test -z "$CC"; then | |
4233 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4234 | for ac_prog in cl.exe |
c6b750e1 DJ |
4235 | do |
4236 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4237 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4239 | $as_echo_n "checking for $ac_word... " >&6; } | |
4240 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4241 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4242 | else |
4243 | if test -n "$CC"; then | |
4244 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4245 | else | |
c6b750e1 DJ |
4246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4247 | for as_dir in $PATH | |
4248 | do | |
4249 | IFS=$as_save_IFS | |
4250 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4251 | for ac_exec_ext in '' $ac_executable_extensions; do |
4252 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4253 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4255 | break 2 |
376a0e54 | 4256 | fi |
c6b750e1 | 4257 | done |
81ecdfbb RW |
4258 | done |
4259 | IFS=$as_save_IFS | |
cac3d6c4 | 4260 | |
c6b750e1 DJ |
4261 | fi |
4262 | fi | |
4263 | CC=$ac_cv_prog_CC | |
4264 | if test -n "$CC"; then | |
81ecdfbb RW |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4266 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4267 | else |
81ecdfbb RW |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4269 | $as_echo "no" >&6; } | |
9e07f89d | 4270 | fi |
cac3d6c4 | 4271 | |
81ecdfbb | 4272 | |
c6b750e1 DJ |
4273 | test -n "$CC" && break |
4274 | done | |
cac3d6c4 | 4275 | fi |
c6b750e1 DJ |
4276 | if test -z "$CC"; then |
4277 | ac_ct_CC=$CC | |
81ecdfbb | 4278 | for ac_prog in cl.exe |
c6b750e1 DJ |
4279 | do |
4280 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4281 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4283 | $as_echo_n "checking for $ac_word... " >&6; } | |
4284 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4285 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4286 | else |
c6b750e1 DJ |
4287 | if test -n "$ac_ct_CC"; then |
4288 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4289 | else |
c6b750e1 DJ |
4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4291 | for as_dir in $PATH | |
4292 | do | |
4293 | IFS=$as_save_IFS | |
4294 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4295 | for ac_exec_ext in '' $ac_executable_extensions; do |
4296 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4297 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4298 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4299 | break 2 |
4300 | fi | |
4301 | done | |
81ecdfbb RW |
4302 | done |
4303 | IFS=$as_save_IFS | |
c6b750e1 | 4304 | |
cac3d6c4 CM |
4305 | fi |
4306 | fi | |
c6b750e1 DJ |
4307 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4308 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4310 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4311 | else |
81ecdfbb RW |
4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4313 | $as_echo "no" >&6; } | |
cac3d6c4 | 4314 | fi |
376a0e54 | 4315 | |
81ecdfbb | 4316 | |
c6b750e1 DJ |
4317 | test -n "$ac_ct_CC" && break |
4318 | done | |
4319 | ||
81ecdfbb RW |
4320 | if test "x$ac_ct_CC" = x; then |
4321 | CC="" | |
4322 | else | |
4323 | case $cross_compiling:$ac_tool_warned in | |
4324 | yes:) | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4326 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4327 | ac_tool_warned=yes ;; | |
4328 | esac | |
4329 | CC=$ac_ct_CC | |
4330 | fi | |
c6b750e1 DJ |
4331 | fi |
4332 | ||
4333 | fi | |
4334 | ||
4335 | ||
81ecdfbb RW |
4336 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4337 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4338 | as_fn_error "no acceptable C compiler found in \$PATH | |
4339 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4340 | |
4341 | # Provide some information about the compiler. | |
81ecdfbb RW |
4342 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4343 | set X $ac_compile | |
4344 | ac_compiler=$2 | |
4345 | for ac_option in --version -v -V -qversion; do | |
4346 | { { ac_try="$ac_compiler $ac_option >&5" | |
4347 | case "(($ac_try" in | |
4348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4349 | *) ac_try_echo=$ac_try;; | |
4350 | esac | |
4351 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4352 | $as_echo "$ac_try_echo"; } >&5 | |
4353 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4354 | ac_status=$? |
81ecdfbb RW |
4355 | if test -s conftest.err; then |
4356 | sed '10a\ | |
4357 | ... rest of stderr output deleted ... | |
4358 | 10q' conftest.err >conftest.er1 | |
4359 | cat conftest.er1 >&5 | |
4360 | rm -f conftest.er1 conftest.err | |
4361 | fi | |
4362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4363 | test $ac_status = 0; } | |
4364 | done | |
c6b750e1 | 4365 | |
81ecdfbb | 4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4367 | /* end confdefs.h. */ |
4368 | ||
4369 | int | |
4370 | main () | |
4371 | { | |
4372 | ||
4373 | ; | |
4374 | return 0; | |
4375 | } | |
4376 | _ACEOF | |
4377 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4378 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4379 | # Try to create an executable without -o first, disregard a.out. |
4380 | # It will help us diagnose broken compilers, and finding out an intuition | |
4381 | # of exeext. | |
81ecdfbb RW |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4383 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4384 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4385 | ||
4386 | # The possible output files: | |
4387 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4388 | ||
4389 | ac_rmfiles= | |
4390 | for ac_file in $ac_files | |
4391 | do | |
4392 | case $ac_file in | |
4393 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4394 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4395 | esac | |
4396 | done | |
4397 | rm -f $ac_rmfiles | |
4398 | ||
4399 | if { { ac_try="$ac_link_default" | |
4400 | case "(($ac_try" in | |
4401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4402 | *) ac_try_echo=$ac_try;; | |
4403 | esac | |
4404 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4405 | $as_echo "$ac_try_echo"; } >&5 | |
4406 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4407 | ac_status=$? |
81ecdfbb RW |
4408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4409 | test $ac_status = 0; }; then : | |
4410 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4411 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4412 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4413 | # so that the user can short-circuit this test for compilers unknown to | |
4414 | # Autoconf. | |
4415 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4416 | do |
4417 | test -f "$ac_file" || continue | |
4418 | case $ac_file in | |
81ecdfbb | 4419 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4420 | ;; |
4421 | [ab].out ) | |
4422 | # We found the default executable, but exeext='' is most | |
4423 | # certainly right. | |
4424 | break;; | |
4425 | *.* ) | |
81ecdfbb RW |
4426 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4427 | then :; else | |
4428 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4429 | fi | |
4430 | # We set ac_cv_exeext here because the later test for it is not | |
4431 | # safe: cross compilers may not add the suffix if given an `-o' | |
4432 | # argument, so we may need to know it at that point already. | |
4433 | # Even if this section looks crufty: it has the advantage of | |
4434 | # actually working. | |
c6b750e1 DJ |
4435 | break;; |
4436 | * ) | |
4437 | break;; | |
4438 | esac | |
4439 | done | |
81ecdfbb RW |
4440 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4441 | ||
c6b750e1 | 4442 | else |
81ecdfbb RW |
4443 | ac_file='' |
4444 | fi | |
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4446 | $as_echo "$ac_file" >&6; } | |
4447 | if test -z "$ac_file"; then : | |
4448 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4449 | sed 's/^/| /' conftest.$ac_ext >&5 |
4450 | ||
81ecdfbb RW |
4451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4453 | { as_fn_set_status 77 | |
4454 | as_fn_error "C compiler cannot create executables | |
4455 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4456 | fi |
c6b750e1 | 4457 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4458 | |
81ecdfbb | 4459 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4460 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4462 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4463 | # If not cross compiling, check that we can run a simple program. |
4464 | if test "$cross_compiling" != yes; then | |
4465 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4466 | { { case "(($ac_try" in |
4467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4468 | *) ac_try_echo=$ac_try;; | |
4469 | esac | |
4470 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4471 | $as_echo "$ac_try_echo"; } >&5 | |
4472 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4473 | ac_status=$? |
81ecdfbb RW |
4474 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4475 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4476 | cross_compiling=no |
4477 | else | |
4478 | if test "$cross_compiling" = maybe; then | |
4479 | cross_compiling=yes | |
4480 | else | |
81ecdfbb RW |
4481 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4482 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4483 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4484 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4485 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4486 | fi |
4487 | fi | |
4488 | fi | |
81ecdfbb RW |
4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4490 | $as_echo "yes" >&6; } | |
c6b750e1 | 4491 | |
81ecdfbb | 4492 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4493 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4494 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4495 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4497 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4499 | $as_echo "$cross_compiling" >&6; } | |
4500 | ||
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4502 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4503 | if { { ac_try="$ac_link" | |
4504 | case "(($ac_try" in | |
4505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4506 | *) ac_try_echo=$ac_try;; | |
4507 | esac | |
4508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4509 | $as_echo "$ac_try_echo"; } >&5 | |
4510 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4511 | ac_status=$? |
81ecdfbb RW |
4512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4513 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4514 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4515 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4516 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4517 | # `rm'. | |
4518 | for ac_file in conftest.exe conftest conftest.*; do | |
4519 | test -f "$ac_file" || continue | |
4520 | case $ac_file in | |
81ecdfbb | 4521 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4522 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4523 | break;; |
4524 | * ) break;; | |
4525 | esac | |
4526 | done | |
4527 | else | |
81ecdfbb RW |
4528 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4529 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4530 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4531 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4532 | fi |
c6b750e1 | 4533 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4535 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4536 | |
4537 | rm -f conftest.$ac_ext | |
4538 | EXEEXT=$ac_cv_exeext | |
4539 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4541 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4542 | if test "${ac_cv_objext+set}" = set; then : | |
4543 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4544 | else |
81ecdfbb | 4545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4546 | /* end confdefs.h. */ |
4547 | ||
4548 | int | |
4549 | main () | |
4550 | { | |
4551 | ||
4552 | ; | |
4553 | return 0; | |
4554 | } | |
4555 | _ACEOF | |
4556 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4557 | if { { ac_try="$ac_compile" |
4558 | case "(($ac_try" in | |
4559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4560 | *) ac_try_echo=$ac_try;; | |
4561 | esac | |
4562 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4563 | $as_echo "$ac_try_echo"; } >&5 | |
4564 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4565 | ac_status=$? |
81ecdfbb RW |
4566 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4567 | test $ac_status = 0; }; then : | |
4568 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4569 | test -f "$ac_file" || continue; | |
c6b750e1 | 4570 | case $ac_file in |
81ecdfbb | 4571 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4572 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4573 | break;; | |
4574 | esac | |
4575 | done | |
cac3d6c4 | 4576 | else |
81ecdfbb | 4577 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4578 | sed 's/^/| /' conftest.$ac_ext >&5 |
4579 | ||
81ecdfbb RW |
4580 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4581 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4582 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4583 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4584 | fi |
c6b750e1 DJ |
4585 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4586 | fi | |
81ecdfbb RW |
4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4588 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4589 | OBJEXT=$ac_cv_objext |
4590 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4592 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4593 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4594 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4595 | else |
81ecdfbb | 4596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4597 | /* end confdefs.h. */ |
4598 | ||
4599 | int | |
4600 | main () | |
4601 | { | |
4602 | #ifndef __GNUC__ | |
4603 | choke me | |
4604 | #endif | |
4605 | ||
4606 | ; | |
4607 | return 0; | |
4608 | } | |
4609 | _ACEOF | |
81ecdfbb | 4610 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4611 | ac_compiler_gnu=yes |
4612 | else | |
81ecdfbb | 4613 | ac_compiler_gnu=no |
c6b750e1 | 4614 | fi |
81ecdfbb | 4615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4616 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4617 | ||
4618 | fi | |
81ecdfbb RW |
4619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4620 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4621 | if test $ac_compiler_gnu = yes; then | |
4622 | GCC=yes | |
4623 | else | |
4624 | GCC= | |
4625 | fi | |
c6b750e1 DJ |
4626 | ac_test_CFLAGS=${CFLAGS+set} |
4627 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4629 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4630 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4631 | $as_echo_n "(cached) " >&6 | |
4632 | else | |
4633 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4634 | ac_c_werror_flag=yes | |
4635 | ac_cv_prog_cc_g=no | |
4636 | CFLAGS="-g" | |
4637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4638 | /* end confdefs.h. */ |
4639 | ||
4640 | int | |
4641 | main () | |
4642 | { | |
4643 | ||
4644 | ; | |
4645 | return 0; | |
4646 | } | |
4647 | _ACEOF | |
81ecdfbb | 4648 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4649 | ac_cv_prog_cc_g=yes |
4650 | else | |
81ecdfbb RW |
4651 | CFLAGS="" |
4652 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4653 | /* end confdefs.h. */ | |
4654 | ||
4655 | int | |
4656 | main () | |
4657 | { | |
4658 | ||
4659 | ; | |
4660 | return 0; | |
4661 | } | |
4662 | _ACEOF | |
4663 | if ac_fn_c_try_compile "$LINENO"; then : | |
4664 | ||
4665 | else | |
4666 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4667 | CFLAGS="-g" | |
4668 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4669 | /* end confdefs.h. */ | |
cac3d6c4 | 4670 | |
81ecdfbb RW |
4671 | int |
4672 | main () | |
4673 | { | |
4674 | ||
4675 | ; | |
4676 | return 0; | |
4677 | } | |
4678 | _ACEOF | |
4679 | if ac_fn_c_try_compile "$LINENO"; then : | |
4680 | ac_cv_prog_cc_g=yes | |
4681 | fi | |
4682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4683 | fi |
81ecdfbb | 4684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4685 | fi |
81ecdfbb RW |
4686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4687 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4688 | fi | |
4689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4690 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4691 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4692 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4693 | elif test $ac_cv_prog_cc_g = yes; then |
4694 | if test "$GCC" = yes; then | |
4695 | CFLAGS="-g -O2" | |
4696 | else | |
4697 | CFLAGS="-g" | |
4698 | fi | |
4699 | else | |
4700 | if test "$GCC" = yes; then | |
4701 | CFLAGS="-O2" | |
4702 | else | |
4703 | CFLAGS= | |
4704 | fi | |
4705 | fi | |
81ecdfbb RW |
4706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4707 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4708 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4709 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4710 | else |
81ecdfbb | 4711 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4712 | ac_save_CC=$CC |
81ecdfbb | 4713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4714 | /* end confdefs.h. */ |
4715 | #include <stdarg.h> | |
4716 | #include <stdio.h> | |
4717 | #include <sys/types.h> | |
4718 | #include <sys/stat.h> | |
4719 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4720 | struct buf { int x; }; | |
4721 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4722 | static char *e (p, i) | |
4723 | char **p; | |
4724 | int i; | |
4725 | { | |
4726 | return p[i]; | |
4727 | } | |
4728 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4729 | { | |
4730 | char *s; | |
4731 | va_list v; | |
4732 | va_start (v,p); | |
4733 | s = g (p, va_arg (v,int)); | |
4734 | va_end (v); | |
4735 | return s; | |
4736 | } | |
4737 | ||
4738 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4739 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4740 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4741 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4742 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4743 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4744 | that's true only with -std. */ |
c6b750e1 DJ |
4745 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4746 | ||
81ecdfbb RW |
4747 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4748 | inside strings and character constants. */ | |
4749 | #define FOO(x) 'x' | |
4750 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4751 | ||
c6b750e1 DJ |
4752 | int test (int i, double x); |
4753 | struct s1 {int (*f) (int a);}; | |
4754 | struct s2 {int (*f) (double a);}; | |
4755 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4756 | int argc; | |
4757 | char **argv; | |
4758 | int | |
4759 | main () | |
4760 | { | |
4761 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4762 | ; | |
4763 | return 0; | |
4764 | } | |
4765 | _ACEOF | |
81ecdfbb RW |
4766 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4767 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4768 | do |
4769 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4770 | if ac_fn_c_try_compile "$LINENO"; then : |
4771 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4772 | fi |
81ecdfbb RW |
4773 | rm -f core conftest.err conftest.$ac_objext |
4774 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4775 | done |
81ecdfbb | 4776 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4777 | CC=$ac_save_CC |
4778 | ||
4779 | fi | |
81ecdfbb RW |
4780 | # AC_CACHE_VAL |
4781 | case "x$ac_cv_prog_cc_c89" in | |
4782 | x) | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4784 | $as_echo "none needed" >&6; } ;; | |
4785 | xno) | |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4787 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4788 | *) |
81ecdfbb RW |
4789 | CC="$CC $ac_cv_prog_cc_c89" |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4791 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4792 | esac |
81ecdfbb | 4793 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4794 | |
c6b750e1 DJ |
4795 | fi |
4796 | ||
c6b750e1 DJ |
4797 | ac_ext=c |
4798 | ac_cpp='$CPP $CPPFLAGS' | |
4799 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4800 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4801 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4802 | |
81ecdfbb | 4803 | ac_ext=cpp |
18f6b6ee PB |
4804 | ac_cpp='$CXXCPP $CPPFLAGS' |
4805 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4806 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4807 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4808 | if test -z "$CXX"; then |
4809 | if test -n "$CCC"; then | |
4810 | CXX=$CCC | |
4811 | else | |
4812 | if test -n "$ac_tool_prefix"; then | |
4813 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4814 | do |
4815 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4816 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4818 | $as_echo_n "checking for $ac_word... " >&6; } | |
4819 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4820 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4821 | else |
4822 | if test -n "$CXX"; then | |
4823 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4824 | else | |
4825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4826 | for as_dir in $PATH | |
4827 | do | |
4828 | IFS=$as_save_IFS | |
4829 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4830 | for ac_exec_ext in '' $ac_executable_extensions; do |
4831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4832 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4834 | break 2 |
4835 | fi | |
4836 | done | |
81ecdfbb RW |
4837 | done |
4838 | IFS=$as_save_IFS | |
512b7dfb | 4839 | |
18f6b6ee PB |
4840 | fi |
4841 | fi | |
4842 | CXX=$ac_cv_prog_CXX | |
4843 | if test -n "$CXX"; then | |
81ecdfbb RW |
4844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4845 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4846 | else |
81ecdfbb RW |
4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4848 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4849 | fi |
4850 | ||
81ecdfbb | 4851 | |
18f6b6ee PB |
4852 | test -n "$CXX" && break |
4853 | done | |
4854 | fi | |
4855 | if test -z "$CXX"; then | |
4856 | ac_ct_CXX=$CXX | |
81ecdfbb | 4857 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4858 | do |
4859 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4860 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4862 | $as_echo_n "checking for $ac_word... " >&6; } | |
4863 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4864 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4865 | else |
4866 | if test -n "$ac_ct_CXX"; then | |
4867 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4868 | else | |
4869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4870 | for as_dir in $PATH | |
4871 | do | |
4872 | IFS=$as_save_IFS | |
4873 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4874 | for ac_exec_ext in '' $ac_executable_extensions; do |
4875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4876 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4878 | break 2 |
512b7dfb | 4879 | fi |
18f6b6ee | 4880 | done |
81ecdfbb RW |
4881 | done |
4882 | IFS=$as_save_IFS | |
512b7dfb | 4883 | |
18f6b6ee PB |
4884 | fi |
4885 | fi | |
4886 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4887 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4889 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4890 | else |
81ecdfbb RW |
4891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4892 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4893 | fi |
4894 | ||
81ecdfbb | 4895 | |
18f6b6ee PB |
4896 | test -n "$ac_ct_CXX" && break |
4897 | done | |
18f6b6ee | 4898 | |
81ecdfbb RW |
4899 | if test "x$ac_ct_CXX" = x; then |
4900 | CXX="g++" | |
4901 | else | |
4902 | case $cross_compiling:$ac_tool_warned in | |
4903 | yes:) | |
4904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4906 | ac_tool_warned=yes ;; | |
4907 | esac | |
4908 | CXX=$ac_ct_CXX | |
4909 | fi | |
18f6b6ee PB |
4910 | fi |
4911 | ||
81ecdfbb RW |
4912 | fi |
4913 | fi | |
18f6b6ee | 4914 | # Provide some information about the compiler. |
81ecdfbb RW |
4915 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4916 | set X $ac_compile | |
4917 | ac_compiler=$2 | |
4918 | for ac_option in --version -v -V -qversion; do | |
4919 | { { ac_try="$ac_compiler $ac_option >&5" | |
4920 | case "(($ac_try" in | |
4921 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4922 | *) ac_try_echo=$ac_try;; | |
4923 | esac | |
4924 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4925 | $as_echo "$ac_try_echo"; } >&5 | |
4926 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4927 | ac_status=$? |
81ecdfbb RW |
4928 | if test -s conftest.err; then |
4929 | sed '10a\ | |
4930 | ... rest of stderr output deleted ... | |
4931 | 10q' conftest.err >conftest.er1 | |
4932 | cat conftest.er1 >&5 | |
4933 | rm -f conftest.er1 conftest.err | |
4934 | fi | |
4935 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4936 | test $ac_status = 0; } | |
4937 | done | |
18f6b6ee | 4938 | |
81ecdfbb RW |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4940 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4941 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4942 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4943 | else |
81ecdfbb | 4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4945 | /* end confdefs.h. */ |
4946 | ||
4947 | int | |
4948 | main () | |
4949 | { | |
4950 | #ifndef __GNUC__ | |
4951 | choke me | |
4952 | #endif | |
4953 | ||
4954 | ; | |
4955 | return 0; | |
4956 | } | |
4957 | _ACEOF | |
81ecdfbb | 4958 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4959 | ac_compiler_gnu=yes |
4960 | else | |
81ecdfbb | 4961 | ac_compiler_gnu=no |
18f6b6ee | 4962 | fi |
81ecdfbb | 4963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4964 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4965 | ||
4966 | fi | |
81ecdfbb RW |
4967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4968 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4969 | if test $ac_compiler_gnu = yes; then | |
4970 | GXX=yes | |
4971 | else | |
4972 | GXX= | |
4973 | fi | |
18f6b6ee PB |
4974 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4975 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4977 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4978 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4979 | $as_echo_n "(cached) " >&6 | |
4980 | else | |
4981 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4982 | ac_cxx_werror_flag=yes | |
4983 | ac_cv_prog_cxx_g=no | |
4984 | CXXFLAGS="-g" | |
4985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4986 | /* end confdefs.h. */ |
4987 | ||
4988 | int | |
4989 | main () | |
4990 | { | |
4991 | ||
4992 | ; | |
4993 | return 0; | |
4994 | } | |
4995 | _ACEOF | |
81ecdfbb | 4996 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4997 | ac_cv_prog_cxx_g=yes |
4998 | else | |
81ecdfbb RW |
4999 | CXXFLAGS="" |
5000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5001 | /* end confdefs.h. */ |
81ecdfbb | 5002 | |
18f6b6ee PB |
5003 | int |
5004 | main () | |
5005 | { | |
81ecdfbb | 5006 | |
18f6b6ee PB |
5007 | ; |
5008 | return 0; | |
5009 | } | |
5010 | _ACEOF | |
81ecdfbb | 5011 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5012 | |
81ecdfbb RW |
5013 | else |
5014 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5015 | CXXFLAGS="-g" | |
5016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5017 | /* end confdefs.h. */ |
81ecdfbb | 5018 | |
18f6b6ee PB |
5019 | int |
5020 | main () | |
5021 | { | |
81ecdfbb | 5022 | |
18f6b6ee PB |
5023 | ; |
5024 | return 0; | |
5025 | } | |
5026 | _ACEOF | |
81ecdfbb RW |
5027 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5028 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5029 | fi |
81ecdfbb RW |
5030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5031 | fi | |
5032 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5033 | fi | |
5034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5035 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5036 | fi | |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5038 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5039 | if test "$ac_test_CXXFLAGS" = set; then | |
5040 | CXXFLAGS=$ac_save_CXXFLAGS | |
5041 | elif test $ac_cv_prog_cxx_g = yes; then | |
5042 | if test "$GXX" = yes; then | |
5043 | CXXFLAGS="-g -O2" | |
5044 | else | |
5045 | CXXFLAGS="-g" | |
5046 | fi | |
5047 | else | |
5048 | if test "$GXX" = yes; then | |
5049 | CXXFLAGS="-O2" | |
5050 | else | |
5051 | CXXFLAGS= | |
5052 | fi | |
18f6b6ee | 5053 | fi |
18f6b6ee PB |
5054 | ac_ext=c |
5055 | ac_cpp='$CPP $CPPFLAGS' | |
5056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5059 | ||
5060 | ||
5061 | # We must set the default linker to the linker used by gcc for the correct | |
5062 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5063 | # set the LD default to the ld used by gcc. | |
5064 | if test -z "$LD"; then | |
5065 | if test "$GCC" = yes; then | |
5066 | case $build in | |
5067 | *-*-mingw*) | |
5068 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5069 | *) | |
5070 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5071 | esac | |
5072 | case $gcc_prog_ld in | |
5073 | # Accept absolute paths. | |
5074 | [\\/]* | [A-Za-z]:[\\/]*) | |
5075 | LD="$gcc_prog_ld" ;; | |
5076 | esac | |
5077 | fi | |
512b7dfb PB |
5078 | fi |
5079 | ||
b3676d82 EB |
5080 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5081 | have_static_libs=no | |
5082 | if test "$GCC" = yes; then | |
5083 | saved_LDFLAGS="$LDFLAGS" | |
5084 | ||
5085 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5087 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5088 | ac_ext=cpp | |
5089 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5090 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5091 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5092 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5093 | ||
5094 | ||
5095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5096 | /* end confdefs.h. */ | |
a882be68 EB |
5097 | |
5098 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5099 | #error -static-libstdc++ not implemented | |
5100 | #endif | |
b3676d82 EB |
5101 | int main() {} |
5102 | _ACEOF | |
5103 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5105 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5106 | else | |
5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5108 | $as_echo "no" >&6; } | |
5109 | fi | |
5110 | rm -f core conftest.err conftest.$ac_objext \ | |
5111 | conftest$ac_exeext conftest.$ac_ext | |
5112 | ac_ext=c | |
5113 | ac_cpp='$CPP $CPPFLAGS' | |
5114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5117 | ||
5118 | ||
5119 | LDFLAGS="$saved_LDFLAGS" | |
5120 | fi | |
5121 | ||
512b7dfb PB |
5122 | |
5123 | ||
5124 | ||
c6b750e1 | 5125 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5126 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5127 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5129 | $as_echo_n "checking for $ac_word... " >&6; } | |
5130 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5131 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5132 | else |
512b7dfb PB |
5133 | if test -n "$GNATBIND"; then |
5134 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5135 | else |
c6b750e1 DJ |
5136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5137 | for as_dir in $PATH | |
5138 | do | |
5139 | IFS=$as_save_IFS | |
5140 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5141 | for ac_exec_ext in '' $ac_executable_extensions; do |
5142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5143 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5145 | break 2 |
5146 | fi | |
5147 | done | |
81ecdfbb RW |
5148 | done |
5149 | IFS=$as_save_IFS | |
c6b750e1 | 5150 | |
9e07f89d NN |
5151 | fi |
5152 | fi | |
512b7dfb PB |
5153 | GNATBIND=$ac_cv_prog_GNATBIND |
5154 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5156 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5157 | else |
81ecdfbb RW |
5158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5159 | $as_echo "no" >&6; } | |
9e07f89d NN |
5160 | fi |
5161 | ||
81ecdfbb | 5162 | |
c6b750e1 | 5163 | fi |
512b7dfb PB |
5164 | if test -z "$ac_cv_prog_GNATBIND"; then |
5165 | ac_ct_GNATBIND=$GNATBIND | |
5166 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5167 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5169 | $as_echo_n "checking for $ac_word... " >&6; } | |
5170 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5171 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5172 | else |
512b7dfb PB |
5173 | if test -n "$ac_ct_GNATBIND"; then |
5174 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5175 | else |
c6b750e1 DJ |
5176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5177 | for as_dir in $PATH | |
5178 | do | |
5179 | IFS=$as_save_IFS | |
5180 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5181 | for ac_exec_ext in '' $ac_executable_extensions; do |
5182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5183 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5185 | break 2 |
5186 | fi | |
5187 | done | |
81ecdfbb RW |
5188 | done |
5189 | IFS=$as_save_IFS | |
c6b750e1 | 5190 | |
9e07f89d NN |
5191 | fi |
5192 | fi | |
512b7dfb PB |
5193 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5194 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5196 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5197 | else |
81ecdfbb RW |
5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5199 | $as_echo "no" >&6; } | |
9e07f89d NN |
5200 | fi |
5201 | ||
81ecdfbb RW |
5202 | if test "x$ac_ct_GNATBIND" = x; then |
5203 | GNATBIND="no" | |
5204 | else | |
5205 | case $cross_compiling:$ac_tool_warned in | |
5206 | yes:) | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5208 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5209 | ac_tool_warned=yes ;; | |
5210 | esac | |
5211 | GNATBIND=$ac_ct_GNATBIND | |
5212 | fi | |
24ff9987 | 5213 | else |
512b7dfb | 5214 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5215 | fi |
5216 | ||
7df2cd5d | 5217 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5218 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5219 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5221 | $as_echo_n "checking for $ac_word... " >&6; } | |
5222 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5223 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5224 | else |
512b7dfb PB |
5225 | if test -n "$GNATMAKE"; then |
5226 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5227 | else |
5228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5229 | for as_dir in $PATH | |
5230 | do | |
5231 | IFS=$as_save_IFS | |
5232 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5233 | for ac_exec_ext in '' $ac_executable_extensions; do |
5234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5235 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5237 | break 2 |
5238 | fi | |
5239 | done | |
81ecdfbb RW |
5240 | done |
5241 | IFS=$as_save_IFS | |
7df2cd5d PB |
5242 | |
5243 | fi | |
5244 | fi | |
512b7dfb PB |
5245 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5246 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5248 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5249 | else |
81ecdfbb RW |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5251 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5252 | fi |
5253 | ||
81ecdfbb | 5254 | |
7df2cd5d | 5255 | fi |
512b7dfb PB |
5256 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5257 | ac_ct_GNATMAKE=$GNATMAKE | |
5258 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5259 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5261 | $as_echo_n "checking for $ac_word... " >&6; } | |
5262 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5263 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5264 | else |
512b7dfb PB |
5265 | if test -n "$ac_ct_GNATMAKE"; then |
5266 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5267 | else |
5268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5269 | for as_dir in $PATH | |
5270 | do | |
5271 | IFS=$as_save_IFS | |
5272 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5273 | for ac_exec_ext in '' $ac_executable_extensions; do |
5274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5275 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5277 | break 2 |
5278 | fi | |
5279 | done | |
81ecdfbb RW |
5280 | done |
5281 | IFS=$as_save_IFS | |
7df2cd5d | 5282 | |
7df2cd5d PB |
5283 | fi |
5284 | fi | |
512b7dfb PB |
5285 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5286 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5288 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5289 | else |
81ecdfbb RW |
5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5291 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5292 | fi |
5293 | ||
81ecdfbb RW |
5294 | if test "x$ac_ct_GNATMAKE" = x; then |
5295 | GNATMAKE="no" | |
5296 | else | |
5297 | case $cross_compiling:$ac_tool_warned in | |
5298 | yes:) | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5300 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5301 | ac_tool_warned=yes ;; | |
5302 | esac | |
5303 | GNATMAKE=$ac_ct_GNATMAKE | |
5304 | fi | |
7df2cd5d | 5305 | else |
512b7dfb | 5306 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5307 | fi |
5308 | ||
81ecdfbb RW |
5309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5310 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5311 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5312 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5313 | else |
5314 | cat >conftest.adb <<EOF | |
5315 | procedure conftest is begin null; end conftest; | |
5316 | EOF | |
5317 | acx_cv_cc_gcc_supports_ada=no | |
5318 | # There is a bug in old released versions of GCC which causes the | |
5319 | # driver to exit successfully when the appropriate language module | |
5320 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5321 | # Therefore we must check for the error message as well as an | |
5322 | # unsuccessful exit. | |
b8908782 DD |
5323 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5324 | # given a .adb file, but produce no object file. So we must check | |
5325 | # if an object file was really produced to guard against this. | |
9e07f89d | 5326 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5327 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5328 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5329 | fi |
5330 | rm -f conftest.* | |
5331 | fi | |
81ecdfbb RW |
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5333 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5334 | |
64b986c0 | 5335 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5336 | have_gnat=yes |
5337 | else | |
5338 | have_gnat=no | |
5339 | fi | |
5340 | ||
81ecdfbb RW |
5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5342 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5343 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5344 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5345 | else |
5346 | echo abfoo >t1 | |
5347 | echo cdfoo >t2 | |
5348 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5349 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5350 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5351 | : | |
5352 | else | |
5353 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5354 | fi | |
5355 | fi | |
b8908782 DD |
5356 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5357 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5358 | : |
b8908782 DD |
5359 | else |
5360 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5361 | fi | |
5362 | fi | |
5363 | rm t1 t2 | |
5364 | ||
5365 | fi | |
81ecdfbb RW |
5366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5367 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5368 | do_compare="$gcc_cv_prog_cmp_skip" |
5369 | ||
5370 | ||
9e07f89d | 5371 | |
ffdd6afc ILT |
5372 | # Check whether --enable-bootstrap was given. |
5373 | if test "${enable_bootstrap+set}" = set; then : | |
5374 | enableval=$enable_bootstrap; | |
5375 | else | |
5376 | enable_bootstrap=default | |
5377 | fi | |
5378 | ||
5379 | ||
5380 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5381 | if test -r $srcdir/gcc/configure; then | |
5382 | have_compiler=yes | |
5383 | else | |
5384 | have_compiler=no | |
5385 | fi | |
5386 | ||
5387 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5388 | *:*:*:no) ;; | |
5389 | ||
5390 | # Default behavior. Enable bootstrap if we have a compiler | |
5391 | # and we are in a native configuration. | |
5392 | yes:$build:$build:default) | |
5393 | enable_bootstrap=yes ;; | |
5394 | ||
5395 | *:*:*:default) | |
5396 | enable_bootstrap=no ;; | |
5397 | ||
5398 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5399 | yes:$build:$build:yes) | |
5400 | ;; | |
5401 | ||
5402 | # Other configurations, but we have a compiler. Assume the user knows | |
5403 | # what he's doing. | |
5404 | yes:*:*:yes) | |
5405 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5406 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5407 | ;; | |
5408 | ||
5409 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5410 | no:*:*:yes) | |
5411 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5412 | ||
5413 | # Fail if wrong command line | |
5414 | *) | |
5415 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5416 | ;; | |
5417 | esac | |
5418 | ||
d5f2ee2e KG |
5419 | # Used for setting $lt_cv_objdir |
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5421 | $as_echo_n "checking for objdir... " >&6; } | |
5422 | if test "${lt_cv_objdir+set}" = set; then : | |
5423 | $as_echo_n "(cached) " >&6 | |
5424 | else | |
5425 | rm -f .libs 2>/dev/null | |
5426 | mkdir .libs 2>/dev/null | |
5427 | if test -d .libs; then | |
5428 | lt_cv_objdir=.libs | |
5429 | else | |
5430 | # MS-DOS does not allow filenames that begin with a dot. | |
5431 | lt_cv_objdir=_libs | |
5432 | fi | |
5433 | rmdir .libs 2>/dev/null | |
5434 | fi | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5436 | $as_echo "$lt_cv_objdir" >&6; } | |
5437 | objdir=$lt_cv_objdir | |
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | cat >>confdefs.h <<_ACEOF | |
5444 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5445 | _ACEOF | |
5446 | ||
5447 | ||
5448 | ||
e8a5fa9c | 5449 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5450 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5451 | gmpinc= |
4b900473 | 5452 | have_gmp=no |
e8a5fa9c RW |
5453 | |
5454 | # Specify a location for mpc | |
5455 | # check for this first so it ends up on the link line before mpfr. | |
5456 | ||
81ecdfbb RW |
5457 | # Check whether --with-mpc was given. |
5458 | if test "${with_mpc+set}" = set; then : | |
5459 | withval=$with_mpc; | |
5460 | fi | |
e8a5fa9c | 5461 | |
e8a5fa9c | 5462 | |
e552509b | 5463 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5464 | if test "${with_mpc_include+set}" = set; then : |
5465 | withval=$with_mpc_include; | |
5466 | fi | |
e8a5fa9c | 5467 | |
e8a5fa9c | 5468 | |
e552509b | 5469 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5470 | if test "${with_mpc_lib+set}" = set; then : |
5471 | withval=$with_mpc_lib; | |
5472 | fi | |
e8a5fa9c | 5473 | |
e8a5fa9c RW |
5474 | |
5475 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5476 | gmplibs="-L$with_mpc/lib $gmplibs" |
5477 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5478 | fi |
5479 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5480 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5481 | fi |
5482 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5483 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5484 | fi |
5485 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5486 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5487 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5488 | # Do not test the mpc version. Assume that it is sufficient, since |
5489 | # it is in the source tree, and the library has not been built yet | |
5490 | # but it would be included on the link line in the version check below | |
5491 | # hence making the test fail. | |
d9b76ff9 | 5492 | have_gmp=yes |
e8a5fa9c | 5493 | fi |
4b900473 | 5494 | |
11b04d1f DD |
5495 | # Specify a location for mpfr |
5496 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5497 | |
81ecdfbb RW |
5498 | # Check whether --with-mpfr-dir was given. |
5499 | if test "${with_mpfr_dir+set}" = set; then : | |
5500 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5501 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5502 | fi | |
5503 | ||
11b04d1f DD |
5504 | |
5505 | ||
81ecdfbb RW |
5506 | # Check whether --with-mpfr was given. |
5507 | if test "${with_mpfr+set}" = set; then : | |
5508 | withval=$with_mpfr; | |
5509 | fi | |
c6b750e1 | 5510 | |
11b04d1f | 5511 | |
e552509b | 5512 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5513 | if test "${with_mpfr_include+set}" = set; then : |
5514 | withval=$with_mpfr_include; | |
5515 | fi | |
c6b750e1 | 5516 | |
8a0d8a5c | 5517 | |
e552509b | 5518 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5519 | if test "${with_mpfr_lib+set}" = set; then : |
5520 | withval=$with_mpfr_lib; | |
5521 | fi | |
8a0d8a5c | 5522 | |
11b04d1f DD |
5523 | |
5524 | if test "x$with_mpfr" != x; then | |
5525 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5526 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5527 | fi |
8a0d8a5c | 5528 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5529 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5530 | fi |
5531 | if test "x$with_mpfr_lib" != x; then | |
5532 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5533 | fi | |
4b900473 | 5534 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5535 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5536 | if test -d ${srcdir}/mpfr/src; then | |
5537 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5538 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5539 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5540 | else | |
5541 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5542 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5543 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5544 | fi | |
4b900473 PB |
5545 | # Do not test the mpfr version. Assume that it is sufficient, since |
5546 | # it is in the source tree, and the library has not been built yet | |
5547 | # but it would be included on the link line in the version check below | |
5548 | # hence making the test fail. | |
5549 | have_gmp=yes | |
5550 | fi | |
11b04d1f | 5551 | |
4b1cb4fe | 5552 | # Specify a location for gmp |
c6b750e1 | 5553 | |
81ecdfbb RW |
5554 | # Check whether --with-gmp-dir was given. |
5555 | if test "${with_gmp_dir+set}" = set; then : | |
5556 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5557 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5558 | fi | |
5559 | ||
4b1cb4fe DD |
5560 | |
5561 | ||
81ecdfbb RW |
5562 | # Check whether --with-gmp was given. |
5563 | if test "${with_gmp+set}" = set; then : | |
5564 | withval=$with_gmp; | |
5565 | fi | |
c6b750e1 | 5566 | |
4b1cb4fe | 5567 | |
e552509b | 5568 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5569 | if test "${with_gmp_include+set}" = set; then : |
5570 | withval=$with_gmp_include; | |
5571 | fi | |
c6b750e1 | 5572 | |
8a0d8a5c | 5573 | |
e552509b | 5574 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5575 | if test "${with_gmp_lib+set}" = set; then : |
5576 | withval=$with_gmp_lib; | |
5577 | fi | |
8a0d8a5c PB |
5578 | |
5579 | ||
4b1cb4fe | 5580 | |
11b04d1f DD |
5581 | if test "x$with_gmp" != x; then |
5582 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5583 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5584 | fi |
8a0d8a5c PB |
5585 | if test "x$with_gmp_include" != x; then |
5586 | gmpinc="-I$with_gmp_include $gmpinc" | |
5587 | fi | |
5588 | if test "x$with_gmp_lib" != x; then | |
5589 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5590 | fi | |
4b900473 | 5591 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5592 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5593 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5594 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5595 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5596 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5597 | # Do not test the gmp version. Assume that it is sufficient, since |
5598 | # it is in the source tree, and the library has not been built yet | |
5599 | # but it would be included on the link line in the version check below | |
5600 | # hence making the test fail. | |
5601 | have_gmp=yes | |
5602 | fi | |
4b1cb4fe | 5603 | |
ceb92e78 | 5604 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5605 | have_gmp=yes |
5606 | saved_CFLAGS="$CFLAGS" | |
5607 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5608 | # Check for the recommended and required versions of GMP. |
5609 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5610 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5611 | |
5612 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5613 | /* end confdefs.h. */ |
5614 | #include "gmp.h" | |
5615 | int | |
5616 | main () | |
5617 | { | |
5618 | ||
5619 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5620 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5621 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5622 | choke me |
5623 | #endif | |
5624 | ||
5625 | ; | |
5626 | return 0; | |
5627 | } | |
5628 | _ACEOF | |
5629 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5630 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5631 | /* end confdefs.h. */ |
a6b5846e | 5632 | #include <gmp.h> |
c6b750e1 DJ |
5633 | int |
5634 | main () | |
5635 | { | |
4b1cb4fe | 5636 | |
a6b5846e KG |
5637 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5638 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5639 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5640 | choke me |
5641 | #endif | |
c6b750e1 DJ |
5642 | |
5643 | ; | |
5644 | return 0; | |
5645 | } | |
5646 | _ACEOF | |
81ecdfbb RW |
5647 | if ac_fn_c_try_compile "$LINENO"; then : |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5649 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5650 | else |
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5652 | $as_echo "buggy but acceptable" >&6; } | |
5653 | fi | |
5654 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5655 | else |
81ecdfbb RW |
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5657 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5658 | fi |
81ecdfbb | 5659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5660 | |
e8a5fa9c | 5661 | # If we have GMP, check the MPFR version. |
4b900473 | 5662 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5663 | # Check for the recommended and required versions of MPFR. |
5664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5665 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5667 | /* end confdefs.h. */ |
9b134994 | 5668 | #include <gmp.h> |
4b900473 | 5669 | #include <mpfr.h> |
c6b750e1 DJ |
5670 | int |
5671 | main () | |
5672 | { | |
9b134994 | 5673 | |
7ec59b9e | 5674 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5675 | choke me |
5676 | #endif | |
c6b750e1 DJ |
5677 | |
5678 | ; | |
5679 | return 0; | |
5680 | } | |
5681 | _ACEOF | |
81ecdfbb RW |
5682 | if ac_fn_c_try_compile "$LINENO"; then : |
5683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5684 | /* end confdefs.h. */ |
4b1cb4fe | 5685 | #include <gmp.h> |
4b900473 | 5686 | #include <mpfr.h> |
c6b750e1 DJ |
5687 | int |
5688 | main () | |
5689 | { | |
9dbaa842 | 5690 | |
a6b5846e | 5691 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5692 | choke me |
5693 | #endif | |
e8a5fa9c RW |
5694 | |
5695 | ; | |
5696 | return 0; | |
5697 | } | |
5698 | _ACEOF | |
81ecdfbb RW |
5699 | if ac_fn_c_try_compile "$LINENO"; then : |
5700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5701 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5702 | else |
81ecdfbb RW |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5704 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5705 | fi |
81ecdfbb | 5706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5707 | else |
81ecdfbb RW |
5708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5709 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5710 | fi |
81ecdfbb | 5711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5712 | fi |
5713 | ||
5714 | # Check for the MPC header version. | |
d9b76ff9 | 5715 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5716 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5718 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5720 | /* end confdefs.h. */ |
5721 | #include <mpc.h> | |
5722 | int | |
5723 | main () | |
5724 | { | |
5725 | ||
a6b5846e KG |
5726 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5727 | choke me | |
5728 | #endif | |
5729 | ||
5730 | ; | |
5731 | return 0; | |
5732 | } | |
5733 | _ACEOF | |
5734 | if ac_fn_c_try_compile "$LINENO"; then : | |
5735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5736 | /* end confdefs.h. */ | |
5737 | #include <mpc.h> | |
5738 | int | |
5739 | main () | |
5740 | { | |
5741 | ||
5742 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5743 | choke me |
5744 | #endif | |
5745 | ||
5746 | ; | |
5747 | return 0; | |
5748 | } | |
5749 | _ACEOF | |
81ecdfbb RW |
5750 | if ac_fn_c_try_compile "$LINENO"; then : |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5752 | $as_echo "yes" >&6; } |
a6b5846e KG |
5753 | else |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5755 | $as_echo "buggy but acceptable" >&6; } | |
5756 | fi | |
5757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5758 | else |
81ecdfbb | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5760 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5761 | fi |
81ecdfbb | 5762 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5763 | fi |
5764 | ||
5765 | # Now check the MPFR library. | |
5766 | if test x"$have_gmp" = xyes; then | |
5767 | saved_LIBS="$LIBS" | |
5768 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5770 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5772 | /* end confdefs.h. */ |
d9b76ff9 | 5773 | #include <mpc.h> |
e8a5fa9c RW |
5774 | int |
5775 | main () | |
5776 | { | |
5777 | ||
5778 | mpfr_t n; | |
5779 | mpfr_t x; | |
d9b76ff9 | 5780 | mpc_t c; |
e8a5fa9c RW |
5781 | int t; |
5782 | mpfr_init (n); | |
5783 | mpfr_init (x); | |
5784 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5785 | mpfr_erfc (n, x, GMP_RNDN); | |
5786 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5787 | mpfr_clear(n); |
5788 | mpfr_clear(x); | |
5789 | mpc_init2 (c, 53); | |
5790 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5791 | mpc_cosh (c, c, MPC_RNDNN); | |
5792 | mpc_pow (c, c, c, MPC_RNDNN); | |
5793 | mpc_acosh (c, c, MPC_RNDNN); | |
5794 | mpc_clear (c); | |
c6b750e1 DJ |
5795 | |
5796 | ; | |
5797 | return 0; | |
5798 | } | |
5799 | _ACEOF | |
81ecdfbb RW |
5800 | if ac_fn_c_try_link "$LINENO"; then : |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5802 | $as_echo "yes" >&6; } | |
c6b750e1 | 5803 | else |
81ecdfbb RW |
5804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5805 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5806 | fi |
81ecdfbb RW |
5807 | rm -f core conftest.err conftest.$ac_objext \ |
5808 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5809 | LIBS="$saved_LIBS" |
5810 | fi | |
5811 | ||
4b900473 | 5812 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5813 | |
a6b5846e KG |
5814 | # The library versions listed in the error message below should match |
5815 | # the HARD-minimums enforced above. | |
4b900473 | 5816 | if test x$have_gmp != xyes; then |
7ec59b9e | 5817 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5818 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5819 | their locations. Source code for these libraries can be found at | |
5820 | their respective hosting sites as well as at | |
5821 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5822 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5823 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5824 | make sure that you have installed both the libraries and the header | |
5825 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5826 | fi |
9dbaa842 DD |
5827 | fi |
5828 | ||
e8a5fa9c RW |
5829 | # Flags needed for both GMP, MPFR and/or MPC. |
5830 | ||
5831 | ||
5832 | ||
4b1cb4fe DD |
5833 | |
5834 | ||
5835 | ||
7ec59b9e | 5836 | |
29383458 JM |
5837 | # Allow host libstdc++ to be specified for static linking with PPL. |
5838 | ||
81ecdfbb RW |
5839 | # Check whether --with-host-libstdcxx was given. |
5840 | if test "${with_host_libstdcxx+set}" = set; then : | |
5841 | withval=$with_host_libstdcxx; | |
5842 | fi | |
29383458 | 5843 | |
29383458 JM |
5844 | |
5845 | case $with_host_libstdcxx in | |
5846 | no|yes) | |
81ecdfbb | 5847 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5848 | ;; |
5849 | esac | |
e28c595f | 5850 | |
b3676d82 | 5851 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5852 | |
b3676d82 EB |
5853 | # Check whether --with-stage1-libs was given. |
5854 | if test "${with_stage1_libs+set}" = set; then : | |
5855 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5856 | stage1_libs= | |
e8a5fa9c | 5857 | else |
b3676d82 | 5858 | stage1_libs=$withval |
e8a5fa9c RW |
5859 | fi |
5860 | else | |
b3676d82 | 5861 | stage1_libs=$with_host_libstdcxx |
81ecdfbb RW |
5862 | fi |
5863 | ||
e8a5fa9c RW |
5864 | |
5865 | ||
b3676d82 | 5866 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5867 | |
b3676d82 EB |
5868 | # Check whether --with-stage1-ldflags was given. |
5869 | if test "${with_stage1_ldflags+set}" = set; then : | |
5870 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5871 | stage1_ldflags= | |
e8a5fa9c | 5872 | else |
b3676d82 | 5873 | stage1_ldflags=$withval |
e8a5fa9c RW |
5874 | fi |
5875 | else | |
b3676d82 EB |
5876 | stage1_ldflags= |
5877 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5878 | # if supported. But if the user explicitly specified the libraries to use, | |
5879 | # trust that they are doing what they want. | |
5880 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5881 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5882 | fi | |
81ecdfbb RW |
5883 | fi |
5884 | ||
e8a5fa9c RW |
5885 | |
5886 | ||
e8a5fa9c RW |
5887 | # Libraries to use for stage2 and later builds. This defaults to the |
5888 | # argument passed to --with-host-libstdcxx. | |
5889 | ||
81ecdfbb RW |
5890 | # Check whether --with-boot-libs was given. |
5891 | if test "${with_boot_libs+set}" = set; then : | |
5892 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5893 | poststage1_libs= |
5894 | else | |
5895 | poststage1_libs=$withval | |
5896 | fi | |
5897 | else | |
5898 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5899 | fi |
5900 | ||
e8a5fa9c RW |
5901 | |
5902 | ||
143754cd NC |
5903 | # Linker flags to use for stage2 and later builds. |
5904 | ||
5905 | # Check whether --with-boot-ldflags was given. | |
5906 | if test "${with_boot_ldflags+set}" = set; then : | |
5907 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5908 | poststage1_ldflags= | |
5909 | else | |
5910 | poststage1_ldflags=$withval | |
5911 | fi | |
5912 | else | |
5913 | poststage1_ldflags= | |
4f11b223 ILT |
5914 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5915 | # statically. But if the user explicitly specified the libraries to | |
5916 | # use, trust that they are doing what they want. | |
5917 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5918 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5919 | fi | |
5920 | fi | |
5921 | ||
5922 | ||
5923 | ||
1b6c0831 L |
5924 | # GCC GRAPHITE dependency ISL. |
5925 | # Basic setup is inlined here, actual checks are in config/isl.m4 | |
e28c595f JM |
5926 | |
5927 | ||
7ec59b9e L |
5928 | # Check whether --with-isl was given. |
5929 | if test "${with_isl+set}" = set; then : | |
5930 | withval=$with_isl; | |
81ecdfbb | 5931 | fi |
e28c595f | 5932 | |
e28c595f | 5933 | |
1b6c0831 | 5934 | # Treat --without-isl as a request to disable |
8e71395b | 5935 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5936 | if test "x$with_isl" != "xno"; then |
8e71395b L |
5937 | # Check for ISL |
5938 | ||
5939 | ||
7ec59b9e L |
5940 | # Check whether --with-isl-include was given. |
5941 | if test "${with_isl_include+set}" = set; then : | |
5942 | withval=$with_isl_include; | |
81ecdfbb RW |
5943 | fi |
5944 | ||
e28c595f | 5945 | |
7ec59b9e L |
5946 | # Check whether --with-isl-lib was given. |
5947 | if test "${with_isl_lib+set}" = set; then : | |
5948 | withval=$with_isl_lib; | |
81ecdfbb | 5949 | fi |
e28c595f | 5950 | |
e28c595f | 5951 | |
7ec59b9e L |
5952 | # Check whether --enable-isl-version-check was given. |
5953 | if test "${enable_isl_version_check+set}" = set; then : | |
5954 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5955 | else | |
5956 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5957 | fi |
5958 | ||
5959 | ||
7ec59b9e L |
5960 | # Initialize isllibs and islinc. |
5961 | case $with_isl in | |
5962 | no) | |
5963 | isllibs= | |
5964 | islinc= | |
5965 | ;; | |
5966 | "" | yes) | |
5967 | ;; | |
5968 | *) | |
5969 | isllibs="-L$with_isl/lib" | |
5970 | islinc="-I$with_isl/include" | |
5971 | ;; | |
5972 | esac | |
5973 | if test "x${with_isl_include}" != x ; then | |
5974 | islinc="-I$with_isl_include" | |
5975 | fi | |
5976 | if test "x${with_isl_lib}" != x; then | |
5977 | isllibs="-L$with_isl_lib" | |
5978 | fi | |
5979 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5980 | && test -d ${srcdir}/isl; then | |
5981 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5982 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5983 | ENABLE_ISL_CHECK=no | |
3dae1673 JBG |
5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5985 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
7ec59b9e | 5986 | fi |
b123da99 | 5987 | |
1b6c0831 | 5988 | isllibs="${isllibs} -lisl" |
b123da99 | 5989 | |
e28c595f | 5990 | |
b3fc79f8 JBG |
5991 | |
5992 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5993 | _isl_saved_CFLAGS=$CFLAGS | |
5994 | _isl_saved_LDFLAGS=$LDFLAGS | |
5995 | _isl_saved_LIBS=$LIBS | |
5996 | ||
5997 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5998 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5999 | LIBS="${_isl_saved_LIBS} -lisl" | |
6000 | ||
1b6c0831 L |
6001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible ISL" >&5 |
6002 | $as_echo_n "checking for compatible ISL... " >&6; } | |
6003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b3fc79f8 | 6004 | /* end confdefs.h. */ |
1b6c0831 | 6005 | #include <isl/val.h> |
b3fc79f8 JBG |
6006 | int |
6007 | main () | |
6008 | { | |
1b6c0831 | 6009 | ; |
b3fc79f8 JBG |
6010 | ; |
6011 | return 0; | |
6012 | } | |
6013 | _ACEOF | |
1b6c0831 | 6014 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6015 | gcc_cv_isl=yes |
6016 | else | |
6017 | gcc_cv_isl=no | |
6018 | fi | |
1b6c0831 L |
6019 | rm -f core conftest.err conftest.$ac_objext \ |
6020 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6022 | $as_echo "$gcc_cv_isl" >&6; } | |
6023 | ||
6024 | CFLAGS=$_isl_saved_CFLAGS | |
6025 | LDFLAGS=$_isl_saved_LDFLAGS | |
6026 | LIBS=$_isl_saved_LIBS | |
6027 | fi | |
6028 | ||
6029 | ||
e28c595f | 6030 | |
e28c595f | 6031 | |
7ec59b9e L |
6032 | |
6033 | ||
7ec59b9e L |
6034 | if test "x${with_isl}" = xno; then |
6035 | graphite_requested=no | |
6036 | elif test "x${with_isl}" != x \ | |
6037 | || test "x${with_isl_include}" != x \ | |
6038 | || test "x${with_isl_lib}" != x ; then | |
6039 | graphite_requested=yes | |
6040 | else | |
6041 | graphite_requested=no | |
b123da99 | 6042 | fi |
e28c595f | 6043 | |
e28c595f JM |
6044 | |
6045 | ||
7ec59b9e L |
6046 | if test "${gcc_cv_isl}" = no ; then |
6047 | isllibs= | |
6048 | islinc= | |
6049 | fi | |
e28c595f | 6050 | |
7ec59b9e L |
6051 | if test "${graphite_requested}" = yes \ |
6052 | && test "x${isllibs}" = x \ | |
6053 | && test "x${islinc}" = x ; then | |
e28c595f | 6054 | |
7ec59b9e L |
6055 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6056 | fi | |
e552509b | 6057 | |
e28c595f | 6058 | |
e552509b ILT |
6059 | fi |
6060 | ||
1b6c0831 | 6061 | # If the ISL check failed, disable builds of in-tree variant of ISL |
8e71395b | 6062 | if test "x$with_isl" = xno || |
8e71395b | 6063 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6064 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6065 | islinc= |
7ec59b9e L |
6066 | fi |
6067 | ||
8e71395b L |
6068 | |
6069 | ||
6070 | ||
700d40ca ILT |
6071 | # Check for LTO support. |
6072 | # Check whether --enable-lto was given. | |
6073 | if test "${enable_lto+set}" = set; then : | |
6074 | enableval=$enable_lto; enable_lto=$enableval | |
6075 | else | |
6076 | enable_lto=yes; default_enable_lto=yes | |
6077 | fi | |
6078 | ||
6079 | ||
143754cd | 6080 | |
e49e5c92 DK |
6081 | |
6082 | ||
6083 | target_elf=no | |
6084 | case $target in | |
6085 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6086 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6087 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6088 | nvptx-*-none) | |
e49e5c92 DK |
6089 | target_elf=no |
6090 | ;; | |
6091 | *) | |
6092 | target_elf=yes | |
6093 | ;; | |
6094 | esac | |
6095 | ||
6096 | if test $target_elf = yes; then : | |
74cea91b DK |
6097 | # ELF platforms build the lto-plugin always. |
6098 | build_lto_plugin=yes | |
e49e5c92 | 6099 | |
e49e5c92 DK |
6100 | else |
6101 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6102 | case $target in |
899b04ef | 6103 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6104 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6105 | *) enable_lto=no ;; |
6106 | esac | |
e49e5c92 | 6107 | else |
29821356 RW |
6108 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6109 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6110 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6111 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6112 | # -flto it won't be needed until after installation anyway. | |
6113 | case $target in | |
a8eb3f0a | 6114 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6115 | *) if test x"$enable_lto" = x"yes"; then |
6116 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6117 | fi | |
6118 | ;; | |
6119 | esac | |
6120 | fi | |
a8eb3f0a | 6121 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6122 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6123 | case $target in |
74cea91b | 6124 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6125 | *) ;; |
6126 | esac | |
74cea91b | 6127 | |
e49e5c92 DK |
6128 | fi |
6129 | ||
700d40ca | 6130 | |
1b6c0831 L |
6131 | # Check whether --enable-linker-plugin-configure-flags was given. |
6132 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6133 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6134 | else | |
6135 | extra_linker_plugin_configure_flags= | |
6136 | fi | |
6137 | ||
6138 | ||
6139 | # Check whether --enable-linker-plugin-flags was given. | |
6140 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6141 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6142 | else | |
6143 | extra_linker_plugin_flags= | |
6144 | fi | |
6145 | ||
6146 | ||
6147 | ||
e28c595f | 6148 | |
7ec59b9e | 6149 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6150 | stage1_languages=,c, |
1d39f329 | 6151 | |
e8a5fa9c | 6152 | # Target libraries that we bootstrap. |
2aa2364a | 6153 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6154 | |
9e07f89d NN |
6155 | # Figure out what language subdirectories are present. |
6156 | # Look if the user specified --enable-languages="..."; if not, use | |
6157 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6158 | # go away some day. | |
6159 | # NB: embedded tabs in this IF block -- do not untabify | |
6160 | if test -d ${srcdir}/gcc; then | |
6161 | if test x"${enable_languages+set}" != xset; then | |
6162 | if test x"${LANGUAGES+set}" = xset; then | |
6163 | enable_languages="${LANGUAGES}" | |
6164 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6165 | else | |
6166 | enable_languages=all | |
6167 | fi | |
6168 | else | |
6169 | if test x"${enable_languages}" = x || | |
6170 | test x"${enable_languages}" = xyes; | |
6171 | then | |
6172 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6173 | exit 1 | |
6174 | fi | |
6175 | fi | |
6176 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6177 | ||
096f7d00 DE |
6178 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6179 | # and make the substitution. | |
6180 | case ,${enable_languages}, in | |
6181 | *,f95,*) | |
6182 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6183 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6184 | ;; | |
6185 | esac | |
6186 | ||
7ec59b9e L |
6187 | # If bootstrapping, C++ must be enabled. |
6188 | case ",$enable_languages,:$enable_bootstrap" in | |
6189 | *,c++,*:*) ;; | |
6190 | *:yes) | |
ffdd6afc ILT |
6191 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6192 | enable_languages="${enable_languages},c++" | |
6193 | else | |
7ec59b9e | 6194 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6195 | fi |
6196 | ;; | |
6197 | esac | |
6198 | ||
9e07f89d NN |
6199 | # First scan to see if an enabled language requires some other language. |
6200 | # We assume that a given config-lang.in will list all the language | |
6201 | # front ends it requires, even if some are required indirectly. | |
6202 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6203 | case ${lang_frag} in | |
6204 | ..) ;; | |
6205 | # The odd quoting in the next line works around | |
6206 | # an apparent bug in bash 1.12 on linux. | |
6207 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6208 | *) | |
e552509b ILT |
6209 | # From the config-lang.in, get $language, $lang_requires, and |
6210 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6211 | language= |
6212 | lang_requires= | |
e552509b | 6213 | lang_requires_boot_languages= |
9e07f89d | 6214 | . ${lang_frag} |
e552509b | 6215 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6216 | case ,${enable_languages}, in |
6217 | *,$other,*) ;; | |
6218 | *,all,*) ;; | |
6219 | *,$language,*) | |
6220 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6221 | enable_languages="${enable_languages},${other}" | |
6222 | ;; | |
6223 | esac | |
6224 | done | |
e552509b ILT |
6225 | for other in ${lang_requires_boot_languages} ; do |
6226 | if test "$other" != "c"; then | |
6227 | case ,${enable_stage1_languages}, in | |
6228 | *,$other,*) ;; | |
6229 | *,all,*) ;; | |
6230 | *) | |
6231 | case ,${enable_languages}, in | |
6232 | *,$language,*) | |
6233 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6234 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6235 | ;; | |
6236 | esac | |
6237 | ;; | |
6238 | esac | |
6239 | fi | |
6240 | done | |
9e07f89d NN |
6241 | ;; |
6242 | esac | |
6243 | done | |
6244 | ||
9b134994 | 6245 | new_enable_languages=,c, |
700d40ca ILT |
6246 | |
6247 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6248 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6249 | case ,${enable_languages}, in |
6250 | *,lto,*) ;; | |
6251 | *) enable_languages="${enable_languages},lto" ;; | |
6252 | esac | |
a8eb3f0a | 6253 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6254 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6255 | fi |
6256 | fi | |
6257 | ||
1b6c0831 L |
6258 | # If we're building an offloading compiler, add the LTO front end. |
6259 | if test x"$enable_as_accelerator_for" != x ; then | |
6260 | case ,${enable_languages}, in | |
6261 | *,lto,*) ;; | |
6262 | *) enable_languages="${enable_languages},lto" ;; | |
6263 | esac | |
6264 | fi | |
700d40ca | 6265 | |
9e07f89d | 6266 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6267 | potential_languages=,c, |
9e07f89d | 6268 | |
9e1a94f4 ILT |
6269 | enabled_target_libs= |
6270 | disabled_target_libs= | |
6271 | ||
9e07f89d NN |
6272 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6273 | case ${lang_frag} in | |
6274 | ..) ;; | |
6275 | # The odd quoting in the next line works around | |
6276 | # an apparent bug in bash 1.12 on linux. | |
6277 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6278 | *) | |
c6b750e1 | 6279 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6280 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6281 | language= |
6282 | target_libs= | |
6283 | lang_dirs= | |
64ce424c | 6284 | subdir_requires= |
9b134994 PB |
6285 | boot_language=no |
6286 | build_by_default=yes | |
9e07f89d | 6287 | . ${lang_frag} |
9b134994 PB |
6288 | if test x${language} = x; then |
6289 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6290 | exit 1 | |
6291 | fi | |
6292 | ||
ffdd6afc | 6293 | if test "$language" = "c++"; then |
7ec59b9e | 6294 | boot_language=yes |
e8a5fa9c RW |
6295 | fi |
6296 | ||
8e71395b | 6297 | add_this_lang=no |
9b134994 PB |
6298 | case ,${enable_languages}, in |
6299 | *,${language},*) | |
7ec59b9e L |
6300 | # Language was explicitly selected; include it |
6301 | # unless it is C, which is enabled by default. | |
6302 | if test "$language" != "c"; then | |
6303 | add_this_lang=yes | |
6304 | fi | |
9e07f89d | 6305 | ;; |
9b134994 PB |
6306 | *,all,*) |
6307 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6308 | if test "$language" != "c"; then |
6309 | add_this_lang=${build_by_default} | |
6310 | fi | |
9e07f89d NN |
6311 | ;; |
6312 | esac | |
4b1cb4fe | 6313 | |
64ce424c | 6314 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6315 | for i in $subdir_requires; do |
3d3adb43 | 6316 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6317 | case ,${enable_languages}, in |
6318 | *,${language},*) | |
6319 | # Specifically requested language; tell them. | |
81ecdfbb | 6320 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6321 | ;; |
6322 | *) | |
6323 | # Silently disable. | |
9b134994 | 6324 | add_this_lang=unsupported |
64ce424c PB |
6325 | ;; |
6326 | esac | |
6327 | done | |
6328 | ||
9b134994 PB |
6329 | # Disable Ada if no preexisting GNAT is available. |
6330 | case ,${enable_languages},:${language}:${have_gnat} in | |
6331 | *,${language},*:ada:no) | |
6332 | # Specifically requested language; tell them. | |
81ecdfbb | 6333 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6334 | ;; |
6335 | *:ada:no) | |
6336 | # Silently disable. | |
6337 | add_this_lang=unsupported | |
6338 | ;; | |
6339 | esac | |
6340 | ||
59f7ec45 HPN |
6341 | # Disable a language that is unsupported by the target. |
6342 | case " $unsupported_languages " in | |
6343 | *" $language "*) | |
9b134994 | 6344 | add_this_lang=unsupported |
59f7ec45 HPN |
6345 | ;; |
6346 | esac | |
6347 | ||
4b1cb4fe | 6348 | case $add_this_lang in |
9b134994 | 6349 | unsupported) |
9e07f89d | 6350 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6351 | disabled_target_libs="$disabled_target_libs $target_libs" |
6352 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6353 | ;; |
9b134994 PB |
6354 | no) |
6355 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6356 | disabled_target_libs="$disabled_target_libs $target_libs" |
6357 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6358 | potential_languages="${potential_languages}${language}," |
6359 | ;; | |
6360 | yes) | |
6361 | new_enable_languages="${new_enable_languages}${language}," | |
6362 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6363 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6364 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6365 | case "${boot_language}:,$enable_stage1_languages," in |
6366 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6367 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6368 | case ",$stage1_languages," in |
6369 | *,$language,* | ,yes, | ,all,) ;; | |
6370 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6371 | esac | |
e8a5fa9c RW |
6372 | # We need to bootstrap any supporting libraries. |
6373 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6374 | ;; |
6375 | esac | |
6376 | ;; | |
9e07f89d NN |
6377 | esac |
6378 | ;; | |
6379 | esac | |
6380 | done | |
6381 | ||
9e1a94f4 ILT |
6382 | # Add target libraries which are only needed for disabled languages |
6383 | # to noconfigdirs. | |
6384 | if test -n "$disabled_target_libs"; then | |
6385 | for dir in $disabled_target_libs; do | |
6386 | case " $enabled_target_libs " in | |
6387 | *" ${dir} "*) ;; | |
6388 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6389 | esac | |
6390 | done | |
6391 | fi | |
6392 | ||
81ecdfbb RW |
6393 | # Check whether --enable-stage1-languages was given. |
6394 | if test "${enable_stage1_languages+set}" = set; then : | |
6395 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6396 | ,no,|,,) |
6397 | # Set it to something that will have no effect in the loop below | |
6398 | enable_stage1_languages=c ;; | |
6399 | ,yes,) | |
6400 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6401 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6402 | *,all,*) | |
6403 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6404 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6405 | esac | |
6406 | ||
6407 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6408 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6409 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6410 | case $potential_languages in | |
6411 | *,$i,*) | |
6412 | case $stage1_languages in | |
6413 | *,$i,*) ;; | |
6414 | *) stage1_languages="$stage1_languages$i," ;; | |
6415 | esac ;; | |
6416 | *) | |
6417 | case $missing_languages in | |
6418 | *,$i,*) ;; | |
6419 | *) missing_languages="$missing_languages$i," ;; | |
6420 | esac ;; | |
6421 | esac | |
6422 | done | |
81ecdfbb RW |
6423 | fi |
6424 | ||
9b134994 PB |
6425 | |
6426 | # Remove leading/trailing commas that were added for simplicity | |
6427 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6428 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6429 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6430 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6431 | ||
9e07f89d | 6432 | if test "x$missing_languages" != x; then |
81ecdfbb | 6433 | as_fn_error " |
27258dd4 | 6434 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6435 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6436 | fi |
9e07f89d NN |
6437 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6438 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6439 | enable_languages="$new_enable_languages" |
9e07f89d | 6440 | fi |
9b134994 | 6441 | |
c6b750e1 | 6442 | |
81ec575a | 6443 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6444 | fi |
6445 | ||
a6df5a19 PB |
6446 | # Handle --disable-<component> generically. |
6447 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6448 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6449 | varname=`echo $dirname | sed -e s/+/_/g` |
6450 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6451 | noconfigdirs="$noconfigdirs $dir" |
6452 | fi | |
6453 | done | |
6454 | ||
4f0ef2d8 | 6455 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6456 | # Check whether --enable-objc-gc was given. |
6457 | if test "${enable_objc_gc+set}" = set; then : | |
6458 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6459 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6460 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6461 | ;; |
6462 | esac | |
81ecdfbb RW |
6463 | fi |
6464 | ||
4f0ef2d8 CD |
6465 | |
6466 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6467 | case ,${enable_languages},:${enable_objc_gc} in |
6468 | *,objc,*:yes) | |
4f0ef2d8 CD |
6469 | # Keep target-boehm-gc if requested for Objective-C. |
6470 | ;; | |
4f0ef2d8 | 6471 | *) |
d42c4017 DA |
6472 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6473 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6474 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6475 | fi | |
4f0ef2d8 CD |
6476 | ;; |
6477 | esac | |
6478 | ||
1b6c0831 | 6479 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6480 | case ,${enable_languages}, in |
1b6c0831 L |
6481 | *,c++,*) |
6482 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6483 | case "${noconfigdirs}" in | |
6484 | *target-libstdc++-v3*) | |
6485 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6486 | ;; | |
6487 | *) ;; | |
6488 | esac | |
6489 | ;; | |
7ec59b9e | 6490 | *) |
1b6c0831 | 6491 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6492 | ;; |
6493 | esac | |
6494 | ||
caeba88f AL |
6495 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6496 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6497 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6498 | ||
6499 | notsupp="" | |
6500 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6501 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6502 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6503 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6504 | if test -r $srcdir/$dirname/configure ; then | |
6505 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6506 | true | |
6507 | else | |
6508 | notsupp="$notsupp $dir" | |
6509 | fi | |
6510 | fi | |
6511 | fi | |
caeba88f AL |
6512 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6513 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6514 | if test -r $srcdir/$dirname/configure ; then | |
6515 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6516 | true | |
6517 | else | |
6518 | notsupp="$notsupp $dir" | |
6519 | fi | |
6520 | fi | |
6521 | fi | |
9e07f89d NN |
6522 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6523 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6524 | if test -r $srcdir/$dirname/configure ; then | |
6525 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6526 | true | |
6527 | else | |
6528 | notsupp="$notsupp $dir" | |
6529 | fi | |
6530 | fi | |
6531 | fi | |
6532 | done | |
6533 | ||
9e07f89d NN |
6534 | # Quietly strip out all directories which aren't configurable in this tree. |
6535 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6536 | # is now the case. | |
6a9cf61e PB |
6537 | build_configdirs_all="$build_configdirs" |
6538 | build_configdirs= | |
6539 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6540 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6541 | if test -f ${srcdir}/$j/configure ; then |
6542 | build_configdirs="${build_configdirs} $i" | |
6543 | fi | |
6544 | done | |
6545 | ||
9e07f89d NN |
6546 | configdirs_all="$configdirs" |
6547 | configdirs= | |
6548 | for i in ${configdirs_all} ; do | |
6549 | if test -f ${srcdir}/$i/configure ; then | |
6550 | configdirs="${configdirs} $i" | |
6551 | fi | |
6552 | done | |
6a9cf61e | 6553 | |
9e07f89d NN |
6554 | target_configdirs_all="$target_configdirs" |
6555 | target_configdirs= | |
6556 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6557 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6558 | if test -f ${srcdir}/$j/configure ; then |
6559 | target_configdirs="${target_configdirs} $i" | |
6560 | fi | |
6561 | done | |
6562 | ||
091021fa L |
6563 | # Exclude target-zlib if target-libjava isn't built. |
6564 | case ${target_configdirs} in | |
6565 | *target-libjava*) | |
6566 | ;; | |
6567 | *) | |
6568 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6569 | ;; | |
6570 | esac | |
6571 | ||
1b6c0831 L |
6572 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6573 | # so we have to add it after the preceding checks. | |
6574 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6575 | then | |
6576 | case " $configdirs " in | |
6577 | *" libiberty "*) | |
6578 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6579 | configdirs="$configdirs libiberty-linker-plugin" | |
6580 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6581 | --with-libiberty=../libiberty-linker-plugin";; | |
6582 | *) | |
6583 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6584 | esac | |
6585 | fi | |
6586 | ||
6587 | # Sometimes we have special requirements for the host libiberty. | |
6588 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6589 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6590 | case " $configdirs " in |
6591 | *" lto-plugin "* | *" libcc1 "*) | |
6592 | # When these are to be built as shared libraries, the same applies to | |
6593 | # libiberty. | |
6594 | extra_host_libiberty_configure_flags=--enable-shared | |
6595 | ;; | |
e81d5d05 L |
6596 | *" bfd "*) |
6597 | # When bfd is to be built as a shared library, the same applies to | |
6598 | # zlib. | |
6599 | if test "$enable_shared" = "yes"; then | |
6600 | extra_host_zlib_configure_flags=--enable-host-shared | |
6601 | fi | |
6602 | ;; | |
1b6c0831 L |
6603 | esac |
6604 | ||
6605 | ||
e81d5d05 | 6606 | |
9e07f89d NN |
6607 | # Produce a warning message for the subdirs we can't configure. |
6608 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6609 | # FSF releases, it's important to let people know when their machine isn't | |
6610 | # supported by the one or two programs in a package. | |
6611 | ||
6612 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6613 | # If $appdirs is non-empty, at least one of those directories must still | |
6614 | # be configured, or we error out. (E.g., if the gas release supports a | |
6615 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6616 | # pretend that all is well.) | |
6617 | if test -n "$appdirs" ; then | |
6618 | for dir in $appdirs ; do | |
6619 | if test -r $dir/Makefile.in ; then | |
6620 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6621 | appdirs="" | |
6622 | break | |
6623 | fi | |
6a9cf61e | 6624 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6625 | appdirs="" |
6626 | break | |
6627 | fi | |
6628 | fi | |
6629 | done | |
6630 | if test -n "$appdirs" ; then | |
6631 | echo "*** This configuration is not supported by this package." 1>&2 | |
6632 | exit 1 | |
6633 | fi | |
6634 | fi | |
6635 | # Okay, some application will build, or we don't care to check. Still | |
6636 | # notify of subdirs not getting built. | |
6637 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6638 | echo " ${notsupp}" 1>&2 | |
6639 | echo " (Any other directories should still work fine.)" 1>&2 | |
6640 | fi | |
6641 | ||
6642 | case "$host" in | |
6643 | *msdosdjgpp*) | |
6644 | enable_gdbtk=no ;; | |
6645 | esac | |
6646 | ||
18f6b6ee PB |
6647 | # To find our prefix, in gcc_cv_tool_prefix. |
6648 | ||
6649 | # The user is always right. | |
6650 | if test "${PATH_SEPARATOR+set}" != set; then | |
6651 | echo "#! /bin/sh" >conf$$.sh | |
6652 | echo "exit 0" >>conf$$.sh | |
6653 | chmod +x conf$$.sh | |
6654 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6655 | PATH_SEPARATOR=';' | |
6656 | else | |
6657 | PATH_SEPARATOR=: | |
6658 | fi | |
6659 | rm -f conf$$.sh | |
6660 | fi | |
6661 | ||
6662 | ||
6663 | ||
6664 | if test "x$exec_prefix" = xNONE; then | |
6665 | if test "x$prefix" = xNONE; then | |
6666 | gcc_cv_tool_prefix=$ac_default_prefix | |
6667 | else | |
6668 | gcc_cv_tool_prefix=$prefix | |
6669 | fi | |
6670 | else | |
6671 | gcc_cv_tool_prefix=$exec_prefix | |
6672 | fi | |
6673 | ||
6674 | # If there is no compiler in the tree, use the PATH only. In any | |
6675 | # case, if there is no compiler in the tree nobody should use | |
6676 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6677 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6678 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6679 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6680 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6681 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6682 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6683 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6684 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6685 | else | |
6686 | gcc_cv_tool_dirs= | |
6687 | fi | |
6688 | ||
6689 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6690 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6691 | fi | |
6692 | ||
6693 | ||
6694 | ||
9e07f89d NN |
6695 | copy_dirs= |
6696 | ||
c6b750e1 | 6697 | |
81ecdfbb RW |
6698 | # Check whether --with-build-sysroot was given. |
6699 | if test "${with_build_sysroot+set}" = set; then : | |
6700 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6701 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6702 | fi | |
6703 | else | |
6704 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6705 | fi |
a19b6204 MM |
6706 | |
6707 | ||
8a6ee3ab | 6708 | |
81ecdfbb RW |
6709 | |
6710 | # Check whether --with-debug-prefix-map was given. | |
6711 | if test "${with_debug_prefix_map+set}" = set; then : | |
6712 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6713 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6714 | for debug_map in $withval; do | |
6715 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6716 | done | |
6717 | fi | |
6718 | else | |
6719 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6720 | fi |
6721 | ||
8a6ee3ab JM |
6722 | |
6723 | ||
7f6ef0c0 PB |
6724 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6725 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6726 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6727 | # We want to ensure that TARGET libraries (which we know are built with | |
6728 | # gcc) are built with "-O2 -g", so include those options when setting | |
6729 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6730 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6731 | if test "x${is_cross_compiler}" = xyes; then |
6732 | CFLAGS_FOR_TARGET="-g -O2" | |
6733 | else | |
6734 | CFLAGS_FOR_TARGET=$CFLAGS | |
6735 | case " $CFLAGS " in | |
6736 | *" -O2 "*) ;; | |
6737 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6738 | esac | |
6739 | case " $CFLAGS " in | |
6740 | *" -g "* | *" -g3 "*) ;; | |
6741 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6742 | esac | |
6743 | fi | |
7f6ef0c0 PB |
6744 | fi |
6745 | ||
6746 | ||
6747 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6748 | if test "x${is_cross_compiler}" = xyes; then |
6749 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6750 | else | |
6751 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6752 | case " $CXXFLAGS " in | |
6753 | *" -O2 "*) ;; | |
6754 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6755 | esac | |
6756 | case " $CXXFLAGS " in | |
6757 | *" -g "* | *" -g3 "*) ;; | |
6758 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6759 | esac | |
6760 | fi | |
7f6ef0c0 PB |
6761 | fi |
6762 | ||
6763 | ||
91c1f14c DK |
6764 | |
6765 | ||
9e07f89d NN |
6766 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6767 | # the named directory are copied to $(tooldir)/sys-include. | |
6768 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6769 | if test x${is_cross_compiler} = xno ; then | |
6770 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6771 | exit 1 | |
6772 | fi | |
6773 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6774 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6775 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6776 | fi |
6777 | fi | |
6778 | ||
6779 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6780 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6781 | # are permitted. | |
6782 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6783 | if test x${is_cross_compiler} = xno ; then | |
6784 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6785 | exit 1 | |
6786 | fi | |
6787 | if test x"${with_libs}" != xyes ; then | |
6788 | # Copy the libraries in reverse order, so that files in the first named | |
6789 | # library override files in subsequent libraries. | |
18f6b6ee | 6790 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6791 | for l in ${with_libs}; do |
c6b750e1 | 6792 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6793 | done |
6794 | fi | |
6795 | fi | |
6796 | ||
700d40ca | 6797 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6798 | # |
6799 | # This is done by determining whether or not the appropriate directory | |
6800 | # is available, and by checking whether or not specific configurations | |
6801 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6802 | # |
6803 | # The command line options always override the explicit settings in | |
2429c060 PB |
6804 | # configure.in, and the settings in configure.in override this magic. |
6805 | # | |
c6b750e1 | 6806 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6807 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6808 | # --without-gnu-ld options for the configure script. Similarly, if |
6809 | # the default is to use the included zlib and you don't want to do that, | |
6810 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6811 | |
6812 | if test x${use_gnu_as} = x && | |
6813 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6814 | with_gnu_as=yes | |
6815 | extra_host_args="$extra_host_args --with-gnu-as" | |
6816 | fi | |
6817 | ||
6818 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6819 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6820 | with_gnu_ld=yes |
6821 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6822 | fi | |
6823 | ||
700d40ca ILT |
6824 | if test x${use_included_zlib} = x && |
6825 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6826 | : | |
6827 | else | |
6828 | with_system_zlib=yes | |
6829 | extra_host_args="$extra_host_args --with-system-zlib" | |
6830 | fi | |
6831 | ||
2429c060 PB |
6832 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6833 | # can detect this case. | |
6834 | ||
6835 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6836 | with_newlib=yes | |
6837 | extra_host_args="$extra_host_args --with-newlib" | |
6838 | fi | |
6839 | ||
9e07f89d NN |
6840 | # Handle ${copy_dirs} |
6841 | set fnord ${copy_dirs} | |
6842 | shift | |
6843 | while test $# != 0 ; do | |
6844 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6845 | : | |
6846 | else | |
6847 | echo Copying $1 to $2 | |
6848 | ||
6849 | # Use the install script to create the directory and all required | |
6850 | # parent directories. | |
6851 | if test -d $2 ; then | |
6852 | : | |
6853 | else | |
6854 | echo >config.temp | |
6855 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6856 | fi | |
6857 | ||
6858 | # Copy the directory, assuming we have tar. | |
6859 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6860 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6861 | ||
6862 | # It is the responsibility of the user to correctly adjust all | |
6863 | # symlinks. If somebody can figure out how to handle them correctly | |
6864 | # here, feel free to add the code. | |
6865 | ||
6866 | echo $1 > $2/COPIED | |
6867 | fi | |
6868 | shift; shift | |
6869 | done | |
6870 | ||
2429c060 PB |
6871 | # Determine a target-dependent exec_prefix that the installed |
6872 | # gcc will search in. Keep this list sorted by triplet, with | |
6873 | # the *-*-osname triplets last. | |
6874 | md_exec_prefix= | |
6875 | case "${target}" in | |
521ec477 | 6876 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6877 | md_exec_prefix=/dev/env/DJDIR/bin |
6878 | ;; | |
2429c060 | 6879 | *-*-hpux* | \ |
2429c060 | 6880 | *-*-nto-qnx* | \ |
1f111696 | 6881 | *-*-solaris2*) |
2429c060 PB |
6882 | md_exec_prefix=/usr/ccs/bin |
6883 | ;; | |
6884 | esac | |
6885 | ||
a0da8069 NN |
6886 | extra_arflags_for_target= |
6887 | extra_nmflags_for_target= | |
6888 | extra_ranlibflags_for_target= | |
6889 | target_makefile_frag=/dev/null | |
6890 | case "${target}" in | |
77d7106f AM |
6891 | spu-*-*) |
6892 | target_makefile_frag="config/mt-spu" | |
6893 | ;; | |
a9d58c06 | 6894 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6895 | target_makefile_frag="config/mt-sde" |
6896 | ;; | |
f3b1e08e RS |
6897 | mipsisa*-*-elfoabi*) |
6898 | target_makefile_frag="config/mt-mips-elfoabi" | |
6899 | ;; | |
e7c8859c RS |
6900 | mips*-*-*linux* | mips*-*-gnu*) |
6901 | target_makefile_frag="config/mt-mips-gnu" | |
6902 | ;; | |
d9e042ac SL |
6903 | nios2-*-elf*) |
6904 | target_makefile_frag="config/mt-nios2-elf" | |
6905 | ;; | |
29383458 | 6906 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6907 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6908 | ;; |
6909 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6910 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6911 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6912 | # harmless if we're using GNU nm or ar. | |
6913 | extra_arflags_for_target=" -X32_64" | |
6914 | extra_nmflags_for_target=" -B -X32_64" | |
6915 | ;; | |
a0da8069 NN |
6916 | esac |
6917 | ||
6918 | alphaieee_frag=/dev/null | |
6919 | case $target in | |
6920 | alpha*-*-*) | |
6921 | # This just makes sure to use the -mieee option to build target libs. | |
6922 | # This should probably be set individually by each library. | |
6923 | alphaieee_frag="config/mt-alphaieee" | |
6924 | ;; | |
6925 | esac | |
6926 | ||
6927 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6928 | # the target libraries, similarly if it is not specified, use -Os | |
6929 | # on selected platforms. | |
6930 | ospace_frag=/dev/null | |
6931 | case "${enable_target_optspace}:${target}" in | |
6932 | yes:*) | |
6933 | ospace_frag="config/mt-ospace" | |
6934 | ;; | |
6935 | :d30v-*) | |
6936 | ospace_frag="config/mt-d30v" | |
6937 | ;; | |
6938 | :m32r-* | :d10v-* | :fr30-*) | |
6939 | ospace_frag="config/mt-ospace" | |
6940 | ;; | |
6941 | no:* | :*) | |
6942 | ;; | |
6943 | *) | |
6944 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6945 | ;; | |
6946 | esac | |
6947 | ||
a0da8069 NN |
6948 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6949 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6950 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6951 | build_tooldir=${tooldir} |
6952 | ||
a0da8069 NN |
6953 | # Create a .gdbinit file which runs the one in srcdir |
6954 | # and tells GDB to look there for source files. | |
6955 | ||
6956 | if test -r ${srcdir}/.gdbinit ; then | |
6957 | case ${srcdir} in | |
6958 | .) ;; | |
6959 | *) cat > ./.gdbinit <<EOF | |
6960 | # ${NO_EDIT} | |
6961 | dir ${srcdir} | |
6962 | dir . | |
6963 | source ${srcdir}/.gdbinit | |
6964 | EOF | |
6965 | ;; | |
6966 | esac | |
6967 | fi | |
6968 | ||
a0da8069 NN |
6969 | # Make sure that the compiler is able to generate an executable. If it |
6970 | # can't, we are probably in trouble. We don't care whether we can run the | |
6971 | # executable--we might be using a cross compiler--we only care whether it | |
6972 | # can be created. At this point the main configure script has set CC. | |
6973 | we_are_ok=no | |
6974 | echo "int main () { return 0; }" > conftest.c | |
6975 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6976 | if test $? = 0 ; then | |
6977 | if test -s conftest || test -s conftest.exe ; then | |
6978 | we_are_ok=yes | |
6979 | fi | |
c6b750e1 | 6980 | fi |
a0da8069 NN |
6981 | case $we_are_ok in |
6982 | no) | |
6983 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6984 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6985 | rm -f conftest* | |
6986 | exit 1 | |
6987 | ;; | |
6988 | esac | |
6989 | rm -f conftest* | |
6990 | ||
3bbd2f8f | 6991 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6992 | case "${host}" in |
6993 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6994 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6995 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6996 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6997 | esac | |
6998 | ||
3bbd2f8f | 6999 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7000 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7001 | # built executables to PATH. | |
3bbd2f8f AL |
7002 | if test "$RPATH_ENVVAR" = PATH; then |
7003 | GCC_SHLIB_SUBDIR=/shlib | |
7004 | else | |
7005 | GCC_SHLIB_SUBDIR= | |
7006 | fi | |
7007 | ||
730af8ee | 7008 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7009 | case $enable_bootstrap in | |
7010 | yes) | |
7011 | bootstrap_suffix=bootstrap | |
7012 | BUILD_CONFIG=bootstrap-debug | |
7013 | ;; | |
7014 | no) | |
7015 | bootstrap_suffix=no-bootstrap | |
7016 | BUILD_CONFIG= | |
7017 | ;; | |
7018 | esac | |
7019 | ||
7020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7021 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7022 | ||
7023 | ||
7024 | # Check whether --with-build-config was given. | |
7025 | if test "${with_build_config+set}" = set; then : | |
7026 | withval=$with_build_config; case $with_build_config in | |
7027 | yes) with_build_config= ;; | |
7028 | no) with_build_config= BUILD_CONFIG= ;; | |
7029 | esac | |
7030 | fi | |
7031 | ||
7032 | ||
7033 | if test "x${with_build_config}" != x; then | |
7034 | BUILD_CONFIG=$with_build_config | |
7035 | else | |
7036 | case $BUILD_CONFIG in | |
7037 | bootstrap-debug) | |
7038 | if echo "int f (void) { return 0; }" > conftest.c && | |
7039 | ${CC} -c conftest.c && | |
7040 | mv conftest.o conftest.o.g0 && | |
7041 | ${CC} -c -g conftest.c && | |
7042 | mv conftest.o conftest.o.g && | |
7043 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7044 | : | |
7045 | else | |
7046 | BUILD_CONFIG= | |
7047 | fi | |
7048 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7049 | ;; | |
7050 | esac | |
7051 | fi | |
7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7053 | $as_echo "$BUILD_CONFIG" >&6; } | |
7054 | ||
7055 | ||
7056 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7058 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7059 | # Check whether --enable-vtable-verify was given. | |
7060 | if test "${enable_vtable_verify+set}" = set; then : | |
7061 | enableval=$enable_vtable_verify; case "$enableval" in | |
7062 | yes) enable_vtable_verify=yes ;; | |
7063 | no) enable_vtable_verify=no ;; | |
7064 | *) enable_vtable_verify=no;; | |
7065 | esac | |
7066 | else | |
7067 | enable_vtable_verify=no | |
7068 | fi | |
7069 | ||
7070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7071 | $as_echo "$enable_vtable_verify" >&6; } | |
7072 | ||
a0da8069 NN |
7073 | # Record target_configdirs and the configure arguments for target and |
7074 | # build configuration in Makefile. | |
7075 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7076 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7077 | bootstrap_fixincludes=no |
a0da8069 | 7078 | |
2aa2364a JR |
7079 | # If we are building libgomp, bootstrap it. |
7080 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7081 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7082 | fi | |
7083 | ||
730af8ee | 7084 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7085 | # or bootstrap-ubsan, bootstrap it. | |
7086 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7087 | case "$BUILD_CONFIG" in | |
7088 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7089 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7090 | bootstrap_fixincludes=yes |
730af8ee | 7091 | ;; |
7092 | esac | |
5eb08693 L |
7093 | fi |
7094 | ||
730af8ee | 7095 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7096 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7097 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7098 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7099 | fi | |
7100 | ||
1b6c0831 L |
7101 | # If we are building libmpx, bootstrap it. |
7102 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7103 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7104 | fi | |
7105 | ||
a0da8069 NN |
7106 | # Determine whether gdb needs tk/tcl or not. |
7107 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7108 | # and in that case we want gdb to be built without tk. Ugh! | |
7109 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7110 | # so we should be able to put the 'maybe's in unconditionally and | |
7111 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7112 | # 100% sure that that's safe though. | |
c180f501 | 7113 | |
675c6968 | 7114 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7115 | case "$enable_gdbtk" in |
7116 | no) | |
7117 | GDB_TK="" ;; | |
c180f501 AC |
7118 | yes) |
7119 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7120 | *) |
c180f501 AC |
7121 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7122 | # distro. Eventually someone will fix this and move Insight, nee | |
7123 | # gdbtk to a separate directory. | |
7124 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7125 | GDB_TK="${gdb_tk}" | |
7126 | else | |
7127 | GDB_TK="" | |
7128 | fi | |
7129 | ;; | |
a0da8069 | 7130 | esac |
907be67c DJ |
7131 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7132 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7133 | |
6bd3dfaa | 7134 | # Strip out unwanted targets. |
dd12c3a8 NN |
7135 | |
7136 | # While at that, we remove Makefiles if we were started for recursive | |
7137 | # configuration, so that the top-level Makefile reconfigures them, | |
7138 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7139 | |
06a51eac RW |
7140 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7141 | # but now we're fixing up the Makefile ourselves with the additional | |
7142 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7143 | # extrasub-{build,host,target} not because there is any reason to split | |
7144 | # the substitutions up that way, but only to remain below the limit of | |
7145 | # 99 commands in a script, for HP-UX sed. | |
7146 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7147 | |
16b1ad29 RW |
7148 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7149 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7150 | yes:yes:*\ gold\ *:*) | |
7151 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7152 | ;; | |
7153 | esac | |
7154 | ||
06a51eac | 7155 | extrasub_build= |
6a9cf61e | 7156 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7157 | if test -z "${no_recursion}" \ |
7158 | && test -f ${build_subdir}/${module}/Makefile; then | |
7159 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7160 | rm -f ${build_subdir}/${module}/Makefile | |
7161 | fi | |
06a51eac | 7162 | extrasub_build="$extrasub_build |
498d4a71 CF |
7163 | /^@if build-$module\$/d |
7164 | /^@endif build-$module\$/d | |
7165 | /^@if build-$module-$bootstrap_suffix\$/d | |
7166 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7167 | done | |
06a51eac | 7168 | extrasub_host= |
498d4a71 | 7169 | for module in ${configdirs} ; do |
80911fe1 | 7170 | if test -z "${no_recursion}"; then |
8cf39b1b | 7171 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7172 | if test -f ${file}; then |
7173 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7174 | rm -f ${file} | |
7175 | fi | |
7176 | done | |
498d4a71 | 7177 | fi |
201f096f | 7178 | case ${module},${bootstrap_fixincludes} in |
7179 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7180 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7181 | esac | |
06a51eac | 7182 | extrasub_host="$extrasub_host |
498d4a71 CF |
7183 | /^@if $module\$/d |
7184 | /^@endif $module\$/d | |
201f096f | 7185 | /^@if $module-$host_bootstrap_suffix\$/d |
7186 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7187 | done |
06a51eac | 7188 | extrasub_target= |
498d4a71 CF |
7189 | for module in ${target_configdirs} ; do |
7190 | if test -z "${no_recursion}" \ | |
7191 | && test -f ${target_subdir}/${module}/Makefile; then | |
7192 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7193 | rm -f ${target_subdir}/${module}/Makefile | |
7194 | fi | |
e8a5fa9c RW |
7195 | |
7196 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7197 | case $bootstrap_target_libs in | |
7198 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7199 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7200 | esac | |
7201 | ||
06a51eac | 7202 | extrasub_target="$extrasub_target |
498d4a71 CF |
7203 | /^@if target-$module\$/d |
7204 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7205 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7206 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7207 | done |
7208 | ||
06a51eac RW |
7209 | # Do the final fixup along with target modules. |
7210 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7211 | /^@if /,/^@endif /d" |
a0da8069 NN |
7212 | |
7213 | # Create the serialization dependencies. This uses a temporary file. | |
7214 | ||
81ecdfbb RW |
7215 | # Check whether --enable-serial-configure was given. |
7216 | if test "${enable_serial_configure+set}" = set; then : | |
7217 | enableval=$enable_serial_configure; | |
7218 | fi | |
e6bfb94a AO |
7219 | |
7220 | ||
1047cb91 DD |
7221 | case ${enable_serial_configure} in |
7222 | yes) | |
7223 | enable_serial_build_configure=yes | |
7224 | enable_serial_host_configure=yes | |
7225 | enable_serial_target_configure=yes | |
7226 | ;; | |
7227 | esac | |
7228 | ||
a0da8069 NN |
7229 | # These force 'configure's to be done one at a time, to avoid problems |
7230 | # with contention over a shared config.cache. | |
7231 | rm -f serdep.tmp | |
e6bfb94a | 7232 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7233 | olditem= |
1047cb91 | 7234 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7235 | for item in ${build_configdirs} ; do |
7236 | case ${olditem} in | |
7237 | "") ;; | |
e6bfb94a | 7238 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7239 | esac |
7240 | olditem=${item} | |
7241 | done | |
7242 | olditem= | |
1047cb91 | 7243 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7244 | for item in ${configdirs} ; do |
7245 | case ${olditem} in | |
7246 | "") ;; | |
e6bfb94a | 7247 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7248 | esac |
7249 | olditem=${item} | |
7250 | done | |
7251 | olditem= | |
1047cb91 | 7252 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7253 | for item in ${target_configdirs} ; do |
7254 | case ${olditem} in | |
7255 | "") ;; | |
e6bfb94a | 7256 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7257 | esac |
7258 | olditem=${item} | |
7259 | done | |
7260 | serialization_dependencies=serdep.tmp | |
7261 | ||
7262 | ||
e6bfb94a | 7263 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7264 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7265 | # might not want to pass down to subconfigures. The exception being |
7266 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7267 | # files altogether, and which should be passed on to subconfigures. | |
7268 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7269 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7270 | baseargs= |
65b4571a | 7271 | tbaseargs= |
c6b750e1 DJ |
7272 | keep_next=no |
7273 | skip_next=no | |
7274 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7275 | for ac_arg |
7276 | do | |
c6b750e1 DJ |
7277 | if test X"$skip_next" = X"yes"; then |
7278 | skip_next=no | |
7279 | continue | |
7280 | fi | |
7281 | if test X"$keep_next" = X"yes"; then | |
7282 | case $ac_arg in | |
7283 | *\'*) | |
7284 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7285 | esac | |
7286 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7287 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7288 | keep_next=no |
7289 | continue | |
7290 | fi | |
7291 | ||
7292 | # Handle separated arguments. Based on the logic generated by | |
7293 | # autoconf 2.59. | |
7294 | case $ac_arg in | |
7295 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7296 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7297 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7298 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7299 | separate_arg=no | |
7300 | ;; | |
7301 | -*) | |
7302 | separate_arg=yes | |
7303 | ;; | |
7304 | *) | |
7305 | separate_arg=no | |
7306 | ;; | |
7307 | esac | |
7308 | ||
65b4571a AO |
7309 | skip_targ=no |
7310 | case $ac_arg in | |
7311 | ||
7312 | --with-* | --without-*) | |
7313 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7314 | ||
7315 | case $libopt in | |
7316 | *[-_]include) | |
7317 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7318 | ;; | |
7319 | *[-_]lib) | |
7320 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7321 | ;; | |
7322 | *) | |
7323 | lib=$libopt | |
7324 | ;; | |
7325 | esac | |
7326 | ||
7327 | ||
7328 | case $lib in | |
1b6c0831 | 7329 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7330 | # If we're processing --with-$lib, --with-$lib-include or |
7331 | # --with-$lib-lib, for one of the libs above, and target is | |
7332 | # different from host, don't pass the current argument to any | |
7333 | # target library's configure. | |
7334 | if test x$is_cross_compiler = xyes; then | |
7335 | skip_targ=yes | |
7336 | fi | |
7337 | ;; | |
7338 | esac | |
7339 | ;; | |
7340 | esac | |
7341 | ||
c6b750e1 | 7342 | case "$ac_arg" in |
30167e0a NC |
7343 | --cache-file=/dev/null | \ |
7344 | -cache-file=/dev/null ) | |
7345 | # Handled here to avoid the test to skip args below. | |
7346 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7347 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7348 | # Assert: $separate_arg should always be no. |
7349 | keep_next=$separate_arg | |
7350 | ;; | |
c6b750e1 DJ |
7351 | --no*) |
7352 | continue | |
7353 | ;; | |
7354 | --c* | \ | |
7355 | --sr* | \ | |
7356 | --ho* | \ | |
7357 | --bu* | \ | |
7358 | --t* | \ | |
7359 | --program-* | \ | |
7360 | -cache_file* | \ | |
7361 | -srcdir* | \ | |
7362 | -host* | \ | |
7363 | -build* | \ | |
7364 | -target* | \ | |
7365 | -program-prefix* | \ | |
7366 | -program-suffix* | \ | |
7367 | -program-transform-name* ) | |
7368 | skip_next=$separate_arg | |
7369 | continue | |
7370 | ;; | |
7371 | -*) | |
7372 | # An option. Add it. | |
7373 | case $ac_arg in | |
7374 | *\'*) | |
7375 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7376 | esac | |
7377 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7378 | if test X"$skip_targ" = Xno; then |
7379 | tbaseargs="$tbaseargs '$ac_arg'" | |
7380 | fi | |
c6b750e1 DJ |
7381 | keep_next=$separate_arg |
7382 | ;; | |
7383 | *) | |
7384 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7385 | # pass it down; let the Makefile handle this. | |
7386 | continue | |
7387 | ;; | |
7388 | esac | |
7389 | done | |
7390 | # Remove the initial space we just introduced and, as these will be | |
7391 | # expanded by make, quote '$'. | |
7392 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7393 | |
f27d4f92 DJ |
7394 | # Add in --program-transform-name, after --program-prefix and |
7395 | # --program-suffix have been applied to it. Autoconf has already | |
7396 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7397 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7398 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7399 | # Also, because we want to override the logic in subdir configure scripts to |
7400 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7401 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7402 | ${program_transform_name} | |
7403 | EOF_SED | |
7404 | gcc_transform_name=`cat conftestsed.out` | |
7405 | rm -f conftestsed.out | |
7406 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7407 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7408 | if test "$silent" = yes; then |
7409 | baseargs="$baseargs --silent" | |
65b4571a | 7410 | tbaseargs="$tbaseargs --silent" |
2444379b | 7411 | fi |
34a0f3cf | 7412 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7413 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7414 | |
4074d5f2 RW |
7415 | # Record and document user additions to sub configure arguments. |
7416 | ||
7417 | ||
7418 | ||
7419 | ||
a0da8069 NN |
7420 | # For the build-side libraries, we just need to pretend we're native, |
7421 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7422 | # desired. We can't even use the same cache file for all build-side |
7423 | # libraries, as they're compiled differently; some with C, some with | |
7424 | # C++ or with different feature-enabling options. | |
7425 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7426 | |
7427 | # For host modules, accept cache file option, or specification as blank. | |
7428 | case "${cache_file}" in | |
7429 | "") # empty | |
7430 | cache_file_option="" ;; | |
7431 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7432 | cache_file_option="--cache-file=${cache_file}" ;; | |
7433 | *) # relative path | |
7434 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7435 | esac | |
7436 | ||
82252c06 NN |
7437 | # Host dirs don't like to share a cache file either, horribly enough. |
7438 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7439 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7440 | |
65b4571a | 7441 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7442 | |
7443 | # Passing a --with-cross-host argument lets the target libraries know | |
7444 | # whether they are being built with a cross-compiler or being built | |
7445 | # native. However, it would be better to use other mechanisms to make the | |
7446 | # sorts of decisions they want to make on this basis. Please consider | |
7447 | # this option to be deprecated. FIXME. | |
7448 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7449 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7450 | fi |
7451 | ||
afc0578d | 7452 | # Special user-friendly check for native x86_64-linux build, if |
7453 | # multilib is not explicitly enabled. | |
7454 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7455 | x86_64-*linux*:yes:$build:$build:) | |
7456 | # Make sure we have a developement environment that handles 32-bit | |
7457 | dev64=no | |
7458 | echo "int main () { return 0; }" > conftest.c | |
7459 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7460 | if test $? = 0 ; then | |
7461 | if test -s conftest || test -s conftest.exe ; then | |
7462 | dev64=yes | |
7463 | fi | |
7464 | fi | |
7465 | rm -f conftest* | |
7466 | if test x${dev64} != xyes ; then | |
7467 | as_fn_error "I suspect your system does not have 32-bit developement libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 | |
7468 | fi | |
7469 | ;; | |
7470 | esac | |
7471 | ||
938d2b74 RW |
7472 | # Default to --enable-multilib. |
7473 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7474 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7475 | fi |
a0da8069 NN |
7476 | |
7477 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7478 | # changed from the earlier setting of with_newlib. | |
7479 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7480 | target_configargs="--with-newlib ${target_configargs}" | |
7481 | fi | |
7482 | ||
95036d20 NN |
7483 | # Different target subdirs use different values of certain variables |
7484 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7485 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7486 | # it doesn't automatically accept command-line overrides of them. | |
7487 | # This means it's not safe for target subdirs to share a cache file, | |
7488 | # which is disgusting, but there you have it. Hopefully this can be | |
7489 | # fixed in future. It's still worthwhile to use a cache file for each | |
7490 | # directory. I think. | |
7491 | ||
ae380b45 MS |
7492 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7493 | # We need to pass --target, as newer autoconf's requires consistency | |
7494 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7495 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7496 | |
a0da8069 NN |
7497 | FLAGS_FOR_TARGET= |
7498 | case " $target_configdirs " in | |
7499 | *" newlib "*) | |
7500 | case " $target_configargs " in | |
7501 | *" --with-newlib "*) | |
7502 | case "$target" in | |
1f53ca9a | 7503 | *-cygwin*) |
6d94c122 | 7504 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7505 | ;; |
a0da8069 NN |
7506 | esac |
7507 | ||
7508 | # If we're not building GCC, don't discard standard headers. | |
7509 | if test -d ${srcdir}/gcc; then | |
7510 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7511 | ||
7512 | if test "${build}" != "${host}"; then | |
7513 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7514 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7515 | # to it. This is right: we don't want to search that directory | |
7516 | # for binaries, but we want the header files in there, so add | |
7517 | # them explicitly. | |
e552509b | 7518 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7519 | |
7520 | # Someone might think of using the pre-installed headers on | |
7521 | # Canadian crosses, in case the installed compiler is not fully | |
7522 | # compatible with the compiler being built. In this case, it | |
7523 | # would be better to flag an error than risking having | |
7524 | # incompatible object files being constructed. We can't | |
7525 | # guarantee that an error will be flagged, but let's hope the | |
7526 | # compiler will do it, when presented with incompatible header | |
7527 | # files. | |
7528 | fi | |
7529 | fi | |
7530 | ||
7531 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7532 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7533 | # Here host == target, so we don't need to build gcc, |
7534 | # so we don't want to discard standard headers. | |
7535 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7536 | ;; | |
7537 | *) | |
7538 | # If we're building newlib, use its generic headers last, but search | |
7539 | # for any libc-related directories first (so make it the last -B | |
7540 | # switch). | |
7541 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
691bb5a1 DD |
7542 | |
7543 | # If we're building libgloss, find the startup file, simulator library | |
7544 | # and linker script. | |
7545 | case " $target_configdirs " in | |
7546 | *" libgloss "*) | |
7547 | # Look for startup file, simulator library and maybe linker script. | |
7548 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7549 | # Look for libnosys.a in case the target needs it. | |
7550 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7551 | # Most targets have the linker script in the source directory. | |
7552 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7553 | ;; | |
7554 | esac | |
a0da8069 NN |
7555 | ;; |
7556 | esac | |
7557 | ;; | |
7558 | esac | |
7559 | ;; | |
7560 | esac | |
1f53ca9a | 7561 | |
45055374 | 7562 | case "$target" in |
1f53ca9a AO |
7563 | x86_64-*mingw* | *-w64-mingw*) |
7564 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7565 | # however, use a symlink named 'mingw' in ${prefix} . | |
7566 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7567 | ;; | |
7568 | *-mingw*) | |
7569 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7570 | 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' | |
7571 | ;; | |
45055374 | 7572 | esac |
a0da8069 | 7573 | |
5fbad20a DD |
7574 | # Allow the user to override the flags for |
7575 | # our build compiler if desired. | |
c66487f8 NC |
7576 | if test x"${build}" = x"${host}" ; then |
7577 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7578 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7579 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7580 | fi | |
5fbad20a | 7581 | |
a0da8069 NN |
7582 | # On Canadian crosses, we'll be searching the right directories for |
7583 | # the previously-installed cross compiler, so don't bother to add | |
7584 | # flags for directories within the install tree of the compiler | |
7585 | # being built; programs in there won't even run. | |
7586 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7587 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7588 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
a0da8069 NN |
7589 | fi |
7590 | ||
7591 | if test "x${use_gnu_ld}" = x && | |
7592 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7593 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7594 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7595 | fi |
7596 | ||
a481dbb7 DD |
7597 | # Search for other target-specific linker scripts and such. |
7598 | case "${target}" in | |
4e206d7e DB |
7599 | mep*) |
7600 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7601 | ;; | |
7602 | esac | |
7603 | ||
a0da8069 | 7604 | # Makefile fragments. |
3e707e94 PB |
7605 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7606 | do | |
7607 | eval fragval=\$$frag | |
7608 | if test $fragval != /dev/null; then | |
7609 | eval $frag=${srcdir}/$fragval | |
7610 | fi | |
7611 | done | |
a0da8069 NN |
7612 | |
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | # Miscellanea: directories, flags, etc. | |
7618 | ||
7619 | ||
7620 | ||
7621 | ||
7622 | ||
7623 | ||
7624 | ||
3bbd2f8f | 7625 | |
6a9cf61e | 7626 | # Build module lists & subconfigure args. |
a0da8069 NN |
7627 | |
7628 | ||
7629 | ||
be01d343 PB |
7630 | # Host module lists & subconfigure args. |
7631 | ||
7632 | ||
7633 | ||
911e63d0 | 7634 | |
be01d343 PB |
7635 | # Target module lists & subconfigure args. |
7636 | ||
7637 | ||
7638 | ||
7639 | # Build tools. | |
7640 | ||
7641 | ||
7642 | ||
1576798e PB |
7643 | |
7644 | ||
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | ||
7652 | ||
7653 | ||
7654 | ||
7655 | ||
7656 | ||
be01d343 PB |
7657 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7658 | # on the build machine. These are used if the Makefile can't locate these | |
7659 | # programs in objdir. | |
7660 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7661 | ||
7662 | for ac_prog in 'bison -y' byacc yacc | |
7663 | do | |
c6b750e1 | 7664 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7665 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7667 | $as_echo_n "checking for $ac_word... " >&6; } | |
7668 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7669 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7670 | else |
7671 | if test -n "$YACC"; then | |
7672 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7673 | else | |
c6b750e1 DJ |
7674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7675 | for as_dir in $PATH | |
7676 | do | |
7677 | IFS=$as_save_IFS | |
7678 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7679 | for ac_exec_ext in '' $ac_executable_extensions; do |
7680 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7681 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7682 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7683 | break 2 |
7684 | fi | |
7685 | done | |
81ecdfbb RW |
7686 | done |
7687 | IFS=$as_save_IFS | |
c6b750e1 | 7688 | |
be01d343 PB |
7689 | fi |
7690 | fi | |
c6b750e1 | 7691 | YACC=$ac_cv_prog_YACC |
be01d343 | 7692 | if test -n "$YACC"; then |
81ecdfbb RW |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7694 | $as_echo "$YACC" >&6; } | |
be01d343 | 7695 | else |
81ecdfbb RW |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7697 | $as_echo "no" >&6; } | |
be01d343 PB |
7698 | fi |
7699 | ||
81ecdfbb | 7700 | |
c6b750e1 | 7701 | test -n "$YACC" && break |
be01d343 PB |
7702 | done |
7703 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7704 | ||
7705 | case " $build_configdirs " in | |
7706 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7707 | esac |
7708 | ||
7709 | for ac_prog in bison | |
7710 | do | |
c6b750e1 | 7711 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7712 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7714 | $as_echo_n "checking for $ac_word... " >&6; } | |
7715 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7716 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7717 | else |
7718 | if test -n "$BISON"; then | |
7719 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7720 | else | |
c6b750e1 DJ |
7721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7722 | for as_dir in $PATH | |
7723 | do | |
7724 | IFS=$as_save_IFS | |
7725 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7726 | for ac_exec_ext in '' $ac_executable_extensions; do |
7727 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7728 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7729 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7730 | break 2 |
7731 | fi | |
7732 | done | |
81ecdfbb RW |
7733 | done |
7734 | IFS=$as_save_IFS | |
c6b750e1 | 7735 | |
be01d343 PB |
7736 | fi |
7737 | fi | |
c6b750e1 | 7738 | BISON=$ac_cv_prog_BISON |
be01d343 | 7739 | if test -n "$BISON"; then |
81ecdfbb RW |
7740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7741 | $as_echo "$BISON" >&6; } | |
be01d343 | 7742 | else |
81ecdfbb RW |
7743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7744 | $as_echo "no" >&6; } | |
be01d343 PB |
7745 | fi |
7746 | ||
81ecdfbb | 7747 | |
c6b750e1 | 7748 | test -n "$BISON" && break |
be01d343 PB |
7749 | done |
7750 | test -n "$BISON" || BISON="$MISSING bison" | |
7751 | ||
7752 | case " $build_configdirs " in | |
7753 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7754 | esac | |
7755 | ||
7756 | for ac_prog in gm4 gnum4 m4 | |
7757 | do | |
c6b750e1 | 7758 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7759 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7761 | $as_echo_n "checking for $ac_word... " >&6; } | |
7762 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7763 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7764 | else |
7765 | if test -n "$M4"; then | |
7766 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7767 | else | |
c6b750e1 DJ |
7768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7769 | for as_dir in $PATH | |
7770 | do | |
7771 | IFS=$as_save_IFS | |
7772 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7773 | for ac_exec_ext in '' $ac_executable_extensions; do |
7774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7775 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7777 | break 2 |
7778 | fi | |
7779 | done | |
81ecdfbb RW |
7780 | done |
7781 | IFS=$as_save_IFS | |
c6b750e1 | 7782 | |
be01d343 PB |
7783 | fi |
7784 | fi | |
c6b750e1 | 7785 | M4=$ac_cv_prog_M4 |
be01d343 | 7786 | if test -n "$M4"; then |
81ecdfbb RW |
7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7788 | $as_echo "$M4" >&6; } | |
be01d343 | 7789 | else |
81ecdfbb RW |
7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7791 | $as_echo "no" >&6; } | |
be01d343 PB |
7792 | fi |
7793 | ||
81ecdfbb | 7794 | |
c6b750e1 | 7795 | test -n "$M4" && break |
be01d343 PB |
7796 | done |
7797 | test -n "$M4" || M4="$MISSING m4" | |
7798 | ||
7799 | case " $build_configdirs " in | |
7800 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7801 | esac | |
7802 | ||
7803 | for ac_prog in flex lex | |
7804 | do | |
c6b750e1 | 7805 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7806 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7808 | $as_echo_n "checking for $ac_word... " >&6; } | |
7809 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7810 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7811 | else |
7812 | if test -n "$LEX"; then | |
7813 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7814 | else | |
c6b750e1 DJ |
7815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7816 | for as_dir in $PATH | |
7817 | do | |
7818 | IFS=$as_save_IFS | |
7819 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7820 | for ac_exec_ext in '' $ac_executable_extensions; do |
7821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7822 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7824 | break 2 |
7825 | fi | |
7826 | done | |
81ecdfbb RW |
7827 | done |
7828 | IFS=$as_save_IFS | |
c6b750e1 | 7829 | |
be01d343 PB |
7830 | fi |
7831 | fi | |
c6b750e1 | 7832 | LEX=$ac_cv_prog_LEX |
be01d343 | 7833 | if test -n "$LEX"; then |
81ecdfbb RW |
7834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7835 | $as_echo "$LEX" >&6; } | |
be01d343 | 7836 | else |
81ecdfbb RW |
7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7838 | $as_echo "no" >&6; } | |
be01d343 PB |
7839 | fi |
7840 | ||
81ecdfbb | 7841 | |
c6b750e1 | 7842 | test -n "$LEX" && break |
be01d343 PB |
7843 | done |
7844 | test -n "$LEX" || LEX="$MISSING flex" | |
7845 | ||
7846 | case " $build_configdirs " in | |
7847 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7848 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7849 | esac | |
7850 | ||
7851 | for ac_prog in flex | |
7852 | do | |
c6b750e1 | 7853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7854 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7856 | $as_echo_n "checking for $ac_word... " >&6; } | |
7857 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7858 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7859 | else |
7860 | if test -n "$FLEX"; then | |
7861 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7862 | else | |
c6b750e1 DJ |
7863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7864 | for as_dir in $PATH | |
7865 | do | |
7866 | IFS=$as_save_IFS | |
7867 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7868 | for ac_exec_ext in '' $ac_executable_extensions; do |
7869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7870 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7872 | break 2 |
7873 | fi | |
7874 | done | |
81ecdfbb RW |
7875 | done |
7876 | IFS=$as_save_IFS | |
c6b750e1 | 7877 | |
be01d343 PB |
7878 | fi |
7879 | fi | |
c6b750e1 | 7880 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7881 | if test -n "$FLEX"; then |
81ecdfbb RW |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7883 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7884 | else |
81ecdfbb RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7886 | $as_echo "no" >&6; } | |
be01d343 PB |
7887 | fi |
7888 | ||
81ecdfbb | 7889 | |
c6b750e1 | 7890 | test -n "$FLEX" && break |
be01d343 PB |
7891 | done |
7892 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7893 | ||
7894 | case " $build_configdirs " in | |
7895 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7896 | esac | |
7897 | ||
7898 | for ac_prog in makeinfo | |
7899 | do | |
c6b750e1 | 7900 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7901 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7903 | $as_echo_n "checking for $ac_word... " >&6; } | |
7904 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7905 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7906 | else |
7907 | if test -n "$MAKEINFO"; then | |
7908 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7909 | else | |
c6b750e1 DJ |
7910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7911 | for as_dir in $PATH | |
7912 | do | |
7913 | IFS=$as_save_IFS | |
7914 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7915 | for ac_exec_ext in '' $ac_executable_extensions; do |
7916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7917 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7919 | break 2 |
7920 | fi | |
7921 | done | |
81ecdfbb RW |
7922 | done |
7923 | IFS=$as_save_IFS | |
c6b750e1 | 7924 | |
be01d343 PB |
7925 | fi |
7926 | fi | |
c6b750e1 | 7927 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7928 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7930 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7931 | else |
81ecdfbb RW |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7933 | $as_echo "no" >&6; } | |
be01d343 PB |
7934 | fi |
7935 | ||
81ecdfbb | 7936 | |
c6b750e1 | 7937 | test -n "$MAKEINFO" && break |
be01d343 PB |
7938 | done |
7939 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7940 | ||
7941 | case " $build_configdirs " in | |
7942 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7943 | *) | |
7944 | ||
10ad8ef3 | 7945 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7946 | # higher, else we use the "missing" dummy. |
7947 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7948 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7949 | : |
7950 | else | |
7951 | MAKEINFO="$MISSING makeinfo" | |
7952 | fi | |
7953 | ;; | |
7954 | ||
7955 | esac | |
a0da8069 | 7956 | |
be01d343 | 7957 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7958 | |
be01d343 PB |
7959 | for ac_prog in expect |
7960 | do | |
c6b750e1 | 7961 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7962 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7964 | $as_echo_n "checking for $ac_word... " >&6; } | |
7965 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7966 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7967 | else |
7968 | if test -n "$EXPECT"; then | |
7969 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7970 | else | |
c6b750e1 DJ |
7971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7972 | for as_dir in $PATH | |
7973 | do | |
7974 | IFS=$as_save_IFS | |
7975 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7976 | for ac_exec_ext in '' $ac_executable_extensions; do |
7977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7978 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7980 | break 2 |
7981 | fi | |
7982 | done | |
81ecdfbb RW |
7983 | done |
7984 | IFS=$as_save_IFS | |
c6b750e1 | 7985 | |
be01d343 PB |
7986 | fi |
7987 | fi | |
c6b750e1 | 7988 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7989 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7991 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7992 | else |
81ecdfbb RW |
7993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7994 | $as_echo "no" >&6; } | |
be01d343 | 7995 | fi |
a0da8069 | 7996 | |
81ecdfbb | 7997 | |
c6b750e1 | 7998 | test -n "$EXPECT" && break |
be01d343 PB |
7999 | done |
8000 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8001 | |
be01d343 PB |
8002 | case " $configdirs " in |
8003 | *" expect "*) | |
8004 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8005 | ;; | |
8006 | esac | |
a0da8069 | 8007 | |
be01d343 PB |
8008 | for ac_prog in runtest |
8009 | do | |
c6b750e1 | 8010 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8011 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8013 | $as_echo_n "checking for $ac_word... " >&6; } | |
8014 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8015 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8016 | else |
8017 | if test -n "$RUNTEST"; then | |
8018 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8019 | else | |
c6b750e1 DJ |
8020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8021 | for as_dir in $PATH | |
8022 | do | |
8023 | IFS=$as_save_IFS | |
8024 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8025 | for ac_exec_ext in '' $ac_executable_extensions; do |
8026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8027 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8029 | break 2 |
8030 | fi | |
8031 | done | |
81ecdfbb RW |
8032 | done |
8033 | IFS=$as_save_IFS | |
c6b750e1 | 8034 | |
be01d343 PB |
8035 | fi |
8036 | fi | |
c6b750e1 | 8037 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8038 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8040 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8041 | else |
81ecdfbb RW |
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8043 | $as_echo "no" >&6; } | |
be01d343 | 8044 | fi |
a0da8069 | 8045 | |
81ecdfbb | 8046 | |
c6b750e1 | 8047 | test -n "$RUNTEST" && break |
be01d343 PB |
8048 | done |
8049 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8050 | |
be01d343 PB |
8051 | case " $configdirs " in |
8052 | *" dejagnu "*) | |
6b89cc21 | 8053 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8054 | ;; |
8055 | esac | |
a0da8069 NN |
8056 | |
8057 | ||
a0da8069 | 8058 | # Host tools. |
859789af AC |
8059 | ncn_tool_prefix= |
8060 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8061 | ncn_target_tool_prefix= | |
8062 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8063 | ||
9a819804 AO |
8064 | |
8065 | ||
8066 | if test -n "$AR"; then | |
8067 | ac_cv_prog_AR=$AR | |
8068 | elif test -n "$ac_cv_prog_AR"; then | |
8069 | AR=$ac_cv_prog_AR | |
8070 | fi | |
8071 | ||
8072 | if test -n "$ac_cv_prog_AR"; then | |
8073 | for ncn_progname in ar; do | |
8074 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8075 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8077 | $as_echo_n "checking for $ac_word... " >&6; } | |
8078 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8079 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8080 | else |
8081 | if test -n "$AR"; then | |
8082 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8083 | else | |
8084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8085 | for as_dir in $PATH | |
8086 | do | |
8087 | IFS=$as_save_IFS | |
8088 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8089 | for ac_exec_ext in '' $ac_executable_extensions; do |
8090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8091 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8093 | break 2 |
8094 | fi | |
8095 | done | |
81ecdfbb RW |
8096 | done |
8097 | IFS=$as_save_IFS | |
9a819804 AO |
8098 | |
8099 | fi | |
8100 | fi | |
8101 | AR=$ac_cv_prog_AR | |
8102 | if test -n "$AR"; then | |
81ecdfbb RW |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8104 | $as_echo "$AR" >&6; } | |
9a819804 | 8105 | else |
81ecdfbb RW |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8107 | $as_echo "no" >&6; } | |
9a819804 AO |
8108 | fi |
8109 | ||
81ecdfbb | 8110 | |
9a819804 AO |
8111 | done |
8112 | fi | |
8113 | ||
8114 | for ncn_progname in ar; do | |
05cbd757 PB |
8115 | if test -n "$ncn_tool_prefix"; then |
8116 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8117 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8119 | $as_echo_n "checking for $ac_word... " >&6; } | |
8120 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8121 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8122 | else |
8123 | if test -n "$AR"; then | |
8124 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8125 | else | |
c6b750e1 DJ |
8126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8127 | for as_dir in $PATH | |
8128 | do | |
8129 | IFS=$as_save_IFS | |
8130 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8131 | for ac_exec_ext in '' $ac_executable_extensions; do |
8132 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8133 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8135 | break 2 |
8136 | fi | |
8137 | done | |
81ecdfbb RW |
8138 | done |
8139 | IFS=$as_save_IFS | |
c6b750e1 | 8140 | |
859789af AC |
8141 | fi |
8142 | fi | |
c6b750e1 | 8143 | AR=$ac_cv_prog_AR |
859789af | 8144 | if test -n "$AR"; then |
81ecdfbb RW |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8146 | $as_echo "$AR" >&6; } | |
859789af | 8147 | else |
81ecdfbb RW |
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8149 | $as_echo "no" >&6; } | |
859789af AC |
8150 | fi |
8151 | ||
81ecdfbb | 8152 | |
05cbd757 PB |
8153 | fi |
8154 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8155 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8156 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8158 | $as_echo_n "checking for $ac_word... " >&6; } | |
8159 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8160 | $as_echo_n "(cached) " >&6 | |
859789af | 8161 | else |
05cbd757 PB |
8162 | if test -n "$AR"; then |
8163 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8164 | else |
c6b750e1 DJ |
8165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8166 | for as_dir in $PATH | |
8167 | do | |
8168 | IFS=$as_save_IFS | |
8169 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8170 | for ac_exec_ext in '' $ac_executable_extensions; do |
8171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8172 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8174 | break 2 |
8175 | fi | |
8176 | done | |
81ecdfbb RW |
8177 | done |
8178 | IFS=$as_save_IFS | |
c6b750e1 | 8179 | |
859789af AC |
8180 | fi |
8181 | fi | |
c6b750e1 | 8182 | AR=$ac_cv_prog_AR |
05cbd757 | 8183 | if test -n "$AR"; then |
81ecdfbb RW |
8184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8185 | $as_echo "$AR" >&6; } | |
859789af | 8186 | else |
81ecdfbb RW |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8188 | $as_echo "no" >&6; } | |
859789af | 8189 | fi |
c6b750e1 | 8190 | |
81ecdfbb | 8191 | |
05cbd757 PB |
8192 | fi |
8193 | test -n "$ac_cv_prog_AR" && break | |
8194 | done | |
8195 | ||
8196 | if test -z "$ac_cv_prog_AR" ; then | |
8197 | set dummy ar | |
8198 | if test $build = $host ; then | |
8199 | AR="$2" | |
859789af | 8200 | else |
05cbd757 | 8201 | AR="${ncn_tool_prefix}$2" |
859789af | 8202 | fi |
859789af AC |
8203 | fi |
8204 | ||
9a819804 AO |
8205 | |
8206 | ||
8207 | if test -n "$AS"; then | |
8208 | ac_cv_prog_AS=$AS | |
8209 | elif test -n "$ac_cv_prog_AS"; then | |
8210 | AS=$ac_cv_prog_AS | |
8211 | fi | |
8212 | ||
8213 | if test -n "$ac_cv_prog_AS"; then | |
8214 | for ncn_progname in as; do | |
8215 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8216 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8218 | $as_echo_n "checking for $ac_word... " >&6; } | |
8219 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8220 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8221 | else |
8222 | if test -n "$AS"; then | |
8223 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8224 | else | |
8225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8226 | for as_dir in $PATH | |
8227 | do | |
8228 | IFS=$as_save_IFS | |
8229 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8230 | for ac_exec_ext in '' $ac_executable_extensions; do |
8231 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8232 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8233 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8234 | break 2 |
8235 | fi | |
8236 | done | |
81ecdfbb RW |
8237 | done |
8238 | IFS=$as_save_IFS | |
9a819804 AO |
8239 | |
8240 | fi | |
8241 | fi | |
8242 | AS=$ac_cv_prog_AS | |
8243 | if test -n "$AS"; then | |
81ecdfbb RW |
8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8245 | $as_echo "$AS" >&6; } | |
9a819804 | 8246 | else |
81ecdfbb RW |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8248 | $as_echo "no" >&6; } | |
9a819804 AO |
8249 | fi |
8250 | ||
81ecdfbb | 8251 | |
9a819804 AO |
8252 | done |
8253 | fi | |
8254 | ||
8255 | for ncn_progname in as; do | |
05cbd757 PB |
8256 | if test -n "$ncn_tool_prefix"; then |
8257 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8258 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8259 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8260 | $as_echo_n "checking for $ac_word... " >&6; } | |
8261 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8262 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8263 | else |
8264 | if test -n "$AS"; then | |
8265 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8266 | else |
8267 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8268 | for as_dir in $PATH | |
8269 | do | |
8270 | IFS=$as_save_IFS | |
8271 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8272 | for ac_exec_ext in '' $ac_executable_extensions; do |
8273 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8274 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8275 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8276 | break 2 |
8277 | fi | |
8278 | done | |
81ecdfbb RW |
8279 | done |
8280 | IFS=$as_save_IFS | |
c6b750e1 | 8281 | |
859789af AC |
8282 | fi |
8283 | fi | |
c6b750e1 | 8284 | AS=$ac_cv_prog_AS |
859789af | 8285 | if test -n "$AS"; then |
81ecdfbb RW |
8286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8287 | $as_echo "$AS" >&6; } | |
859789af | 8288 | else |
81ecdfbb RW |
8289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8290 | $as_echo "no" >&6; } | |
859789af AC |
8291 | fi |
8292 | ||
81ecdfbb | 8293 | |
05cbd757 PB |
8294 | fi |
8295 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8296 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8297 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8299 | $as_echo_n "checking for $ac_word... " >&6; } | |
8300 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8301 | $as_echo_n "(cached) " >&6 | |
859789af | 8302 | else |
05cbd757 PB |
8303 | if test -n "$AS"; then |
8304 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8305 | else |
c6b750e1 DJ |
8306 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8307 | for as_dir in $PATH | |
8308 | do | |
8309 | IFS=$as_save_IFS | |
8310 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8311 | for ac_exec_ext in '' $ac_executable_extensions; do |
8312 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8313 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8314 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8315 | break 2 |
8316 | fi | |
8317 | done | |
81ecdfbb RW |
8318 | done |
8319 | IFS=$as_save_IFS | |
c6b750e1 | 8320 | |
859789af AC |
8321 | fi |
8322 | fi | |
c6b750e1 | 8323 | AS=$ac_cv_prog_AS |
05cbd757 | 8324 | if test -n "$AS"; then |
81ecdfbb RW |
8325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8326 | $as_echo "$AS" >&6; } | |
859789af | 8327 | else |
81ecdfbb RW |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8329 | $as_echo "no" >&6; } | |
859789af | 8330 | fi |
c6b750e1 | 8331 | |
81ecdfbb | 8332 | |
05cbd757 PB |
8333 | fi |
8334 | test -n "$ac_cv_prog_AS" && break | |
8335 | done | |
8336 | ||
8337 | if test -z "$ac_cv_prog_AS" ; then | |
8338 | set dummy as | |
8339 | if test $build = $host ; then | |
8340 | AS="$2" | |
859789af | 8341 | else |
05cbd757 | 8342 | AS="${ncn_tool_prefix}$2" |
859789af | 8343 | fi |
859789af AC |
8344 | fi |
8345 | ||
9a819804 AO |
8346 | |
8347 | ||
8348 | if test -n "$DLLTOOL"; then | |
8349 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8350 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8351 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8352 | fi | |
8353 | ||
8354 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8355 | for ncn_progname in dlltool; do | |
8356 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8357 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8359 | $as_echo_n "checking for $ac_word... " >&6; } | |
8360 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8361 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8362 | else |
8363 | if test -n "$DLLTOOL"; then | |
8364 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8365 | else | |
8366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8367 | for as_dir in $PATH | |
8368 | do | |
8369 | IFS=$as_save_IFS | |
8370 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8371 | for ac_exec_ext in '' $ac_executable_extensions; do |
8372 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8373 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8375 | break 2 |
8376 | fi | |
8377 | done | |
81ecdfbb RW |
8378 | done |
8379 | IFS=$as_save_IFS | |
9a819804 AO |
8380 | |
8381 | fi | |
8382 | fi | |
8383 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8384 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8386 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8387 | else |
81ecdfbb RW |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8389 | $as_echo "no" >&6; } | |
9a819804 AO |
8390 | fi |
8391 | ||
81ecdfbb | 8392 | |
9a819804 AO |
8393 | done |
8394 | fi | |
8395 | ||
8396 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8397 | if test -n "$ncn_tool_prefix"; then |
8398 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8399 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8401 | $as_echo_n "checking for $ac_word... " >&6; } | |
8402 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8403 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8404 | else |
8405 | if test -n "$DLLTOOL"; then | |
8406 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8407 | else | |
c6b750e1 DJ |
8408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8409 | for as_dir in $PATH | |
8410 | do | |
8411 | IFS=$as_save_IFS | |
8412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8413 | for ac_exec_ext in '' $ac_executable_extensions; do |
8414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8415 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8417 | break 2 |
8418 | fi | |
8419 | done | |
81ecdfbb RW |
8420 | done |
8421 | IFS=$as_save_IFS | |
c6b750e1 | 8422 | |
859789af AC |
8423 | fi |
8424 | fi | |
c6b750e1 | 8425 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8426 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8428 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8429 | else |
81ecdfbb RW |
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8431 | $as_echo "no" >&6; } | |
859789af AC |
8432 | fi |
8433 | ||
81ecdfbb | 8434 | |
05cbd757 PB |
8435 | fi |
8436 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8437 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8438 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8440 | $as_echo_n "checking for $ac_word... " >&6; } | |
8441 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8442 | $as_echo_n "(cached) " >&6 | |
859789af | 8443 | else |
05cbd757 PB |
8444 | if test -n "$DLLTOOL"; then |
8445 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8446 | else |
c6b750e1 DJ |
8447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8448 | for as_dir in $PATH | |
8449 | do | |
8450 | IFS=$as_save_IFS | |
8451 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8452 | for ac_exec_ext in '' $ac_executable_extensions; do |
8453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8454 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8456 | break 2 |
8457 | fi | |
8458 | done | |
81ecdfbb RW |
8459 | done |
8460 | IFS=$as_save_IFS | |
c6b750e1 | 8461 | |
859789af AC |
8462 | fi |
8463 | fi | |
c6b750e1 | 8464 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8465 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8467 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8468 | else |
81ecdfbb RW |
8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8470 | $as_echo "no" >&6; } | |
859789af | 8471 | fi |
c6b750e1 | 8472 | |
81ecdfbb | 8473 | |
05cbd757 PB |
8474 | fi |
8475 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8476 | done | |
8477 | ||
8478 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8479 | set dummy dlltool | |
8480 | if test $build = $host ; then | |
8481 | DLLTOOL="$2" | |
859789af | 8482 | else |
05cbd757 | 8483 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8484 | fi |
859789af AC |
8485 | fi |
8486 | ||
9a819804 AO |
8487 | |
8488 | ||
8489 | if test -n "$LD"; then | |
8490 | ac_cv_prog_LD=$LD | |
8491 | elif test -n "$ac_cv_prog_LD"; then | |
8492 | LD=$ac_cv_prog_LD | |
8493 | fi | |
8494 | ||
8495 | if test -n "$ac_cv_prog_LD"; then | |
8496 | for ncn_progname in ld; do | |
8497 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8498 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8500 | $as_echo_n "checking for $ac_word... " >&6; } | |
8501 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8502 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8503 | else |
8504 | if test -n "$LD"; then | |
8505 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8506 | else | |
8507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8508 | for as_dir in $PATH | |
8509 | do | |
8510 | IFS=$as_save_IFS | |
8511 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8512 | for ac_exec_ext in '' $ac_executable_extensions; do |
8513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8514 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8516 | break 2 |
8517 | fi | |
8518 | done | |
81ecdfbb RW |
8519 | done |
8520 | IFS=$as_save_IFS | |
9a819804 AO |
8521 | |
8522 | fi | |
8523 | fi | |
8524 | LD=$ac_cv_prog_LD | |
8525 | if test -n "$LD"; then | |
81ecdfbb RW |
8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8527 | $as_echo "$LD" >&6; } | |
9a819804 | 8528 | else |
81ecdfbb RW |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8530 | $as_echo "no" >&6; } | |
9a819804 AO |
8531 | fi |
8532 | ||
81ecdfbb | 8533 | |
9a819804 AO |
8534 | done |
8535 | fi | |
8536 | ||
8537 | for ncn_progname in ld; do | |
05cbd757 PB |
8538 | if test -n "$ncn_tool_prefix"; then |
8539 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8540 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8542 | $as_echo_n "checking for $ac_word... " >&6; } | |
8543 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8544 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8545 | else |
8546 | if test -n "$LD"; then | |
8547 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8548 | else | |
c6b750e1 DJ |
8549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8550 | for as_dir in $PATH | |
8551 | do | |
8552 | IFS=$as_save_IFS | |
8553 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8554 | for ac_exec_ext in '' $ac_executable_extensions; do |
8555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8556 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8558 | break 2 |
8559 | fi | |
8560 | done | |
81ecdfbb RW |
8561 | done |
8562 | IFS=$as_save_IFS | |
c6b750e1 | 8563 | |
859789af AC |
8564 | fi |
8565 | fi | |
c6b750e1 | 8566 | LD=$ac_cv_prog_LD |
859789af | 8567 | if test -n "$LD"; then |
81ecdfbb RW |
8568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8569 | $as_echo "$LD" >&6; } | |
859789af | 8570 | else |
81ecdfbb RW |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8572 | $as_echo "no" >&6; } | |
859789af AC |
8573 | fi |
8574 | ||
81ecdfbb | 8575 | |
05cbd757 PB |
8576 | fi |
8577 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8578 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8579 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8581 | $as_echo_n "checking for $ac_word... " >&6; } | |
8582 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8583 | $as_echo_n "(cached) " >&6 | |
859789af | 8584 | else |
05cbd757 PB |
8585 | if test -n "$LD"; then |
8586 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8587 | else |
c6b750e1 DJ |
8588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8589 | for as_dir in $PATH | |
8590 | do | |
8591 | IFS=$as_save_IFS | |
8592 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8593 | for ac_exec_ext in '' $ac_executable_extensions; do |
8594 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8595 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8596 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8597 | break 2 |
8598 | fi | |
8599 | done | |
81ecdfbb RW |
8600 | done |
8601 | IFS=$as_save_IFS | |
c6b750e1 | 8602 | |
859789af AC |
8603 | fi |
8604 | fi | |
c6b750e1 | 8605 | LD=$ac_cv_prog_LD |
05cbd757 | 8606 | if test -n "$LD"; then |
81ecdfbb RW |
8607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8608 | $as_echo "$LD" >&6; } | |
859789af | 8609 | else |
81ecdfbb RW |
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8611 | $as_echo "no" >&6; } | |
859789af | 8612 | fi |
c6b750e1 | 8613 | |
81ecdfbb | 8614 | |
05cbd757 PB |
8615 | fi |
8616 | test -n "$ac_cv_prog_LD" && break | |
8617 | done | |
8618 | ||
8619 | if test -z "$ac_cv_prog_LD" ; then | |
8620 | set dummy ld | |
8621 | if test $build = $host ; then | |
8622 | LD="$2" | |
859789af | 8623 | else |
05cbd757 | 8624 | LD="${ncn_tool_prefix}$2" |
859789af | 8625 | fi |
859789af AC |
8626 | fi |
8627 | ||
9a819804 AO |
8628 | |
8629 | ||
8630 | if test -n "$LIPO"; then | |
8631 | ac_cv_prog_LIPO=$LIPO | |
8632 | elif test -n "$ac_cv_prog_LIPO"; then | |
8633 | LIPO=$ac_cv_prog_LIPO | |
8634 | fi | |
8635 | ||
8636 | if test -n "$ac_cv_prog_LIPO"; then | |
8637 | for ncn_progname in lipo; do | |
8638 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8639 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8641 | $as_echo_n "checking for $ac_word... " >&6; } | |
8642 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8643 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8644 | else |
8645 | if test -n "$LIPO"; then | |
8646 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8647 | else | |
8648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8649 | for as_dir in $PATH | |
8650 | do | |
8651 | IFS=$as_save_IFS | |
8652 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8653 | for ac_exec_ext in '' $ac_executable_extensions; do |
8654 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8655 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8657 | break 2 |
8658 | fi | |
8659 | done | |
81ecdfbb RW |
8660 | done |
8661 | IFS=$as_save_IFS | |
9a819804 AO |
8662 | |
8663 | fi | |
8664 | fi | |
8665 | LIPO=$ac_cv_prog_LIPO | |
8666 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8668 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8669 | else |
81ecdfbb RW |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8671 | $as_echo "no" >&6; } | |
9a819804 AO |
8672 | fi |
8673 | ||
81ecdfbb | 8674 | |
9a819804 AO |
8675 | done |
8676 | fi | |
8677 | ||
8678 | for ncn_progname in lipo; do | |
be01d343 PB |
8679 | if test -n "$ncn_tool_prefix"; then |
8680 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8681 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8683 | $as_echo_n "checking for $ac_word... " >&6; } | |
8684 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8685 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8686 | else |
8687 | if test -n "$LIPO"; then | |
8688 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8689 | else | |
c6b750e1 DJ |
8690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8691 | for as_dir in $PATH | |
8692 | do | |
8693 | IFS=$as_save_IFS | |
8694 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8695 | for ac_exec_ext in '' $ac_executable_extensions; do |
8696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8697 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8699 | break 2 |
8700 | fi | |
8701 | done | |
81ecdfbb RW |
8702 | done |
8703 | IFS=$as_save_IFS | |
c6b750e1 | 8704 | |
be01d343 PB |
8705 | fi |
8706 | fi | |
c6b750e1 | 8707 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8708 | if test -n "$LIPO"; then |
81ecdfbb RW |
8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8710 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8711 | else |
81ecdfbb RW |
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8713 | $as_echo "no" >&6; } | |
be01d343 PB |
8714 | fi |
8715 | ||
81ecdfbb | 8716 | |
be01d343 PB |
8717 | fi |
8718 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8719 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8720 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8722 | $as_echo_n "checking for $ac_word... " >&6; } | |
8723 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8724 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8725 | else |
8726 | if test -n "$LIPO"; then | |
8727 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8728 | else | |
c6b750e1 DJ |
8729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8730 | for as_dir in $PATH | |
8731 | do | |
8732 | IFS=$as_save_IFS | |
8733 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8734 | for ac_exec_ext in '' $ac_executable_extensions; do |
8735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8736 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8738 | break 2 |
8739 | fi | |
8740 | done | |
81ecdfbb RW |
8741 | done |
8742 | IFS=$as_save_IFS | |
c6b750e1 | 8743 | |
be01d343 PB |
8744 | fi |
8745 | fi | |
c6b750e1 | 8746 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8747 | if test -n "$LIPO"; then |
81ecdfbb RW |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8749 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8750 | else |
81ecdfbb RW |
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8752 | $as_echo "no" >&6; } | |
be01d343 | 8753 | fi |
c6b750e1 | 8754 | |
81ecdfbb | 8755 | |
be01d343 PB |
8756 | fi |
8757 | test -n "$ac_cv_prog_LIPO" && break | |
8758 | done | |
8759 | ||
8760 | if test -z "$ac_cv_prog_LIPO" ; then | |
8761 | set dummy lipo | |
8762 | if test $build = $host ; then | |
8763 | LIPO="$2" | |
8764 | else | |
8765 | LIPO="${ncn_tool_prefix}$2" | |
8766 | fi | |
8767 | fi | |
8768 | ||
9a819804 AO |
8769 | |
8770 | ||
8771 | if test -n "$NM"; then | |
8772 | ac_cv_prog_NM=$NM | |
8773 | elif test -n "$ac_cv_prog_NM"; then | |
8774 | NM=$ac_cv_prog_NM | |
8775 | fi | |
8776 | ||
8777 | if test -n "$ac_cv_prog_NM"; then | |
8778 | for ncn_progname in nm; do | |
8779 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8780 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8782 | $as_echo_n "checking for $ac_word... " >&6; } | |
8783 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8784 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8785 | else |
8786 | if test -n "$NM"; then | |
8787 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8788 | else | |
c6b750e1 DJ |
8789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8790 | for as_dir in $PATH | |
8791 | do | |
8792 | IFS=$as_save_IFS | |
8793 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8794 | for ac_exec_ext in '' $ac_executable_extensions; do |
8795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8796 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8798 | break 2 |
8799 | fi | |
8800 | done | |
81ecdfbb RW |
8801 | done |
8802 | IFS=$as_save_IFS | |
c6b750e1 | 8803 | |
859789af AC |
8804 | fi |
8805 | fi | |
c6b750e1 | 8806 | NM=$ac_cv_prog_NM |
859789af | 8807 | if test -n "$NM"; then |
81ecdfbb RW |
8808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8809 | $as_echo "$NM" >&6; } | |
859789af | 8810 | else |
81ecdfbb RW |
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8812 | $as_echo "no" >&6; } | |
859789af AC |
8813 | fi |
8814 | ||
81ecdfbb | 8815 | |
9a819804 AO |
8816 | done |
8817 | fi | |
8818 | ||
8819 | for ncn_progname in nm; do | |
8820 | if test -n "$ncn_tool_prefix"; then | |
8821 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8822 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8824 | $as_echo_n "checking for $ac_word... " >&6; } | |
8825 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8826 | $as_echo_n "(cached) " >&6 | |
859789af | 8827 | else |
05cbd757 PB |
8828 | if test -n "$NM"; then |
8829 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8830 | else |
c6b750e1 DJ |
8831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8832 | for as_dir in $PATH | |
8833 | do | |
8834 | IFS=$as_save_IFS | |
8835 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8836 | for ac_exec_ext in '' $ac_executable_extensions; do |
8837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8838 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8839 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8840 | break 2 |
8841 | fi | |
8842 | done | |
81ecdfbb RW |
8843 | done |
8844 | IFS=$as_save_IFS | |
c6b750e1 | 8845 | |
859789af AC |
8846 | fi |
8847 | fi | |
c6b750e1 | 8848 | NM=$ac_cv_prog_NM |
05cbd757 | 8849 | if test -n "$NM"; then |
81ecdfbb RW |
8850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8851 | $as_echo "$NM" >&6; } | |
859789af | 8852 | else |
81ecdfbb RW |
8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8854 | $as_echo "no" >&6; } | |
859789af | 8855 | fi |
c6b750e1 | 8856 | |
81ecdfbb | 8857 | |
05cbd757 | 8858 | fi |
9a819804 AO |
8859 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8860 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8861 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8863 | $as_echo_n "checking for $ac_word... " >&6; } | |
8864 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8865 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8866 | else |
8867 | if test -n "$NM"; then | |
8868 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8869 | else | |
8870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8871 | for as_dir in $PATH | |
8872 | do | |
8873 | IFS=$as_save_IFS | |
8874 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8875 | for ac_exec_ext in '' $ac_executable_extensions; do |
8876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8877 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8879 | break 2 |
8880 | fi | |
8881 | done | |
81ecdfbb RW |
8882 | done |
8883 | IFS=$as_save_IFS | |
9a819804 AO |
8884 | |
8885 | fi | |
8886 | fi | |
8887 | NM=$ac_cv_prog_NM | |
8888 | if test -n "$NM"; then | |
81ecdfbb RW |
8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8890 | $as_echo "$NM" >&6; } | |
9a819804 | 8891 | else |
81ecdfbb RW |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8893 | $as_echo "no" >&6; } | |
9a819804 AO |
8894 | fi |
8895 | ||
81ecdfbb | 8896 | |
9a819804 AO |
8897 | fi |
8898 | test -n "$ac_cv_prog_NM" && break | |
8899 | done | |
8900 | ||
8901 | if test -z "$ac_cv_prog_NM" ; then | |
8902 | set dummy nm | |
8903 | if test $build = $host ; then | |
8904 | NM="$2" | |
8905 | else | |
8906 | NM="${ncn_tool_prefix}$2" | |
8907 | fi | |
8908 | fi | |
8909 | ||
8910 | ||
8911 | ||
8912 | if test -n "$RANLIB"; then | |
8913 | ac_cv_prog_RANLIB=$RANLIB | |
8914 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8915 | RANLIB=$ac_cv_prog_RANLIB | |
8916 | fi | |
8917 | ||
8918 | if test -n "$ac_cv_prog_RANLIB"; then | |
8919 | for ncn_progname in ranlib; do | |
8920 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8921 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8923 | $as_echo_n "checking for $ac_word... " >&6; } | |
8924 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8925 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8926 | else |
8927 | if test -n "$RANLIB"; then | |
8928 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8929 | else | |
8930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8931 | for as_dir in $PATH | |
8932 | do | |
8933 | IFS=$as_save_IFS | |
8934 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8935 | for ac_exec_ext in '' $ac_executable_extensions; do |
8936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8937 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8939 | break 2 |
8940 | fi | |
8941 | done | |
81ecdfbb RW |
8942 | done |
8943 | IFS=$as_save_IFS | |
9a819804 AO |
8944 | |
8945 | fi | |
8946 | fi | |
8947 | RANLIB=$ac_cv_prog_RANLIB | |
8948 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8950 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8951 | else |
81ecdfbb RW |
8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8953 | $as_echo "no" >&6; } | |
9a819804 AO |
8954 | fi |
8955 | ||
81ecdfbb | 8956 | |
9a819804 AO |
8957 | done |
8958 | fi | |
859789af | 8959 | |
9a819804 | 8960 | for ncn_progname in ranlib; do |
05cbd757 PB |
8961 | if test -n "$ncn_tool_prefix"; then |
8962 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8963 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8965 | $as_echo_n "checking for $ac_word... " >&6; } | |
8966 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8967 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8968 | else |
8969 | if test -n "$RANLIB"; then | |
8970 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8971 | else | |
c6b750e1 DJ |
8972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8973 | for as_dir in $PATH | |
8974 | do | |
8975 | IFS=$as_save_IFS | |
8976 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8977 | for ac_exec_ext in '' $ac_executable_extensions; do |
8978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8979 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8981 | break 2 |
8982 | fi | |
8983 | done | |
81ecdfbb RW |
8984 | done |
8985 | IFS=$as_save_IFS | |
c6b750e1 | 8986 | |
859789af AC |
8987 | fi |
8988 | fi | |
c6b750e1 | 8989 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8990 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8992 | $as_echo "$RANLIB" >&6; } | |
859789af | 8993 | else |
81ecdfbb RW |
8994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8995 | $as_echo "no" >&6; } | |
859789af AC |
8996 | fi |
8997 | ||
81ecdfbb | 8998 | |
05cbd757 PB |
8999 | fi |
9000 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9001 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9002 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9004 | $as_echo_n "checking for $ac_word... " >&6; } | |
9005 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9006 | $as_echo_n "(cached) " >&6 | |
859789af | 9007 | else |
05cbd757 PB |
9008 | if test -n "$RANLIB"; then |
9009 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9010 | else |
c6b750e1 DJ |
9011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9012 | for as_dir in $PATH | |
9013 | do | |
9014 | IFS=$as_save_IFS | |
9015 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9016 | for ac_exec_ext in '' $ac_executable_extensions; do |
9017 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9018 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9020 | break 2 |
9021 | fi | |
9022 | done | |
81ecdfbb RW |
9023 | done |
9024 | IFS=$as_save_IFS | |
c6b750e1 | 9025 | |
859789af AC |
9026 | fi |
9027 | fi | |
c6b750e1 | 9028 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9029 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9031 | $as_echo "$RANLIB" >&6; } | |
859789af | 9032 | else |
81ecdfbb RW |
9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9034 | $as_echo "no" >&6; } | |
859789af | 9035 | fi |
c6b750e1 | 9036 | |
81ecdfbb | 9037 | |
859789af | 9038 | fi |
05cbd757 PB |
9039 | test -n "$ac_cv_prog_RANLIB" && break |
9040 | done | |
9041 | ||
9042 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9043 | RANLIB="true" |
859789af AC |
9044 | fi |
9045 | ||
9a819804 AO |
9046 | |
9047 | ||
9048 | if test -n "$STRIP"; then | |
9049 | ac_cv_prog_STRIP=$STRIP | |
9050 | elif test -n "$ac_cv_prog_STRIP"; then | |
9051 | STRIP=$ac_cv_prog_STRIP | |
9052 | fi | |
9053 | ||
9054 | if test -n "$ac_cv_prog_STRIP"; then | |
9055 | for ncn_progname in strip; do | |
9056 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9057 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9059 | $as_echo_n "checking for $ac_word... " >&6; } | |
9060 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9061 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9062 | else |
9063 | if test -n "$STRIP"; then | |
9064 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9065 | else | |
9066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9067 | for as_dir in $PATH | |
9068 | do | |
9069 | IFS=$as_save_IFS | |
9070 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9071 | for ac_exec_ext in '' $ac_executable_extensions; do |
9072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9073 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9075 | break 2 |
9076 | fi | |
9077 | done | |
81ecdfbb RW |
9078 | done |
9079 | IFS=$as_save_IFS | |
9a819804 AO |
9080 | |
9081 | fi | |
9082 | fi | |
9083 | STRIP=$ac_cv_prog_STRIP | |
9084 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9086 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9087 | else |
81ecdfbb RW |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9089 | $as_echo "no" >&6; } | |
9a819804 AO |
9090 | fi |
9091 | ||
81ecdfbb | 9092 | |
9a819804 AO |
9093 | done |
9094 | fi | |
9095 | ||
9096 | for ncn_progname in strip; do | |
be01d343 PB |
9097 | if test -n "$ncn_tool_prefix"; then |
9098 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9099 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9101 | $as_echo_n "checking for $ac_word... " >&6; } | |
9102 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9103 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9104 | else |
9105 | if test -n "$STRIP"; then | |
9106 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9107 | else | |
c6b750e1 DJ |
9108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9109 | for as_dir in $PATH | |
9110 | do | |
9111 | IFS=$as_save_IFS | |
9112 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9113 | for ac_exec_ext in '' $ac_executable_extensions; do |
9114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9115 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9117 | break 2 |
9118 | fi | |
9119 | done | |
81ecdfbb RW |
9120 | done |
9121 | IFS=$as_save_IFS | |
c6b750e1 | 9122 | |
be01d343 PB |
9123 | fi |
9124 | fi | |
c6b750e1 | 9125 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9126 | if test -n "$STRIP"; then |
81ecdfbb RW |
9127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9128 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9129 | else |
81ecdfbb RW |
9130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9131 | $as_echo "no" >&6; } | |
be01d343 PB |
9132 | fi |
9133 | ||
81ecdfbb | 9134 | |
be01d343 PB |
9135 | fi |
9136 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9137 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9138 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9140 | $as_echo_n "checking for $ac_word... " >&6; } | |
9141 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9142 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9143 | else |
9144 | if test -n "$STRIP"; then | |
9145 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9146 | else | |
c6b750e1 DJ |
9147 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9148 | for as_dir in $PATH | |
9149 | do | |
9150 | IFS=$as_save_IFS | |
9151 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9152 | for ac_exec_ext in '' $ac_executable_extensions; do |
9153 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9154 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9155 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9156 | break 2 |
9157 | fi | |
9158 | done | |
81ecdfbb RW |
9159 | done |
9160 | IFS=$as_save_IFS | |
c6b750e1 | 9161 | |
be01d343 PB |
9162 | fi |
9163 | fi | |
c6b750e1 | 9164 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9165 | if test -n "$STRIP"; then |
81ecdfbb RW |
9166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9167 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9168 | else |
81ecdfbb RW |
9169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9170 | $as_echo "no" >&6; } | |
be01d343 | 9171 | fi |
c6b750e1 | 9172 | |
81ecdfbb | 9173 | |
be01d343 PB |
9174 | fi |
9175 | test -n "$ac_cv_prog_STRIP" && break | |
9176 | done | |
9177 | ||
9178 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9179 | STRIP="true" |
be01d343 PB |
9180 | fi |
9181 | ||
9a819804 AO |
9182 | |
9183 | ||
9184 | if test -n "$WINDRES"; then | |
9185 | ac_cv_prog_WINDRES=$WINDRES | |
9186 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9187 | WINDRES=$ac_cv_prog_WINDRES | |
9188 | fi | |
9189 | ||
9190 | if test -n "$ac_cv_prog_WINDRES"; then | |
9191 | for ncn_progname in windres; do | |
9192 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9193 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9195 | $as_echo_n "checking for $ac_word... " >&6; } | |
9196 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9197 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9198 | else |
9199 | if test -n "$WINDRES"; then | |
9200 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9201 | else | |
9202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9203 | for as_dir in $PATH | |
9204 | do | |
9205 | IFS=$as_save_IFS | |
9206 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9207 | for ac_exec_ext in '' $ac_executable_extensions; do |
9208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9209 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9211 | break 2 |
9212 | fi | |
9213 | done | |
81ecdfbb RW |
9214 | done |
9215 | IFS=$as_save_IFS | |
9a819804 AO |
9216 | |
9217 | fi | |
9218 | fi | |
9219 | WINDRES=$ac_cv_prog_WINDRES | |
9220 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9222 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9223 | else |
81ecdfbb RW |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9225 | $as_echo "no" >&6; } | |
9a819804 AO |
9226 | fi |
9227 | ||
81ecdfbb | 9228 | |
9a819804 AO |
9229 | done |
9230 | fi | |
9231 | ||
9232 | for ncn_progname in windres; do | |
05cbd757 PB |
9233 | if test -n "$ncn_tool_prefix"; then |
9234 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9235 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9237 | $as_echo_n "checking for $ac_word... " >&6; } | |
9238 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9239 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9240 | else |
9241 | if test -n "$WINDRES"; then | |
9242 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9243 | else | |
c6b750e1 DJ |
9244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9245 | for as_dir in $PATH | |
9246 | do | |
9247 | IFS=$as_save_IFS | |
9248 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9249 | for ac_exec_ext in '' $ac_executable_extensions; do |
9250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9251 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9253 | break 2 |
9254 | fi | |
9255 | done | |
81ecdfbb RW |
9256 | done |
9257 | IFS=$as_save_IFS | |
c6b750e1 | 9258 | |
859789af AC |
9259 | fi |
9260 | fi | |
c6b750e1 | 9261 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9262 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9264 | $as_echo "$WINDRES" >&6; } | |
859789af | 9265 | else |
81ecdfbb RW |
9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9267 | $as_echo "no" >&6; } | |
859789af AC |
9268 | fi |
9269 | ||
81ecdfbb | 9270 | |
05cbd757 PB |
9271 | fi |
9272 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9273 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9274 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9276 | $as_echo_n "checking for $ac_word... " >&6; } | |
9277 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9278 | $as_echo_n "(cached) " >&6 | |
859789af | 9279 | else |
05cbd757 PB |
9280 | if test -n "$WINDRES"; then |
9281 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9282 | else |
c6b750e1 DJ |
9283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9284 | for as_dir in $PATH | |
9285 | do | |
9286 | IFS=$as_save_IFS | |
9287 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9288 | for ac_exec_ext in '' $ac_executable_extensions; do |
9289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9290 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9292 | break 2 |
9293 | fi | |
9294 | done | |
81ecdfbb RW |
9295 | done |
9296 | IFS=$as_save_IFS | |
c6b750e1 | 9297 | |
859789af AC |
9298 | fi |
9299 | fi | |
c6b750e1 | 9300 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9301 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9303 | $as_echo "$WINDRES" >&6; } | |
859789af | 9304 | else |
81ecdfbb RW |
9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9306 | $as_echo "no" >&6; } | |
859789af | 9307 | fi |
c6b750e1 | 9308 | |
81ecdfbb | 9309 | |
05cbd757 PB |
9310 | fi |
9311 | test -n "$ac_cv_prog_WINDRES" && break | |
9312 | done | |
9313 | ||
9314 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9315 | set dummy windres | |
9316 | if test $build = $host ; then | |
9317 | WINDRES="$2" | |
859789af | 9318 | else |
05cbd757 | 9319 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9320 | fi |
859789af AC |
9321 | fi |
9322 | ||
9a819804 AO |
9323 | |
9324 | ||
0c24b341 NC |
9325 | if test -n "$WINDMC"; then |
9326 | ac_cv_prog_WINDMC=$WINDMC | |
9327 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9328 | WINDMC=$ac_cv_prog_WINDMC | |
9329 | fi | |
9330 | ||
9331 | if test -n "$ac_cv_prog_WINDMC"; then | |
9332 | for ncn_progname in windmc; do | |
9333 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9334 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9336 | $as_echo_n "checking for $ac_word... " >&6; } | |
9337 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9338 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9339 | else |
9340 | if test -n "$WINDMC"; then | |
9341 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9342 | else | |
9343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9344 | for as_dir in $PATH | |
9345 | do | |
9346 | IFS=$as_save_IFS | |
9347 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9348 | for ac_exec_ext in '' $ac_executable_extensions; do |
9349 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9350 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9352 | break 2 |
9353 | fi | |
9354 | done | |
81ecdfbb RW |
9355 | done |
9356 | IFS=$as_save_IFS | |
0c24b341 NC |
9357 | |
9358 | fi | |
9359 | fi | |
9360 | WINDMC=$ac_cv_prog_WINDMC | |
9361 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9363 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9364 | else |
81ecdfbb RW |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9366 | $as_echo "no" >&6; } | |
0c24b341 NC |
9367 | fi |
9368 | ||
81ecdfbb | 9369 | |
0c24b341 NC |
9370 | done |
9371 | fi | |
9372 | ||
9373 | for ncn_progname in windmc; do | |
9374 | if test -n "$ncn_tool_prefix"; then | |
9375 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9376 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9378 | $as_echo_n "checking for $ac_word... " >&6; } | |
9379 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9380 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9381 | else |
9382 | if test -n "$WINDMC"; then | |
9383 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9384 | else | |
9385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9386 | for as_dir in $PATH | |
9387 | do | |
9388 | IFS=$as_save_IFS | |
9389 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9390 | for ac_exec_ext in '' $ac_executable_extensions; do |
9391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9392 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9394 | break 2 |
9395 | fi | |
9396 | done | |
81ecdfbb RW |
9397 | done |
9398 | IFS=$as_save_IFS | |
0c24b341 NC |
9399 | |
9400 | fi | |
9401 | fi | |
9402 | WINDMC=$ac_cv_prog_WINDMC | |
9403 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9405 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9406 | else |
81ecdfbb RW |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9408 | $as_echo "no" >&6; } | |
0c24b341 NC |
9409 | fi |
9410 | ||
81ecdfbb | 9411 | |
0c24b341 NC |
9412 | fi |
9413 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9414 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9415 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9417 | $as_echo_n "checking for $ac_word... " >&6; } | |
9418 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9419 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9420 | else |
9421 | if test -n "$WINDMC"; then | |
9422 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9423 | else | |
9424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9425 | for as_dir in $PATH | |
9426 | do | |
9427 | IFS=$as_save_IFS | |
9428 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9429 | for ac_exec_ext in '' $ac_executable_extensions; do |
9430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9431 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9433 | break 2 |
9434 | fi | |
9435 | done | |
81ecdfbb RW |
9436 | done |
9437 | IFS=$as_save_IFS | |
0c24b341 NC |
9438 | |
9439 | fi | |
9440 | fi | |
9441 | WINDMC=$ac_cv_prog_WINDMC | |
9442 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9444 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9445 | else |
81ecdfbb RW |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9447 | $as_echo "no" >&6; } | |
0c24b341 NC |
9448 | fi |
9449 | ||
81ecdfbb | 9450 | |
0c24b341 NC |
9451 | fi |
9452 | test -n "$ac_cv_prog_WINDMC" && break | |
9453 | done | |
9454 | ||
9455 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9456 | set dummy windmc | |
9457 | if test $build = $host ; then | |
9458 | WINDMC="$2" | |
9459 | else | |
9460 | WINDMC="${ncn_tool_prefix}$2" | |
9461 | fi | |
9462 | fi | |
9463 | ||
9464 | ||
9465 | ||
9a819804 AO |
9466 | if test -n "$OBJCOPY"; then |
9467 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9468 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9469 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9470 | fi | |
9471 | ||
9472 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9473 | for ncn_progname in objcopy; do | |
9474 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9475 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9477 | $as_echo_n "checking for $ac_word... " >&6; } | |
9478 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9479 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9480 | else |
9481 | if test -n "$OBJCOPY"; then | |
9482 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9483 | else | |
9484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9485 | for as_dir in $PATH | |
9486 | do | |
9487 | IFS=$as_save_IFS | |
9488 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9489 | for ac_exec_ext in '' $ac_executable_extensions; do |
9490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9491 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9493 | break 2 |
9494 | fi | |
9495 | done | |
81ecdfbb RW |
9496 | done |
9497 | IFS=$as_save_IFS | |
9a819804 AO |
9498 | |
9499 | fi | |
9500 | fi | |
9501 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9502 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9504 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9505 | else |
81ecdfbb RW |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9507 | $as_echo "no" >&6; } | |
9a819804 AO |
9508 | fi |
9509 | ||
81ecdfbb | 9510 | |
9a819804 AO |
9511 | done |
9512 | fi | |
9513 | ||
9514 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9515 | if test -n "$ncn_tool_prefix"; then |
9516 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9517 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9519 | $as_echo_n "checking for $ac_word... " >&6; } | |
9520 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9521 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9522 | else |
9523 | if test -n "$OBJCOPY"; then | |
9524 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9525 | else | |
c6b750e1 DJ |
9526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9527 | for as_dir in $PATH | |
9528 | do | |
9529 | IFS=$as_save_IFS | |
9530 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9531 | for ac_exec_ext in '' $ac_executable_extensions; do |
9532 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9533 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9534 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9535 | break 2 |
9536 | fi | |
9537 | done | |
81ecdfbb RW |
9538 | done |
9539 | IFS=$as_save_IFS | |
c6b750e1 | 9540 | |
859789af AC |
9541 | fi |
9542 | fi | |
c6b750e1 | 9543 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9544 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9546 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9547 | else |
81ecdfbb RW |
9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9549 | $as_echo "no" >&6; } | |
859789af AC |
9550 | fi |
9551 | ||
81ecdfbb | 9552 | |
05cbd757 PB |
9553 | fi |
9554 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9555 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9556 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9558 | $as_echo_n "checking for $ac_word... " >&6; } | |
9559 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9560 | $as_echo_n "(cached) " >&6 | |
859789af | 9561 | else |
05cbd757 PB |
9562 | if test -n "$OBJCOPY"; then |
9563 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9564 | else |
c6b750e1 DJ |
9565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9566 | for as_dir in $PATH | |
9567 | do | |
9568 | IFS=$as_save_IFS | |
9569 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9570 | for ac_exec_ext in '' $ac_executable_extensions; do |
9571 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9572 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9573 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9574 | break 2 |
9575 | fi | |
9576 | done | |
81ecdfbb RW |
9577 | done |
9578 | IFS=$as_save_IFS | |
c6b750e1 | 9579 | |
859789af AC |
9580 | fi |
9581 | fi | |
c6b750e1 | 9582 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9583 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9585 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9586 | else |
81ecdfbb RW |
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9588 | $as_echo "no" >&6; } | |
859789af | 9589 | fi |
c6b750e1 | 9590 | |
81ecdfbb | 9591 | |
05cbd757 PB |
9592 | fi |
9593 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9594 | done | |
9595 | ||
9596 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9597 | set dummy objcopy | |
9598 | if test $build = $host ; then | |
9599 | OBJCOPY="$2" | |
859789af | 9600 | else |
05cbd757 | 9601 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9602 | fi |
859789af AC |
9603 | fi |
9604 | ||
9a819804 AO |
9605 | |
9606 | ||
9607 | if test -n "$OBJDUMP"; then | |
9608 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9609 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9610 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9611 | fi | |
9612 | ||
9613 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9614 | for ncn_progname in objdump; do | |
9615 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9616 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9618 | $as_echo_n "checking for $ac_word... " >&6; } | |
9619 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9620 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9621 | else |
9622 | if test -n "$OBJDUMP"; then | |
9623 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9624 | else | |
9625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9626 | for as_dir in $PATH | |
9627 | do | |
9628 | IFS=$as_save_IFS | |
9629 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9630 | for ac_exec_ext in '' $ac_executable_extensions; do |
9631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9632 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9634 | break 2 |
9635 | fi | |
9636 | done | |
81ecdfbb RW |
9637 | done |
9638 | IFS=$as_save_IFS | |
9a819804 AO |
9639 | |
9640 | fi | |
9641 | fi | |
9642 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9643 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9645 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9646 | else |
81ecdfbb RW |
9647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9648 | $as_echo "no" >&6; } | |
9a819804 AO |
9649 | fi |
9650 | ||
81ecdfbb | 9651 | |
9a819804 AO |
9652 | done |
9653 | fi | |
9654 | ||
9655 | for ncn_progname in objdump; do | |
05cbd757 PB |
9656 | if test -n "$ncn_tool_prefix"; then |
9657 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9658 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9660 | $as_echo_n "checking for $ac_word... " >&6; } | |
9661 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9662 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9663 | else |
9664 | if test -n "$OBJDUMP"; then | |
9665 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9666 | else | |
c6b750e1 DJ |
9667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9668 | for as_dir in $PATH | |
9669 | do | |
9670 | IFS=$as_save_IFS | |
9671 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9672 | for ac_exec_ext in '' $ac_executable_extensions; do |
9673 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9674 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9675 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9676 | break 2 |
9677 | fi | |
9678 | done | |
81ecdfbb RW |
9679 | done |
9680 | IFS=$as_save_IFS | |
c6b750e1 | 9681 | |
859789af AC |
9682 | fi |
9683 | fi | |
c6b750e1 | 9684 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9685 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9687 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9688 | else |
81ecdfbb RW |
9689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9690 | $as_echo "no" >&6; } | |
859789af AC |
9691 | fi |
9692 | ||
81ecdfbb | 9693 | |
05cbd757 PB |
9694 | fi |
9695 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9696 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9697 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9699 | $as_echo_n "checking for $ac_word... " >&6; } | |
9700 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9701 | $as_echo_n "(cached) " >&6 | |
859789af | 9702 | else |
05cbd757 PB |
9703 | if test -n "$OBJDUMP"; then |
9704 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9705 | else |
c6b750e1 DJ |
9706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9707 | for as_dir in $PATH | |
9708 | do | |
9709 | IFS=$as_save_IFS | |
9710 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9711 | for ac_exec_ext in '' $ac_executable_extensions; do |
9712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9713 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9715 | break 2 |
9716 | fi | |
9717 | done | |
81ecdfbb RW |
9718 | done |
9719 | IFS=$as_save_IFS | |
c6b750e1 | 9720 | |
859789af AC |
9721 | fi |
9722 | fi | |
c6b750e1 | 9723 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9724 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9726 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9727 | else |
81ecdfbb RW |
9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9729 | $as_echo "no" >&6; } | |
859789af | 9730 | fi |
c6b750e1 | 9731 | |
81ecdfbb | 9732 | |
05cbd757 PB |
9733 | fi |
9734 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9735 | done | |
9736 | ||
9737 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9738 | set dummy objdump | |
9739 | if test $build = $host ; then | |
9740 | OBJDUMP="$2" | |
859789af | 9741 | else |
05cbd757 | 9742 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9743 | fi |
859789af AC |
9744 | fi |
9745 | ||
a0da8069 NN |
9746 | |
9747 | ||
b121d7d4 DD |
9748 | if test -n "$READELF"; then |
9749 | ac_cv_prog_READELF=$READELF | |
9750 | elif test -n "$ac_cv_prog_READELF"; then | |
9751 | READELF=$ac_cv_prog_READELF | |
9752 | fi | |
9753 | ||
9754 | if test -n "$ac_cv_prog_READELF"; then | |
9755 | for ncn_progname in readelf; do | |
9756 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9757 | set dummy ${ncn_progname}; ac_word=$2 | |
9758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9759 | $as_echo_n "checking for $ac_word... " >&6; } | |
9760 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9761 | $as_echo_n "(cached) " >&6 | |
9762 | else | |
9763 | if test -n "$READELF"; then | |
9764 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9765 | else | |
9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9767 | for as_dir in $PATH | |
9768 | do | |
9769 | IFS=$as_save_IFS | |
9770 | test -z "$as_dir" && as_dir=. | |
9771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9773 | ac_cv_prog_READELF="${ncn_progname}" | |
9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9775 | break 2 | |
9776 | fi | |
9777 | done | |
9778 | done | |
9779 | IFS=$as_save_IFS | |
9780 | ||
9781 | fi | |
9782 | fi | |
9783 | READELF=$ac_cv_prog_READELF | |
9784 | if test -n "$READELF"; then | |
9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9786 | $as_echo "$READELF" >&6; } | |
9787 | else | |
9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9789 | $as_echo "no" >&6; } | |
9790 | fi | |
9791 | ||
9792 | ||
9793 | done | |
9794 | fi | |
9795 | ||
9796 | for ncn_progname in readelf; do | |
9797 | if test -n "$ncn_tool_prefix"; then | |
9798 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9799 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9801 | $as_echo_n "checking for $ac_word... " >&6; } | |
9802 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9803 | $as_echo_n "(cached) " >&6 | |
9804 | else | |
9805 | if test -n "$READELF"; then | |
9806 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9807 | else | |
9808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9809 | for as_dir in $PATH | |
9810 | do | |
9811 | IFS=$as_save_IFS | |
9812 | test -z "$as_dir" && as_dir=. | |
9813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9815 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9817 | break 2 | |
9818 | fi | |
9819 | done | |
9820 | done | |
9821 | IFS=$as_save_IFS | |
9822 | ||
9823 | fi | |
9824 | fi | |
9825 | READELF=$ac_cv_prog_READELF | |
9826 | if test -n "$READELF"; then | |
9827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9828 | $as_echo "$READELF" >&6; } | |
9829 | else | |
9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9831 | $as_echo "no" >&6; } | |
9832 | fi | |
9833 | ||
9834 | ||
9835 | fi | |
9836 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9837 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9838 | set dummy ${ncn_progname}; ac_word=$2 | |
9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9840 | $as_echo_n "checking for $ac_word... " >&6; } | |
9841 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9842 | $as_echo_n "(cached) " >&6 | |
9843 | else | |
9844 | if test -n "$READELF"; then | |
9845 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9846 | else | |
9847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9848 | for as_dir in $PATH | |
9849 | do | |
9850 | IFS=$as_save_IFS | |
9851 | test -z "$as_dir" && as_dir=. | |
9852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9854 | ac_cv_prog_READELF="${ncn_progname}" | |
9855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9856 | break 2 | |
9857 | fi | |
9858 | done | |
9859 | done | |
9860 | IFS=$as_save_IFS | |
9861 | ||
9862 | fi | |
9863 | fi | |
9864 | READELF=$ac_cv_prog_READELF | |
9865 | if test -n "$READELF"; then | |
9866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9867 | $as_echo "$READELF" >&6; } | |
9868 | else | |
9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9870 | $as_echo "no" >&6; } | |
9871 | fi | |
9872 | ||
9873 | ||
9874 | fi | |
9875 | test -n "$ac_cv_prog_READELF" && break | |
9876 | done | |
9877 | ||
9878 | if test -z "$ac_cv_prog_READELF" ; then | |
9879 | set dummy readelf | |
9880 | if test $build = $host ; then | |
9881 | READELF="$2" | |
9882 | else | |
9883 | READELF="${ncn_tool_prefix}$2" | |
9884 | fi | |
9885 | fi | |
9886 | ||
9887 | ||
9888 | ||
a0da8069 NN |
9889 | |
9890 | ||
9891 | ||
be01d343 | 9892 | # Target tools. |
c6b750e1 | 9893 | |
81ecdfbb RW |
9894 | # Check whether --with-build-time-tools was given. |
9895 | if test "${with_build_time_tools+set}" = set; then : | |
9896 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9897 | x/*) ;; |
9898 | *) | |
9899 | with_build_time_tools= | |
81ecdfbb RW |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9901 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9902 | ;; |
9903 | esac | |
859789af | 9904 | else |
2429c060 | 9905 | with_build_time_tools= |
81ecdfbb RW |
9906 | fi |
9907 | ||
859789af | 9908 | |
9a819804 AO |
9909 | |
9910 | ||
9911 | if test -n "$CC_FOR_TARGET"; then | |
9912 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9913 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9914 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9915 | fi | |
9916 | ||
9917 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9918 | for ncn_progname in cc gcc; do | |
9919 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9920 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9922 | $as_echo_n "checking for $ac_word... " >&6; } | |
9923 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9924 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9925 | else |
9926 | if test -n "$CC_FOR_TARGET"; then | |
9927 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9928 | else | |
9929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9930 | for as_dir in $PATH | |
9931 | do | |
9932 | IFS=$as_save_IFS | |
9933 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9934 | for ac_exec_ext in '' $ac_executable_extensions; do |
9935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9936 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9938 | break 2 |
9939 | fi | |
9940 | done | |
81ecdfbb RW |
9941 | done |
9942 | IFS=$as_save_IFS | |
9a819804 AO |
9943 | |
9944 | fi | |
9945 | fi | |
9946 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9947 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9949 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9950 | else |
81ecdfbb RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9952 | $as_echo "no" >&6; } | |
9a819804 AO |
9953 | fi |
9954 | ||
81ecdfbb | 9955 | |
9a819804 AO |
9956 | done |
9957 | fi | |
9958 | ||
9959 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9960 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9962 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9963 | if test -x $with_build_time_tools/${ncn_progname}; then |
9964 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9966 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9967 | break |
2429c060 | 9968 | else |
81ecdfbb RW |
9969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9970 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9971 | fi |
9972 | done | |
55db4b87 PB |
9973 | fi |
9974 | ||
2429c060 PB |
9975 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9976 | for ncn_progname in cc gcc; do | |
9977 | if test -n "$ncn_target_tool_prefix"; then | |
9978 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9979 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9981 | $as_echo_n "checking for $ac_word... " >&6; } | |
9982 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9983 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9984 | else |
9985 | if test -n "$CC_FOR_TARGET"; then | |
9986 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9987 | else | |
c6b750e1 DJ |
9988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9989 | for as_dir in $PATH | |
9990 | do | |
9991 | IFS=$as_save_IFS | |
9992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9993 | for ac_exec_ext in '' $ac_executable_extensions; do |
9994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9995 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9997 | break 2 |
9998 | fi | |
9999 | done | |
81ecdfbb RW |
10000 | done |
10001 | IFS=$as_save_IFS | |
c6b750e1 | 10002 | |
55db4b87 PB |
10003 | fi |
10004 | fi | |
c6b750e1 | 10005 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10006 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10008 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10009 | else |
81ecdfbb RW |
10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10011 | $as_echo "no" >&6; } | |
55db4b87 PB |
10012 | fi |
10013 | ||
81ecdfbb | 10014 | |
2429c060 PB |
10015 | fi |
10016 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10017 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10018 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10020 | $as_echo_n "checking for $ac_word... " >&6; } | |
10021 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10022 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10023 | else |
05cbd757 PB |
10024 | if test -n "$CC_FOR_TARGET"; then |
10025 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10026 | else |
c6b750e1 DJ |
10027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10028 | for as_dir in $PATH | |
10029 | do | |
10030 | IFS=$as_save_IFS | |
10031 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10032 | for ac_exec_ext in '' $ac_executable_extensions; do |
10033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10034 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10036 | break 2 |
10037 | fi | |
10038 | done | |
81ecdfbb RW |
10039 | done |
10040 | IFS=$as_save_IFS | |
c6b750e1 | 10041 | |
55db4b87 PB |
10042 | fi |
10043 | fi | |
c6b750e1 | 10044 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10045 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10047 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10048 | else |
81ecdfbb RW |
10049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10050 | $as_echo "no" >&6; } | |
55db4b87 | 10051 | fi |
c6b750e1 | 10052 | |
81ecdfbb | 10053 | |
2429c060 PB |
10054 | fi |
10055 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10056 | done | |
10057 | fi | |
c6b750e1 | 10058 | |
05cbd757 PB |
10059 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10060 | set dummy cc gcc | |
10061 | if test $build = $target ; then | |
10062 | CC_FOR_TARGET="$2" | |
55db4b87 | 10063 | else |
05cbd757 | 10064 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10065 | fi |
d3f5afc4 MS |
10066 | else |
10067 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10068 | fi |
10069 | ||
9a819804 AO |
10070 | |
10071 | ||
10072 | if test -n "$CXX_FOR_TARGET"; then | |
10073 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10074 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10075 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10076 | fi | |
10077 | ||
10078 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10079 | for ncn_progname in c++ g++ cxx gxx; do | |
10080 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10081 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10083 | $as_echo_n "checking for $ac_word... " >&6; } | |
10084 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10085 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10086 | else |
10087 | if test -n "$CXX_FOR_TARGET"; then | |
10088 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10089 | else | |
10090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10091 | for as_dir in $PATH | |
10092 | do | |
10093 | IFS=$as_save_IFS | |
10094 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10095 | for ac_exec_ext in '' $ac_executable_extensions; do |
10096 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10097 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10098 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10099 | break 2 |
10100 | fi | |
10101 | done | |
81ecdfbb RW |
10102 | done |
10103 | IFS=$as_save_IFS | |
9a819804 AO |
10104 | |
10105 | fi | |
10106 | fi | |
10107 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10108 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10110 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10111 | else |
81ecdfbb RW |
10112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10113 | $as_echo "no" >&6; } | |
9a819804 AO |
10114 | fi |
10115 | ||
81ecdfbb | 10116 | |
9a819804 AO |
10117 | done |
10118 | fi | |
10119 | ||
10120 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10121 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10123 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10124 | if test -x $with_build_time_tools/${ncn_progname}; then |
10125 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10127 | $as_echo "yes" >&6; } | |
2429c060 PB |
10128 | break |
10129 | else | |
81ecdfbb RW |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10131 | $as_echo "no" >&6; } | |
2429c060 PB |
10132 | fi |
10133 | done | |
10134 | fi | |
10135 | ||
10136 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10137 | for ncn_progname in c++ g++ cxx gxx; do | |
10138 | if test -n "$ncn_target_tool_prefix"; then | |
10139 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10140 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10142 | $as_echo_n "checking for $ac_word... " >&6; } | |
10143 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10144 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10145 | else |
10146 | if test -n "$CXX_FOR_TARGET"; then | |
10147 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10148 | else | |
c6b750e1 DJ |
10149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10150 | for as_dir in $PATH | |
10151 | do | |
10152 | IFS=$as_save_IFS | |
10153 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10154 | for ac_exec_ext in '' $ac_executable_extensions; do |
10155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10156 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10158 | break 2 |
10159 | fi | |
10160 | done | |
81ecdfbb RW |
10161 | done |
10162 | IFS=$as_save_IFS | |
c6b750e1 | 10163 | |
55db4b87 PB |
10164 | fi |
10165 | fi | |
c6b750e1 | 10166 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10167 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10169 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10170 | else |
81ecdfbb RW |
10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10172 | $as_echo "no" >&6; } | |
55db4b87 PB |
10173 | fi |
10174 | ||
81ecdfbb | 10175 | |
2429c060 PB |
10176 | fi |
10177 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10178 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10179 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10181 | $as_echo_n "checking for $ac_word... " >&6; } | |
10182 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10183 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10184 | else |
05cbd757 PB |
10185 | if test -n "$CXX_FOR_TARGET"; then |
10186 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10187 | else |
c6b750e1 DJ |
10188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10189 | for as_dir in $PATH | |
10190 | do | |
10191 | IFS=$as_save_IFS | |
10192 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10193 | for ac_exec_ext in '' $ac_executable_extensions; do |
10194 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10195 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10196 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10197 | break 2 |
10198 | fi | |
10199 | done | |
81ecdfbb RW |
10200 | done |
10201 | IFS=$as_save_IFS | |
c6b750e1 | 10202 | |
55db4b87 PB |
10203 | fi |
10204 | fi | |
c6b750e1 | 10205 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10206 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10208 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10209 | else |
81ecdfbb RW |
10210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10211 | $as_echo "no" >&6; } | |
55db4b87 | 10212 | fi |
c6b750e1 | 10213 | |
81ecdfbb | 10214 | |
2429c060 PB |
10215 | fi |
10216 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10217 | done | |
10218 | fi | |
c6b750e1 | 10219 | |
05cbd757 PB |
10220 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10221 | set dummy c++ g++ cxx gxx | |
10222 | if test $build = $target ; then | |
10223 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10224 | else |
05cbd757 | 10225 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10226 | fi |
d3f5afc4 MS |
10227 | else |
10228 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10229 | fi |
10230 | ||
9a819804 AO |
10231 | |
10232 | ||
10233 | if test -n "$GCC_FOR_TARGET"; then | |
10234 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10235 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10236 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10237 | fi | |
10238 | ||
10239 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10240 | for ncn_progname in gcc; do | |
10241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10242 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10244 | $as_echo_n "checking for $ac_word... " >&6; } | |
10245 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10246 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10247 | else |
10248 | if test -n "$GCC_FOR_TARGET"; then | |
10249 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10250 | else | |
10251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10252 | for as_dir in $PATH | |
10253 | do | |
10254 | IFS=$as_save_IFS | |
10255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10256 | for ac_exec_ext in '' $ac_executable_extensions; do |
10257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10258 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10260 | break 2 |
10261 | fi | |
10262 | done | |
81ecdfbb RW |
10263 | done |
10264 | IFS=$as_save_IFS | |
9a819804 AO |
10265 | |
10266 | fi | |
10267 | fi | |
10268 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10269 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10271 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10272 | else |
81ecdfbb RW |
10273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10274 | $as_echo "no" >&6; } | |
9a819804 AO |
10275 | fi |
10276 | ||
81ecdfbb | 10277 | |
9a819804 AO |
10278 | done |
10279 | fi | |
10280 | ||
10281 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10282 | for ncn_progname in gcc; do |
81ecdfbb RW |
10283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10284 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10285 | if test -x $with_build_time_tools/${ncn_progname}; then |
10286 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10288 | $as_echo "yes" >&6; } | |
2429c060 PB |
10289 | break |
10290 | else | |
81ecdfbb RW |
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10292 | $as_echo "no" >&6; } | |
2429c060 PB |
10293 | fi |
10294 | done | |
10295 | fi | |
10296 | ||
10297 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10298 | for ncn_progname in gcc; do | |
10299 | if test -n "$ncn_target_tool_prefix"; then | |
10300 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10301 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10303 | $as_echo_n "checking for $ac_word... " >&6; } | |
10304 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10305 | $as_echo_n "(cached) " >&6 | |
859789af | 10306 | else |
2429c060 PB |
10307 | if test -n "$GCC_FOR_TARGET"; then |
10308 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10309 | else |
c6b750e1 DJ |
10310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10311 | for as_dir in $PATH | |
10312 | do | |
10313 | IFS=$as_save_IFS | |
10314 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10315 | for ac_exec_ext in '' $ac_executable_extensions; do |
10316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10317 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10319 | break 2 |
10320 | fi | |
10321 | done | |
81ecdfbb RW |
10322 | done |
10323 | IFS=$as_save_IFS | |
c6b750e1 | 10324 | |
55db4b87 PB |
10325 | fi |
10326 | fi | |
c6b750e1 | 10327 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10328 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10330 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10331 | else |
81ecdfbb RW |
10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10333 | $as_echo "no" >&6; } | |
55db4b87 PB |
10334 | fi |
10335 | ||
81ecdfbb | 10336 | |
2429c060 PB |
10337 | fi |
10338 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10339 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10340 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10342 | $as_echo_n "checking for $ac_word... " >&6; } | |
10343 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10344 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10345 | else |
05cbd757 PB |
10346 | if test -n "$GCC_FOR_TARGET"; then |
10347 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10348 | else |
c6b750e1 DJ |
10349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10350 | for as_dir in $PATH | |
10351 | do | |
10352 | IFS=$as_save_IFS | |
10353 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10354 | for ac_exec_ext in '' $ac_executable_extensions; do |
10355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10356 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10358 | break 2 |
10359 | fi | |
10360 | done | |
81ecdfbb RW |
10361 | done |
10362 | IFS=$as_save_IFS | |
c6b750e1 | 10363 | |
55db4b87 PB |
10364 | fi |
10365 | fi | |
c6b750e1 | 10366 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10367 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10369 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10370 | else |
81ecdfbb RW |
10371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10372 | $as_echo "no" >&6; } | |
55db4b87 | 10373 | fi |
c6b750e1 | 10374 | |
81ecdfbb | 10375 | |
2429c060 PB |
10376 | fi |
10377 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10378 | done | |
10379 | fi | |
c6b750e1 | 10380 | |
05cbd757 PB |
10381 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10382 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10383 | else |
10384 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10385 | fi |
10386 | ||
9a819804 AO |
10387 | |
10388 | ||
10389 | if test -n "$GCJ_FOR_TARGET"; then | |
10390 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10391 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10392 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10393 | fi | |
10394 | ||
10395 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10396 | for ncn_progname in gcj; do | |
10397 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10398 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10400 | $as_echo_n "checking for $ac_word... " >&6; } | |
10401 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10402 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10403 | else |
10404 | if test -n "$GCJ_FOR_TARGET"; then | |
10405 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10406 | else | |
10407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10408 | for as_dir in $PATH | |
10409 | do | |
10410 | IFS=$as_save_IFS | |
10411 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10412 | for ac_exec_ext in '' $ac_executable_extensions; do |
10413 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10414 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10415 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10416 | break 2 |
10417 | fi | |
10418 | done | |
81ecdfbb RW |
10419 | done |
10420 | IFS=$as_save_IFS | |
9a819804 AO |
10421 | |
10422 | fi | |
10423 | fi | |
10424 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10425 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10427 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10428 | else |
81ecdfbb RW |
10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10430 | $as_echo "no" >&6; } | |
9a819804 AO |
10431 | fi |
10432 | ||
81ecdfbb | 10433 | |
9a819804 AO |
10434 | done |
10435 | fi | |
10436 | ||
10437 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10438 | for ncn_progname in gcj; do |
81ecdfbb RW |
10439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10440 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10441 | if test -x $with_build_time_tools/${ncn_progname}; then |
10442 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10444 | $as_echo "yes" >&6; } | |
2429c060 PB |
10445 | break |
10446 | else | |
81ecdfbb RW |
10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10448 | $as_echo "no" >&6; } | |
2429c060 PB |
10449 | fi |
10450 | done | |
10451 | fi | |
10452 | ||
10453 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10454 | for ncn_progname in gcj; do | |
10455 | if test -n "$ncn_target_tool_prefix"; then | |
10456 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10457 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10459 | $as_echo_n "checking for $ac_word... " >&6; } | |
10460 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10461 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10462 | else |
10463 | if test -n "$GCJ_FOR_TARGET"; then | |
10464 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10465 | else | |
c6b750e1 DJ |
10466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10467 | for as_dir in $PATH | |
10468 | do | |
10469 | IFS=$as_save_IFS | |
10470 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10471 | for ac_exec_ext in '' $ac_executable_extensions; do |
10472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10473 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10475 | break 2 |
10476 | fi | |
10477 | done | |
81ecdfbb RW |
10478 | done |
10479 | IFS=$as_save_IFS | |
c6b750e1 | 10480 | |
55db4b87 PB |
10481 | fi |
10482 | fi | |
9a819804 AO |
10483 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10484 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10486 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10487 | else |
81ecdfbb RW |
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10489 | $as_echo "no" >&6; } | |
9a819804 AO |
10490 | fi |
10491 | ||
81ecdfbb | 10492 | |
9a819804 AO |
10493 | fi |
10494 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10495 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10496 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10498 | $as_echo_n "checking for $ac_word... " >&6; } | |
10499 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10500 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10501 | else |
10502 | if test -n "$GCJ_FOR_TARGET"; then | |
10503 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10504 | else | |
10505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10506 | for as_dir in $PATH | |
10507 | do | |
10508 | IFS=$as_save_IFS | |
10509 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10510 | for ac_exec_ext in '' $ac_executable_extensions; do |
10511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10512 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10513 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10514 | break 2 |
10515 | fi | |
10516 | done | |
81ecdfbb RW |
10517 | done |
10518 | IFS=$as_save_IFS | |
9a819804 AO |
10519 | |
10520 | fi | |
10521 | fi | |
10522 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10523 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10525 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10526 | else |
81ecdfbb RW |
10527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10528 | $as_echo "no" >&6; } | |
9a819804 AO |
10529 | fi |
10530 | ||
81ecdfbb | 10531 | |
9a819804 AO |
10532 | fi |
10533 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10534 | done | |
10535 | fi | |
10536 | ||
10537 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10538 | set dummy gcj | |
10539 | if test $build = $target ; then | |
10540 | GCJ_FOR_TARGET="$2" | |
10541 | else | |
10542 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10543 | fi | |
d3f5afc4 MS |
10544 | else |
10545 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10546 | fi |
10547 | ||
10548 | ||
10549 | ||
10550 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10551 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10552 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10553 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10554 | fi |
10555 | ||
9a819804 AO |
10556 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10557 | for ncn_progname in gfortran; do | |
10558 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10559 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10561 | $as_echo_n "checking for $ac_word... " >&6; } | |
10562 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10563 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10564 | else |
9a819804 AO |
10565 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10566 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10567 | else |
c6b750e1 DJ |
10568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10569 | for as_dir in $PATH | |
10570 | do | |
10571 | IFS=$as_save_IFS | |
10572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10573 | for ac_exec_ext in '' $ac_executable_extensions; do |
10574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10575 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10577 | break 2 |
10578 | fi | |
10579 | done | |
81ecdfbb RW |
10580 | done |
10581 | IFS=$as_save_IFS | |
c6b750e1 | 10582 | |
55db4b87 PB |
10583 | fi |
10584 | fi | |
9a819804 AO |
10585 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10586 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10588 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10589 | else |
81ecdfbb RW |
10590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10591 | $as_echo "no" >&6; } | |
55db4b87 | 10592 | fi |
c6b750e1 | 10593 | |
81ecdfbb | 10594 | |
2429c060 PB |
10595 | done |
10596 | fi | |
c6b750e1 | 10597 | |
9a819804 | 10598 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10599 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10601 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10602 | if test -x $with_build_time_tools/${ncn_progname}; then |
10603 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10605 | $as_echo "yes" >&6; } | |
2429c060 PB |
10606 | break |
10607 | else | |
81ecdfbb RW |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10609 | $as_echo "no" >&6; } | |
2429c060 PB |
10610 | fi |
10611 | done | |
10612 | fi | |
10613 | ||
10614 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10615 | for ncn_progname in gfortran; do | |
10616 | if test -n "$ncn_target_tool_prefix"; then | |
10617 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10618 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10620 | $as_echo_n "checking for $ac_word... " >&6; } | |
10621 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10622 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10623 | else |
10624 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10625 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10626 | else | |
c6b750e1 DJ |
10627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10628 | for as_dir in $PATH | |
10629 | do | |
10630 | IFS=$as_save_IFS | |
10631 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10632 | for ac_exec_ext in '' $ac_executable_extensions; do |
10633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10634 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10636 | break 2 |
10637 | fi | |
10638 | done | |
81ecdfbb RW |
10639 | done |
10640 | IFS=$as_save_IFS | |
c6b750e1 | 10641 | |
55db4b87 PB |
10642 | fi |
10643 | fi | |
c6b750e1 | 10644 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10645 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10647 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10648 | else |
81ecdfbb RW |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10650 | $as_echo "no" >&6; } | |
55db4b87 PB |
10651 | fi |
10652 | ||
81ecdfbb | 10653 | |
2429c060 PB |
10654 | fi |
10655 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10656 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10657 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10659 | $as_echo_n "checking for $ac_word... " >&6; } | |
10660 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10661 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10662 | else |
05cbd757 | 10663 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10664 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10665 | else | |
10666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10667 | for as_dir in $PATH | |
10668 | do | |
10669 | IFS=$as_save_IFS | |
10670 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10671 | for ac_exec_ext in '' $ac_executable_extensions; do |
10672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10673 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10675 | break 2 |
10676 | fi | |
10677 | done | |
81ecdfbb RW |
10678 | done |
10679 | IFS=$as_save_IFS | |
c6b750e1 | 10680 | |
55db4b87 PB |
10681 | fi |
10682 | fi | |
c6b750e1 | 10683 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10684 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10686 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10687 | else |
81ecdfbb RW |
10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10689 | $as_echo "no" >&6; } | |
55db4b87 | 10690 | fi |
c6b750e1 | 10691 | |
81ecdfbb | 10692 | |
2429c060 PB |
10693 | fi |
10694 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10695 | done | |
10696 | fi | |
c6b750e1 | 10697 | |
05cbd757 PB |
10698 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10699 | set dummy gfortran | |
10700 | if test $build = $target ; then | |
10701 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10702 | else |
05cbd757 | 10703 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10704 | fi |
d3f5afc4 MS |
10705 | else |
10706 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10707 | fi |
10708 | ||
2429c060 PB |
10709 | |
10710 | ||
e552509b ILT |
10711 | if test -n "$GOC_FOR_TARGET"; then |
10712 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10713 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10714 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10715 | fi | |
10716 | ||
10717 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10718 | for ncn_progname in gccgo; do | |
10719 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10720 | set dummy ${ncn_progname}; ac_word=$2 | |
10721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10722 | $as_echo_n "checking for $ac_word... " >&6; } | |
10723 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10724 | $as_echo_n "(cached) " >&6 | |
10725 | else | |
10726 | if test -n "$GOC_FOR_TARGET"; then | |
10727 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10728 | else | |
10729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10730 | for as_dir in $PATH | |
10731 | do | |
10732 | IFS=$as_save_IFS | |
10733 | test -z "$as_dir" && as_dir=. | |
10734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10736 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10738 | break 2 | |
10739 | fi | |
10740 | done | |
10741 | done | |
10742 | IFS=$as_save_IFS | |
10743 | ||
10744 | fi | |
10745 | fi | |
10746 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10747 | if test -n "$GOC_FOR_TARGET"; then | |
10748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10749 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10750 | else | |
10751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10752 | $as_echo "no" >&6; } | |
10753 | fi | |
10754 | ||
10755 | ||
10756 | done | |
10757 | fi | |
10758 | ||
10759 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10760 | for ncn_progname in gccgo; do | |
10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10762 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10763 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10764 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10766 | $as_echo "yes" >&6; } | |
10767 | break | |
10768 | else | |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10770 | $as_echo "no" >&6; } | |
10771 | fi | |
10772 | done | |
10773 | fi | |
10774 | ||
10775 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10776 | for ncn_progname in gccgo; do | |
10777 | if test -n "$ncn_target_tool_prefix"; then | |
10778 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10779 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10781 | $as_echo_n "checking for $ac_word... " >&6; } | |
10782 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10783 | $as_echo_n "(cached) " >&6 | |
10784 | else | |
10785 | if test -n "$GOC_FOR_TARGET"; then | |
10786 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10787 | else | |
10788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10789 | for as_dir in $PATH | |
10790 | do | |
10791 | IFS=$as_save_IFS | |
10792 | test -z "$as_dir" && as_dir=. | |
10793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10795 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10797 | break 2 | |
10798 | fi | |
10799 | done | |
10800 | done | |
10801 | IFS=$as_save_IFS | |
10802 | ||
10803 | fi | |
10804 | fi | |
10805 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10806 | if test -n "$GOC_FOR_TARGET"; then | |
10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10808 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10809 | else | |
10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10811 | $as_echo "no" >&6; } | |
10812 | fi | |
10813 | ||
10814 | ||
10815 | fi | |
10816 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10817 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10818 | set dummy ${ncn_progname}; ac_word=$2 | |
10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10820 | $as_echo_n "checking for $ac_word... " >&6; } | |
10821 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10822 | $as_echo_n "(cached) " >&6 | |
10823 | else | |
10824 | if test -n "$GOC_FOR_TARGET"; then | |
10825 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10826 | else | |
10827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10828 | for as_dir in $PATH | |
10829 | do | |
10830 | IFS=$as_save_IFS | |
10831 | test -z "$as_dir" && as_dir=. | |
10832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10834 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10836 | break 2 | |
10837 | fi | |
10838 | done | |
10839 | done | |
10840 | IFS=$as_save_IFS | |
10841 | ||
10842 | fi | |
10843 | fi | |
10844 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10845 | if test -n "$GOC_FOR_TARGET"; then | |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10847 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10848 | else | |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10850 | $as_echo "no" >&6; } | |
10851 | fi | |
10852 | ||
10853 | ||
10854 | fi | |
10855 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10856 | done | |
10857 | fi | |
10858 | ||
10859 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10860 | set dummy gccgo | |
10861 | if test $build = $target ; then | |
10862 | GOC_FOR_TARGET="$2" | |
10863 | else | |
10864 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10865 | fi | |
10866 | else | |
10867 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10868 | fi | |
10869 | ||
10870 | ||
10871 | ||
2429c060 PB |
10872 | cat > conftest.c << \EOF |
10873 | #ifdef __GNUC__ | |
10874 | gcc_yay; | |
10875 | #endif | |
10876 | EOF | |
10877 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10878 | have_gcc_for_target=yes | |
859789af | 10879 | else |
2429c060 PB |
10880 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10881 | have_gcc_for_target=no | |
859789af | 10882 | fi |
2429c060 PB |
10883 | rm conftest.c |
10884 | ||
10885 | ||
10886 | ||
859789af | 10887 | |
2429c060 PB |
10888 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10889 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10891 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10892 | if test -x $with_build_time_tools/ar; then |
10893 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10894 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10896 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10897 | else |
81ecdfbb RW |
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10899 | $as_echo "no" >&6; } | |
3a35eeb3 | 10900 | fi |
2429c060 PB |
10901 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10902 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10903 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10904 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10905 | fi |
2429c060 | 10906 | fi |
c6b750e1 | 10907 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10908 | # Extract the first word of "ar", so it can be a program name with args. |
10909 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10911 | $as_echo_n "checking for $ac_word... " >&6; } | |
10912 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10913 | $as_echo_n "(cached) " >&6 | |
859789af | 10914 | else |
c6b750e1 DJ |
10915 | case $AR_FOR_TARGET in |
10916 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10917 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10918 | ;; | |
2429c060 | 10919 | *) |
c6b750e1 DJ |
10920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10921 | for as_dir in $gcc_cv_tool_dirs | |
10922 | do | |
10923 | IFS=$as_save_IFS | |
10924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10925 | for ac_exec_ext in '' $ac_executable_extensions; do |
10926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10927 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10929 | break 2 |
10930 | fi | |
10931 | done | |
81ecdfbb RW |
10932 | done |
10933 | IFS=$as_save_IFS | |
c6b750e1 | 10934 | |
2429c060 PB |
10935 | ;; |
10936 | esac | |
859789af | 10937 | fi |
c6b750e1 | 10938 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10939 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10941 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10942 | else |
81ecdfbb RW |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10944 | $as_echo "no" >&6; } | |
859789af | 10945 | fi |
05cbd757 | 10946 | |
81ecdfbb | 10947 | |
2429c060 PB |
10948 | fi |
10949 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10950 | |
10951 | ||
10952 | if test -n "$AR_FOR_TARGET"; then | |
10953 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10954 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10955 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10956 | fi | |
10957 | ||
10958 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10959 | for ncn_progname in ar; do | |
10960 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10961 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10963 | $as_echo_n "checking for $ac_word... " >&6; } | |
10964 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10965 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10966 | else |
10967 | if test -n "$AR_FOR_TARGET"; then | |
10968 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10969 | else | |
10970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10971 | for as_dir in $PATH | |
10972 | do | |
10973 | IFS=$as_save_IFS | |
10974 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10975 | for ac_exec_ext in '' $ac_executable_extensions; do |
10976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10977 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10979 | break 2 |
10980 | fi | |
10981 | done | |
81ecdfbb RW |
10982 | done |
10983 | IFS=$as_save_IFS | |
9a819804 AO |
10984 | |
10985 | fi | |
10986 | fi | |
10987 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10988 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10990 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10991 | else |
81ecdfbb RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10993 | $as_echo "no" >&6; } | |
9a819804 AO |
10994 | fi |
10995 | ||
81ecdfbb | 10996 | |
9a819804 AO |
10997 | done |
10998 | fi | |
10999 | ||
11000 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11001 | for ncn_progname in ar; do |
81ecdfbb RW |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11003 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11004 | if test -x $with_build_time_tools/${ncn_progname}; then |
11005 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11007 | $as_echo "yes" >&6; } | |
2429c060 PB |
11008 | break |
11009 | else | |
81ecdfbb RW |
11010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11011 | $as_echo "no" >&6; } | |
2429c060 PB |
11012 | fi |
11013 | done | |
859789af AC |
11014 | fi |
11015 | ||
2429c060 PB |
11016 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11017 | for ncn_progname in ar; do | |
11018 | if test -n "$ncn_target_tool_prefix"; then | |
11019 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11020 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11022 | $as_echo_n "checking for $ac_word... " >&6; } | |
11023 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11024 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11025 | else |
2429c060 PB |
11026 | if test -n "$AR_FOR_TARGET"; then |
11027 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11028 | else |
c6b750e1 DJ |
11029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11030 | for as_dir in $PATH | |
11031 | do | |
11032 | IFS=$as_save_IFS | |
11033 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11034 | for ac_exec_ext in '' $ac_executable_extensions; do |
11035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11036 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11038 | break 2 |
11039 | fi | |
11040 | done | |
81ecdfbb RW |
11041 | done |
11042 | IFS=$as_save_IFS | |
c6b750e1 | 11043 | |
7e0f7140 GK |
11044 | fi |
11045 | fi | |
c6b750e1 | 11046 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11047 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11049 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11050 | else |
81ecdfbb RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11052 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11053 | fi |
11054 | ||
81ecdfbb | 11055 | |
2429c060 PB |
11056 | fi |
11057 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11058 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11059 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11061 | $as_echo_n "checking for $ac_word... " >&6; } | |
11062 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11063 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11064 | else |
2429c060 PB |
11065 | if test -n "$AR_FOR_TARGET"; then |
11066 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11067 | else |
c6b750e1 DJ |
11068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11069 | for as_dir in $PATH | |
11070 | do | |
11071 | IFS=$as_save_IFS | |
11072 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11073 | for ac_exec_ext in '' $ac_executable_extensions; do |
11074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11075 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11076 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11077 | break 2 |
11078 | fi | |
11079 | done | |
81ecdfbb RW |
11080 | done |
11081 | IFS=$as_save_IFS | |
c6b750e1 | 11082 | |
7e0f7140 GK |
11083 | fi |
11084 | fi | |
c6b750e1 | 11085 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11086 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11088 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11089 | else |
81ecdfbb RW |
11090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11091 | $as_echo "no" >&6; } | |
7e0f7140 | 11092 | fi |
c6b750e1 | 11093 | |
81ecdfbb | 11094 | |
2429c060 PB |
11095 | fi |
11096 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11097 | done | |
11098 | fi | |
c6b750e1 | 11099 | |
2429c060 PB |
11100 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11101 | set dummy ar | |
7e0f7140 | 11102 | if test $build = $target ; then |
2429c060 | 11103 | AR_FOR_TARGET="$2" |
7e0f7140 | 11104 | else |
2429c060 | 11105 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11106 | fi |
d3f5afc4 MS |
11107 | else |
11108 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11109 | fi |
11110 | ||
3a35eeb3 PB |
11111 | else |
11112 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11113 | fi |
11114 | ||
11115 | ||
11116 | ||
11117 | ||
11118 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11119 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11121 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11122 | if test -x $with_build_time_tools/as; then |
11123 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11124 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11126 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11127 | else |
81ecdfbb RW |
11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11129 | $as_echo "no" >&6; } | |
3a35eeb3 | 11130 | fi |
2429c060 PB |
11131 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11132 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11133 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11134 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11135 | fi |
11136 | fi | |
c6b750e1 | 11137 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11138 | # Extract the first word of "as", so it can be a program name with args. |
11139 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11141 | $as_echo_n "checking for $ac_word... " >&6; } | |
11142 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11143 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11144 | else |
c6b750e1 DJ |
11145 | case $AS_FOR_TARGET in |
11146 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11147 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11148 | ;; | |
2429c060 | 11149 | *) |
c6b750e1 DJ |
11150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11151 | for as_dir in $gcc_cv_tool_dirs | |
11152 | do | |
11153 | IFS=$as_save_IFS | |
11154 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11155 | for ac_exec_ext in '' $ac_executable_extensions; do |
11156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11157 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11159 | break 2 |
11160 | fi | |
11161 | done | |
81ecdfbb RW |
11162 | done |
11163 | IFS=$as_save_IFS | |
c6b750e1 | 11164 | |
2429c060 PB |
11165 | ;; |
11166 | esac | |
11167 | fi | |
c6b750e1 | 11168 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11169 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11171 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11172 | else |
81ecdfbb RW |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11174 | $as_echo "no" >&6; } | |
2429c060 PB |
11175 | fi |
11176 | ||
81ecdfbb | 11177 | |
2429c060 PB |
11178 | fi |
11179 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11180 | |
11181 | ||
11182 | if test -n "$AS_FOR_TARGET"; then | |
11183 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11184 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11185 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11186 | fi | |
11187 | ||
11188 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11189 | for ncn_progname in as; do | |
11190 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11191 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11193 | $as_echo_n "checking for $ac_word... " >&6; } | |
11194 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11195 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11196 | else |
11197 | if test -n "$AS_FOR_TARGET"; then | |
11198 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11199 | else | |
11200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11201 | for as_dir in $PATH | |
11202 | do | |
11203 | IFS=$as_save_IFS | |
11204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11205 | for ac_exec_ext in '' $ac_executable_extensions; do |
11206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11207 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11209 | break 2 |
11210 | fi | |
11211 | done | |
81ecdfbb RW |
11212 | done |
11213 | IFS=$as_save_IFS | |
9a819804 AO |
11214 | |
11215 | fi | |
11216 | fi | |
11217 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11218 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11220 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11221 | else |
81ecdfbb RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11223 | $as_echo "no" >&6; } | |
9a819804 AO |
11224 | fi |
11225 | ||
81ecdfbb | 11226 | |
9a819804 AO |
11227 | done |
11228 | fi | |
11229 | ||
11230 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11231 | for ncn_progname in as; do |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11233 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11234 | if test -x $with_build_time_tools/${ncn_progname}; then |
11235 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11237 | $as_echo "yes" >&6; } | |
2429c060 PB |
11238 | break |
11239 | else | |
81ecdfbb RW |
11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11241 | $as_echo "no" >&6; } | |
2429c060 PB |
11242 | fi |
11243 | done | |
11244 | fi | |
11245 | ||
11246 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11247 | for ncn_progname in as; do | |
11248 | if test -n "$ncn_target_tool_prefix"; then | |
11249 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11250 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11252 | $as_echo_n "checking for $ac_word... " >&6; } | |
11253 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11254 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11255 | else |
11256 | if test -n "$AS_FOR_TARGET"; then | |
11257 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11258 | else | |
c6b750e1 DJ |
11259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11260 | for as_dir in $PATH | |
11261 | do | |
11262 | IFS=$as_save_IFS | |
11263 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11264 | for ac_exec_ext in '' $ac_executable_extensions; do |
11265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11266 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11268 | break 2 |
11269 | fi | |
11270 | done | |
81ecdfbb RW |
11271 | done |
11272 | IFS=$as_save_IFS | |
c6b750e1 | 11273 | |
2429c060 PB |
11274 | fi |
11275 | fi | |
c6b750e1 | 11276 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11277 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11279 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11280 | else |
81ecdfbb RW |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11282 | $as_echo "no" >&6; } | |
2429c060 PB |
11283 | fi |
11284 | ||
81ecdfbb | 11285 | |
2429c060 PB |
11286 | fi |
11287 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11288 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11289 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11291 | $as_echo_n "checking for $ac_word... " >&6; } | |
11292 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11293 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11294 | else |
11295 | if test -n "$AS_FOR_TARGET"; then | |
11296 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11297 | else | |
c6b750e1 DJ |
11298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11299 | for as_dir in $PATH | |
11300 | do | |
11301 | IFS=$as_save_IFS | |
11302 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11303 | for ac_exec_ext in '' $ac_executable_extensions; do |
11304 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11305 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11306 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11307 | break 2 |
11308 | fi | |
11309 | done | |
81ecdfbb RW |
11310 | done |
11311 | IFS=$as_save_IFS | |
c6b750e1 | 11312 | |
2429c060 PB |
11313 | fi |
11314 | fi | |
c6b750e1 | 11315 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11316 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11318 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11319 | else |
81ecdfbb RW |
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11321 | $as_echo "no" >&6; } | |
2429c060 | 11322 | fi |
c6b750e1 | 11323 | |
81ecdfbb | 11324 | |
2429c060 PB |
11325 | fi |
11326 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11327 | done | |
11328 | fi | |
c6b750e1 | 11329 | |
2429c060 PB |
11330 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11331 | set dummy as | |
11332 | if test $build = $target ; then | |
11333 | AS_FOR_TARGET="$2" | |
11334 | else | |
11335 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11336 | fi | |
d3f5afc4 MS |
11337 | else |
11338 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11339 | fi |
11340 | ||
3a35eeb3 PB |
11341 | else |
11342 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11343 | fi |
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11349 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11351 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11352 | if test -x $with_build_time_tools/dlltool; then |
11353 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11354 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11356 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11357 | else |
81ecdfbb RW |
11358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11359 | $as_echo "no" >&6; } | |
3a35eeb3 | 11360 | fi |
2429c060 PB |
11361 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11362 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11363 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11364 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11365 | fi |
11366 | fi | |
c6b750e1 | 11367 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11368 | # Extract the first word of "dlltool", so it can be a program name with args. |
11369 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11371 | $as_echo_n "checking for $ac_word... " >&6; } | |
11372 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11373 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11374 | else |
c6b750e1 DJ |
11375 | case $DLLTOOL_FOR_TARGET in |
11376 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11377 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11378 | ;; | |
2429c060 | 11379 | *) |
c6b750e1 DJ |
11380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11381 | for as_dir in $gcc_cv_tool_dirs | |
11382 | do | |
11383 | IFS=$as_save_IFS | |
11384 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11385 | for ac_exec_ext in '' $ac_executable_extensions; do |
11386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11387 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11389 | break 2 |
11390 | fi | |
11391 | done | |
81ecdfbb RW |
11392 | done |
11393 | IFS=$as_save_IFS | |
c6b750e1 | 11394 | |
2429c060 PB |
11395 | ;; |
11396 | esac | |
11397 | fi | |
c6b750e1 | 11398 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11399 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11401 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11402 | else |
81ecdfbb RW |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11404 | $as_echo "no" >&6; } | |
2429c060 PB |
11405 | fi |
11406 | ||
81ecdfbb | 11407 | |
2429c060 PB |
11408 | fi |
11409 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11410 | |
11411 | ||
11412 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11413 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11414 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11415 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11416 | fi | |
11417 | ||
11418 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11419 | for ncn_progname in dlltool; do | |
11420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11421 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11423 | $as_echo_n "checking for $ac_word... " >&6; } | |
11424 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11425 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11426 | else |
11427 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11428 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11429 | else | |
11430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11431 | for as_dir in $PATH | |
11432 | do | |
11433 | IFS=$as_save_IFS | |
11434 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11435 | for ac_exec_ext in '' $ac_executable_extensions; do |
11436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11437 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11439 | break 2 |
11440 | fi | |
11441 | done | |
81ecdfbb RW |
11442 | done |
11443 | IFS=$as_save_IFS | |
9a819804 AO |
11444 | |
11445 | fi | |
11446 | fi | |
11447 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11448 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11450 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11451 | else |
81ecdfbb RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11453 | $as_echo "no" >&6; } | |
9a819804 AO |
11454 | fi |
11455 | ||
81ecdfbb | 11456 | |
9a819804 AO |
11457 | done |
11458 | fi | |
11459 | ||
11460 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11461 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11463 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11464 | if test -x $with_build_time_tools/${ncn_progname}; then |
11465 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11467 | $as_echo "yes" >&6; } | |
2429c060 PB |
11468 | break |
11469 | else | |
81ecdfbb RW |
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11471 | $as_echo "no" >&6; } | |
2429c060 PB |
11472 | fi |
11473 | done | |
11474 | fi | |
11475 | ||
11476 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11477 | for ncn_progname in dlltool; do | |
11478 | if test -n "$ncn_target_tool_prefix"; then | |
11479 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11480 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11482 | $as_echo_n "checking for $ac_word... " >&6; } | |
11483 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11484 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11485 | else |
11486 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11487 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11488 | else | |
c6b750e1 DJ |
11489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11490 | for as_dir in $PATH | |
11491 | do | |
11492 | IFS=$as_save_IFS | |
11493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11494 | for ac_exec_ext in '' $ac_executable_extensions; do |
11495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11496 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11498 | break 2 |
11499 | fi | |
11500 | done | |
81ecdfbb RW |
11501 | done |
11502 | IFS=$as_save_IFS | |
c6b750e1 | 11503 | |
2429c060 PB |
11504 | fi |
11505 | fi | |
c6b750e1 | 11506 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11507 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11509 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11510 | else |
81ecdfbb RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11512 | $as_echo "no" >&6; } | |
2429c060 PB |
11513 | fi |
11514 | ||
81ecdfbb | 11515 | |
2429c060 PB |
11516 | fi |
11517 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11518 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11519 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11521 | $as_echo_n "checking for $ac_word... " >&6; } | |
11522 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11523 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11524 | else |
11525 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11526 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11527 | else | |
c6b750e1 DJ |
11528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11529 | for as_dir in $PATH | |
11530 | do | |
11531 | IFS=$as_save_IFS | |
11532 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11533 | for ac_exec_ext in '' $ac_executable_extensions; do |
11534 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11535 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11537 | break 2 |
11538 | fi | |
11539 | done | |
81ecdfbb RW |
11540 | done |
11541 | IFS=$as_save_IFS | |
c6b750e1 | 11542 | |
2429c060 PB |
11543 | fi |
11544 | fi | |
c6b750e1 | 11545 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11546 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11548 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11549 | else |
81ecdfbb RW |
11550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11551 | $as_echo "no" >&6; } | |
2429c060 | 11552 | fi |
c6b750e1 | 11553 | |
81ecdfbb | 11554 | |
2429c060 PB |
11555 | fi |
11556 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11557 | done | |
11558 | fi | |
c6b750e1 | 11559 | |
2429c060 PB |
11560 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11561 | set dummy dlltool | |
11562 | if test $build = $target ; then | |
11563 | DLLTOOL_FOR_TARGET="$2" | |
11564 | else | |
11565 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11566 | fi | |
d3f5afc4 MS |
11567 | else |
11568 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11569 | fi |
11570 | ||
3a35eeb3 PB |
11571 | else |
11572 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11573 | fi |
11574 | ||
11575 | ||
11576 | ||
11577 | ||
11578 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11579 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11581 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11582 | if test -x $with_build_time_tools/ld; then |
11583 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11584 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11586 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11587 | else |
81ecdfbb RW |
11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11589 | $as_echo "no" >&6; } | |
3a35eeb3 | 11590 | fi |
2429c060 PB |
11591 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11592 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11593 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11594 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11595 | fi |
11596 | fi | |
c6b750e1 | 11597 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11598 | # Extract the first word of "ld", so it can be a program name with args. |
11599 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11601 | $as_echo_n "checking for $ac_word... " >&6; } | |
11602 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11603 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11604 | else |
c6b750e1 DJ |
11605 | case $LD_FOR_TARGET in |
11606 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11607 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11608 | ;; | |
2429c060 | 11609 | *) |
c6b750e1 DJ |
11610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11611 | for as_dir in $gcc_cv_tool_dirs | |
11612 | do | |
11613 | IFS=$as_save_IFS | |
11614 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11615 | for ac_exec_ext in '' $ac_executable_extensions; do |
11616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11617 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11619 | break 2 |
11620 | fi | |
11621 | done | |
81ecdfbb RW |
11622 | done |
11623 | IFS=$as_save_IFS | |
c6b750e1 | 11624 | |
2429c060 PB |
11625 | ;; |
11626 | esac | |
11627 | fi | |
c6b750e1 | 11628 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11629 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11631 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11632 | else |
81ecdfbb RW |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11634 | $as_echo "no" >&6; } | |
2429c060 PB |
11635 | fi |
11636 | ||
81ecdfbb | 11637 | |
2429c060 PB |
11638 | fi |
11639 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11640 | |
11641 | ||
11642 | if test -n "$LD_FOR_TARGET"; then | |
11643 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11644 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11645 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11646 | fi | |
11647 | ||
11648 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11649 | for ncn_progname in ld; do | |
11650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11651 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11653 | $as_echo_n "checking for $ac_word... " >&6; } | |
11654 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11655 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11656 | else |
11657 | if test -n "$LD_FOR_TARGET"; then | |
11658 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11659 | else | |
11660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11661 | for as_dir in $PATH | |
11662 | do | |
11663 | IFS=$as_save_IFS | |
11664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11665 | for ac_exec_ext in '' $ac_executable_extensions; do |
11666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11667 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11669 | break 2 |
11670 | fi | |
11671 | done | |
81ecdfbb RW |
11672 | done |
11673 | IFS=$as_save_IFS | |
9a819804 AO |
11674 | |
11675 | fi | |
11676 | fi | |
11677 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11678 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11680 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11681 | else |
81ecdfbb RW |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11683 | $as_echo "no" >&6; } | |
9a819804 AO |
11684 | fi |
11685 | ||
81ecdfbb | 11686 | |
9a819804 AO |
11687 | done |
11688 | fi | |
11689 | ||
11690 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11691 | for ncn_progname in ld; do |
81ecdfbb RW |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11693 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11694 | if test -x $with_build_time_tools/${ncn_progname}; then |
11695 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11697 | $as_echo "yes" >&6; } | |
2429c060 PB |
11698 | break |
11699 | else | |
81ecdfbb RW |
11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11701 | $as_echo "no" >&6; } | |
2429c060 PB |
11702 | fi |
11703 | done | |
11704 | fi | |
11705 | ||
11706 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11707 | for ncn_progname in ld; do | |
11708 | if test -n "$ncn_target_tool_prefix"; then | |
11709 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11710 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11712 | $as_echo_n "checking for $ac_word... " >&6; } | |
11713 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11714 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11715 | else |
11716 | if test -n "$LD_FOR_TARGET"; then | |
11717 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11718 | else | |
c6b750e1 DJ |
11719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11720 | for as_dir in $PATH | |
11721 | do | |
11722 | IFS=$as_save_IFS | |
11723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11724 | for ac_exec_ext in '' $ac_executable_extensions; do |
11725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11726 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11728 | break 2 |
11729 | fi | |
11730 | done | |
81ecdfbb RW |
11731 | done |
11732 | IFS=$as_save_IFS | |
c6b750e1 | 11733 | |
2429c060 PB |
11734 | fi |
11735 | fi | |
c6b750e1 | 11736 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11737 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11739 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11740 | else |
81ecdfbb RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11742 | $as_echo "no" >&6; } | |
2429c060 PB |
11743 | fi |
11744 | ||
81ecdfbb | 11745 | |
2429c060 PB |
11746 | fi |
11747 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11748 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11749 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11751 | $as_echo_n "checking for $ac_word... " >&6; } | |
11752 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11753 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11754 | else |
11755 | if test -n "$LD_FOR_TARGET"; then | |
11756 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11757 | else | |
c6b750e1 DJ |
11758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11759 | for as_dir in $PATH | |
11760 | do | |
11761 | IFS=$as_save_IFS | |
11762 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11763 | for ac_exec_ext in '' $ac_executable_extensions; do |
11764 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11765 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11766 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11767 | break 2 |
11768 | fi | |
11769 | done | |
81ecdfbb RW |
11770 | done |
11771 | IFS=$as_save_IFS | |
c6b750e1 | 11772 | |
2429c060 PB |
11773 | fi |
11774 | fi | |
c6b750e1 | 11775 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11776 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11778 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11779 | else |
81ecdfbb RW |
11780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11781 | $as_echo "no" >&6; } | |
2429c060 | 11782 | fi |
c6b750e1 | 11783 | |
81ecdfbb | 11784 | |
2429c060 PB |
11785 | fi |
11786 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11787 | done | |
11788 | fi | |
c6b750e1 | 11789 | |
2429c060 PB |
11790 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11791 | set dummy ld | |
11792 | if test $build = $target ; then | |
11793 | LD_FOR_TARGET="$2" | |
11794 | else | |
11795 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11796 | fi | |
d3f5afc4 MS |
11797 | else |
11798 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11799 | fi |
11800 | ||
3a35eeb3 PB |
11801 | else |
11802 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11803 | fi |
11804 | ||
11805 | ||
11806 | ||
11807 | ||
11808 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11809 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11811 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11812 | if test -x $with_build_time_tools/lipo; then |
11813 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11814 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11816 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11817 | else |
81ecdfbb RW |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11819 | $as_echo "no" >&6; } | |
3a35eeb3 | 11820 | fi |
2429c060 PB |
11821 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11822 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11823 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11824 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11825 | fi |
11826 | fi | |
9a819804 AO |
11827 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11828 | # Extract the first word of "lipo", so it can be a program name with args. | |
11829 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11831 | $as_echo_n "checking for $ac_word... " >&6; } | |
11832 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11833 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11834 | else |
11835 | case $LIPO_FOR_TARGET in | |
11836 | [\\/]* | ?:[\\/]*) | |
11837 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11838 | ;; | |
11839 | *) | |
11840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11841 | for as_dir in $gcc_cv_tool_dirs | |
11842 | do | |
11843 | IFS=$as_save_IFS | |
11844 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11845 | for ac_exec_ext in '' $ac_executable_extensions; do |
11846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11847 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11849 | break 2 |
11850 | fi | |
11851 | done | |
81ecdfbb RW |
11852 | done |
11853 | IFS=$as_save_IFS | |
9a819804 AO |
11854 | |
11855 | ;; | |
11856 | esac | |
11857 | fi | |
11858 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11859 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11861 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11862 | else |
81ecdfbb RW |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11864 | $as_echo "no" >&6; } | |
9a819804 AO |
11865 | fi |
11866 | ||
81ecdfbb | 11867 | |
9a819804 AO |
11868 | fi |
11869 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11870 | ||
11871 | ||
11872 | if test -n "$LIPO_FOR_TARGET"; then | |
11873 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11874 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11875 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11876 | fi | |
11877 | ||
11878 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11879 | for ncn_progname in lipo; do | |
11880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11881 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11883 | $as_echo_n "checking for $ac_word... " >&6; } | |
11884 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11885 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11886 | else |
9a819804 AO |
11887 | if test -n "$LIPO_FOR_TARGET"; then |
11888 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11889 | else | |
11890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11891 | for as_dir in $PATH | |
c6b750e1 DJ |
11892 | do |
11893 | IFS=$as_save_IFS | |
11894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11895 | for ac_exec_ext in '' $ac_executable_extensions; do |
11896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11897 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11899 | break 2 |
11900 | fi | |
11901 | done | |
81ecdfbb RW |
11902 | done |
11903 | IFS=$as_save_IFS | |
c6b750e1 | 11904 | |
2429c060 | 11905 | fi |
9a819804 AO |
11906 | fi |
11907 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11908 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11910 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11911 | else |
81ecdfbb RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11913 | $as_echo "no" >&6; } | |
2429c060 PB |
11914 | fi |
11915 | ||
81ecdfbb | 11916 | |
9a819804 | 11917 | done |
2429c060 | 11918 | fi |
9a819804 AO |
11919 | |
11920 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11921 | for ncn_progname in lipo; do |
81ecdfbb RW |
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11923 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11924 | if test -x $with_build_time_tools/${ncn_progname}; then |
11925 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11927 | $as_echo "yes" >&6; } | |
2429c060 PB |
11928 | break |
11929 | else | |
81ecdfbb RW |
11930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11931 | $as_echo "no" >&6; } | |
2429c060 PB |
11932 | fi |
11933 | done | |
11934 | fi | |
11935 | ||
11936 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11937 | for ncn_progname in lipo; do | |
11938 | if test -n "$ncn_target_tool_prefix"; then | |
11939 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11940 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11942 | $as_echo_n "checking for $ac_word... " >&6; } | |
11943 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11944 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11945 | else |
11946 | if test -n "$LIPO_FOR_TARGET"; then | |
11947 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11948 | else | |
c6b750e1 DJ |
11949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11950 | for as_dir in $PATH | |
11951 | do | |
11952 | IFS=$as_save_IFS | |
11953 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11954 | for ac_exec_ext in '' $ac_executable_extensions; do |
11955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11956 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11958 | break 2 |
11959 | fi | |
11960 | done | |
81ecdfbb RW |
11961 | done |
11962 | IFS=$as_save_IFS | |
c6b750e1 | 11963 | |
2429c060 PB |
11964 | fi |
11965 | fi | |
c6b750e1 | 11966 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11967 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11969 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11970 | else |
81ecdfbb RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11972 | $as_echo "no" >&6; } | |
2429c060 PB |
11973 | fi |
11974 | ||
81ecdfbb | 11975 | |
2429c060 PB |
11976 | fi |
11977 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11978 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11979 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11981 | $as_echo_n "checking for $ac_word... " >&6; } | |
11982 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11983 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11984 | else |
11985 | if test -n "$LIPO_FOR_TARGET"; then | |
11986 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11987 | else | |
c6b750e1 DJ |
11988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11989 | for as_dir in $PATH | |
11990 | do | |
11991 | IFS=$as_save_IFS | |
11992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11993 | for ac_exec_ext in '' $ac_executable_extensions; do |
11994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11995 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11997 | break 2 |
11998 | fi | |
11999 | done | |
81ecdfbb RW |
12000 | done |
12001 | IFS=$as_save_IFS | |
c6b750e1 | 12002 | |
2429c060 PB |
12003 | fi |
12004 | fi | |
c6b750e1 | 12005 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12006 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12008 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12009 | else |
81ecdfbb RW |
12010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12011 | $as_echo "no" >&6; } | |
2429c060 | 12012 | fi |
c6b750e1 | 12013 | |
81ecdfbb | 12014 | |
2429c060 PB |
12015 | fi |
12016 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12017 | done | |
12018 | fi | |
c6b750e1 | 12019 | |
2429c060 PB |
12020 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12021 | set dummy lipo | |
12022 | if test $build = $target ; then | |
12023 | LIPO_FOR_TARGET="$2" | |
12024 | else | |
12025 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12026 | fi | |
d3f5afc4 MS |
12027 | else |
12028 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12029 | fi |
12030 | ||
3a35eeb3 PB |
12031 | else |
12032 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12033 | fi |
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12039 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12041 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12042 | if test -x $with_build_time_tools/nm; then |
12043 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12044 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12046 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12047 | else |
81ecdfbb RW |
12048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12049 | $as_echo "no" >&6; } | |
3a35eeb3 | 12050 | fi |
2429c060 PB |
12051 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12052 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12053 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12054 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12055 | fi |
12056 | fi | |
c6b750e1 | 12057 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12058 | # Extract the first word of "nm", so it can be a program name with args. |
12059 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12060 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12061 | $as_echo_n "checking for $ac_word... " >&6; } | |
12062 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12063 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12064 | else |
c6b750e1 DJ |
12065 | case $NM_FOR_TARGET in |
12066 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12067 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12068 | ;; | |
2429c060 | 12069 | *) |
c6b750e1 DJ |
12070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12071 | for as_dir in $gcc_cv_tool_dirs | |
12072 | do | |
12073 | IFS=$as_save_IFS | |
12074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12075 | for ac_exec_ext in '' $ac_executable_extensions; do |
12076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12077 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12079 | break 2 |
12080 | fi | |
12081 | done | |
81ecdfbb RW |
12082 | done |
12083 | IFS=$as_save_IFS | |
c6b750e1 | 12084 | |
2429c060 PB |
12085 | ;; |
12086 | esac | |
12087 | fi | |
c6b750e1 | 12088 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12089 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12091 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12092 | else |
81ecdfbb RW |
12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12094 | $as_echo "no" >&6; } | |
2429c060 PB |
12095 | fi |
12096 | ||
81ecdfbb | 12097 | |
2429c060 PB |
12098 | fi |
12099 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12100 | |
12101 | ||
12102 | if test -n "$NM_FOR_TARGET"; then | |
12103 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12104 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12105 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12106 | fi | |
12107 | ||
12108 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12109 | for ncn_progname in nm; do | |
12110 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12111 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12113 | $as_echo_n "checking for $ac_word... " >&6; } | |
12114 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12115 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12116 | else |
12117 | if test -n "$NM_FOR_TARGET"; then | |
12118 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12119 | else | |
12120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12121 | for as_dir in $PATH | |
12122 | do | |
12123 | IFS=$as_save_IFS | |
12124 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12125 | for ac_exec_ext in '' $ac_executable_extensions; do |
12126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12127 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12129 | break 2 |
12130 | fi | |
12131 | done | |
81ecdfbb RW |
12132 | done |
12133 | IFS=$as_save_IFS | |
9a819804 AO |
12134 | |
12135 | fi | |
12136 | fi | |
12137 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12138 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12140 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12141 | else |
81ecdfbb RW |
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12143 | $as_echo "no" >&6; } | |
9a819804 AO |
12144 | fi |
12145 | ||
81ecdfbb | 12146 | |
9a819804 AO |
12147 | done |
12148 | fi | |
12149 | ||
12150 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12151 | for ncn_progname in nm; do |
81ecdfbb RW |
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12153 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12154 | if test -x $with_build_time_tools/${ncn_progname}; then |
12155 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12157 | $as_echo "yes" >&6; } | |
2429c060 PB |
12158 | break |
12159 | else | |
81ecdfbb RW |
12160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12161 | $as_echo "no" >&6; } | |
2429c060 PB |
12162 | fi |
12163 | done | |
12164 | fi | |
12165 | ||
12166 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12167 | for ncn_progname in nm; do | |
12168 | if test -n "$ncn_target_tool_prefix"; then | |
12169 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12170 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12172 | $as_echo_n "checking for $ac_word... " >&6; } | |
12173 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12174 | $as_echo_n "(cached) " >&6 | |
859789af | 12175 | else |
55db4b87 PB |
12176 | if test -n "$NM_FOR_TARGET"; then |
12177 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12178 | else |
c6b750e1 DJ |
12179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12180 | for as_dir in $PATH | |
12181 | do | |
12182 | IFS=$as_save_IFS | |
12183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12184 | for ac_exec_ext in '' $ac_executable_extensions; do |
12185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12186 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12188 | break 2 |
12189 | fi | |
12190 | done | |
81ecdfbb RW |
12191 | done |
12192 | IFS=$as_save_IFS | |
c6b750e1 | 12193 | |
859789af AC |
12194 | fi |
12195 | fi | |
c6b750e1 | 12196 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12197 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12199 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12200 | else |
81ecdfbb RW |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12202 | $as_echo "no" >&6; } | |
859789af AC |
12203 | fi |
12204 | ||
81ecdfbb | 12205 | |
2429c060 PB |
12206 | fi |
12207 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12208 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12209 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12211 | $as_echo_n "checking for $ac_word... " >&6; } | |
12212 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12213 | $as_echo_n "(cached) " >&6 | |
859789af | 12214 | else |
05cbd757 PB |
12215 | if test -n "$NM_FOR_TARGET"; then |
12216 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12217 | else |
c6b750e1 DJ |
12218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12219 | for as_dir in $PATH | |
12220 | do | |
12221 | IFS=$as_save_IFS | |
12222 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12223 | for ac_exec_ext in '' $ac_executable_extensions; do |
12224 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12225 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12227 | break 2 |
12228 | fi | |
12229 | done | |
81ecdfbb RW |
12230 | done |
12231 | IFS=$as_save_IFS | |
c6b750e1 | 12232 | |
859789af AC |
12233 | fi |
12234 | fi | |
c6b750e1 | 12235 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12236 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12238 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12239 | else |
81ecdfbb RW |
12240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12241 | $as_echo "no" >&6; } | |
859789af | 12242 | fi |
c6b750e1 | 12243 | |
81ecdfbb | 12244 | |
2429c060 PB |
12245 | fi |
12246 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12247 | done | |
12248 | fi | |
c6b750e1 | 12249 | |
05cbd757 PB |
12250 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12251 | set dummy nm | |
12252 | if test $build = $target ; then | |
12253 | NM_FOR_TARGET="$2" | |
859789af | 12254 | else |
05cbd757 | 12255 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12256 | fi |
d3f5afc4 MS |
12257 | else |
12258 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12259 | fi |
12260 | ||
3a35eeb3 PB |
12261 | else |
12262 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12263 | fi |
12264 | ||
12265 | ||
12266 | ||
12267 | ||
6b91c541 AP |
12268 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12269 | if test -n "$with_build_time_tools"; then | |
12270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12271 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12272 | if test -x $with_build_time_tools/objcopy; then | |
12273 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12274 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12276 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12277 | else | |
12278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12279 | $as_echo "no" >&6; } | |
12280 | fi | |
12281 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12282 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12283 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12284 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12285 | fi | |
12286 | fi | |
12287 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12288 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12289 | set dummy objcopy; ac_word=$2 | |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12291 | $as_echo_n "checking for $ac_word... " >&6; } | |
12292 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12293 | $as_echo_n "(cached) " >&6 | |
12294 | else | |
12295 | case $OBJCOPY_FOR_TARGET in | |
12296 | [\\/]* | ?:[\\/]*) | |
12297 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12298 | ;; | |
12299 | *) | |
12300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12301 | for as_dir in $gcc_cv_tool_dirs | |
12302 | do | |
12303 | IFS=$as_save_IFS | |
12304 | test -z "$as_dir" && as_dir=. | |
12305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12306 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12307 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12308 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12309 | break 2 | |
12310 | fi | |
12311 | done | |
12312 | done | |
12313 | IFS=$as_save_IFS | |
12314 | ||
12315 | ;; | |
12316 | esac | |
12317 | fi | |
12318 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12319 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12321 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12322 | else | |
12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12324 | $as_echo "no" >&6; } | |
12325 | fi | |
12326 | ||
12327 | ||
12328 | fi | |
12329 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12330 | ||
12331 | ||
12332 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12333 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12334 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12335 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12336 | fi | |
12337 | ||
12338 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12339 | for ncn_progname in objcopy; do | |
12340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12341 | set dummy ${ncn_progname}; ac_word=$2 | |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12343 | $as_echo_n "checking for $ac_word... " >&6; } | |
12344 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12345 | $as_echo_n "(cached) " >&6 | |
12346 | else | |
12347 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12348 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12349 | else | |
12350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12351 | for as_dir in $PATH | |
12352 | do | |
12353 | IFS=$as_save_IFS | |
12354 | test -z "$as_dir" && as_dir=. | |
12355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12357 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12359 | break 2 | |
12360 | fi | |
12361 | done | |
12362 | done | |
12363 | IFS=$as_save_IFS | |
12364 | ||
12365 | fi | |
12366 | fi | |
12367 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12368 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12370 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12371 | else | |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12373 | $as_echo "no" >&6; } | |
12374 | fi | |
12375 | ||
12376 | ||
12377 | done | |
12378 | fi | |
12379 | ||
12380 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12381 | for ncn_progname in objcopy; do | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12383 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12384 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12385 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12387 | $as_echo "yes" >&6; } | |
12388 | break | |
12389 | else | |
12390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12391 | $as_echo "no" >&6; } | |
12392 | fi | |
12393 | done | |
12394 | fi | |
12395 | ||
12396 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12397 | for ncn_progname in objcopy; do | |
12398 | if test -n "$ncn_target_tool_prefix"; then | |
12399 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12400 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12402 | $as_echo_n "checking for $ac_word... " >&6; } | |
12403 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12404 | $as_echo_n "(cached) " >&6 | |
12405 | else | |
12406 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12407 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12408 | else | |
12409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12410 | for as_dir in $PATH | |
12411 | do | |
12412 | IFS=$as_save_IFS | |
12413 | test -z "$as_dir" && as_dir=. | |
12414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12416 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12418 | break 2 | |
12419 | fi | |
12420 | done | |
12421 | done | |
12422 | IFS=$as_save_IFS | |
12423 | ||
12424 | fi | |
12425 | fi | |
12426 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12427 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12429 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12430 | else | |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12432 | $as_echo "no" >&6; } | |
12433 | fi | |
12434 | ||
12435 | ||
12436 | fi | |
12437 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12438 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12439 | set dummy ${ncn_progname}; ac_word=$2 | |
12440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12441 | $as_echo_n "checking for $ac_word... " >&6; } | |
12442 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12443 | $as_echo_n "(cached) " >&6 | |
12444 | else | |
12445 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12446 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12447 | else | |
12448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12449 | for as_dir in $PATH | |
12450 | do | |
12451 | IFS=$as_save_IFS | |
12452 | test -z "$as_dir" && as_dir=. | |
12453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12454 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12455 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12457 | break 2 | |
12458 | fi | |
12459 | done | |
12460 | done | |
12461 | IFS=$as_save_IFS | |
12462 | ||
12463 | fi | |
12464 | fi | |
12465 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12466 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12468 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12469 | else | |
12470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12471 | $as_echo "no" >&6; } | |
12472 | fi | |
12473 | ||
12474 | ||
12475 | fi | |
12476 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12477 | done | |
12478 | fi | |
12479 | ||
12480 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12481 | set dummy objcopy | |
12482 | if test $build = $target ; then | |
12483 | OBJCOPY_FOR_TARGET="$2" | |
12484 | else | |
12485 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12486 | fi | |
12487 | else | |
12488 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12489 | fi | |
12490 | ||
12491 | else | |
12492 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12493 | fi | |
12494 | ||
12495 | ||
12496 | ||
12497 | ||
2429c060 PB |
12498 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12499 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12501 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12502 | if test -x $with_build_time_tools/objdump; then |
12503 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12504 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12506 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12507 | else |
81ecdfbb RW |
12508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12509 | $as_echo "no" >&6; } | |
3a35eeb3 | 12510 | fi |
2429c060 PB |
12511 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12512 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12513 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12514 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12515 | fi |
12516 | fi | |
c6b750e1 | 12517 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12518 | # Extract the first word of "objdump", so it can be a program name with args. |
12519 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12521 | $as_echo_n "checking for $ac_word... " >&6; } | |
12522 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12523 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12524 | else |
c6b750e1 DJ |
12525 | case $OBJDUMP_FOR_TARGET in |
12526 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12527 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12528 | ;; | |
2429c060 | 12529 | *) |
c6b750e1 DJ |
12530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12531 | for as_dir in $gcc_cv_tool_dirs | |
12532 | do | |
12533 | IFS=$as_save_IFS | |
12534 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12535 | for ac_exec_ext in '' $ac_executable_extensions; do |
12536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12537 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12539 | break 2 |
12540 | fi | |
12541 | done | |
81ecdfbb RW |
12542 | done |
12543 | IFS=$as_save_IFS | |
c6b750e1 | 12544 | |
2429c060 PB |
12545 | ;; |
12546 | esac | |
12547 | fi | |
c6b750e1 | 12548 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12549 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12551 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12552 | else |
81ecdfbb RW |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12554 | $as_echo "no" >&6; } | |
2429c060 PB |
12555 | fi |
12556 | ||
81ecdfbb | 12557 | |
2429c060 PB |
12558 | fi |
12559 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12560 | |
12561 | ||
12562 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12563 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12564 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12565 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12566 | fi | |
12567 | ||
12568 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12569 | for ncn_progname in objdump; do | |
12570 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12571 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12573 | $as_echo_n "checking for $ac_word... " >&6; } | |
12574 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12575 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12576 | else |
12577 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12578 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12579 | else | |
12580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12581 | for as_dir in $PATH | |
12582 | do | |
12583 | IFS=$as_save_IFS | |
12584 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12585 | for ac_exec_ext in '' $ac_executable_extensions; do |
12586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12587 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12589 | break 2 |
12590 | fi | |
12591 | done | |
81ecdfbb RW |
12592 | done |
12593 | IFS=$as_save_IFS | |
9a819804 AO |
12594 | |
12595 | fi | |
12596 | fi | |
12597 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12598 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12600 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12601 | else |
81ecdfbb RW |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12603 | $as_echo "no" >&6; } | |
9a819804 AO |
12604 | fi |
12605 | ||
81ecdfbb | 12606 | |
9a819804 AO |
12607 | done |
12608 | fi | |
12609 | ||
12610 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12611 | for ncn_progname in objdump; do |
81ecdfbb RW |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12613 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12614 | if test -x $with_build_time_tools/${ncn_progname}; then |
12615 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12617 | $as_echo "yes" >&6; } | |
2429c060 PB |
12618 | break |
12619 | else | |
81ecdfbb RW |
12620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12621 | $as_echo "no" >&6; } | |
2429c060 PB |
12622 | fi |
12623 | done | |
12624 | fi | |
12625 | ||
12626 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12627 | for ncn_progname in objdump; do | |
12628 | if test -n "$ncn_target_tool_prefix"; then | |
12629 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12630 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12632 | $as_echo_n "checking for $ac_word... " >&6; } | |
12633 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12634 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12635 | else |
12636 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12637 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12638 | else | |
c6b750e1 DJ |
12639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12640 | for as_dir in $PATH | |
12641 | do | |
12642 | IFS=$as_save_IFS | |
12643 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12644 | for ac_exec_ext in '' $ac_executable_extensions; do |
12645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12646 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12648 | break 2 |
12649 | fi | |
12650 | done | |
81ecdfbb RW |
12651 | done |
12652 | IFS=$as_save_IFS | |
c6b750e1 | 12653 | |
5ae72758 DJ |
12654 | fi |
12655 | fi | |
c6b750e1 | 12656 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12657 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12659 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12660 | else |
81ecdfbb RW |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12662 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12663 | fi |
12664 | ||
81ecdfbb | 12665 | |
2429c060 PB |
12666 | fi |
12667 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12668 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12669 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12671 | $as_echo_n "checking for $ac_word... " >&6; } | |
12672 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12673 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12674 | else |
12675 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12676 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12677 | else | |
c6b750e1 DJ |
12678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12679 | for as_dir in $PATH | |
12680 | do | |
12681 | IFS=$as_save_IFS | |
12682 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12683 | for ac_exec_ext in '' $ac_executable_extensions; do |
12684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12685 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12687 | break 2 |
12688 | fi | |
12689 | done | |
81ecdfbb RW |
12690 | done |
12691 | IFS=$as_save_IFS | |
c6b750e1 | 12692 | |
5ae72758 DJ |
12693 | fi |
12694 | fi | |
c6b750e1 | 12695 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12696 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12698 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12699 | else |
81ecdfbb RW |
12700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12701 | $as_echo "no" >&6; } | |
5ae72758 | 12702 | fi |
c6b750e1 | 12703 | |
81ecdfbb | 12704 | |
2429c060 PB |
12705 | fi |
12706 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12707 | done | |
12708 | fi | |
c6b750e1 | 12709 | |
5ae72758 DJ |
12710 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12711 | set dummy objdump | |
12712 | if test $build = $target ; then | |
12713 | OBJDUMP_FOR_TARGET="$2" | |
12714 | else | |
12715 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12716 | fi | |
d3f5afc4 MS |
12717 | else |
12718 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12719 | fi |
12720 | ||
3a35eeb3 PB |
12721 | else |
12722 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12723 | fi |
12724 | ||
12725 | ||
12726 | ||
12727 | ||
12728 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12729 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12731 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12732 | if test -x $with_build_time_tools/ranlib; then |
12733 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12734 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12736 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12737 | else |
81ecdfbb RW |
12738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12739 | $as_echo "no" >&6; } | |
3a35eeb3 | 12740 | fi |
2429c060 PB |
12741 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12742 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12743 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12744 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12745 | fi |
12746 | fi | |
c6b750e1 | 12747 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12748 | # Extract the first word of "ranlib", so it can be a program name with args. |
12749 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12751 | $as_echo_n "checking for $ac_word... " >&6; } | |
12752 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12753 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12754 | else |
c6b750e1 DJ |
12755 | case $RANLIB_FOR_TARGET in |
12756 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12757 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12758 | ;; | |
2429c060 | 12759 | *) |
c6b750e1 DJ |
12760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12761 | for as_dir in $gcc_cv_tool_dirs | |
12762 | do | |
12763 | IFS=$as_save_IFS | |
12764 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12765 | for ac_exec_ext in '' $ac_executable_extensions; do |
12766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12767 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12769 | break 2 |
12770 | fi | |
12771 | done | |
81ecdfbb RW |
12772 | done |
12773 | IFS=$as_save_IFS | |
c6b750e1 | 12774 | |
2429c060 PB |
12775 | ;; |
12776 | esac | |
12777 | fi | |
c6b750e1 | 12778 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12779 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12781 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12782 | else |
81ecdfbb RW |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12784 | $as_echo "no" >&6; } | |
2429c060 PB |
12785 | fi |
12786 | ||
81ecdfbb | 12787 | |
2429c060 PB |
12788 | fi |
12789 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12790 | |
12791 | ||
12792 | if test -n "$RANLIB_FOR_TARGET"; then | |
12793 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12794 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12795 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12796 | fi | |
12797 | ||
12798 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12799 | for ncn_progname in ranlib; do | |
12800 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12801 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12803 | $as_echo_n "checking for $ac_word... " >&6; } | |
12804 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12805 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12806 | else |
12807 | if test -n "$RANLIB_FOR_TARGET"; then | |
12808 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12809 | else | |
12810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12811 | for as_dir in $PATH | |
12812 | do | |
12813 | IFS=$as_save_IFS | |
12814 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12815 | for ac_exec_ext in '' $ac_executable_extensions; do |
12816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12817 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12819 | break 2 |
12820 | fi | |
12821 | done | |
81ecdfbb RW |
12822 | done |
12823 | IFS=$as_save_IFS | |
9a819804 AO |
12824 | |
12825 | fi | |
12826 | fi | |
12827 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12828 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12830 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12831 | else |
81ecdfbb RW |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833 | $as_echo "no" >&6; } | |
9a819804 AO |
12834 | fi |
12835 | ||
81ecdfbb | 12836 | |
9a819804 AO |
12837 | done |
12838 | fi | |
12839 | ||
12840 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12841 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12843 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12844 | if test -x $with_build_time_tools/${ncn_progname}; then |
12845 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12847 | $as_echo "yes" >&6; } | |
2429c060 PB |
12848 | break |
12849 | else | |
81ecdfbb RW |
12850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12851 | $as_echo "no" >&6; } | |
2429c060 PB |
12852 | fi |
12853 | done | |
12854 | fi | |
12855 | ||
12856 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12857 | for ncn_progname in ranlib; do | |
12858 | if test -n "$ncn_target_tool_prefix"; then | |
12859 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12860 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12862 | $as_echo_n "checking for $ac_word... " >&6; } | |
12863 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12864 | $as_echo_n "(cached) " >&6 | |
859789af | 12865 | else |
55db4b87 PB |
12866 | if test -n "$RANLIB_FOR_TARGET"; then |
12867 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12868 | else |
c6b750e1 DJ |
12869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12870 | for as_dir in $PATH | |
12871 | do | |
12872 | IFS=$as_save_IFS | |
12873 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12874 | for ac_exec_ext in '' $ac_executable_extensions; do |
12875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12876 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12878 | break 2 |
12879 | fi | |
12880 | done | |
81ecdfbb RW |
12881 | done |
12882 | IFS=$as_save_IFS | |
c6b750e1 | 12883 | |
859789af AC |
12884 | fi |
12885 | fi | |
c6b750e1 | 12886 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12887 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12889 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12890 | else |
81ecdfbb RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12892 | $as_echo "no" >&6; } | |
859789af AC |
12893 | fi |
12894 | ||
81ecdfbb | 12895 | |
2429c060 PB |
12896 | fi |
12897 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12898 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12899 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12901 | $as_echo_n "checking for $ac_word... " >&6; } | |
12902 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12903 | $as_echo_n "(cached) " >&6 | |
859789af | 12904 | else |
05cbd757 PB |
12905 | if test -n "$RANLIB_FOR_TARGET"; then |
12906 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12907 | else |
c6b750e1 DJ |
12908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12909 | for as_dir in $PATH | |
12910 | do | |
12911 | IFS=$as_save_IFS | |
12912 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12913 | for ac_exec_ext in '' $ac_executable_extensions; do |
12914 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12915 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12916 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12917 | break 2 |
12918 | fi | |
12919 | done | |
81ecdfbb RW |
12920 | done |
12921 | IFS=$as_save_IFS | |
c6b750e1 | 12922 | |
859789af AC |
12923 | fi |
12924 | fi | |
c6b750e1 | 12925 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12926 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12928 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12929 | else |
81ecdfbb RW |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12931 | $as_echo "no" >&6; } | |
859789af | 12932 | fi |
c6b750e1 | 12933 | |
81ecdfbb | 12934 | |
2429c060 PB |
12935 | fi |
12936 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12937 | done | |
12938 | fi | |
c6b750e1 | 12939 | |
2429c060 PB |
12940 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12941 | set dummy ranlib | |
12942 | if test $build = $target ; then | |
12943 | RANLIB_FOR_TARGET="$2" | |
12944 | else | |
12945 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12946 | fi |
d3f5afc4 MS |
12947 | else |
12948 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12949 | fi |
05cbd757 | 12950 | |
3a35eeb3 PB |
12951 | else |
12952 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12953 | fi |
12954 | ||
2429c060 PB |
12955 | |
12956 | ||
12957 | ||
b121d7d4 DD |
12958 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12959 | if test -n "$with_build_time_tools"; then | |
12960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12961 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12962 | if test -x $with_build_time_tools/readelf; then | |
12963 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12964 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12966 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12967 | else | |
12968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12969 | $as_echo "no" >&6; } | |
12970 | fi | |
12971 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12972 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12973 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12974 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12975 | fi | |
12976 | fi | |
12977 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12978 | # Extract the first word of "readelf", so it can be a program name with args. | |
12979 | set dummy readelf; ac_word=$2 | |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12981 | $as_echo_n "checking for $ac_word... " >&6; } | |
12982 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12983 | $as_echo_n "(cached) " >&6 | |
12984 | else | |
12985 | case $READELF_FOR_TARGET in | |
12986 | [\\/]* | ?:[\\/]*) | |
12987 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12988 | ;; | |
12989 | *) | |
12990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12991 | for as_dir in $gcc_cv_tool_dirs | |
12992 | do | |
12993 | IFS=$as_save_IFS | |
12994 | test -z "$as_dir" && as_dir=. | |
12995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12996 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12997 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12998 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12999 | break 2 | |
13000 | fi | |
13001 | done | |
13002 | done | |
13003 | IFS=$as_save_IFS | |
13004 | ||
13005 | ;; | |
13006 | esac | |
13007 | fi | |
13008 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13009 | if test -n "$READELF_FOR_TARGET"; then | |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13011 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13012 | else | |
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13014 | $as_echo "no" >&6; } | |
13015 | fi | |
13016 | ||
13017 | ||
13018 | fi | |
13019 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13020 | ||
13021 | ||
13022 | if test -n "$READELF_FOR_TARGET"; then | |
13023 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13024 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13025 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13026 | fi | |
13027 | ||
13028 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13029 | for ncn_progname in readelf; do | |
13030 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13031 | set dummy ${ncn_progname}; ac_word=$2 | |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13033 | $as_echo_n "checking for $ac_word... " >&6; } | |
13034 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13035 | $as_echo_n "(cached) " >&6 | |
13036 | else | |
13037 | if test -n "$READELF_FOR_TARGET"; then | |
13038 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13039 | else | |
13040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13041 | for as_dir in $PATH | |
13042 | do | |
13043 | IFS=$as_save_IFS | |
13044 | test -z "$as_dir" && as_dir=. | |
13045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13047 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13049 | break 2 | |
13050 | fi | |
13051 | done | |
13052 | done | |
13053 | IFS=$as_save_IFS | |
13054 | ||
13055 | fi | |
13056 | fi | |
13057 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13058 | if test -n "$READELF_FOR_TARGET"; then | |
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13060 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13061 | else | |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13063 | $as_echo "no" >&6; } | |
13064 | fi | |
13065 | ||
13066 | ||
13067 | done | |
13068 | fi | |
13069 | ||
13070 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13071 | for ncn_progname in readelf; do | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13073 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13074 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13075 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13077 | $as_echo "yes" >&6; } | |
13078 | break | |
13079 | else | |
13080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13081 | $as_echo "no" >&6; } | |
13082 | fi | |
13083 | done | |
13084 | fi | |
13085 | ||
13086 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13087 | for ncn_progname in readelf; do | |
13088 | if test -n "$ncn_target_tool_prefix"; then | |
13089 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13090 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13092 | $as_echo_n "checking for $ac_word... " >&6; } | |
13093 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13094 | $as_echo_n "(cached) " >&6 | |
13095 | else | |
13096 | if test -n "$READELF_FOR_TARGET"; then | |
13097 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13098 | else | |
13099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13100 | for as_dir in $PATH | |
13101 | do | |
13102 | IFS=$as_save_IFS | |
13103 | test -z "$as_dir" && as_dir=. | |
13104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13106 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13108 | break 2 | |
13109 | fi | |
13110 | done | |
13111 | done | |
13112 | IFS=$as_save_IFS | |
13113 | ||
13114 | fi | |
13115 | fi | |
13116 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13117 | if test -n "$READELF_FOR_TARGET"; then | |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13119 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13120 | else | |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13122 | $as_echo "no" >&6; } | |
13123 | fi | |
13124 | ||
13125 | ||
13126 | fi | |
13127 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13128 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13129 | set dummy ${ncn_progname}; ac_word=$2 | |
13130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13131 | $as_echo_n "checking for $ac_word... " >&6; } | |
13132 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13133 | $as_echo_n "(cached) " >&6 | |
13134 | else | |
13135 | if test -n "$READELF_FOR_TARGET"; then | |
13136 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13137 | else | |
13138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13139 | for as_dir in $PATH | |
13140 | do | |
13141 | IFS=$as_save_IFS | |
13142 | test -z "$as_dir" && as_dir=. | |
13143 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13145 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13147 | break 2 | |
13148 | fi | |
13149 | done | |
13150 | done | |
13151 | IFS=$as_save_IFS | |
13152 | ||
13153 | fi | |
13154 | fi | |
13155 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13156 | if test -n "$READELF_FOR_TARGET"; then | |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13158 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13159 | else | |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13161 | $as_echo "no" >&6; } | |
13162 | fi | |
13163 | ||
13164 | ||
13165 | fi | |
13166 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13167 | done | |
13168 | fi | |
13169 | ||
13170 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13171 | set dummy readelf | |
13172 | if test $build = $target ; then | |
13173 | READELF_FOR_TARGET="$2" | |
13174 | else | |
13175 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13176 | fi | |
13177 | else | |
13178 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13179 | fi | |
13180 | ||
13181 | else | |
13182 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13183 | fi | |
13184 | ||
13185 | ||
13186 | ||
13187 | ||
2429c060 PB |
13188 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13189 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13191 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13192 | if test -x $with_build_time_tools/strip; then |
13193 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13194 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13196 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13197 | else |
81ecdfbb RW |
13198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13199 | $as_echo "no" >&6; } | |
3a35eeb3 | 13200 | fi |
2429c060 PB |
13201 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13202 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13203 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13204 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13205 | fi |
13206 | fi | |
c6b750e1 | 13207 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13208 | # Extract the first word of "strip", so it can be a program name with args. |
13209 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13211 | $as_echo_n "checking for $ac_word... " >&6; } | |
13212 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13213 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13214 | else |
c6b750e1 DJ |
13215 | case $STRIP_FOR_TARGET in |
13216 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13217 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13218 | ;; | |
2429c060 | 13219 | *) |
c6b750e1 DJ |
13220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13221 | for as_dir in $gcc_cv_tool_dirs | |
13222 | do | |
13223 | IFS=$as_save_IFS | |
13224 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13225 | for ac_exec_ext in '' $ac_executable_extensions; do |
13226 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13227 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13228 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13229 | break 2 |
13230 | fi | |
13231 | done | |
81ecdfbb RW |
13232 | done |
13233 | IFS=$as_save_IFS | |
c6b750e1 | 13234 | |
2429c060 PB |
13235 | ;; |
13236 | esac | |
13237 | fi | |
c6b750e1 | 13238 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13239 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13241 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13242 | else |
81ecdfbb RW |
13243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13244 | $as_echo "no" >&6; } | |
2429c060 PB |
13245 | fi |
13246 | ||
81ecdfbb | 13247 | |
2429c060 PB |
13248 | fi |
13249 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13250 | |
13251 | ||
13252 | if test -n "$STRIP_FOR_TARGET"; then | |
13253 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13254 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13255 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13256 | fi | |
13257 | ||
13258 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13259 | for ncn_progname in strip; do | |
13260 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13261 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13263 | $as_echo_n "checking for $ac_word... " >&6; } | |
13264 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13265 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13266 | else |
13267 | if test -n "$STRIP_FOR_TARGET"; then | |
13268 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13269 | else | |
13270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13271 | for as_dir in $PATH | |
13272 | do | |
13273 | IFS=$as_save_IFS | |
13274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13275 | for ac_exec_ext in '' $ac_executable_extensions; do |
13276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13277 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13279 | break 2 |
13280 | fi | |
13281 | done | |
81ecdfbb RW |
13282 | done |
13283 | IFS=$as_save_IFS | |
9a819804 AO |
13284 | |
13285 | fi | |
13286 | fi | |
13287 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13288 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13290 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13291 | else |
81ecdfbb RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13293 | $as_echo "no" >&6; } | |
9a819804 AO |
13294 | fi |
13295 | ||
81ecdfbb | 13296 | |
9a819804 AO |
13297 | done |
13298 | fi | |
13299 | ||
13300 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13301 | for ncn_progname in strip; do |
81ecdfbb RW |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13303 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13304 | if test -x $with_build_time_tools/${ncn_progname}; then |
13305 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13307 | $as_echo "yes" >&6; } | |
2429c060 PB |
13308 | break |
13309 | else | |
81ecdfbb RW |
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13311 | $as_echo "no" >&6; } | |
2429c060 PB |
13312 | fi |
13313 | done | |
13314 | fi | |
13315 | ||
13316 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13317 | for ncn_progname in strip; do | |
13318 | if test -n "$ncn_target_tool_prefix"; then | |
13319 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13320 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13322 | $as_echo_n "checking for $ac_word... " >&6; } | |
13323 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13324 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13325 | else |
13326 | if test -n "$STRIP_FOR_TARGET"; then | |
13327 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13328 | else |
13329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13330 | for as_dir in $PATH | |
13331 | do | |
13332 | IFS=$as_save_IFS | |
13333 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13334 | for ac_exec_ext in '' $ac_executable_extensions; do |
13335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13336 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13338 | break 2 |
13339 | fi | |
13340 | done | |
81ecdfbb RW |
13341 | done |
13342 | IFS=$as_save_IFS | |
c6b750e1 | 13343 | |
7e0f7140 GK |
13344 | fi |
13345 | fi | |
c6b750e1 | 13346 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13347 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13349 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13350 | else |
81ecdfbb RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13352 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13353 | fi |
13354 | ||
81ecdfbb | 13355 | |
2429c060 PB |
13356 | fi |
13357 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13358 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13359 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13361 | $as_echo_n "checking for $ac_word... " >&6; } | |
13362 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13363 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13364 | else |
13365 | if test -n "$STRIP_FOR_TARGET"; then | |
13366 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13367 | else | |
c6b750e1 DJ |
13368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13369 | for as_dir in $PATH | |
13370 | do | |
13371 | IFS=$as_save_IFS | |
13372 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13373 | for ac_exec_ext in '' $ac_executable_extensions; do |
13374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13375 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13377 | break 2 |
13378 | fi | |
13379 | done | |
81ecdfbb RW |
13380 | done |
13381 | IFS=$as_save_IFS | |
c6b750e1 | 13382 | |
7e0f7140 GK |
13383 | fi |
13384 | fi | |
c6b750e1 | 13385 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13386 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13388 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13389 | else |
81ecdfbb RW |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13391 | $as_echo "no" >&6; } | |
7e0f7140 | 13392 | fi |
c6b750e1 | 13393 | |
81ecdfbb | 13394 | |
2429c060 PB |
13395 | fi |
13396 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13397 | done | |
13398 | fi | |
c6b750e1 | 13399 | |
7e0f7140 GK |
13400 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13401 | set dummy strip | |
13402 | if test $build = $target ; then | |
13403 | STRIP_FOR_TARGET="$2" | |
13404 | else | |
13405 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13406 | fi | |
d3f5afc4 MS |
13407 | else |
13408 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13409 | fi |
13410 | ||
3a35eeb3 PB |
13411 | else |
13412 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13413 | fi |
13414 | ||
13415 | ||
13416 | ||
13417 | ||
13418 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13419 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13421 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13422 | if test -x $with_build_time_tools/windres; then |
13423 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13424 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13426 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13427 | else |
81ecdfbb RW |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13429 | $as_echo "no" >&6; } | |
3a35eeb3 | 13430 | fi |
2429c060 PB |
13431 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13432 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13433 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13434 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13435 | fi |
13436 | fi | |
c6b750e1 | 13437 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13438 | # Extract the first word of "windres", so it can be a program name with args. |
13439 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13441 | $as_echo_n "checking for $ac_word... " >&6; } | |
13442 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13443 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13444 | else |
c6b750e1 DJ |
13445 | case $WINDRES_FOR_TARGET in |
13446 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13447 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13448 | ;; | |
2429c060 | 13449 | *) |
c6b750e1 DJ |
13450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13451 | for as_dir in $gcc_cv_tool_dirs | |
13452 | do | |
13453 | IFS=$as_save_IFS | |
13454 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13455 | for ac_exec_ext in '' $ac_executable_extensions; do |
13456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13457 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13459 | break 2 |
13460 | fi | |
13461 | done | |
81ecdfbb RW |
13462 | done |
13463 | IFS=$as_save_IFS | |
c6b750e1 | 13464 | |
2429c060 PB |
13465 | ;; |
13466 | esac | |
13467 | fi | |
c6b750e1 | 13468 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13469 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13471 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13472 | else |
81ecdfbb RW |
13473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13474 | $as_echo "no" >&6; } | |
2429c060 PB |
13475 | fi |
13476 | ||
81ecdfbb | 13477 | |
2429c060 PB |
13478 | fi |
13479 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13480 | |
13481 | ||
13482 | if test -n "$WINDRES_FOR_TARGET"; then | |
13483 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13484 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13485 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13486 | fi | |
13487 | ||
13488 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13489 | for ncn_progname in windres; do | |
13490 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13491 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13493 | $as_echo_n "checking for $ac_word... " >&6; } | |
13494 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13495 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13496 | else |
13497 | if test -n "$WINDRES_FOR_TARGET"; then | |
13498 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13499 | else | |
13500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13501 | for as_dir in $PATH | |
13502 | do | |
13503 | IFS=$as_save_IFS | |
13504 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13505 | for ac_exec_ext in '' $ac_executable_extensions; do |
13506 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13507 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13509 | break 2 |
13510 | fi | |
13511 | done | |
81ecdfbb RW |
13512 | done |
13513 | IFS=$as_save_IFS | |
9a819804 AO |
13514 | |
13515 | fi | |
13516 | fi | |
13517 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13518 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13520 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13521 | else |
81ecdfbb RW |
13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13523 | $as_echo "no" >&6; } | |
9a819804 AO |
13524 | fi |
13525 | ||
81ecdfbb | 13526 | |
9a819804 AO |
13527 | done |
13528 | fi | |
13529 | ||
13530 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13531 | for ncn_progname in windres; do |
81ecdfbb RW |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13533 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13534 | if test -x $with_build_time_tools/${ncn_progname}; then |
13535 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13537 | $as_echo "yes" >&6; } | |
2429c060 PB |
13538 | break |
13539 | else | |
81ecdfbb RW |
13540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13541 | $as_echo "no" >&6; } | |
2429c060 PB |
13542 | fi |
13543 | done | |
13544 | fi | |
13545 | ||
13546 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13547 | for ncn_progname in windres; do | |
13548 | if test -n "$ncn_target_tool_prefix"; then | |
13549 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13550 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13552 | $as_echo_n "checking for $ac_word... " >&6; } | |
13553 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13554 | $as_echo_n "(cached) " >&6 | |
859789af | 13555 | else |
55db4b87 PB |
13556 | if test -n "$WINDRES_FOR_TARGET"; then |
13557 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13558 | else |
c6b750e1 DJ |
13559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13560 | for as_dir in $PATH | |
13561 | do | |
13562 | IFS=$as_save_IFS | |
13563 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13564 | for ac_exec_ext in '' $ac_executable_extensions; do |
13565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13566 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13568 | break 2 |
13569 | fi | |
13570 | done | |
81ecdfbb RW |
13571 | done |
13572 | IFS=$as_save_IFS | |
c6b750e1 | 13573 | |
859789af AC |
13574 | fi |
13575 | fi | |
c6b750e1 | 13576 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13577 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13579 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13580 | else |
81ecdfbb RW |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13582 | $as_echo "no" >&6; } | |
859789af AC |
13583 | fi |
13584 | ||
81ecdfbb | 13585 | |
2429c060 PB |
13586 | fi |
13587 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13588 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13589 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13591 | $as_echo_n "checking for $ac_word... " >&6; } | |
13592 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13593 | $as_echo_n "(cached) " >&6 | |
859789af | 13594 | else |
05cbd757 PB |
13595 | if test -n "$WINDRES_FOR_TARGET"; then |
13596 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13597 | else |
c6b750e1 DJ |
13598 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13599 | for as_dir in $PATH | |
13600 | do | |
13601 | IFS=$as_save_IFS | |
13602 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13603 | for ac_exec_ext in '' $ac_executable_extensions; do |
13604 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13605 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13606 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13607 | break 2 |
13608 | fi | |
13609 | done | |
81ecdfbb RW |
13610 | done |
13611 | IFS=$as_save_IFS | |
c6b750e1 | 13612 | |
859789af AC |
13613 | fi |
13614 | fi | |
c6b750e1 | 13615 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13616 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13618 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13619 | else |
81ecdfbb RW |
13620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13621 | $as_echo "no" >&6; } | |
859789af | 13622 | fi |
c6b750e1 | 13623 | |
81ecdfbb | 13624 | |
2429c060 PB |
13625 | fi |
13626 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13627 | done | |
13628 | fi | |
c6b750e1 | 13629 | |
05cbd757 PB |
13630 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13631 | set dummy windres | |
13632 | if test $build = $target ; then | |
13633 | WINDRES_FOR_TARGET="$2" | |
859789af | 13634 | else |
05cbd757 | 13635 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13636 | fi |
d3f5afc4 MS |
13637 | else |
13638 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13639 | fi |
13640 | ||
3a35eeb3 PB |
13641 | else |
13642 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13643 | fi |
13644 | ||
852e5f18 | 13645 | |
0c24b341 NC |
13646 | |
13647 | ||
13648 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13649 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13651 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13652 | if test -x $with_build_time_tools/windmc; then |
13653 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13654 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13656 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13657 | else |
81ecdfbb RW |
13658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13659 | $as_echo "no" >&6; } | |
0c24b341 NC |
13660 | fi |
13661 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13662 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13663 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13664 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13665 | fi | |
13666 | fi | |
13667 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13668 | # Extract the first word of "windmc", so it can be a program name with args. | |
13669 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13671 | $as_echo_n "checking for $ac_word... " >&6; } | |
13672 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13673 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13674 | else |
13675 | case $WINDMC_FOR_TARGET in | |
13676 | [\\/]* | ?:[\\/]*) | |
13677 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13678 | ;; | |
13679 | *) | |
13680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13681 | for as_dir in $gcc_cv_tool_dirs | |
13682 | do | |
13683 | IFS=$as_save_IFS | |
13684 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13685 | for ac_exec_ext in '' $ac_executable_extensions; do |
13686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13687 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13689 | break 2 |
13690 | fi | |
13691 | done | |
81ecdfbb RW |
13692 | done |
13693 | IFS=$as_save_IFS | |
0c24b341 NC |
13694 | |
13695 | ;; | |
13696 | esac | |
13697 | fi | |
13698 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13699 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13701 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13702 | else |
81ecdfbb RW |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13704 | $as_echo "no" >&6; } | |
0c24b341 NC |
13705 | fi |
13706 | ||
81ecdfbb | 13707 | |
0c24b341 NC |
13708 | fi |
13709 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13710 | ||
13711 | ||
13712 | if test -n "$WINDMC_FOR_TARGET"; then | |
13713 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13714 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13715 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13716 | fi | |
13717 | ||
13718 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13719 | for ncn_progname in windmc; do | |
13720 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13721 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13723 | $as_echo_n "checking for $ac_word... " >&6; } | |
13724 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13725 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13726 | else |
13727 | if test -n "$WINDMC_FOR_TARGET"; then | |
13728 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13729 | else | |
13730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13731 | for as_dir in $PATH | |
13732 | do | |
13733 | IFS=$as_save_IFS | |
13734 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13735 | for ac_exec_ext in '' $ac_executable_extensions; do |
13736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13737 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13739 | break 2 |
13740 | fi | |
13741 | done | |
81ecdfbb RW |
13742 | done |
13743 | IFS=$as_save_IFS | |
0c24b341 NC |
13744 | |
13745 | fi | |
13746 | fi | |
13747 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13748 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13750 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13751 | else |
81ecdfbb RW |
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13753 | $as_echo "no" >&6; } | |
0c24b341 NC |
13754 | fi |
13755 | ||
81ecdfbb | 13756 | |
0c24b341 NC |
13757 | done |
13758 | fi | |
13759 | ||
13760 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13761 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13763 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13764 | if test -x $with_build_time_tools/${ncn_progname}; then |
13765 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13767 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13768 | break |
13769 | else | |
81ecdfbb RW |
13770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13771 | $as_echo "no" >&6; } | |
0c24b341 NC |
13772 | fi |
13773 | done | |
13774 | fi | |
13775 | ||
13776 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13777 | for ncn_progname in windmc; do | |
13778 | if test -n "$ncn_target_tool_prefix"; then | |
13779 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13780 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13782 | $as_echo_n "checking for $ac_word... " >&6; } | |
13783 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13784 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13785 | else |
13786 | if test -n "$WINDMC_FOR_TARGET"; then | |
13787 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13788 | else | |
13789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13790 | for as_dir in $PATH | |
13791 | do | |
13792 | IFS=$as_save_IFS | |
13793 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13794 | for ac_exec_ext in '' $ac_executable_extensions; do |
13795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13796 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13798 | break 2 |
13799 | fi | |
13800 | done | |
81ecdfbb RW |
13801 | done |
13802 | IFS=$as_save_IFS | |
0c24b341 NC |
13803 | |
13804 | fi | |
13805 | fi | |
13806 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13807 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13809 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13810 | else |
81ecdfbb RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13812 | $as_echo "no" >&6; } | |
0c24b341 NC |
13813 | fi |
13814 | ||
81ecdfbb | 13815 | |
0c24b341 NC |
13816 | fi |
13817 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13818 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13819 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13821 | $as_echo_n "checking for $ac_word... " >&6; } | |
13822 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13823 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13824 | else |
13825 | if test -n "$WINDMC_FOR_TARGET"; then | |
13826 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13827 | else | |
13828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13829 | for as_dir in $PATH | |
13830 | do | |
13831 | IFS=$as_save_IFS | |
13832 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13833 | for ac_exec_ext in '' $ac_executable_extensions; do |
13834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13835 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13837 | break 2 |
13838 | fi | |
13839 | done | |
81ecdfbb RW |
13840 | done |
13841 | IFS=$as_save_IFS | |
0c24b341 NC |
13842 | |
13843 | fi | |
13844 | fi | |
13845 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13846 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13848 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13849 | else |
81ecdfbb RW |
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13851 | $as_echo "no" >&6; } | |
0c24b341 NC |
13852 | fi |
13853 | ||
81ecdfbb | 13854 | |
0c24b341 NC |
13855 | fi |
13856 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13857 | done | |
13858 | fi | |
13859 | ||
13860 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13861 | set dummy windmc | |
13862 | if test $build = $target ; then | |
13863 | WINDMC_FOR_TARGET="$2" | |
13864 | else | |
13865 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13866 | fi | |
13867 | else | |
13868 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13869 | fi | |
13870 | ||
13871 | else | |
13872 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13873 | fi | |
13874 | ||
13875 | ||
be01d343 PB |
13876 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13877 | ||
81ecdfbb RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13879 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13880 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13881 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13882 | # We already found the complete path | |
b8025f34 | 13883 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13885 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13886 | else |
13887 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13889 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13890 | fi |
be01d343 PB |
13891 | else |
13892 | ok=yes | |
13893 | case " ${configdirs} " in | |
13894 | *" binutils "*) ;; | |
13895 | *) ok=no ;; | |
13896 | esac | |
c6b750e1 | 13897 | |
be01d343 PB |
13898 | if test $ok = yes; then |
13899 | # An in-tree tool is available and we can use it | |
13900 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13902 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13903 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13904 | # We already found the complete path | |
b8025f34 | 13905 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13907 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13908 | elif test "x$target" = "x$host"; then |
13909 | # We can use an host tool | |
13910 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13912 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13913 | else |
13914 | # We need a cross tool | |
81ecdfbb RW |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13916 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13917 | fi |
13918 | fi | |
4b900473 | 13919 | |
81ecdfbb RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13921 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13922 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13923 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13924 | # We already found the complete path | |
b8025f34 | 13925 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13927 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13928 | else |
13929 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13931 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13932 | fi |
be01d343 PB |
13933 | else |
13934 | ok=yes | |
13935 | case " ${configdirs} " in | |
13936 | *" gas "*) ;; | |
13937 | *) ok=no ;; | |
13938 | esac | |
c6b750e1 | 13939 | |
be01d343 PB |
13940 | if test $ok = yes; then |
13941 | # An in-tree tool is available and we can use it | |
13942 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13944 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13945 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13946 | # We already found the complete path | |
b8025f34 | 13947 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13949 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13950 | elif test "x$target" = "x$host"; then |
13951 | # We can use an host tool | |
13952 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13954 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13955 | else |
13956 | # We need a cross tool | |
81ecdfbb RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13958 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13959 | fi |
13960 | fi | |
4b900473 | 13961 | |
81ecdfbb RW |
13962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13963 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13964 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13965 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13966 | # We already found the complete path | |
b8025f34 | 13967 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13969 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13970 | else |
13971 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13973 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13974 | fi |
be01d343 PB |
13975 | else |
13976 | ok=yes | |
13977 | case " ${configdirs} " in | |
13978 | *" gcc "*) ;; | |
13979 | *) ok=no ;; | |
13980 | esac | |
c6b750e1 | 13981 | |
be01d343 PB |
13982 | if test $ok = yes; then |
13983 | # An in-tree tool is available and we can use it | |
13984 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13986 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13987 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13988 | # We already found the complete path | |
b8025f34 | 13989 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13991 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13992 | elif test "x$target" = "x$host"; then |
13993 | # We can use an host tool | |
13994 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13996 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13997 | else |
13998 | # We need a cross tool | |
81ecdfbb RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14000 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14001 | fi |
14002 | fi | |
4b900473 | 14003 | |
81ecdfbb RW |
14004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14005 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 14006 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14007 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14008 | # We already found the complete path | |
b8025f34 | 14009 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14011 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14012 | else |
14013 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14015 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14016 | fi |
be01d343 PB |
14017 | else |
14018 | ok=yes | |
14019 | case " ${configdirs} " in | |
14020 | *" gcc "*) ;; | |
14021 | *) ok=no ;; | |
14022 | esac | |
14023 | case ,${enable_languages}, in | |
14024 | *,c++,*) ;; | |
14025 | *) ok=no ;; | |
14026 | esac | |
14027 | if test $ok = yes; then | |
14028 | # An in-tree tool is available and we can use it | |
95e43135 | 14029 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14031 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14032 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14033 | # We already found the complete path | |
b8025f34 | 14034 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14036 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14037 | elif test "x$target" = "x$host"; then |
14038 | # We can use an host tool | |
14039 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14041 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14042 | else |
14043 | # We need a cross tool | |
81ecdfbb RW |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14045 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14046 | fi |
14047 | fi | |
4b900473 | 14048 | |
81ecdfbb RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14050 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14051 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14052 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14053 | # We already found the complete path | |
b8025f34 | 14054 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14056 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14057 | else |
14058 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14060 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14061 | fi |
be01d343 PB |
14062 | else |
14063 | ok=yes | |
14064 | case " ${configdirs} " in | |
14065 | *" gcc "*) ;; | |
14066 | *) ok=no ;; | |
14067 | esac | |
14068 | case ,${enable_languages}, in | |
14069 | *,c++,*) ;; | |
14070 | *) ok=no ;; | |
14071 | esac | |
14072 | if test $ok = yes; then | |
14073 | # An in-tree tool is available and we can use it | |
95e43135 | 14074 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14076 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14077 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14078 | # We already found the complete path | |
b8025f34 | 14079 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14081 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14082 | elif test "x$target" = "x$host"; then |
14083 | # We can use an host tool | |
14084 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14086 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14087 | else |
14088 | # We need a cross tool | |
81ecdfbb RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14090 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14091 | fi |
14092 | fi | |
4b900473 | 14093 | |
81ecdfbb RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14095 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14096 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14097 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14098 | # We already found the complete path | |
b8025f34 | 14099 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14101 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14102 | else |
14103 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14105 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14106 | fi |
be01d343 PB |
14107 | else |
14108 | ok=yes | |
14109 | case " ${configdirs} " in | |
14110 | *" binutils "*) ;; | |
14111 | *) ok=no ;; | |
14112 | esac | |
c6b750e1 | 14113 | |
be01d343 PB |
14114 | if test $ok = yes; then |
14115 | # An in-tree tool is available and we can use it | |
14116 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14118 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14119 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14120 | # We already found the complete path | |
b8025f34 | 14121 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14123 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14124 | elif test "x$target" = "x$host"; then |
14125 | # We can use an host tool | |
14126 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14128 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14129 | else |
14130 | # We need a cross tool | |
81ecdfbb RW |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14132 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14133 | fi |
14134 | fi | |
4b900473 | 14135 | |
81ecdfbb RW |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14137 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14138 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14139 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14140 | # We already found the complete path | |
b8025f34 | 14141 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14143 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14144 | else |
14145 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14147 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14148 | fi |
be01d343 PB |
14149 | else |
14150 | ok=yes | |
14151 | case " ${configdirs} " in | |
14152 | *" gcc "*) ;; | |
14153 | *) ok=no ;; | |
14154 | esac | |
c6b750e1 | 14155 | |
be01d343 PB |
14156 | if test $ok = yes; then |
14157 | # An in-tree tool is available and we can use it | |
14158 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14160 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14161 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14162 | # We already found the complete path | |
b8025f34 | 14163 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14165 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14166 | elif test "x$target" = "x$host"; then |
14167 | # We can use an host tool | |
14168 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14170 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14171 | else |
14172 | # We need a cross tool | |
81ecdfbb RW |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14174 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14175 | fi |
14176 | fi | |
4b900473 | 14177 | |
81ecdfbb RW |
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14179 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 14180 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14181 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14182 | # We already found the complete path | |
b8025f34 | 14183 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14185 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14186 | else |
14187 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14189 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14190 | fi |
be01d343 PB |
14191 | else |
14192 | ok=yes | |
14193 | case " ${configdirs} " in | |
14194 | *" gcc "*) ;; | |
14195 | *) ok=no ;; | |
14196 | esac | |
14197 | case ,${enable_languages}, in | |
14198 | *,java,*) ;; | |
14199 | *) ok=no ;; | |
14200 | esac | |
14201 | if test $ok = yes; then | |
14202 | # An in-tree tool is available and we can use it | |
14203 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14205 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14206 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14207 | # We already found the complete path | |
b8025f34 | 14208 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14210 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14211 | elif test "x$target" = "x$host"; then |
14212 | # We can use an host tool | |
14213 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14215 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14216 | else |
14217 | # We need a cross tool | |
81ecdfbb RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14219 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14220 | fi |
14221 | fi | |
4b900473 | 14222 | |
81ecdfbb RW |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14224 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14225 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14226 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14227 | # We already found the complete path | |
b8025f34 | 14228 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14230 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14231 | else |
14232 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14234 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14235 | fi |
be01d343 PB |
14236 | else |
14237 | ok=yes | |
14238 | case " ${configdirs} " in | |
14239 | *" gcc "*) ;; | |
14240 | *) ok=no ;; | |
14241 | esac | |
14242 | case ,${enable_languages}, in | |
14243 | *,fortran,*) ;; | |
14244 | *) ok=no ;; | |
14245 | esac | |
14246 | if test $ok = yes; then | |
14247 | # An in-tree tool is available and we can use it | |
14248 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14250 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14251 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14252 | # We already found the complete path | |
b8025f34 | 14253 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14255 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14256 | elif test "x$target" = "x$host"; then |
14257 | # We can use an host tool | |
14258 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14260 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14261 | else |
14262 | # We need a cross tool | |
81ecdfbb RW |
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14264 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14265 | fi |
14266 | fi | |
4b900473 | 14267 | |
e552509b ILT |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14269 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14270 | if test "x${build}" != "x${host}" ; then | |
14271 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14272 | # We already found the complete path | |
14273 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14275 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14276 | else | |
14277 | # Canadian cross, just use what we found | |
14278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14279 | $as_echo "pre-installed" >&6; } | |
14280 | fi | |
14281 | else | |
14282 | ok=yes | |
14283 | case " ${configdirs} " in | |
14284 | *" gcc "*) ;; | |
14285 | *) ok=no ;; | |
14286 | esac | |
14287 | case ,${enable_languages}, in | |
14288 | *,go,*) ;; | |
14289 | *) ok=no ;; | |
14290 | esac | |
14291 | if test $ok = yes; then | |
14292 | # An in-tree tool is available and we can use it | |
14293 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14295 | $as_echo "just compiled" >&6; } | |
14296 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14297 | # We already found the complete path | |
14298 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14300 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14301 | elif test "x$target" = "x$host"; then | |
14302 | # We can use an host tool | |
14303 | GOC_FOR_TARGET='$(GOC)' | |
14304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14305 | $as_echo "host tool" >&6; } | |
14306 | else | |
14307 | # We need a cross tool | |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14309 | $as_echo "pre-installed" >&6; } | |
14310 | fi | |
14311 | fi | |
14312 | ||
81ecdfbb RW |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14314 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14315 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14316 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14317 | # We already found the complete path | |
b8025f34 | 14318 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14320 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14321 | else |
14322 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14324 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14325 | fi |
be01d343 PB |
14326 | else |
14327 | ok=yes | |
14328 | case " ${configdirs} " in | |
14329 | *" ld "*) ;; | |
14330 | *) ok=no ;; | |
14331 | esac | |
c6b750e1 | 14332 | |
be01d343 PB |
14333 | if test $ok = yes; then |
14334 | # An in-tree tool is available and we can use it | |
14335 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14337 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14338 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14339 | # We already found the complete path | |
b8025f34 | 14340 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14342 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14343 | elif test "x$target" = "x$host"; then |
14344 | # We can use an host tool | |
14345 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14347 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14348 | else |
14349 | # We need a cross tool | |
81ecdfbb RW |
14350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14351 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14352 | fi |
14353 | fi | |
4b900473 | 14354 | |
81ecdfbb RW |
14355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14356 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14357 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14358 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14359 | # We already found the complete path | |
b8025f34 | 14360 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14362 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14363 | else |
14364 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14366 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14367 | fi |
be01d343 | 14368 | else |
2429c060 PB |
14369 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14370 | # We already found the complete path | |
b8025f34 | 14371 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14373 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14374 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14375 | # We can use an host tool |
14376 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14378 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14379 | else |
14380 | # We need a cross tool | |
81ecdfbb RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14382 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14383 | fi |
14384 | fi | |
4b900473 | 14385 | |
81ecdfbb RW |
14386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14387 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14388 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14389 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14390 | # We already found the complete path | |
b8025f34 | 14391 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14393 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14394 | else |
14395 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14397 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14398 | fi |
be01d343 PB |
14399 | else |
14400 | ok=yes | |
14401 | case " ${configdirs} " in | |
14402 | *" binutils "*) ;; | |
14403 | *) ok=no ;; | |
14404 | esac | |
c6b750e1 | 14405 | |
be01d343 PB |
14406 | if test $ok = yes; then |
14407 | # An in-tree tool is available and we can use it | |
14408 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14410 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14411 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14412 | # We already found the complete path | |
b8025f34 | 14413 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14415 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14416 | elif test "x$target" = "x$host"; then |
14417 | # We can use an host tool | |
14418 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14420 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14421 | else |
14422 | # We need a cross tool | |
81ecdfbb RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14424 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14425 | fi |
14426 | fi | |
4b900473 | 14427 | |
6b91c541 AP |
14428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14429 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14430 | if test "x${build}" != "x${host}" ; then | |
14431 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14432 | # We already found the complete path | |
14433 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14435 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14436 | else | |
14437 | # Canadian cross, just use what we found | |
14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14439 | $as_echo "pre-installed" >&6; } | |
14440 | fi | |
14441 | else | |
14442 | ok=yes | |
14443 | case " ${configdirs} " in | |
14444 | *" binutils "*) ;; | |
14445 | *) ok=no ;; | |
14446 | esac | |
14447 | ||
14448 | if test $ok = yes; then | |
14449 | # An in-tree tool is available and we can use it | |
14450 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14452 | $as_echo "just compiled" >&6; } | |
14453 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14454 | # We already found the complete path | |
14455 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14457 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14458 | elif test "x$target" = "x$host"; then | |
14459 | # We can use an host tool | |
1b6c0831 | 14460 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14462 | $as_echo "host tool" >&6; } | |
14463 | else | |
14464 | # We need a cross tool | |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14466 | $as_echo "pre-installed" >&6; } | |
14467 | fi | |
14468 | fi | |
14469 | ||
81ecdfbb RW |
14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14471 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14472 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14473 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14474 | # We already found the complete path | |
b8025f34 | 14475 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14477 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14478 | else |
14479 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14481 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14482 | fi |
be01d343 PB |
14483 | else |
14484 | ok=yes | |
14485 | case " ${configdirs} " in | |
14486 | *" binutils "*) ;; | |
14487 | *) ok=no ;; | |
14488 | esac | |
c6b750e1 | 14489 | |
be01d343 PB |
14490 | if test $ok = yes; then |
14491 | # An in-tree tool is available and we can use it | |
14492 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14494 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14495 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14496 | # We already found the complete path | |
b8025f34 | 14497 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14499 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14500 | elif test "x$target" = "x$host"; then |
14501 | # We can use an host tool | |
14502 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14504 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14505 | else |
14506 | # We need a cross tool | |
81ecdfbb RW |
14507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14508 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14509 | fi |
14510 | fi | |
4b900473 | 14511 | |
81ecdfbb RW |
14512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14513 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14514 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14515 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14516 | # We already found the complete path | |
b8025f34 | 14517 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14519 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14520 | else |
14521 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14523 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14524 | fi |
be01d343 PB |
14525 | else |
14526 | ok=yes | |
14527 | case " ${configdirs} " in | |
14528 | *" binutils "*) ;; | |
14529 | *) ok=no ;; | |
14530 | esac | |
c6b750e1 | 14531 | |
be01d343 PB |
14532 | if test $ok = yes; then |
14533 | # An in-tree tool is available and we can use it | |
14534 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14536 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14537 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14538 | # We already found the complete path | |
b8025f34 | 14539 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14541 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14542 | elif test "x$target" = "x$host"; then |
14543 | # We can use an host tool | |
14544 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14546 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14547 | else |
14548 | # We need a cross tool | |
81ecdfbb RW |
14549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14550 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14551 | fi |
14552 | fi | |
4b900473 | 14553 | |
b121d7d4 DD |
14554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14555 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14556 | if test "x${build}" != "x${host}" ; then | |
14557 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14558 | # We already found the complete path | |
14559 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14561 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14562 | else | |
14563 | # Canadian cross, just use what we found | |
14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14565 | $as_echo "pre-installed" >&6; } | |
14566 | fi | |
14567 | else | |
14568 | ok=yes | |
14569 | case " ${configdirs} " in | |
14570 | *" binutils "*) ;; | |
14571 | *) ok=no ;; | |
14572 | esac | |
14573 | ||
14574 | if test $ok = yes; then | |
14575 | # An in-tree tool is available and we can use it | |
14576 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14578 | $as_echo "just compiled" >&6; } | |
14579 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14580 | # We already found the complete path | |
14581 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14583 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14584 | elif test "x$target" = "x$host"; then | |
14585 | # We can use an host tool | |
14586 | READELF_FOR_TARGET='$(READELF)' | |
14587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14588 | $as_echo "host tool" >&6; } | |
14589 | else | |
14590 | # We need a cross tool | |
14591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14592 | $as_echo "pre-installed" >&6; } | |
14593 | fi | |
14594 | fi | |
14595 | ||
81ecdfbb RW |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14597 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14598 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14599 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14600 | # We already found the complete path | |
b8025f34 | 14601 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14603 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14604 | else |
14605 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14607 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14608 | fi |
be01d343 PB |
14609 | else |
14610 | ok=yes | |
14611 | case " ${configdirs} " in | |
14612 | *" binutils "*) ;; | |
14613 | *) ok=no ;; | |
14614 | esac | |
c6b750e1 | 14615 | |
be01d343 PB |
14616 | if test $ok = yes; then |
14617 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14618 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14620 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14621 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14622 | # We already found the complete path | |
b8025f34 | 14623 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14625 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14626 | elif test "x$target" = "x$host"; then |
14627 | # We can use an host tool | |
14628 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14630 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14631 | else |
14632 | # We need a cross tool | |
81ecdfbb RW |
14633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14634 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14635 | fi |
14636 | fi | |
4b900473 | 14637 | |
81ecdfbb RW |
14638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14639 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14640 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14641 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14642 | # We already found the complete path | |
b8025f34 | 14643 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14645 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14646 | else |
14647 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14649 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14650 | fi |
be01d343 PB |
14651 | else |
14652 | ok=yes | |
14653 | case " ${configdirs} " in | |
14654 | *" binutils "*) ;; | |
14655 | *) ok=no ;; | |
14656 | esac | |
c6b750e1 | 14657 | |
be01d343 PB |
14658 | if test $ok = yes; then |
14659 | # An in-tree tool is available and we can use it | |
14660 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14662 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14663 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14664 | # We already found the complete path | |
b8025f34 | 14665 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14667 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14668 | elif test "x$target" = "x$host"; then |
14669 | # We can use an host tool | |
14670 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14672 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14673 | else |
14674 | # We need a cross tool | |
81ecdfbb RW |
14675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14676 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14677 | fi |
a0da8069 | 14678 | fi |
54752a6b | 14679 | |
81ecdfbb RW |
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14681 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14682 | if test "x${build}" != "x${host}" ; then |
14683 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14684 | # We already found the complete path | |
14685 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14687 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14688 | else |
14689 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14691 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14692 | fi |
14693 | else | |
14694 | ok=yes | |
14695 | case " ${configdirs} " in | |
14696 | *" binutils "*) ;; | |
14697 | *) ok=no ;; | |
14698 | esac | |
14699 | ||
14700 | if test $ok = yes; then | |
14701 | # An in-tree tool is available and we can use it | |
14702 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14704 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14705 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14706 | # We already found the complete path | |
14707 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14709 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14710 | elif test "x$target" = "x$host"; then |
14711 | # We can use an host tool | |
14712 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14714 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14715 | else |
14716 | # We need a cross tool | |
81ecdfbb RW |
14717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14718 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14719 | fi |
14720 | fi | |
14721 | ||
54752a6b NN |
14722 | |
14723 | ||
be01d343 | 14724 | |
4b900473 | 14725 | |
a0da8069 NN |
14726 | # Certain tools may need extra flags. |
14727 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14728 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14729 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14730 | ||
be01d343 PB |
14731 | # When building target libraries, except in a Canadian cross, we use |
14732 | # the same toolchain as the compiler we just built. | |
14733 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14734 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14735 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14736 | if test $host = $build; then | |
14737 | case " $configdirs " in | |
14738 | *" gcc "*) | |
14739 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14740 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14741 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14742 | ;; | |
14743 | esac | |
14744 | fi | |
14745 | ||
14746 | ||
14747 | ||
14748 | ||
14749 | ||
81ecdfbb RW |
14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14751 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14752 | # Check whether --enable-maintainer-mode was given. | |
14753 | if test "${enable_maintainer_mode+set}" = set; then : | |
14754 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14755 | else |
14756 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14757 | fi |
14758 | ||
14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14760 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14761 | |
14762 | ||
14763 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14764 | MAINTAINER_MODE_TRUE= | |
14765 | MAINTAINER_MODE_FALSE='#' | |
14766 | else | |
14767 | MAINTAINER_MODE_TRUE='#' | |
14768 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14769 | fi |
3d5e36ae AO |
14770 | MAINT=$MAINTAINER_MODE_TRUE |
14771 | ||
1d39f329 NN |
14772 | # --------------------- |
14773 | # GCC bootstrap support | |
14774 | # --------------------- | |
14775 | ||
14776 | # Stage specific cflags for build. | |
14777 | stage1_cflags="-g" | |
14778 | case $build in | |
14779 | vax-*-*) | |
14780 | case ${GCC} in | |
14781 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14782 | *) stage1_cflags="-g -J" ;; | |
14783 | esac ;; | |
1d39f329 NN |
14784 | esac |
14785 | ||
1d89b610 | 14786 | |
1d39f329 | 14787 | |
8a0d8a5c | 14788 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14789 | # Check whether --enable-stage1-checking was given. |
14790 | if test "${enable_stage1_checking+set}" = set; then : | |
14791 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14792 | else |
5566c1fa | 14793 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14794 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14795 | else |
5566c1fa | 14796 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14797 | fi |
81ecdfbb | 14798 | fi |
8a0d8a5c PB |
14799 | |
14800 | ||
c6b750e1 | 14801 | |
81ecdfbb RW |
14802 | # Enable -Werror in bootstrap stage2 and later. |
14803 | # Check whether --enable-werror was given. | |
14804 | if test "${enable_werror+set}" = set; then : | |
14805 | enableval=$enable_werror; | |
1d39f329 | 14806 | else |
a0323144 | 14807 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14808 | enable_werror=yes |
79fcd0ec PB |
14809 | else |
14810 | enable_werror=no | |
14811 | fi | |
81ecdfbb RW |
14812 | fi |
14813 | ||
1a6f2dc7 NN |
14814 | case ${enable_werror} in |
14815 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14816 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14817 | esac |
14818 | ||
14819 | ||
82033c9b JBG |
14820 | # Enable --enable-host-shared. |
14821 | # Check whether --enable-host-shared was given. | |
14822 | if test "${enable_host_shared+set}" = set; then : | |
14823 | enableval=$enable_host_shared; host_shared=$enableval | |
14824 | else | |
14825 | host_shared=no | |
14826 | fi | |
14827 | ||
14828 | ||
14829 | ||
1b6c0831 L |
14830 | # PR jit/64780: Require the user to explicitly specify |
14831 | # --enable-host-shared if the jit is enabled, hinting | |
14832 | # that they might want to do a separate configure/build of | |
14833 | # the jit, to avoid users from slowing down the rest of the | |
14834 | # compiler by enabling the jit. | |
14835 | if test ${host_shared} = "no" ; then | |
14836 | case "${enable_languages}" in | |
14837 | *jit*) | |
14838 | as_fn_error " | |
14839 | Enabling language \"jit\" requires --enable-host-shared. | |
14840 | ||
14841 | --enable-host-shared typically slows the rest of the compiler down by | |
14842 | a few %, so you must explicitly enable it. | |
14843 | ||
14844 | If you want to build both the jit and the regular compiler, it is often | |
14845 | best to do this via two separate configure/builds, in separate | |
14846 | directories, to avoid imposing the performance cost of | |
14847 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14848 | ;; | |
14849 | *) | |
14850 | ;; | |
14851 | esac | |
14852 | fi | |
14853 | ||
e8a5fa9c RW |
14854 | # Specify what files to not compare during bootstrap. |
14855 | ||
14856 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14857 | case "$target" in | |
14858 | hppa*64*-*-hpux*) ;; | |
14859 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14860 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14861 | esac |
14862 | ||
14863 | ||
81ecdfbb RW |
14864 | ac_config_files="$ac_config_files Makefile" |
14865 | ||
c6b750e1 | 14866 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14867 | # This file is a shell script that caches the results of configure |
14868 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14869 | # scripts and configure runs, see configure's option --config-cache. |
14870 | # It is not useful on other systems. If it contains results you don't | |
14871 | # want to keep, you may remove or edit it. | |
a0da8069 | 14872 | # |
c6b750e1 DJ |
14873 | # config.status only pays attention to the cache file if you give it |
14874 | # the --recheck option to rerun configure. | |
a0da8069 | 14875 | # |
c6b750e1 DJ |
14876 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14877 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14878 | # following values. | |
14879 | ||
14880 | _ACEOF | |
14881 | ||
a0da8069 NN |
14882 | # The following way of writing the cache mishandles newlines in values, |
14883 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14884 | # So, we kill variables containing newlines. |
a0da8069 NN |
14885 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14886 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14887 | ( |
14888 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14889 | eval ac_val=\$$ac_var | |
14890 | case $ac_val in #( | |
14891 | *${as_nl}*) | |
14892 | case $ac_var in #( | |
14893 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14894 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14895 | esac | |
14896 | case $ac_var in #( | |
14897 | _ | IFS | as_nl) ;; #( | |
14898 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14899 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14900 | esac ;; | |
14901 | esac | |
14902 | done | |
14903 | ||
c6b750e1 | 14904 | (set) 2>&1 | |
81ecdfbb RW |
14905 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14906 | *${as_nl}ac_space=\ *) | |
14907 | # `set' does not quote correctly, so add quotes: double-quote | |
14908 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14909 | sed -n \ |
14910 | "s/'/'\\\\''/g; | |
14911 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14912 | ;; #( |
c6b750e1 DJ |
14913 | *) |
14914 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14915 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14916 | ;; |
81ecdfbb RW |
14917 | esac | |
14918 | sort | |
14919 | ) | | |
c6b750e1 | 14920 | sed ' |
81ecdfbb | 14921 | /^ac_cv_env_/b end |
c6b750e1 | 14922 | t clear |
81ecdfbb | 14923 | :clear |
c6b750e1 DJ |
14924 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14925 | t end | |
81ecdfbb RW |
14926 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14927 | :end' >>confcache | |
14928 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14929 | if test -w "$cache_file"; then | |
14930 | test "x$cache_file" != "x/dev/null" && | |
14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14932 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14933 | cat confcache >$cache_file |
a0da8069 | 14934 | else |
81ecdfbb RW |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14936 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14937 | fi |
852e5f18 | 14938 | fi |
a0da8069 | 14939 | rm -f confcache |
852e5f18 | 14940 | |
a0da8069 NN |
14941 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14942 | # Let make expand exec_prefix. | |
14943 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14944 | |
a0da8069 NN |
14945 | # Transform confdefs.h into DEFS. |
14946 | # Protect against shell expansion while executing Makefile rules. | |
14947 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14948 | # |
14949 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14950 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14951 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14952 | ac_script=' |
14953 | :mline | |
14954 | /\\$/{ | |
14955 | N | |
14956 | s,\\\n,, | |
14957 | b mline | |
14958 | } | |
c6b750e1 | 14959 | t clear |
81ecdfbb RW |
14960 | :clear |
14961 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14962 | t quote |
81ecdfbb | 14963 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14964 | t quote |
81ecdfbb RW |
14965 | b any |
14966 | :quote | |
14967 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14968 | s/\[/\\&/g | |
14969 | s/\]/\\&/g | |
14970 | s/\$/$$/g | |
14971 | H | |
14972 | :any | |
14973 | ${ | |
14974 | g | |
14975 | s/^\n// | |
14976 | s/\n/ /g | |
14977 | p | |
14978 | } | |
14979 | ' | |
14980 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14981 | |
14982 | ||
14983 | ac_libobjs= | |
14984 | ac_ltlibobjs= | |
14985 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14986 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14987 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14988 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14989 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14990 | # will be set to the directory where LIBOBJS objects are built. | |
14991 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14992 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14993 | done |
14994 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14995 | |
c6b750e1 | 14996 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14997 | |
cac3d6c4 | 14998 | |
c6b750e1 DJ |
14999 | |
15000 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 15001 | ac_write_fail=0 |
c6b750e1 DJ |
15002 | ac_clean_files_save=$ac_clean_files |
15003 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
15004 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15005 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15006 | as_write_fail=0 | |
15007 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
15008 | #! $SHELL |
15009 | # Generated by $as_me. | |
a0da8069 | 15010 | # Run this file to recreate the current configuration. |
a0da8069 | 15011 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 15012 | # configure, is in config.log if it exists. |
376a0e54 | 15013 | |
c6b750e1 DJ |
15014 | debug=false |
15015 | ac_cs_recheck=false | |
15016 | ac_cs_silent=false | |
c6b750e1 | 15017 | |
81ecdfbb RW |
15018 | SHELL=\${CONFIG_SHELL-$SHELL} |
15019 | export SHELL | |
15020 | _ASEOF | |
15021 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15022 | ## -------------------- ## | |
15023 | ## M4sh Initialization. ## | |
15024 | ## -------------------- ## | |
15025 | ||
15026 | # Be more Bourne compatible | |
15027 | DUALCASE=1; export DUALCASE # for MKS sh | |
15028 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
15029 | emulate sh |
15030 | NULLCMD=: | |
81ecdfbb | 15031 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
15032 | # is contrary to our usage. Disable this feature. |
15033 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15034 | setopt NO_GLOB_SUBST |
15035 | else | |
15036 | case `(set -o) 2>/dev/null` in #( | |
15037 | *posix*) : | |
15038 | set -o posix ;; #( | |
15039 | *) : | |
15040 | ;; | |
15041 | esac | |
c6b750e1 | 15042 | fi |
c6b750e1 | 15043 | |
81ecdfbb RW |
15044 | |
15045 | as_nl=' | |
15046 | ' | |
15047 | export as_nl | |
15048 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15049 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15050 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15051 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15052 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15053 | # but without wasting forks for bash or zsh. | |
15054 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15055 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15056 | as_echo='print -r --' | |
15057 | as_echo_n='print -rn --' | |
15058 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15059 | as_echo='printf %s\n' | |
15060 | as_echo_n='printf %s' | |
15061 | else | |
15062 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15063 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15064 | as_echo_n='/usr/ucb/echo -n' | |
15065 | else | |
15066 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15067 | as_echo_n_body='eval | |
15068 | arg=$1; | |
15069 | case $arg in #( | |
15070 | *"$as_nl"*) | |
15071 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15072 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15073 | esac; | |
15074 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15075 | ' | |
15076 | export as_echo_n_body | |
15077 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15078 | fi | |
15079 | export as_echo_body | |
15080 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
15081 | fi |
15082 | ||
81ecdfbb RW |
15083 | # The user is always right. |
15084 | if test "${PATH_SEPARATOR+set}" != set; then | |
15085 | PATH_SEPARATOR=: | |
15086 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15087 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15088 | PATH_SEPARATOR=';' | |
15089 | } | |
15090 | fi | |
15091 | ||
15092 | ||
15093 | # IFS | |
15094 | # We need space, tab and new line, in precisely that order. Quoting is | |
15095 | # there to prevent editors from complaining about space-tab. | |
15096 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15097 | # splitting by setting IFS to empty value.) | |
15098 | IFS=" "" $as_nl" | |
15099 | ||
15100 | # Find who we are. Look in the path if we contain no directory separator. | |
15101 | case $0 in #(( | |
15102 | *[\\/]* ) as_myself=$0 ;; | |
15103 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15104 | for as_dir in $PATH | |
15105 | do | |
15106 | IFS=$as_save_IFS | |
15107 | test -z "$as_dir" && as_dir=. | |
15108 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15109 | done | |
15110 | IFS=$as_save_IFS | |
15111 | ||
15112 | ;; | |
15113 | esac | |
15114 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15115 | # in which case we are not to be found in the path. | |
15116 | if test "x$as_myself" = x; then | |
15117 | as_myself=$0 | |
15118 | fi | |
15119 | if test ! -f "$as_myself"; then | |
15120 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15121 | exit 1 | |
15122 | fi | |
c6b750e1 | 15123 | |
81ecdfbb RW |
15124 | # Unset variables that we do not need and which cause bugs (e.g. in |
15125 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15126 | # suppresses any "Segmentation fault" message there. '((' could | |
15127 | # trigger a bug in pdksh 5.2.14. | |
15128 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15129 | do eval test x\${$as_var+set} = xset \ | |
15130 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15131 | done | |
c6b750e1 DJ |
15132 | PS1='$ ' |
15133 | PS2='> ' | |
15134 | PS4='+ ' | |
15135 | ||
15136 | # NLS nuisances. | |
81ecdfbb RW |
15137 | LC_ALL=C |
15138 | export LC_ALL | |
15139 | LANGUAGE=C | |
15140 | export LANGUAGE | |
15141 | ||
15142 | # CDPATH. | |
15143 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15144 | ||
15145 | ||
15146 | # as_fn_error ERROR [LINENO LOG_FD] | |
15147 | # --------------------------------- | |
15148 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15149 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15150 | # script with status $?, using 1 if that was 0. | |
15151 | as_fn_error () | |
15152 | { | |
15153 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15154 | if test "$3"; then | |
15155 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15156 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 15157 | fi |
81ecdfbb RW |
15158 | $as_echo "$as_me: error: $1" >&2 |
15159 | as_fn_exit $as_status | |
15160 | } # as_fn_error | |
15161 | ||
15162 | ||
15163 | # as_fn_set_status STATUS | |
15164 | # ----------------------- | |
15165 | # Set $? to STATUS, without forking. | |
15166 | as_fn_set_status () | |
15167 | { | |
15168 | return $1 | |
15169 | } # as_fn_set_status | |
15170 | ||
15171 | # as_fn_exit STATUS | |
15172 | # ----------------- | |
15173 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15174 | as_fn_exit () | |
15175 | { | |
15176 | set +e | |
15177 | as_fn_set_status $1 | |
15178 | exit $1 | |
15179 | } # as_fn_exit | |
15180 | ||
15181 | # as_fn_unset VAR | |
15182 | # --------------- | |
15183 | # Portably unset VAR. | |
15184 | as_fn_unset () | |
15185 | { | |
15186 | { eval $1=; unset $1;} | |
15187 | } | |
15188 | as_unset=as_fn_unset | |
15189 | # as_fn_append VAR VALUE | |
15190 | # ---------------------- | |
15191 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15192 | # advantage of any shell optimizations that allow amortized linear growth over | |
15193 | # repeated appends, instead of the typical quadratic growth present in naive | |
15194 | # implementations. | |
15195 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15196 | eval 'as_fn_append () | |
15197 | { | |
15198 | eval $1+=\$2 | |
15199 | }' | |
15200 | else | |
15201 | as_fn_append () | |
15202 | { | |
15203 | eval $1=\$$1\$2 | |
15204 | } | |
15205 | fi # as_fn_append | |
15206 | ||
15207 | # as_fn_arith ARG... | |
15208 | # ------------------ | |
15209 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15210 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15211 | # must be portable across $(()) and expr. | |
15212 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15213 | eval 'as_fn_arith () | |
15214 | { | |
15215 | as_val=$(( $* )) | |
15216 | }' | |
15217 | else | |
15218 | as_fn_arith () | |
15219 | { | |
15220 | as_val=`expr "$@" || test $? -eq 1` | |
15221 | } | |
15222 | fi # as_fn_arith | |
15223 | ||
c6b750e1 | 15224 | |
81ecdfbb RW |
15225 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15226 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15227 | as_expr=expr |
15228 | else | |
15229 | as_expr=false | |
15230 | fi | |
15231 | ||
81ecdfbb | 15232 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15233 | as_basename=basename |
15234 | else | |
15235 | as_basename=false | |
15236 | fi | |
15237 | ||
81ecdfbb RW |
15238 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15239 | as_dirname=dirname | |
15240 | else | |
15241 | as_dirname=false | |
15242 | fi | |
c6b750e1 | 15243 | |
81ecdfbb | 15244 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15245 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15246 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15247 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15248 | $as_echo X/"$0" | | |
15249 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15250 | s//\1/ | |
15251 | q | |
15252 | } | |
15253 | /^X\/\(\/\/\)$/{ | |
15254 | s//\1/ | |
15255 | q | |
15256 | } | |
15257 | /^X\/\(\/\).*/{ | |
15258 | s//\1/ | |
15259 | q | |
15260 | } | |
15261 | s/.*/./; q'` | |
c6b750e1 | 15262 | |
c6b750e1 DJ |
15263 | # Avoid depending upon Character Ranges. |
15264 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15265 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15266 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15267 | as_cr_digits='0123456789' | |
15268 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15269 | ||
81ecdfbb RW |
15270 | ECHO_C= ECHO_N= ECHO_T= |
15271 | case `echo -n x` in #((((( | |
15272 | -n*) | |
15273 | case `echo 'xy\c'` in | |
15274 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15275 | xy) ECHO_C='\c';; | |
15276 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15277 | ECHO_T=' ';; | |
15278 | esac;; | |
15279 | *) | |
15280 | ECHO_N='-n';; | |
c6b750e1 DJ |
15281 | esac |
15282 | ||
81ecdfbb RW |
15283 | rm -f conf$$ conf$$.exe conf$$.file |
15284 | if test -d conf$$.dir; then | |
15285 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15286 | else |
81ecdfbb RW |
15287 | rm -f conf$$.dir |
15288 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15289 | fi |
81ecdfbb RW |
15290 | if (echo >conf$$.file) 2>/dev/null; then |
15291 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15292 | as_ln_s='ln -s' |
81ecdfbb RW |
15293 | # ... but there are two gotchas: |
15294 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15295 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15296 | # In both cases, we have to default to `cp -p'. | |
15297 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15298 | as_ln_s='cp -p' | |
15299 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15300 | as_ln_s=ln | |
15301 | else | |
15302 | as_ln_s='cp -p' | |
c6b750e1 | 15303 | fi |
c6b750e1 DJ |
15304 | else |
15305 | as_ln_s='cp -p' | |
15306 | fi | |
81ecdfbb RW |
15307 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15308 | rmdir conf$$.dir 2>/dev/null | |
15309 | ||
15310 | ||
15311 | # as_fn_mkdir_p | |
15312 | # ------------- | |
15313 | # Create "$as_dir" as a directory, including parents if necessary. | |
15314 | as_fn_mkdir_p () | |
15315 | { | |
15316 | ||
15317 | case $as_dir in #( | |
15318 | -*) as_dir=./$as_dir;; | |
15319 | esac | |
15320 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15321 | as_dirs= | |
15322 | while :; do | |
15323 | case $as_dir in #( | |
15324 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15325 | *) as_qdir=$as_dir;; | |
15326 | esac | |
15327 | as_dirs="'$as_qdir' $as_dirs" | |
15328 | as_dir=`$as_dirname -- "$as_dir" || | |
15329 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15330 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15331 | X"$as_dir" : 'X\(//\)$' \| \ | |
15332 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15333 | $as_echo X"$as_dir" | | |
15334 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15335 | s//\1/ | |
15336 | q | |
15337 | } | |
15338 | /^X\(\/\/\)[^/].*/{ | |
15339 | s//\1/ | |
15340 | q | |
15341 | } | |
15342 | /^X\(\/\/\)$/{ | |
15343 | s//\1/ | |
15344 | q | |
15345 | } | |
15346 | /^X\(\/\).*/{ | |
15347 | s//\1/ | |
15348 | q | |
15349 | } | |
15350 | s/.*/./; q'` | |
15351 | test -d "$as_dir" && break | |
15352 | done | |
15353 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15354 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15355 | ||
c6b750e1 | 15356 | |
81ecdfbb | 15357 | } # as_fn_mkdir_p |
c6b750e1 | 15358 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15359 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15360 | else |
15361 | test -d ./-p && rmdir ./-p | |
15362 | as_mkdir_p=false | |
15363 | fi | |
15364 | ||
81ecdfbb RW |
15365 | if test -x / >/dev/null 2>&1; then |
15366 | as_test_x='test -x' | |
15367 | else | |
15368 | if ls -dL / >/dev/null 2>&1; then | |
15369 | as_ls_L_option=L | |
15370 | else | |
15371 | as_ls_L_option= | |
15372 | fi | |
15373 | as_test_x=' | |
15374 | eval sh -c '\'' | |
15375 | if test -d "$1"; then | |
15376 | test -d "$1/."; | |
15377 | else | |
15378 | case $1 in #( | |
15379 | -*)set "./$1";; | |
15380 | esac; | |
15381 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15382 | ???[sx]*):;;*)false;;esac;fi | |
15383 | '\'' sh | |
15384 | ' | |
15385 | fi | |
15386 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15387 | |
15388 | # Sed expression to map a string onto a valid CPP name. | |
15389 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15390 | ||
15391 | # Sed expression to map a string onto a valid variable name. | |
15392 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15393 | ||
15394 | ||
c6b750e1 | 15395 | exec 6>&1 |
81ecdfbb RW |
15396 | ## ----------------------------------- ## |
15397 | ## Main body of $CONFIG_STATUS script. ## | |
15398 | ## ----------------------------------- ## | |
15399 | _ASEOF | |
15400 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15401 | ||
15402 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15403 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15404 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15405 | # values after options handling. |
15406 | ac_log=" | |
c6b750e1 | 15407 | This file was extended by $as_me, which was |
81ecdfbb | 15408 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15409 | |
15410 | CONFIG_FILES = $CONFIG_FILES | |
15411 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15412 | CONFIG_LINKS = $CONFIG_LINKS | |
15413 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15414 | $ $0 $@ | |
15415 | ||
81ecdfbb RW |
15416 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15417 | " | |
15418 | ||
c6b750e1 DJ |
15419 | _ACEOF |
15420 | ||
81ecdfbb RW |
15421 | case $ac_config_files in *" |
15422 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15423 | esac | |
c6b750e1 | 15424 | |
c6b750e1 | 15425 | |
c6b750e1 | 15426 | |
81ecdfbb RW |
15427 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15428 | # Files that config.status was made for. | |
15429 | config_files="$ac_config_files" | |
c6b750e1 | 15430 | |
81ecdfbb | 15431 | _ACEOF |
c6b750e1 | 15432 | |
81ecdfbb | 15433 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15434 | ac_cs_usage="\ |
81ecdfbb RW |
15435 | \`$as_me' instantiates files and other configuration actions |
15436 | from templates according to the current configuration. Unless the files | |
15437 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15438 | |
81ecdfbb | 15439 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15440 | |
15441 | -h, --help print this help, then exit | |
81ecdfbb RW |
15442 | -V, --version print version number and configuration settings, then exit |
15443 | -q, --quiet, --silent | |
15444 | do not print progress messages | |
c6b750e1 DJ |
15445 | -d, --debug don't remove temporary files |
15446 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15447 | --file=FILE[:TEMPLATE] |
15448 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15449 | |
15450 | Configuration files: | |
15451 | $config_files | |
15452 | ||
81ecdfbb | 15453 | Report bugs to the package provider." |
c6b750e1 | 15454 | |
81ecdfbb RW |
15455 | _ACEOF |
15456 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15457 | ac_cs_version="\\ |
15458 | config.status | |
81ecdfbb RW |
15459 | configured by $0, generated by GNU Autoconf 2.64, |
15460 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15461 | |
81ecdfbb | 15462 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15463 | This config.status script is free software; the Free Software Foundation |
15464 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15465 | |
15466 | ac_pwd='$ac_pwd' | |
15467 | srcdir='$srcdir' | |
15468 | INSTALL='$INSTALL' | |
8e957354 | 15469 | AWK='$AWK' |
81ecdfbb | 15470 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15471 | _ACEOF |
15472 | ||
81ecdfbb RW |
15473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15474 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15475 | ac_need_defaults=: |
15476 | while test $# != 0 | |
a0da8069 | 15477 | do |
c6b750e1 DJ |
15478 | case $1 in |
15479 | --*=*) | |
81ecdfbb RW |
15480 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15481 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15482 | ac_shift=: |
15483 | ;; | |
81ecdfbb | 15484 | *) |
c6b750e1 DJ |
15485 | ac_option=$1 |
15486 | ac_optarg=$2 | |
15487 | ac_shift=shift | |
15488 | ;; | |
c6b750e1 DJ |
15489 | esac |
15490 | ||
15491 | case $ac_option in | |
15492 | # Handling of the options. | |
a0da8069 | 15493 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15494 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15495 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15496 | $as_echo "$ac_cs_version"; exit ;; | |
15497 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15498 | debug=: ;; |
15499 | --file | --fil | --fi | --f ) | |
15500 | $ac_shift | |
81ecdfbb RW |
15501 | case $ac_optarg in |
15502 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15503 | esac | |
15504 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15505 | ac_need_defaults=false;; |
81ecdfbb RW |
15506 | --he | --h | --help | --hel | -h ) |
15507 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15508 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15509 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15510 | ac_cs_silent=: ;; | |
15511 | ||
15512 | # This is an error. | |
81ecdfbb RW |
15513 | -*) as_fn_error "unrecognized option: \`$1' |
15514 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15515 | |
81ecdfbb RW |
15516 | *) as_fn_append ac_config_targets " $1" |
15517 | ac_need_defaults=false ;; | |
c6b750e1 | 15518 | |
376a0e54 | 15519 | esac |
c6b750e1 | 15520 | shift |
376a0e54 CM |
15521 | done |
15522 | ||
c6b750e1 | 15523 | ac_configure_extra_args= |
376a0e54 | 15524 | |
c6b750e1 DJ |
15525 | if $ac_cs_silent; then |
15526 | exec 6>/dev/null | |
15527 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15528 | fi | |
376a0e54 | 15529 | |
c6b750e1 | 15530 | _ACEOF |
81ecdfbb | 15531 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15532 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15533 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15534 | shift | |
15535 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15536 | CONFIG_SHELL='$SHELL' | |
15537 | export CONFIG_SHELL | |
15538 | exec "\$@" | |
c6b750e1 DJ |
15539 | fi |
15540 | ||
15541 | _ACEOF | |
81ecdfbb RW |
15542 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15543 | exec 5>>config.log | |
15544 | { | |
15545 | echo | |
15546 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15547 | ## Running $as_me. ## | |
15548 | _ASBOX | |
15549 | $as_echo "$ac_log" | |
15550 | } >&5 | |
c6b750e1 | 15551 | |
81ecdfbb RW |
15552 | _ACEOF |
15553 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15554 | # |
15555 | # INIT-COMMANDS | |
15556 | # | |
15557 | extrasub_build="$extrasub_build" | |
15558 | extrasub_host="$extrasub_host" | |
15559 | extrasub_target="$extrasub_target" | |
15560 | ||
81ecdfbb | 15561 | _ACEOF |
c6b750e1 | 15562 | |
81ecdfbb | 15563 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15564 | |
81ecdfbb | 15565 | # Handling of arguments. |
c6b750e1 DJ |
15566 | for ac_config_target in $ac_config_targets |
15567 | do | |
81ecdfbb RW |
15568 | case $ac_config_target in |
15569 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15570 | ||
15571 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15572 | esac |
15573 | done | |
15574 | ||
81ecdfbb | 15575 | |
c6b750e1 DJ |
15576 | # If the user did not use the arguments to specify the items to instantiate, |
15577 | # then the envvar interface is used. Set only those that are not. | |
15578 | # We use the long form for the default assignment because of an extremely | |
15579 | # bizarre bug on SunOS 4.1.3. | |
15580 | if $ac_need_defaults; then | |
15581 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15582 | fi | |
15583 | ||
15584 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15585 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15586 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15587 | # Hook for its removal unless debugging. |
15588 | # Note that there is a small window in which the directory will not be cleaned: | |
15589 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15590 | $debug || |
15591 | { | |
81ecdfbb RW |
15592 | tmp= |
15593 | trap 'exit_status=$? | |
15594 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15595 | ' 0 | |
15596 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15597 | } |
c6b750e1 DJ |
15598 | # Create a (secure) tmp directory for tmp files. |
15599 | ||
15600 | { | |
81ecdfbb | 15601 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15602 | test -n "$tmp" && test -d "$tmp" |
15603 | } || | |
15604 | { | |
81ecdfbb RW |
15605 | tmp=./conf$$-$RANDOM |
15606 | (umask 077 && mkdir "$tmp") | |
15607 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15608 | ||
15609 | # Set up the scripts for CONFIG_FILES section. | |
15610 | # No need to generate them if there are no CONFIG_FILES. | |
15611 | # This happens for instance with `./config.status config.h'. | |
15612 | if test -n "$CONFIG_FILES"; then | |
15613 | ||
15614 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15615 | ac_cs_awk_getline=: | |
15616 | ac_cs_awk_pipe_init= | |
15617 | ac_cs_awk_read_file=' | |
15618 | while ((getline aline < (F[key])) > 0) | |
15619 | print(aline) | |
15620 | close(F[key])' | |
15621 | ac_cs_awk_pipe_fini= | |
15622 | else | |
15623 | ac_cs_awk_getline=false | |
15624 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15625 | ac_cs_awk_read_file=' | |
15626 | print "|#_!!_#|" | |
15627 | print "cat " F[key] " &&" | |
15628 | '$ac_cs_awk_pipe_init | |
15629 | # The final `:' finishes the AND list. | |
15630 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15631 | fi | |
15632 | ac_cr=`echo X | tr X '\015'` | |
15633 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15634 | # But we know of no other shell where ac_cr would be empty at this | |
15635 | # point, so we can use a bashism as a fallback. | |
15636 | if test "x$ac_cr" = x; then | |
15637 | eval ac_cr=\$\'\\r\' | |
15638 | fi | |
15639 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15640 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15641 | ac_cs_awk_cr='\r' | |
15642 | else | |
15643 | ac_cs_awk_cr=$ac_cr | |
15644 | fi | |
15645 | ||
15646 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15647 | _ACEOF | |
15648 | ||
15649 | # Create commands to substitute file output variables. | |
c6b750e1 | 15650 | { |
81ecdfbb RW |
15651 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15652 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15653 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15654 | echo "_ACAWK" && | |
15655 | echo "_ACEOF" | |
15656 | } >conf$$files.sh && | |
15657 | . ./conf$$files.sh || | |
15658 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15659 | rm -f conf$$files.sh | |
c6b750e1 | 15660 | |
81ecdfbb RW |
15661 | { |
15662 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15663 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15664 | echo "_ACEOF" | |
15665 | } >conf$$subs.sh || | |
15666 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15667 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15668 | ac_delim='%!_!# ' | |
15669 | for ac_last_try in false false false false false :; do | |
15670 | . ./conf$$subs.sh || | |
15671 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15672 | ||
15673 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15674 | if test $ac_delim_n = $ac_delim_num; then | |
15675 | break | |
15676 | elif $ac_last_try; then | |
15677 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15678 | else | |
15679 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15680 | fi | |
15681 | done | |
15682 | rm -f conf$$subs.sh | |
15683 | ||
15684 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15685 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15686 | _ACEOF |
81ecdfbb RW |
15687 | sed -n ' |
15688 | h | |
15689 | s/^/S["/; s/!.*/"]=/ | |
15690 | p | |
15691 | g | |
15692 | s/^[^!]*!// | |
15693 | :repl | |
15694 | t repl | |
15695 | s/'"$ac_delim"'$// | |
15696 | t delim | |
15697 | :nl | |
15698 | h | |
15699 | s/\(.\{148\}\).*/\1/ | |
15700 | t more1 | |
15701 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15702 | p | |
15703 | n | |
15704 | b repl | |
15705 | :more1 | |
15706 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15707 | p | |
15708 | g | |
15709 | s/.\{148\}// | |
15710 | t nl | |
15711 | :delim | |
15712 | h | |
15713 | s/\(.\{148\}\).*/\1/ | |
15714 | t more2 | |
15715 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15716 | p | |
15717 | b | |
15718 | :more2 | |
15719 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15720 | p | |
15721 | g | |
15722 | s/.\{148\}// | |
15723 | t delim | |
15724 | ' <conf$$subs.awk | sed ' | |
15725 | /^[^""]/{ | |
15726 | N | |
15727 | s/\n// | |
15728 | } | |
15729 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15730 | rm -f conf$$subs.awk | |
15731 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15732 | _ACAWK | |
15733 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15734 | for (key in S) S_is_set[key] = 1 | |
15735 | FS = "\a" | |
15736 | \$ac_cs_awk_pipe_init | |
15737 | } | |
15738 | { | |
15739 | line = $ 0 | |
15740 | nfields = split(line, field, "@") | |
15741 | substed = 0 | |
15742 | len = length(field[1]) | |
15743 | for (i = 2; i < nfields; i++) { | |
15744 | key = field[i] | |
15745 | keylen = length(key) | |
15746 | if (S_is_set[key]) { | |
15747 | value = S[key] | |
15748 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15749 | len += length(value) + length(field[++i]) | |
15750 | substed = 1 | |
15751 | } else | |
15752 | len += 1 + keylen | |
15753 | } | |
15754 | if (nfields == 3 && !substed) { | |
15755 | key = field[2] | |
15756 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15757 | \$ac_cs_awk_read_file | |
15758 | next | |
15759 | } | |
15760 | } | |
15761 | print line | |
15762 | } | |
15763 | \$ac_cs_awk_pipe_fini | |
15764 | _ACAWK | |
15765 | _ACEOF | |
15766 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15767 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15768 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15769 | else | |
15770 | cat | |
15771 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15772 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15773 | _ACEOF | |
15774 | ||
15775 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15776 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15777 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15778 | # (actually we leave an empty line to preserve line numbers). | |
15779 | if test "x$srcdir" = x.; then | |
15780 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15781 | s/:*\$(srcdir):*/:/ | |
15782 | s/:*\${srcdir}:*/:/ | |
15783 | s/:*@srcdir@:*/:/ | |
15784 | s/^\([^=]*=[ ]*\):*/\1/ | |
15785 | s/:*$// | |
15786 | s/^[^=]*=[ ]*$// | |
15787 | }' | |
15788 | fi | |
c6b750e1 | 15789 | |
81ecdfbb RW |
15790 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15791 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15792 | |
c6b750e1 | 15793 | |
81ecdfbb RW |
15794 | eval set X " :F $CONFIG_FILES " |
15795 | shift | |
15796 | for ac_tag | |
15797 | do | |
15798 | case $ac_tag in | |
15799 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15800 | esac | |
15801 | case $ac_mode$ac_tag in | |
15802 | :[FHL]*:*);; | |
15803 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15804 | :[FH]-) ac_tag=-:-;; | |
15805 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15806 | esac | |
15807 | ac_save_IFS=$IFS | |
15808 | IFS=: | |
15809 | set x $ac_tag | |
15810 | IFS=$ac_save_IFS | |
15811 | shift | |
15812 | ac_file=$1 | |
15813 | shift | |
252b5132 | 15814 | |
81ecdfbb RW |
15815 | case $ac_mode in |
15816 | :L) ac_source=$1;; | |
15817 | :[FH]) | |
15818 | ac_file_inputs= | |
15819 | for ac_f | |
15820 | do | |
15821 | case $ac_f in | |
15822 | -) ac_f="$tmp/stdin";; | |
15823 | *) # Look for the file first in the build tree, then in the source tree | |
15824 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15825 | # because $ac_f cannot contain `:'. | |
15826 | test -f "$ac_f" || | |
15827 | case $ac_f in | |
15828 | [\\/$]*) false;; | |
15829 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15830 | esac || | |
15831 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15832 | esac | |
15833 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15834 | as_fn_append ac_file_inputs " '$ac_f'" | |
15835 | done | |
c6b750e1 | 15836 | |
81ecdfbb RW |
15837 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15838 | # use $as_me), people would be surprised to read: | |
15839 | # /* config.h. Generated by config.status. */ | |
15840 | configure_input='Generated from '` | |
15841 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15842 | `' by configure.' | |
15843 | if test x"$ac_file" != x-; then | |
15844 | configure_input="$ac_file. $configure_input" | |
15845 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15846 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15847 | fi |
81ecdfbb RW |
15848 | # Neutralize special characters interpreted by sed in replacement strings. |
15849 | case $configure_input in #( | |
15850 | *\&* | *\|* | *\\* ) | |
15851 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15852 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15853 | *) ac_sed_conf_input=$configure_input;; | |
15854 | esac | |
cac3d6c4 | 15855 | |
81ecdfbb RW |
15856 | case $ac_tag in |
15857 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15858 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15859 | esac | |
15860 | ;; | |
a0da8069 | 15861 | esac |
252b5132 | 15862 | |
81ecdfbb | 15863 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15864 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15865 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15866 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15867 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15868 | $as_echo X"$ac_file" | | |
15869 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15870 | s//\1/ | |
15871 | q | |
15872 | } | |
15873 | /^X\(\/\/\)[^/].*/{ | |
15874 | s//\1/ | |
15875 | q | |
15876 | } | |
15877 | /^X\(\/\/\)$/{ | |
15878 | s//\1/ | |
15879 | q | |
15880 | } | |
15881 | /^X\(\/\).*/{ | |
15882 | s//\1/ | |
15883 | q | |
15884 | } | |
15885 | s/.*/./; q'` | |
15886 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15887 | ac_builddir=. |
252b5132 | 15888 | |
81ecdfbb RW |
15889 | case "$ac_dir" in |
15890 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15891 | *) | |
15892 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15893 | # A ".." for each directory in $ac_dir_suffix. | |
15894 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15895 | case $ac_top_builddir_sub in | |
15896 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15897 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15898 | esac ;; | |
15899 | esac | |
15900 | ac_abs_top_builddir=$ac_pwd | |
15901 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15902 | # for backward compatibility: | |
15903 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15904 | |
15905 | case $srcdir in | |
81ecdfbb | 15906 | .) # We are building in place. |
c6b750e1 | 15907 | ac_srcdir=. |
81ecdfbb RW |
15908 | ac_top_srcdir=$ac_top_builddir_sub |
15909 | ac_abs_top_srcdir=$ac_pwd ;; | |
15910 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15911 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15912 | ac_top_srcdir=$srcdir |
15913 | ac_abs_top_srcdir=$srcdir ;; | |
15914 | *) # Relative name. | |
15915 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15916 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15917 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15918 | esac |
81ecdfbb | 15919 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15920 | |
252b5132 | 15921 | |
81ecdfbb RW |
15922 | case $ac_mode in |
15923 | :F) | |
15924 | # | |
15925 | # CONFIG_FILE | |
15926 | # | |
c6b750e1 DJ |
15927 | |
15928 | case $INSTALL in | |
15929 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15930 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15931 | esac |
81ecdfbb | 15932 | _ACEOF |
252b5132 | 15933 | |
81ecdfbb RW |
15934 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15935 | # If the template does not know about datarootdir, expand it. | |
15936 | # FIXME: This hack should be removed a few years after 2.60. | |
15937 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15938 | ac_sed_dataroot=' | |
15939 | /datarootdir/ { | |
15940 | p | |
15941 | q | |
15942 | } | |
15943 | /@datadir@/p | |
15944 | /@docdir@/p | |
15945 | /@infodir@/p | |
15946 | /@localedir@/p | |
15947 | /@mandir@/p' | |
15948 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15949 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15950 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15952 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15953 | _ACEOF |
81ecdfbb RW |
15954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15955 | ac_datarootdir_hack=' | |
15956 | s&@datadir@&$datadir&g | |
15957 | s&@docdir@&$docdir&g | |
15958 | s&@infodir@&$infodir&g | |
15959 | s&@localedir@&$localedir&g | |
15960 | s&@mandir@&$mandir&g | |
15961 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15962 | esac | |
15963 | _ACEOF | |
15964 | ||
15965 | # Neutralize VPATH when `$srcdir' = `.'. | |
15966 | # Shell code in configure.ac might set extrasub. | |
15967 | # FIXME: do we really want to maintain this feature? | |
15968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15969 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15970 | $extrasub |
15971 | _ACEOF | |
81ecdfbb | 15972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15973 | :t |
15974 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15975 | s|@configure_input@|$ac_sed_conf_input|;t t |
15976 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15977 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15978 | s&@srcdir@&$ac_srcdir&;t t | |
15979 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15980 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15981 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15982 | s&@builddir@&$ac_builddir&;t t | |
15983 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15984 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15985 | s&@INSTALL@&$ac_INSTALL&;t t | |
15986 | $ac_datarootdir_hack | |
15987 | " | |
15988 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15989 | if $ac_cs_awk_getline; then | |
15990 | $AWK -f "$tmp/subs.awk" | |
15991 | else | |
15992 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15993 | fi >$tmp/out \ | |
15994 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15995 | ||
15996 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15997 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15998 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16000 | which seems to be undefined. Please make sure it is defined." >&5 | |
16001 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16002 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16003 | ||
16004 | rm -f "$tmp/stdin" | |
16005 | case $ac_file in | |
16006 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16007 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16008 | esac \ | |
16009 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16010 | ;; | |
c148b4cb | 16011 | |
c148b4cb | 16012 | |
c148b4cb | 16013 | |
81ecdfbb RW |
16014 | esac |
16015 | ||
06a51eac RW |
16016 | |
16017 | case $ac_file$ac_mode in | |
16018 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16019 | sed "$extrasub_host" | | |
16020 | sed "$extrasub_target" > mf$$ | |
16021 | mv -f mf$$ Makefile ;; | |
16022 | ||
16023 | esac | |
81ecdfbb RW |
16024 | done # for ac_tag |
16025 | ||
16026 | ||
16027 | as_fn_exit 0 | |
c6b750e1 | 16028 | _ACEOF |
c6b750e1 DJ |
16029 | ac_clean_files=$ac_clean_files_save |
16030 | ||
81ecdfbb RW |
16031 | test $ac_write_fail = 0 || |
16032 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16033 | ||
c6b750e1 DJ |
16034 | |
16035 | # configure is writing to config.log, and then calls config.status. | |
16036 | # config.status does its own redirection, appending to config.log. | |
16037 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16038 | # by configure, so config.status won't be able to write to it; its | |
16039 | # output is simply discarded. So we exec the FD to /dev/null, | |
16040 | # effectively closing config.log, so it can be properly (re)opened and | |
16041 | # appended to by config.status. When coming back to configure, we | |
16042 | # need to make the FD available again. | |
16043 | if test "$no_create" != yes; then | |
16044 | ac_cs_success=: | |
16045 | ac_config_status_args= | |
16046 | test "$silent" = yes && | |
16047 | ac_config_status_args="$ac_config_status_args --quiet" | |
16048 | exec 5>/dev/null | |
16049 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16050 | exec 5>>config.log | |
16051 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16052 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
16053 | $ac_cs_success || as_fn_exit $? |
16054 | fi | |
16055 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16056 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16057 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 16058 | fi |
c148b4cb | 16059 |