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 bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
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 | |
577 | NM_FOR_TARGET | |
578 | LIPO_FOR_TARGET | |
579 | LD_FOR_TARGET | |
580 | DLLTOOL_FOR_TARGET | |
581 | AS_FOR_TARGET | |
582 | AR_FOR_TARGET | |
e552509b | 583 | GOC_FOR_TARGET |
81ecdfbb RW |
584 | GFORTRAN_FOR_TARGET |
585 | GCJ_FOR_TARGET | |
586 | GCC_FOR_TARGET | |
587 | CXX_FOR_TARGET | |
588 | CC_FOR_TARGET | |
b121d7d4 | 589 | READELF |
81ecdfbb RW |
590 | OBJDUMP |
591 | OBJCOPY | |
592 | WINDMC | |
593 | WINDRES | |
594 | STRIP | |
595 | RANLIB | |
596 | NM | |
597 | LIPO | |
598 | LD | |
599 | DLLTOOL | |
600 | AS | |
601 | AR | |
602 | RUNTEST | |
603 | EXPECT | |
604 | MAKEINFO | |
605 | FLEX | |
606 | LEX | |
607 | M4 | |
608 | BISON | |
609 | YACC | |
81ecdfbb RW |
610 | WINDRES_FOR_BUILD |
611 | WINDMC_FOR_BUILD | |
612 | RANLIB_FOR_BUILD | |
613 | NM_FOR_BUILD | |
614 | LD_FOR_BUILD | |
615 | LDFLAGS_FOR_BUILD | |
e552509b | 616 | GOC_FOR_BUILD |
81ecdfbb RW |
617 | GFORTRAN_FOR_BUILD |
618 | GCJ_FOR_BUILD | |
619 | DLLTOOL_FOR_BUILD | |
620 | CXX_FOR_BUILD | |
621 | CXXFLAGS_FOR_BUILD | |
622 | CFLAGS_FOR_BUILD | |
623 | CC_FOR_BUILD | |
624 | AS_FOR_BUILD | |
625 | AR_FOR_BUILD | |
911e63d0 | 626 | target_configdirs |
81ecdfbb | 627 | configdirs |
81ecdfbb | 628 | build_configdirs |
81ecdfbb RW |
629 | INSTALL_GDB_TK |
630 | GDB_TK | |
631 | CONFIGURE_GDB_TK | |
632 | build_tooldir | |
633 | tooldir | |
634 | GCC_SHLIB_SUBDIR | |
635 | RPATH_ENVVAR | |
4074d5f2 RW |
636 | target_configargs |
637 | host_configargs | |
638 | build_configargs | |
96655cc4 | 639 | BUILD_CONFIG |
91c1f14c | 640 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
641 | CXXFLAGS_FOR_TARGET |
642 | CFLAGS_FOR_TARGET | |
643 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
644 | SYSROOT_CFLAGS_FOR_TARGET | |
645 | stage1_languages | |
700d40ca | 646 | extra_host_libiberty_configure_flags |
81ecdfbb RW |
647 | clooginc |
648 | clooglibs | |
7ec59b9e | 649 | islinc |
81ecdfbb | 650 | poststage1_ldflags |
143754cd | 651 | poststage1_libs |
81ecdfbb | 652 | stage1_ldflags |
b3676d82 | 653 | stage1_libs |
7ec59b9e | 654 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
655 | extra_mpc_mpfr_configure_flags |
656 | extra_mpc_gmp_configure_flags | |
657 | extra_mpfr_configure_flags | |
658 | gmpinc | |
659 | gmplibs | |
660 | do_compare | |
661 | GNATMAKE | |
662 | GNATBIND | |
663 | ac_ct_CXX | |
664 | CXXFLAGS | |
665 | CXX | |
666 | OBJEXT | |
667 | EXEEXT | |
668 | ac_ct_CC | |
669 | CPPFLAGS | |
670 | LDFLAGS | |
671 | CFLAGS | |
672 | CC | |
ffdd6afc | 673 | EXTRA_CONFIGARGS_LIBJAVA |
81ecdfbb RW |
674 | target_subdir |
675 | host_subdir | |
676 | build_subdir | |
677 | build_libsubdir | |
8e957354 PB |
678 | AWK |
679 | SED | |
81ecdfbb RW |
680 | LN_S |
681 | LN | |
682 | INSTALL_DATA | |
683 | INSTALL_SCRIPT | |
684 | INSTALL_PROGRAM | |
685 | target_os | |
686 | target_vendor | |
687 | target_cpu | |
688 | target | |
689 | host_os | |
690 | host_vendor | |
691 | host_cpu | |
692 | host | |
693 | target_noncanonical | |
694 | host_noncanonical | |
695 | build_noncanonical | |
696 | build_os | |
697 | build_vendor | |
698 | build_cpu | |
699 | build | |
700 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
701 | target_alias | |
702 | host_alias | |
703 | build_alias | |
704 | LIBS | |
705 | ECHO_T | |
706 | ECHO_N | |
707 | ECHO_C | |
708 | DEFS | |
709 | mandir | |
710 | localedir | |
711 | libdir | |
712 | psdir | |
713 | pdfdir | |
714 | dvidir | |
715 | htmldir | |
716 | infodir | |
717 | docdir | |
718 | oldincludedir | |
719 | includedir | |
720 | localstatedir | |
721 | sharedstatedir | |
722 | sysconfdir | |
723 | datadir | |
724 | datarootdir | |
725 | libexecdir | |
726 | sbindir | |
727 | bindir | |
728 | program_transform_name | |
729 | prefix | |
730 | exec_prefix | |
731 | PACKAGE_URL | |
732 | PACKAGE_BUGREPORT | |
733 | PACKAGE_STRING | |
734 | PACKAGE_VERSION | |
735 | PACKAGE_TARNAME | |
736 | PACKAGE_NAME | |
737 | PATH_SEPARATOR | |
738 | SHELL' | |
739 | ac_subst_files='serialization_dependencies | |
740 | host_makefile_frag | |
741 | target_makefile_frag | |
742 | alphaieee_frag | |
743 | ospace_frag' | |
744 | ac_user_opts=' | |
745 | enable_option_checking | |
746 | with_build_libsubdir | |
747 | enable_gold | |
c7791212 | 748 | enable_ld |
89a1e9c3 PB |
749 | enable_libquadmath |
750 | enable_libquadmath_support | |
81ecdfbb RW |
751 | enable_libada |
752 | enable_libssp | |
f66a9a70 | 753 | enable_libstdcxx |
ffdd6afc ILT |
754 | enable_static_libjava |
755 | enable_bootstrap | |
81ecdfbb RW |
756 | with_mpc |
757 | with_mpc_include | |
758 | with_mpc_lib | |
759 | with_mpfr_dir | |
760 | with_mpfr | |
761 | with_mpfr_include | |
762 | with_mpfr_lib | |
763 | with_gmp_dir | |
764 | with_gmp | |
765 | with_gmp_include | |
766 | with_gmp_lib | |
767 | with_host_libstdcxx | |
81ecdfbb | 768 | with_stage1_libs |
b3676d82 | 769 | with_stage1_ldflags |
81ecdfbb | 770 | with_boot_libs |
143754cd | 771 | with_boot_ldflags |
8e71395b | 772 | with_cloog |
7ec59b9e L |
773 | with_isl |
774 | with_isl_include | |
775 | with_isl_lib | |
776 | enable_isl_version_check | |
81ecdfbb RW |
777 | with_cloog_include |
778 | with_cloog_lib | |
779 | enable_cloog_version_check | |
700d40ca | 780 | enable_lto |
81ecdfbb RW |
781 | enable_stage1_languages |
782 | enable_objc_gc | |
783 | with_build_sysroot | |
784 | with_debug_prefix_map | |
96655cc4 | 785 | with_build_config |
81ecdfbb RW |
786 | enable_serial_configure |
787 | with_build_time_tools | |
788 | enable_maintainer_mode | |
789 | enable_stage1_checking | |
790 | enable_werror | |
82033c9b | 791 | enable_host_shared |
81ecdfbb RW |
792 | ' |
793 | ac_precious_vars='build_alias | |
794 | host_alias | |
795 | target_alias | |
796 | CC | |
797 | CFLAGS | |
798 | LDFLAGS | |
799 | LIBS | |
800 | CPPFLAGS | |
801 | CXX | |
802 | CXXFLAGS | |
803 | CCC | |
4074d5f2 RW |
804 | build_configargs |
805 | host_configargs | |
806 | target_configargs | |
81ecdfbb RW |
807 | AR |
808 | AS | |
809 | DLLTOOL | |
810 | LD | |
811 | LIPO | |
812 | NM | |
813 | RANLIB | |
814 | STRIP | |
815 | WINDRES | |
816 | WINDMC | |
817 | OBJCOPY | |
818 | OBJDUMP | |
b121d7d4 | 819 | READELF |
81ecdfbb RW |
820 | CC_FOR_TARGET |
821 | CXX_FOR_TARGET | |
822 | GCC_FOR_TARGET | |
823 | GCJ_FOR_TARGET | |
824 | GFORTRAN_FOR_TARGET | |
e552509b | 825 | GOC_FOR_TARGET |
81ecdfbb RW |
826 | AR_FOR_TARGET |
827 | AS_FOR_TARGET | |
828 | DLLTOOL_FOR_TARGET | |
829 | LD_FOR_TARGET | |
830 | LIPO_FOR_TARGET | |
831 | NM_FOR_TARGET | |
832 | OBJDUMP_FOR_TARGET | |
833 | RANLIB_FOR_TARGET | |
b121d7d4 | 834 | READELF_FOR_TARGET |
81ecdfbb RW |
835 | STRIP_FOR_TARGET |
836 | WINDRES_FOR_TARGET | |
837 | WINDMC_FOR_TARGET' | |
838 | ||
a0da8069 NN |
839 | |
840 | # Initialize some variables set by options. | |
c6b750e1 DJ |
841 | ac_init_help= |
842 | ac_init_version=false | |
81ecdfbb RW |
843 | ac_unrecognized_opts= |
844 | ac_unrecognized_sep= | |
a0da8069 NN |
845 | # The variables have the same names as the options, with |
846 | # dashes changed to underlines. | |
c6b750e1 | 847 | cache_file=/dev/null |
a0da8069 | 848 | exec_prefix=NONE |
a0da8069 | 849 | no_create= |
a0da8069 NN |
850 | no_recursion= |
851 | prefix=NONE | |
852 | program_prefix=NONE | |
853 | program_suffix=NONE | |
854 | program_transform_name=s,x,x, | |
855 | silent= | |
856 | site= | |
857 | srcdir= | |
a0da8069 NN |
858 | verbose= |
859 | x_includes=NONE | |
860 | x_libraries=NONE | |
c6b750e1 DJ |
861 | |
862 | # Installation directory options. | |
863 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
864 | # and all the variables that are supposed to be based on exec_prefix | |
865 | # by default will actually change. | |
866 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 867 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
868 | bindir='${exec_prefix}/bin' |
869 | sbindir='${exec_prefix}/sbin' | |
870 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
871 | datarootdir='${prefix}/share' |
872 | datadir='${datarootdir}' | |
a0da8069 NN |
873 | sysconfdir='${prefix}/etc' |
874 | sharedstatedir='${prefix}/com' | |
875 | localstatedir='${prefix}/var' | |
a0da8069 NN |
876 | includedir='${prefix}/include' |
877 | oldincludedir='/usr/include' | |
81ecdfbb RW |
878 | docdir='${datarootdir}/doc/${PACKAGE}' |
879 | infodir='${datarootdir}/info' | |
880 | htmldir='${docdir}' | |
881 | dvidir='${docdir}' | |
882 | pdfdir='${docdir}' | |
883 | psdir='${docdir}' | |
884 | libdir='${exec_prefix}/lib' | |
885 | localedir='${datarootdir}/locale' | |
886 | mandir='${datarootdir}/man' | |
252b5132 | 887 | |
a0da8069 | 888 | ac_prev= |
81ecdfbb | 889 | ac_dashdash= |
a0da8069 NN |
890 | for ac_option |
891 | do | |
a0da8069 NN |
892 | # If the previous option needs an argument, assign it. |
893 | if test -n "$ac_prev"; then | |
81ecdfbb | 894 | eval $ac_prev=\$ac_option |
a0da8069 NN |
895 | ac_prev= |
896 | continue | |
897 | fi | |
252b5132 | 898 | |
81ecdfbb RW |
899 | case $ac_option in |
900 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
901 | *) ac_optarg=yes ;; | |
902 | esac | |
a0da8069 NN |
903 | |
904 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
905 | ||
81ecdfbb RW |
906 | case $ac_dashdash$ac_option in |
907 | --) | |
908 | ac_dashdash=yes ;; | |
a0da8069 NN |
909 | |
910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
911 | ac_prev=bindir ;; | |
912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 913 | bindir=$ac_optarg ;; |
a0da8069 NN |
914 | |
915 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 916 | ac_prev=build_alias ;; |
a0da8069 | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 918 | build_alias=$ac_optarg ;; |
a0da8069 NN |
919 | |
920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
922 | ac_prev=cache_file ;; | |
923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
925 | cache_file=$ac_optarg ;; |
926 | ||
927 | --config-cache | -C) | |
928 | cache_file=config.cache ;; | |
a0da8069 | 929 | |
81ecdfbb | 930 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 931 | ac_prev=datadir ;; |
81ecdfbb | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 933 | datadir=$ac_optarg ;; |
a0da8069 | 934 | |
81ecdfbb RW |
935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
936 | | --dataroo | --dataro | --datar) | |
937 | ac_prev=datarootdir ;; | |
938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
940 | datarootdir=$ac_optarg ;; | |
941 | ||
a0da8069 | 942 | -disable-* | --disable-*) |
81ecdfbb | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 944 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
946 | as_fn_error "invalid feature name: $ac_useropt" | |
947 | ac_useropt_orig=$ac_useropt | |
948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
949 | case $ac_user_opts in | |
950 | *" | |
951 | "enable_$ac_useropt" | |
952 | "*) ;; | |
953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
954 | ac_unrecognized_sep=', ';; | |
955 | esac | |
956 | eval enable_$ac_useropt=no ;; | |
957 | ||
958 | -docdir | --docdir | --docdi | --doc | --do) | |
959 | ac_prev=docdir ;; | |
960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
961 | docdir=$ac_optarg ;; | |
962 | ||
963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
964 | ac_prev=dvidir ;; | |
965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
966 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
967 | |
968 | -enable-* | --enable-*) | |
81ecdfbb | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 970 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
972 | as_fn_error "invalid feature name: $ac_useropt" | |
973 | ac_useropt_orig=$ac_useropt | |
974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
975 | case $ac_user_opts in | |
976 | *" | |
977 | "enable_$ac_useropt" | |
978 | "*) ;; | |
979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
980 | ac_unrecognized_sep=', ';; | |
a0da8069 | 981 | esac |
81ecdfbb | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
983 | |
984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
986 | | --exec | --exe | --ex) | |
987 | ac_prev=exec_prefix ;; | |
988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
990 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 991 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
992 | |
993 | -gas | --gas | --ga | --g) | |
994 | # Obsolete; use --with-gas. | |
995 | with_gas=yes ;; | |
996 | ||
c6b750e1 DJ |
997 | -help | --help | --hel | --he | -h) |
998 | ac_init_help=long ;; | |
999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1000 | ac_init_help=recursive ;; | |
1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1002 | ac_init_help=short ;; | |
a0da8069 NN |
1003 | |
1004 | -host | --host | --hos | --ho) | |
c6b750e1 | 1005 | ac_prev=host_alias ;; |
a0da8069 | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1007 | host_alias=$ac_optarg ;; |
a0da8069 | 1008 | |
81ecdfbb RW |
1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1010 | ac_prev=htmldir ;; | |
1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1012 | | --ht=*) | |
1013 | htmldir=$ac_optarg ;; | |
1014 | ||
a0da8069 NN |
1015 | -includedir | --includedir | --includedi | --included | --include \ |
1016 | | --includ | --inclu | --incl | --inc) | |
1017 | ac_prev=includedir ;; | |
1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1020 | includedir=$ac_optarg ;; |
a0da8069 NN |
1021 | |
1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1023 | ac_prev=infodir ;; | |
1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1025 | infodir=$ac_optarg ;; |
a0da8069 NN |
1026 | |
1027 | -libdir | --libdir | --libdi | --libd) | |
1028 | ac_prev=libdir ;; | |
1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1030 | libdir=$ac_optarg ;; |
a0da8069 NN |
1031 | |
1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1033 | | --libexe | --libex | --libe) | |
1034 | ac_prev=libexecdir ;; | |
1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1036 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1037 | libexecdir=$ac_optarg ;; |
a0da8069 | 1038 | |
81ecdfbb RW |
1039 | -localedir | --localedir | --localedi | --localed | --locale) |
1040 | ac_prev=localedir ;; | |
1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1042 | localedir=$ac_optarg ;; | |
1043 | ||
a0da8069 | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1046 | ac_prev=localstatedir ;; |
1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1049 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1050 | |
1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1052 | ac_prev=mandir ;; | |
1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1054 | mandir=$ac_optarg ;; |
a0da8069 NN |
1055 | |
1056 | -nfp | --nfp | --nf) | |
1057 | # Obsolete; use --without-fp. | |
1058 | with_fp=no ;; | |
1059 | ||
1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1061 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1062 | no_create=yes ;; |
1063 | ||
1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1066 | no_recursion=yes ;; | |
1067 | ||
1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1070 | | --oldin | --oldi | --old | --ol | --o) | |
1071 | ac_prev=oldincludedir ;; | |
1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1075 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1076 | |
1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1078 | ac_prev=prefix ;; | |
1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1080 | prefix=$ac_optarg ;; |
a0da8069 NN |
1081 | |
1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1083 | | --program-pre | --program-pr | --program-p) | |
1084 | ac_prev=program_prefix ;; | |
1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1087 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1088 | |
1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1090 | | --program-suf | --program-su | --program-s) | |
1091 | ac_prev=program_suffix ;; | |
1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1094 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1095 | |
1096 | -program-transform-name | --program-transform-name \ | |
1097 | | --program-transform-nam | --program-transform-na \ | |
1098 | | --program-transform-n | --program-transform- \ | |
1099 | | --program-transform | --program-transfor \ | |
1100 | | --program-transfo | --program-transf \ | |
1101 | | --program-trans | --program-tran \ | |
1102 | | --progr-tra | --program-tr | --program-t) | |
1103 | ac_prev=program_transform_name ;; | |
1104 | -program-transform-name=* | --program-transform-name=* \ | |
1105 | | --program-transform-nam=* | --program-transform-na=* \ | |
1106 | | --program-transform-n=* | --program-transform-=* \ | |
1107 | | --program-transform=* | --program-transfor=* \ | |
1108 | | --program-transfo=* | --program-transf=* \ | |
1109 | | --program-trans=* | --program-tran=* \ | |
1110 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1111 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1112 | |
81ecdfbb RW |
1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1114 | ac_prev=pdfdir ;; | |
1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1116 | pdfdir=$ac_optarg ;; | |
1117 | ||
1118 | -psdir | --psdir | --psdi | --psd | --ps) | |
1119 | ac_prev=psdir ;; | |
1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1121 | psdir=$ac_optarg ;; | |
1122 | ||
a0da8069 NN |
1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1124 | | -silent | --silent | --silen | --sile | --sil) | |
1125 | silent=yes ;; | |
1126 | ||
1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1128 | ac_prev=sbindir ;; | |
1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1130 | | --sbi=* | --sb=*) | |
c6b750e1 | 1131 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1132 | |
1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1135 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1136 | | --sha | --sh) | |
1137 | ac_prev=sharedstatedir ;; | |
1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1141 | | --sha=* | --sh=*) | |
c6b750e1 | 1142 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1143 | |
1144 | -site | --site | --sit) | |
1145 | ac_prev=site ;; | |
1146 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1147 | site=$ac_optarg ;; |
a0da8069 NN |
1148 | |
1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1150 | ac_prev=srcdir ;; | |
1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1152 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1153 | |
1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1155 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1156 | ac_prev=sysconfdir ;; | |
1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1159 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1160 | |
1161 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1162 | ac_prev=target_alias ;; |
a0da8069 | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1164 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1165 | |
1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1167 | verbose=yes ;; | |
1168 | ||
c6b750e1 DJ |
1169 | -version | --version | --versio | --versi | --vers | -V) |
1170 | ac_init_version=: ;; | |
a0da8069 NN |
1171 | |
1172 | -with-* | --with-*) | |
81ecdfbb | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1174 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1176 | as_fn_error "invalid package name: $ac_useropt" | |
1177 | ac_useropt_orig=$ac_useropt | |
1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1179 | case $ac_user_opts in | |
1180 | *" | |
1181 | "with_$ac_useropt" | |
1182 | "*) ;; | |
1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1184 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1185 | esac |
81ecdfbb | 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1187 | |
1188 | -without-* | --without-*) | |
81ecdfbb | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1190 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1192 | as_fn_error "invalid package name: $ac_useropt" | |
1193 | ac_useropt_orig=$ac_useropt | |
1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1195 | case $ac_user_opts in | |
1196 | *" | |
1197 | "with_$ac_useropt" | |
1198 | "*) ;; | |
1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1200 | ac_unrecognized_sep=', ';; | |
1201 | esac | |
1202 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1203 | |
1204 | --x) | |
1205 | # Obsolete; use --with-x. | |
1206 | with_x=yes ;; | |
1207 | ||
1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1209 | | --x-incl | --x-inc | --x-in | --x-i) | |
1210 | ac_prev=x_includes ;; | |
1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1213 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1214 | |
1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1217 | ac_prev=x_libraries ;; | |
1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1220 | x_libraries=$ac_optarg ;; |
a0da8069 | 1221 | |
81ecdfbb RW |
1222 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1223 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1224 | ;; |
1225 | ||
c6b750e1 DJ |
1226 | *=*) |
1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1228 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1229 | case $ac_envvar in #( |
1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1231 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1232 | esac | |
1233 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1234 | export $ac_envvar ;; |
1235 | ||
a0da8069 | 1236 | *) |
c6b750e1 | 1237 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1242 | ;; |
1243 | ||
1244 | esac | |
1245 | done | |
1246 | ||
1247 | if test -n "$ac_prev"; then | |
c6b750e1 | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1249 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1250 | fi |
a0da8069 | 1251 | |
81ecdfbb RW |
1252 | if test -n "$ac_unrecognized_opts"; then |
1253 | case $enable_option_checking in | |
1254 | no) ;; | |
1255 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1257 | esac |
81ecdfbb | 1258 | fi |
a0da8069 | 1259 | |
81ecdfbb RW |
1260 | # Check all directory arguments for consistency. |
1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1264 | libdir localedir mandir | |
a0da8069 | 1265 | do |
81ecdfbb RW |
1266 | eval ac_val=\$$ac_var |
1267 | # Remove trailing slashes. | |
1268 | case $ac_val in | |
1269 | */ ) | |
1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1271 | eval $ac_var=\$ac_val;; | |
1272 | esac | |
1273 | # Be sure to have absolute directory names. | |
c6b750e1 | 1274 | case $ac_val in |
81ecdfbb RW |
1275 | [\\/$]* | ?:[\\/]* ) continue;; |
1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1277 | esac |
81ecdfbb | 1278 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1279 | done |
1280 | ||
c6b750e1 DJ |
1281 | # There might be people who depend on the old broken behavior: `$host' |
1282 | # used to hold the argument of --host etc. | |
1283 | # FIXME: To remove some day. | |
1284 | build=$build_alias | |
1285 | host=$host_alias | |
1286 | target=$target_alias | |
376a0e54 | 1287 | |
c6b750e1 DJ |
1288 | # FIXME: To remove some day. |
1289 | if test "x$host_alias" != x; then | |
1290 | if test "x$build_alias" = x; then | |
1291 | cross_compiling=maybe | |
81ecdfbb | 1292 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1293 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1294 | elif test "x$build_alias" != "x$host_alias"; then | |
1295 | cross_compiling=yes | |
1296 | fi | |
1297 | fi | |
1298 | ||
1299 | ac_tool_prefix= | |
1300 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1301 | ||
1302 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1303 | |
a0da8069 | 1304 | |
81ecdfbb RW |
1305 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1306 | ac_ls_di=`ls -di .` && | |
1307 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1308 | as_fn_error "working directory cannot be determined" | |
1309 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1310 | as_fn_error "pwd does not report name of working directory" | |
1311 | ||
1312 | ||
a0da8069 NN |
1313 | # Find the source files, if location was not specified. |
1314 | if test -z "$srcdir"; then | |
1315 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1316 | # Try the directory containing this script, then the parent directory. |
1317 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1318 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1319 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1320 | X"$as_myself" : 'X\(//\)$' \| \ | |
1321 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1322 | $as_echo X"$as_myself" | | |
1323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\/\)[^/].*/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | /^X\(\/\/\)$/{ | |
1332 | s//\1/ | |
1333 | q | |
1334 | } | |
1335 | /^X\(\/\).*/{ | |
1336 | s//\1/ | |
1337 | q | |
1338 | } | |
1339 | s/.*/./; q'` | |
a0da8069 | 1340 | srcdir=$ac_confdir |
81ecdfbb | 1341 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1342 | srcdir=.. |
1343 | fi | |
1344 | else | |
1345 | ac_srcdir_defaulted=no | |
1346 | fi | |
81ecdfbb RW |
1347 | if test ! -r "$srcdir/$ac_unique_file"; then |
1348 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1349 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1350 | fi | |
1351 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1352 | ac_abs_confdir=`( | |
1353 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1354 | pwd)` | |
1355 | # When building in place, set srcdir=. | |
1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1357 | srcdir=. | |
1358 | fi | |
1359 | # Remove unnecessary trailing slashes from srcdir. | |
1360 | # Double slashes in file names in object file debugging info | |
1361 | # mess up M-x gdb in Emacs. | |
1362 | case $srcdir in | |
1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1364 | esac | |
6d0cd39e AM |
1365 | case $srcdir in |
1366 | *" "*) | |
1367 | as_fn_error "path to source, $srcdir, contains spaces" | |
1368 | ;; | |
1369 | esac | |
9cc8ae67 PB |
1370 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1371 | ||
81ecdfbb RW |
1372 | for ac_var in $ac_precious_vars; do |
1373 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1374 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1375 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1376 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1377 | done | |
c6b750e1 DJ |
1378 | |
1379 | # | |
1380 | # Report the --help message. | |
1381 | # | |
1382 | if test "$ac_init_help" = "long"; then | |
1383 | # Omit some internal or obsolete options to make the list less imposing. | |
1384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1385 | cat <<_ACEOF | |
1386 | \`configure' configures this package to adapt to many kinds of systems. | |
1387 | ||
1388 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1389 | ||
1390 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1391 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1392 | ||
1393 | Defaults for the options are specified in brackets. | |
1394 | ||
1395 | Configuration: | |
1396 | -h, --help display this help and exit | |
1397 | --help=short display options specific to this package | |
1398 | --help=recursive display the short help of all the included packages | |
1399 | -V, --version display version information and exit | |
1400 | -q, --quiet, --silent do not print \`checking...' messages | |
1401 | --cache-file=FILE cache test results in FILE [disabled] | |
1402 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1403 | -n, --no-create do not create output files | |
1404 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1405 | ||
c6b750e1 DJ |
1406 | Installation directories: |
1407 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1408 | [$ac_default_prefix] |
c6b750e1 | 1409 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1410 | [PREFIX] |
c6b750e1 DJ |
1411 | |
1412 | By default, \`make install' will install all the files in | |
1413 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1414 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1415 | for instance \`--prefix=\$HOME'. | |
1416 | ||
1417 | For better control, use the options below. | |
1418 | ||
1419 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1420 | --bindir=DIR user executables [EPREFIX/bin] |
1421 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1422 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1423 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1424 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1425 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1426 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1427 | --includedir=DIR C header files [PREFIX/include] | |
1428 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1429 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1430 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1431 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1432 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1433 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1434 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1435 | --htmldir=DIR html documentation [DOCDIR] | |
1436 | --dvidir=DIR dvi documentation [DOCDIR] | |
1437 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1438 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1439 | _ACEOF |
1440 | ||
1441 | cat <<\_ACEOF | |
1442 | ||
1443 | Program names: | |
1444 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1445 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1446 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1447 | ||
1448 | System types: | |
1449 | --build=BUILD configure for building on BUILD [guessed] | |
1450 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1451 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1452 | _ACEOF | |
a0da8069 | 1453 | fi |
a0da8069 | 1454 | |
c6b750e1 DJ |
1455 | if test -n "$ac_init_help"; then |
1456 | ||
1457 | cat <<\_ACEOF | |
1458 | ||
1459 | Optional Features: | |
81ecdfbb | 1460 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1461 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1462 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1463 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1464 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1465 | --disable-libquadmath do not build libquadmath directory |
1466 | --disable-libquadmath-support | |
1467 | disable libquadmath support for Fortran | |
521ec477 DD |
1468 | --enable-libada build libada directory |
1469 | --enable-libssp build libssp directory | |
f66a9a70 | 1470 | --disable-libstdcxx do not build libstdc++-v3 directory |
ffdd6afc ILT |
1471 | --enable-static-libjava[=ARG] |
1472 | build static libjava [default=no] | |
1473 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e L |
1474 | --disable-isl-version-check |
1475 | disable check for ISL version | |
e552509b ILT |
1476 | --disable-cloog-version-check |
1477 | disable check for CLooG version | |
700d40ca | 1478 | --enable-lto enable link time optimization support |
7837304f AS |
1479 | --enable-stage1-languages[=all] |
1480 | choose additional languages to build during stage1. | |
1481 | Mostly useful for compiler development | |
1482 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1483 | Objective-C runtime | |
521ec477 | 1484 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1485 | force sequential configuration of sub-packages for |
1486 | the host, target or build machine, or all | |
1487 | sub-packages | |
1488 | --enable-maintainer-mode | |
1489 | enable make rules and dependencies not useful (and | |
1490 | sometimes confusing) to the casual installer | |
1491 | --enable-stage1-checking[=all] | |
1492 | choose additional checking for stage1 of the | |
1493 | compiler | |
c6b750e1 | 1494 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1495 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1496 | |
1497 | Optional Packages: | |
1498 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1499 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1500 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1501 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1502 | Equivalent to --with-mpc-include=PATH/include plus | |
1503 | --with-mpc-lib=PATH/lib | |
1504 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1505 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1506 | --with-mpfr-dir=PATH this option has been REMOVED |
1507 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1508 | Equivalent to --with-mpfr-include=PATH/include plus |
1509 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1510 | --with-mpfr-include=PATH |
521ec477 DD |
1511 | specify directory for installed MPFR include files |
1512 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1513 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1514 | --with-gmp=PATH specify prefix directory for the installed GMP |
1515 | package. Equivalent to | |
1516 | --with-gmp-include=PATH/include plus | |
1517 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1518 | --with-gmp-include=PATH specify directory for installed GMP include files |
1519 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1520 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1521 | linking with PPL | |
b3676d82 | 1522 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1523 | --with-stage1-ldflags=FLAGS |
1524 | linker flags for stage1 | |
7837304f AS |
1525 | --with-boot-libs=LIBS libraries for stage2 and later |
1526 | --with-boot-ldflags=FLAGS | |
1527 | linker flags for stage2 and later | |
8e71395b L |
1528 | --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL |
1529 | package. Equivalent to | |
1530 | --with-cloog-include=PATH/include plus | |
1531 | --with-cloog-lib=PATH/lib | |
7ec59b9e | 1532 | --with-isl=PATH Specify prefix directory for the installed ISL |
7837304f | 1533 | package. Equivalent to |
7ec59b9e L |
1534 | --with-isl-include=PATH/include plus |
1535 | --with-isl-lib=PATH/lib | |
1536 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1537 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
e552509b ILT |
1538 | --with-cloog-include=PATH |
1539 | Specify directory for installed CLooG include files | |
1540 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1541 | library | |
521ec477 | 1542 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1543 | use sysroot as the system root during the build |
8a6ee3ab | 1544 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1545 | map A to B, C to D ... in debug information |
1546 | --with-build-config='NAME NAME2...' | |
1547 | use config/NAME.mk build configuration | |
521ec477 | 1548 | --with-build-time-tools=PATH |
c6b750e1 | 1549 | use given path to find target tools during the build |
c6b750e1 DJ |
1550 | |
1551 | Some influential environment variables: | |
1552 | CC C compiler command | |
1553 | CFLAGS C compiler flags | |
1554 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1555 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1556 | LIBS libraries to pass to the linker, e.g. -l<library> |
1557 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1558 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1559 | CXX C++ compiler command |
1560 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1561 | build_configargs |
1562 | additional configure arguments for build directories | |
1563 | host_configargs | |
1564 | additional configure arguments for host directories | |
1565 | target_configargs | |
1566 | additional configure arguments for target directories | |
9a819804 AO |
1567 | AR AR for the host |
1568 | AS AS for the host | |
1569 | DLLTOOL DLLTOOL for the host | |
1570 | LD LD for the host | |
1571 | LIPO LIPO for the host | |
1572 | NM NM for the host | |
1573 | RANLIB RANLIB for the host | |
1574 | STRIP STRIP for the host | |
1575 | WINDRES WINDRES for the host | |
0c24b341 | 1576 | WINDMC WINDMC for the host |
9a819804 AO |
1577 | OBJCOPY OBJCOPY for the host |
1578 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1579 | READELF READELF for the host |
9a819804 AO |
1580 | CC_FOR_TARGET |
1581 | CC for the target | |
1582 | CXX_FOR_TARGET | |
1583 | CXX for the target | |
1584 | GCC_FOR_TARGET | |
1585 | GCC for the target | |
1586 | GCJ_FOR_TARGET | |
1587 | GCJ for the target | |
1588 | GFORTRAN_FOR_TARGET | |
1589 | GFORTRAN for the target | |
e552509b ILT |
1590 | GOC_FOR_TARGET |
1591 | GOC for the target | |
9a819804 AO |
1592 | AR_FOR_TARGET |
1593 | AR for the target | |
1594 | AS_FOR_TARGET | |
1595 | AS for the target | |
1596 | DLLTOOL_FOR_TARGET | |
1597 | DLLTOOL for the target | |
1598 | LD_FOR_TARGET | |
1599 | LD for the target | |
1600 | LIPO_FOR_TARGET | |
1601 | LIPO for the target | |
1602 | NM_FOR_TARGET | |
1603 | NM for the target | |
1604 | OBJDUMP_FOR_TARGET | |
1605 | OBJDUMP for the target | |
1606 | RANLIB_FOR_TARGET | |
1607 | RANLIB for the target | |
b121d7d4 DD |
1608 | READELF_FOR_TARGET |
1609 | READELF for the target | |
9a819804 AO |
1610 | STRIP_FOR_TARGET |
1611 | STRIP for the target | |
1612 | WINDRES_FOR_TARGET | |
1613 | WINDRES for the target | |
0c24b341 NC |
1614 | WINDMC_FOR_TARGET |
1615 | WINDMC for the target | |
c6b750e1 DJ |
1616 | |
1617 | Use these variables to override the choices made by `configure' or to help | |
1618 | it to find libraries and programs with nonstandard names/locations. | |
1619 | ||
81ecdfbb | 1620 | Report bugs to the package provider. |
c6b750e1 | 1621 | _ACEOF |
81ecdfbb | 1622 | ac_status=$? |
c6b750e1 DJ |
1623 | fi |
1624 | ||
1625 | if test "$ac_init_help" = "recursive"; then | |
1626 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1627 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1628 | test -d "$ac_dir" || |
1629 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1630 | continue | |
c6b750e1 DJ |
1631 | ac_builddir=. |
1632 | ||
81ecdfbb RW |
1633 | case "$ac_dir" in |
1634 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1635 | *) | |
1636 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1637 | # A ".." for each directory in $ac_dir_suffix. | |
1638 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1639 | case $ac_top_builddir_sub in | |
1640 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1641 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1642 | esac ;; | |
1643 | esac | |
1644 | ac_abs_top_builddir=$ac_pwd | |
1645 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1646 | # for backward compatibility: | |
1647 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1648 | |
1649 | case $srcdir in | |
81ecdfbb | 1650 | .) # We are building in place. |
c6b750e1 | 1651 | ac_srcdir=. |
81ecdfbb RW |
1652 | ac_top_srcdir=$ac_top_builddir_sub |
1653 | ac_abs_top_srcdir=$ac_pwd ;; | |
1654 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1655 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1656 | ac_top_srcdir=$srcdir |
1657 | ac_abs_top_srcdir=$srcdir ;; | |
1658 | *) # Relative name. | |
1659 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1660 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1661 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1662 | esac |
81ecdfbb RW |
1663 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1664 | ||
1665 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1666 | # Check for guested configure. | |
1667 | if test -f "$ac_srcdir/configure.gnu"; then | |
1668 | echo && | |
1669 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1670 | elif test -f "$ac_srcdir/configure"; then | |
1671 | echo && | |
1672 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1673 | else |
81ecdfbb RW |
1674 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1675 | fi || ac_status=$? | |
1676 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1677 | done |
1678 | fi | |
1679 | ||
81ecdfbb | 1680 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1681 | if $ac_init_version; then |
1682 | cat <<\_ACEOF | |
81ecdfbb RW |
1683 | configure |
1684 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1685 | |
81ecdfbb | 1686 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1687 | This configure script is free software; the Free Software Foundation |
1688 | gives unlimited permission to copy, distribute and modify it. | |
1689 | _ACEOF | |
81ecdfbb | 1690 | exit |
c6b750e1 | 1691 | fi |
81ecdfbb RW |
1692 | |
1693 | ## ------------------------ ## | |
1694 | ## Autoconf initialization. ## | |
1695 | ## ------------------------ ## | |
1696 | ||
1697 | # ac_fn_c_try_compile LINENO | |
1698 | # -------------------------- | |
1699 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1700 | ac_fn_c_try_compile () | |
1701 | { | |
1702 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1703 | rm -f conftest.$ac_objext | |
1704 | if { { ac_try="$ac_compile" | |
1705 | case "(($ac_try" in | |
1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1707 | *) ac_try_echo=$ac_try;; | |
1708 | esac | |
1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1710 | $as_echo "$ac_try_echo"; } >&5 | |
1711 | (eval "$ac_compile") 2>conftest.err | |
1712 | ac_status=$? | |
1713 | if test -s conftest.err; then | |
1714 | grep -v '^ *+' conftest.err >conftest.er1 | |
1715 | cat conftest.er1 >&5 | |
1716 | mv -f conftest.er1 conftest.err | |
1717 | fi | |
1718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1719 | test $ac_status = 0; } && { | |
1720 | test -z "$ac_c_werror_flag" || | |
1721 | test ! -s conftest.err | |
1722 | } && test -s conftest.$ac_objext; then : | |
1723 | ac_retval=0 | |
1724 | else | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1727 | ||
1728 | ac_retval=1 | |
1729 | fi | |
1730 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1731 | return $ac_retval | |
1732 | ||
1733 | } # ac_fn_c_try_compile | |
1734 | ||
1735 | # ac_fn_cxx_try_compile LINENO | |
1736 | # ---------------------------- | |
1737 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1738 | ac_fn_cxx_try_compile () | |
1739 | { | |
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1741 | rm -f conftest.$ac_objext | |
1742 | if { { ac_try="$ac_compile" | |
1743 | case "(($ac_try" in | |
1744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1745 | *) ac_try_echo=$ac_try;; | |
1746 | esac | |
1747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1748 | $as_echo "$ac_try_echo"; } >&5 | |
1749 | (eval "$ac_compile") 2>conftest.err | |
1750 | ac_status=$? | |
1751 | if test -s conftest.err; then | |
1752 | grep -v '^ *+' conftest.err >conftest.er1 | |
1753 | cat conftest.er1 >&5 | |
1754 | mv -f conftest.er1 conftest.err | |
1755 | fi | |
1756 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1757 | test $ac_status = 0; } && { | |
1758 | test -z "$ac_cxx_werror_flag" || | |
1759 | test ! -s conftest.err | |
1760 | } && test -s conftest.$ac_objext; then : | |
1761 | ac_retval=0 | |
1762 | else | |
1763 | $as_echo "$as_me: failed program was:" >&5 | |
1764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1765 | ||
1766 | ac_retval=1 | |
1767 | fi | |
1768 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1769 | return $ac_retval | |
1770 | ||
1771 | } # ac_fn_cxx_try_compile | |
1772 | ||
b3676d82 EB |
1773 | # ac_fn_cxx_try_link LINENO |
1774 | # ------------------------- | |
1775 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1776 | ac_fn_cxx_try_link () | |
1777 | { | |
1778 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1780 | if { { ac_try="$ac_link" | |
1781 | case "(($ac_try" in | |
1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1783 | *) ac_try_echo=$ac_try;; | |
1784 | esac | |
1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1786 | $as_echo "$ac_try_echo"; } >&5 | |
1787 | (eval "$ac_link") 2>conftest.err | |
1788 | ac_status=$? | |
1789 | if test -s conftest.err; then | |
1790 | grep -v '^ *+' conftest.err >conftest.er1 | |
1791 | cat conftest.er1 >&5 | |
1792 | mv -f conftest.er1 conftest.err | |
1793 | fi | |
1794 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1795 | test $ac_status = 0; } && { | |
1796 | test -z "$ac_cxx_werror_flag" || | |
1797 | test ! -s conftest.err | |
1798 | } && test -s conftest$ac_exeext && { | |
1799 | test "$cross_compiling" = yes || | |
1800 | $as_test_x conftest$ac_exeext | |
1801 | }; then : | |
1802 | ac_retval=0 | |
1803 | else | |
1804 | $as_echo "$as_me: failed program was:" >&5 | |
1805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1806 | ||
1807 | ac_retval=1 | |
1808 | fi | |
1809 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1810 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1811 | # interfere with the next link command; also delete a directory that is | |
1812 | # left behind by Apple's compiler. We do this before executing the actions. | |
1813 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1814 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1815 | return $ac_retval | |
1816 | ||
1817 | } # ac_fn_cxx_try_link | |
1818 | ||
81ecdfbb RW |
1819 | # ac_fn_c_try_link LINENO |
1820 | # ----------------------- | |
1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1822 | ac_fn_c_try_link () | |
1823 | { | |
1824 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1826 | if { { ac_try="$ac_link" | |
1827 | case "(($ac_try" in | |
1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1829 | *) ac_try_echo=$ac_try;; | |
1830 | esac | |
1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1832 | $as_echo "$ac_try_echo"; } >&5 | |
1833 | (eval "$ac_link") 2>conftest.err | |
1834 | ac_status=$? | |
1835 | if test -s conftest.err; then | |
1836 | grep -v '^ *+' conftest.err >conftest.er1 | |
1837 | cat conftest.er1 >&5 | |
1838 | mv -f conftest.er1 conftest.err | |
1839 | fi | |
1840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1841 | test $ac_status = 0; } && { | |
1842 | test -z "$ac_c_werror_flag" || | |
1843 | test ! -s conftest.err | |
1844 | } && test -s conftest$ac_exeext && { | |
1845 | test "$cross_compiling" = yes || | |
1846 | $as_test_x conftest$ac_exeext | |
1847 | }; then : | |
1848 | ac_retval=0 | |
1849 | else | |
1850 | $as_echo "$as_me: failed program was:" >&5 | |
1851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1852 | ||
1853 | ac_retval=1 | |
1854 | fi | |
1855 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1856 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1857 | # interfere with the next link command; also delete a directory that is | |
1858 | # left behind by Apple's compiler. We do this before executing the actions. | |
1859 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1860 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1861 | return $ac_retval | |
1862 | ||
1863 | } # ac_fn_c_try_link | |
7ec59b9e L |
1864 | |
1865 | # ac_fn_c_try_run LINENO | |
1866 | # ---------------------- | |
1867 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1868 | # that executables *can* be run. | |
1869 | ac_fn_c_try_run () | |
1870 | { | |
1871 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1872 | if { { ac_try="$ac_link" | |
1873 | case "(($ac_try" in | |
1874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1875 | *) ac_try_echo=$ac_try;; | |
1876 | esac | |
1877 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1878 | $as_echo "$ac_try_echo"; } >&5 | |
1879 | (eval "$ac_link") 2>&5 | |
1880 | ac_status=$? | |
1881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1882 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1883 | { { case "(($ac_try" in | |
1884 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1885 | *) ac_try_echo=$ac_try;; | |
1886 | esac | |
1887 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1888 | $as_echo "$ac_try_echo"; } >&5 | |
1889 | (eval "$ac_try") 2>&5 | |
1890 | ac_status=$? | |
1891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1892 | test $ac_status = 0; }; }; then : | |
1893 | ac_retval=0 | |
1894 | else | |
1895 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1896 | $as_echo "$as_me: failed program was:" >&5 | |
1897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1898 | ||
1899 | ac_retval=$ac_status | |
1900 | fi | |
1901 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1902 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1903 | return $ac_retval | |
1904 | ||
1905 | } # ac_fn_c_try_run | |
81ecdfbb | 1906 | cat >config.log <<_ACEOF |
c6b750e1 DJ |
1907 | This file contains any messages produced by compilers while |
1908 | running configure, to aid debugging if configure makes a mistake. | |
1909 | ||
1910 | It was created by $as_me, which was | |
81ecdfbb | 1911 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1912 | |
1913 | $ $0 $@ | |
1914 | ||
1915 | _ACEOF | |
81ecdfbb | 1916 | exec 5>>config.log |
c6b750e1 DJ |
1917 | { |
1918 | cat <<_ASUNAME | |
1919 | ## --------- ## | |
1920 | ## Platform. ## | |
1921 | ## --------- ## | |
1922 | ||
1923 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1924 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1925 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1926 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1927 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1928 | ||
1929 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1930 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1931 | ||
1932 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1933 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1934 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1935 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1936 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1937 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1938 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1939 | ||
1940 | _ASUNAME | |
1941 | ||
1942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1943 | for as_dir in $PATH | |
1944 | do | |
1945 | IFS=$as_save_IFS | |
1946 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1947 | $as_echo "PATH: $as_dir" |
1948 | done | |
1949 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1950 | |
1951 | } >&5 | |
1952 | ||
1953 | cat >&5 <<_ACEOF | |
1954 | ||
1955 | ||
1956 | ## ----------- ## | |
1957 | ## Core tests. ## | |
1958 | ## ----------- ## | |
1959 | ||
1960 | _ACEOF | |
1961 | ||
1962 | ||
1963 | # Keep a trace of the command line. | |
1964 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1965 | # Strip out --silent because we don't want to record it for future runs. | |
1966 | # Also quote any args containing shell meta-characters. | |
1967 | # Make two passes to allow for proper duplicate-argument suppression. | |
1968 | ac_configure_args= | |
1969 | ac_configure_args0= | |
1970 | ac_configure_args1= | |
c6b750e1 DJ |
1971 | ac_must_keep_next=false |
1972 | for ac_pass in 1 2 | |
1973 | do | |
1974 | for ac_arg | |
1975 | do | |
1976 | case $ac_arg in | |
1977 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1978 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1979 | | -silent | --silent | --silen | --sile | --sil) | |
1980 | continue ;; | |
81ecdfbb RW |
1981 | *\'*) |
1982 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1983 | esac |
1984 | case $ac_pass in | |
81ecdfbb | 1985 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1986 | 2) |
81ecdfbb | 1987 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1988 | if test $ac_must_keep_next = true; then |
1989 | ac_must_keep_next=false # Got value, back to normal. | |
1990 | else | |
1991 | case $ac_arg in | |
1992 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1993 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1994 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1995 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1996 | case "$ac_configure_args0 " in | |
1997 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1998 | esac | |
1999 | ;; | |
2000 | -* ) ac_must_keep_next=true ;; | |
2001 | esac | |
2002 | fi | |
81ecdfbb | 2003 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2004 | ;; |
2005 | esac | |
2006 | done | |
2007 | done | |
81ecdfbb RW |
2008 | { ac_configure_args0=; unset ac_configure_args0;} |
2009 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2010 | |
2011 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2012 | # config.log. We remove comments because anyway the quotes in there | |
2013 | # would cause problems or look ugly. | |
81ecdfbb RW |
2014 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2015 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2016 | trap 'exit_status=$? |
2017 | # Save into config.log some information that might help in debugging. | |
2018 | { | |
2019 | echo | |
2020 | ||
2021 | cat <<\_ASBOX | |
2022 | ## ---------------- ## | |
2023 | ## Cache variables. ## | |
2024 | ## ---------------- ## | |
2025 | _ASBOX | |
2026 | echo | |
2027 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2028 | ( |
2029 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2030 | eval ac_val=\$$ac_var | |
2031 | case $ac_val in #( | |
2032 | *${as_nl}*) | |
2033 | case $ac_var in #( | |
2034 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2035 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2036 | esac | |
2037 | case $ac_var in #( | |
2038 | _ | IFS | as_nl) ;; #( | |
2039 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2040 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2041 | esac ;; | |
2042 | esac | |
2043 | done | |
c6b750e1 | 2044 | (set) 2>&1 | |
81ecdfbb RW |
2045 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2046 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2047 | sed -n \ |
81ecdfbb RW |
2048 | "s/'\''/'\''\\\\'\'''\''/g; |
2049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2050 | ;; #( | |
c6b750e1 | 2051 | *) |
81ecdfbb | 2052 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2053 | ;; |
81ecdfbb RW |
2054 | esac | |
2055 | sort | |
2056 | ) | |
c6b750e1 DJ |
2057 | echo |
2058 | ||
2059 | cat <<\_ASBOX | |
2060 | ## ----------------- ## | |
2061 | ## Output variables. ## | |
2062 | ## ----------------- ## | |
2063 | _ASBOX | |
2064 | echo | |
2065 | for ac_var in $ac_subst_vars | |
2066 | do | |
81ecdfbb RW |
2067 | eval ac_val=\$$ac_var |
2068 | case $ac_val in | |
2069 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2070 | esac | |
2071 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2072 | done | sort |
2073 | echo | |
2074 | ||
2075 | if test -n "$ac_subst_files"; then | |
2076 | cat <<\_ASBOX | |
81ecdfbb RW |
2077 | ## ------------------- ## |
2078 | ## File substitutions. ## | |
2079 | ## ------------------- ## | |
c6b750e1 DJ |
2080 | _ASBOX |
2081 | echo | |
2082 | for ac_var in $ac_subst_files | |
2083 | do | |
81ecdfbb RW |
2084 | eval ac_val=\$$ac_var |
2085 | case $ac_val in | |
2086 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2087 | esac | |
2088 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2089 | done | sort |
2090 | echo | |
2091 | fi | |
2092 | ||
2093 | if test -s confdefs.h; then | |
2094 | cat <<\_ASBOX | |
2095 | ## ----------- ## | |
2096 | ## confdefs.h. ## | |
2097 | ## ----------- ## | |
2098 | _ASBOX | |
2099 | echo | |
81ecdfbb | 2100 | cat confdefs.h |
c6b750e1 DJ |
2101 | echo |
2102 | fi | |
2103 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2104 | $as_echo "$as_me: caught signal $ac_signal" |
2105 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2106 | } >&5 |
81ecdfbb RW |
2107 | rm -f core *.core core.conftest.* && |
2108 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2109 | exit $exit_status |
81ecdfbb | 2110 | ' 0 |
c6b750e1 | 2111 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2112 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2113 | done |
2114 | ac_signal=0 | |
2115 | ||
2116 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2117 | rm -f -r conftest* confdefs.h |
2118 | ||
2119 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2120 | |
2121 | # Predefined preprocessor variables. | |
2122 | ||
2123 | cat >>confdefs.h <<_ACEOF | |
2124 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2125 | _ACEOF | |
2126 | ||
c6b750e1 DJ |
2127 | cat >>confdefs.h <<_ACEOF |
2128 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2129 | _ACEOF | |
2130 | ||
c6b750e1 DJ |
2131 | cat >>confdefs.h <<_ACEOF |
2132 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2133 | _ACEOF | |
2134 | ||
c6b750e1 DJ |
2135 | cat >>confdefs.h <<_ACEOF |
2136 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2137 | _ACEOF | |
2138 | ||
c6b750e1 DJ |
2139 | cat >>confdefs.h <<_ACEOF |
2140 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2141 | _ACEOF | |
2142 | ||
81ecdfbb RW |
2143 | cat >>confdefs.h <<_ACEOF |
2144 | #define PACKAGE_URL "$PACKAGE_URL" | |
2145 | _ACEOF | |
2146 | ||
c6b750e1 DJ |
2147 | |
2148 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2149 | # Prefer an explicitly selected file to automatically selected ones. |
2150 | ac_site_file1=NONE | |
2151 | ac_site_file2=NONE | |
2152 | if test -n "$CONFIG_SITE"; then | |
2153 | ac_site_file1=$CONFIG_SITE | |
2154 | elif test "x$prefix" != xNONE; then | |
2155 | ac_site_file1=$prefix/share/config.site | |
2156 | ac_site_file2=$prefix/etc/config.site | |
2157 | else | |
2158 | ac_site_file1=$ac_default_prefix/share/config.site | |
2159 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2160 | fi |
81ecdfbb RW |
2161 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2162 | do | |
2163 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2164 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2165 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2166 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2167 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2168 | . "$ac_site_file" |
2169 | fi | |
2170 | done | |
2171 | ||
2172 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2173 | # Some versions of bash will fail to source /dev/null (special |
2174 | # files actually), so we avoid doing that. | |
2175 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2177 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2178 | case $cache_file in |
81ecdfbb RW |
2179 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2180 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2181 | esac |
2182 | fi | |
a0da8069 | 2183 | else |
81ecdfbb RW |
2184 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2185 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2186 | >$cache_file |
2187 | fi | |
2188 | ||
2189 | # Check that the precious variables saved in the cache have kept the same | |
2190 | # value. | |
2191 | ac_cache_corrupted=false | |
81ecdfbb | 2192 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2193 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2194 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2195 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2196 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2197 | case $ac_old_set,$ac_new_set in |
2198 | set,) | |
81ecdfbb RW |
2199 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2200 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2201 | ac_cache_corrupted=: ;; |
2202 | ,set) | |
81ecdfbb RW |
2203 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2204 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2205 | ac_cache_corrupted=: ;; |
2206 | ,);; | |
2207 | *) | |
2208 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2209 | # differences in whitespace do not lead to failure. |
2210 | ac_old_val_w=`echo x $ac_old_val` | |
2211 | ac_new_val_w=`echo x $ac_new_val` | |
2212 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2213 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2214 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2215 | ac_cache_corrupted=: | |
2216 | else | |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2218 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2219 | eval $ac_var=\$ac_old_val | |
2220 | fi | |
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2222 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2224 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2225 | fi;; |
2226 | esac | |
2227 | # Pass precious variables to config.status. | |
2228 | if test "$ac_new_set" = set; then | |
2229 | case $ac_new_val in | |
81ecdfbb | 2230 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2231 | *) ac_arg=$ac_var=$ac_new_val ;; |
2232 | esac | |
2233 | case " $ac_configure_args " in | |
2234 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2235 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2236 | esac |
2237 | fi | |
2238 | done | |
2239 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2240 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2241 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2243 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2244 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2245 | fi |
81ecdfbb RW |
2246 | ## -------------------- ## |
2247 | ## Main body of script. ## | |
2248 | ## -------------------- ## | |
a0da8069 NN |
2249 | |
2250 | ac_ext=c | |
a0da8069 | 2251 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2255 | ||
2256 | ||
2257 | ||
2258 | ||
c6b750e1 DJ |
2259 | |
2260 | ||
34a0f3cf | 2261 | |
c6b750e1 | 2262 | |
5b553f7e RW |
2263 | |
2264 | progname=$0 | |
2265 | # if PWD already has a value, it is probably wrong. | |
2266 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2267 | ||
2268 | # Export original configure arguments for use by sub-configures. | |
2269 | # Quote arguments with shell meta charatcers. | |
2270 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2271 | set -- "$progname" "$@" | |
2272 | for ac_arg | |
2273 | do | |
2274 | case "$ac_arg" in | |
2275 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2276 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2277 | # if the argument is of the form -foo=baz, quote the baz part only | |
2278 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2279 | *) ;; | |
2280 | esac | |
2281 | # Add the quoted argument to the list. | |
2282 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2283 | done | |
2284 | if test "$silent" = yes; then | |
2285 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2286 | fi | |
2287 | # Remove the initial space we just introduced and, as these will be | |
2288 | # expanded by make, quote '$'. | |
2289 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2290 | ||
c6b750e1 DJ |
2291 | |
2292 | # Find the build, host, and target systems. | |
a0da8069 | 2293 | ac_aux_dir= |
81ecdfbb RW |
2294 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2295 | for ac_t in install-sh install.sh shtool; do | |
2296 | if test -f "$ac_dir/$ac_t"; then | |
2297 | ac_aux_dir=$ac_dir | |
2298 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2299 | break 2 | |
2300 | fi | |
2301 | done | |
a0da8069 NN |
2302 | done |
2303 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2304 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2305 | fi |
81ecdfbb RW |
2306 | |
2307 | # These three variables are undocumented and unsupported, | |
2308 | # and are intended to be withdrawn in a future Autoconf release. | |
2309 | # They can cause serious problems if a builder's source tree is in a directory | |
2310 | # whose full name contains unusual characters. | |
2311 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2312 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2313 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2314 | ||
a0da8069 | 2315 | |
c6b750e1 | 2316 | # Make sure we can run config.sub. |
81ecdfbb RW |
2317 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2318 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2319 | ||
2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2321 | $as_echo_n "checking build system type... " >&6; } | |
2322 | if test "${ac_cv_build+set}" = set; then : | |
2323 | $as_echo_n "(cached) " >&6 | |
2324 | else | |
2325 | ac_build_alias=$build_alias | |
2326 | test "x$ac_build_alias" = x && | |
2327 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2328 | test "x$ac_build_alias" = x && | |
2329 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2330 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2331 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2332 | ||
2333 | fi | |
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2335 | $as_echo "$ac_cv_build" >&6; } | |
2336 | case $ac_cv_build in | |
2337 | *-*-*) ;; | |
2338 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2339 | esac | |
c6b750e1 | 2340 | build=$ac_cv_build |
81ecdfbb RW |
2341 | ac_save_IFS=$IFS; IFS='-' |
2342 | set x $ac_cv_build | |
2343 | shift | |
2344 | build_cpu=$1 | |
2345 | build_vendor=$2 | |
2346 | shift; shift | |
2347 | # Remember, the first character of IFS is used to create $*, | |
2348 | # except with old shells: | |
2349 | build_os=$* | |
2350 | IFS=$ac_save_IFS | |
2351 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2352 | |
a0da8069 | 2353 | |
c6b750e1 DJ |
2354 | case ${build_alias} in |
2355 | "") build_noncanonical=${build} ;; | |
2356 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2357 | esac |
2358 | ||
2359 | ||
cac3d6c4 | 2360 | |
c6b750e1 DJ |
2361 | case ${host_alias} in |
2362 | "") host_noncanonical=${build_noncanonical} ;; | |
2363 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2364 | esac |
2365 | ||
cac3d6c4 | 2366 | |
c6b750e1 DJ |
2367 | |
2368 | case ${target_alias} in | |
2369 | "") target_noncanonical=${host_noncanonical} ;; | |
2370 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2371 | esac |
2372 | ||
cac3d6c4 | 2373 | |
c6b750e1 DJ |
2374 | |
2375 | ||
2376 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2377 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2378 | NONENONEs,x,x, && | |
c6b750e1 | 2379 | program_transform_name=s,y,y, |
cac3d6c4 | 2380 | |
81ecdfbb RW |
2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2382 | $as_echo_n "checking host system type... " >&6; } | |
2383 | if test "${ac_cv_host+set}" = set; then : | |
2384 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2385 | else |
81ecdfbb RW |
2386 | if test "x$host_alias" = x; then |
2387 | ac_cv_host=$ac_cv_build | |
2388 | else | |
2389 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2390 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2391 | fi | |
c6b750e1 DJ |
2392 | |
2393 | fi | |
81ecdfbb RW |
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2395 | $as_echo "$ac_cv_host" >&6; } | |
2396 | case $ac_cv_host in | |
2397 | *-*-*) ;; | |
2398 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2399 | esac | |
c6b750e1 | 2400 | host=$ac_cv_host |
81ecdfbb RW |
2401 | ac_save_IFS=$IFS; IFS='-' |
2402 | set x $ac_cv_host | |
2403 | shift | |
2404 | host_cpu=$1 | |
2405 | host_vendor=$2 | |
2406 | shift; shift | |
2407 | # Remember, the first character of IFS is used to create $*, | |
2408 | # except with old shells: | |
2409 | host_os=$* | |
2410 | IFS=$ac_save_IFS | |
2411 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2412 | |
2413 | ||
81ecdfbb RW |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2415 | $as_echo_n "checking target system type... " >&6; } | |
2416 | if test "${ac_cv_target+set}" = set; then : | |
2417 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2418 | else |
81ecdfbb RW |
2419 | if test "x$target_alias" = x; then |
2420 | ac_cv_target=$ac_cv_host | |
2421 | else | |
2422 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2423 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2424 | fi | |
c6b750e1 | 2425 | |
cac3d6c4 | 2426 | fi |
81ecdfbb RW |
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2428 | $as_echo "$ac_cv_target" >&6; } | |
2429 | case $ac_cv_target in | |
2430 | *-*-*) ;; | |
2431 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2432 | esac | |
c6b750e1 | 2433 | target=$ac_cv_target |
81ecdfbb RW |
2434 | ac_save_IFS=$IFS; IFS='-' |
2435 | set x $ac_cv_target | |
2436 | shift | |
2437 | target_cpu=$1 | |
2438 | target_vendor=$2 | |
2439 | shift; shift | |
2440 | # Remember, the first character of IFS is used to create $*, | |
2441 | # except with old shells: | |
2442 | target_os=$* | |
2443 | IFS=$ac_save_IFS | |
2444 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2445 | |
2446 | ||
2447 | # The aliases save the names the user supplied, while $host etc. | |
2448 | # will get canonicalized. | |
2449 | test -n "$target_alias" && | |
2450 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2451 | NONENONEs,x,x, && | |
2452 | program_prefix=${target_alias}- | |
81ecdfbb | 2453 | |
a0da8069 | 2454 | test "$program_prefix" != NONE && |
81ecdfbb | 2455 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2456 | # Use a double $ so make ignores it. |
2457 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2458 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2459 | # Double any \ or $. | |
c6b750e1 | 2460 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2461 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2462 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2463 | |
a0da8069 NN |
2464 | |
2465 | ||
e5c3f801 NN |
2466 | # Get 'install' or 'install-sh' and its variants. |
2467 | # Find a good install program. We prefer a C program (faster), | |
2468 | # so one script is as good as another. But avoid the broken or | |
2469 | # incompatible versions: | |
2470 | # SysV /etc/install, /usr/sbin/install | |
2471 | # SunOS /usr/etc/install | |
2472 | # IRIX /sbin/install | |
2473 | # AIX /bin/install | |
c6b750e1 | 2474 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2475 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2476 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2477 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2478 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2479 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2480 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2482 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2483 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2484 | if test "${ac_cv_path_install+set}" = set; then : |
2485 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2486 | else |
2487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2488 | for as_dir in $PATH | |
2489 | do | |
2490 | IFS=$as_save_IFS | |
2491 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2492 | # Account for people who put trailing slashes in PATH elements. |
2493 | case $as_dir/ in #(( | |
2494 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2495 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2496 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2497 | /usr/ucb/* ) ;; |
2498 | *) | |
2499 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2500 | # Don't use installbsd from OSF since it installs stuff as root | |
2501 | # by default. | |
2502 | for ac_prog in ginstall scoinst install; do | |
2503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2504 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2505 | if test $ac_prog = install && |
c6b750e1 | 2506 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2507 | # AIX install. It has an incompatible calling convention. |
2508 | : | |
c6b750e1 DJ |
2509 | elif test $ac_prog = install && |
2510 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2511 | # program-specific install script used by HP pwplus--don't use. | |
2512 | : | |
e5c3f801 | 2513 | else |
58c85be7 RW |
2514 | rm -rf conftest.one conftest.two conftest.dir |
2515 | echo one > conftest.one | |
2516 | echo two > conftest.two | |
2517 | mkdir conftest.dir | |
2518 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2519 | test -s conftest.one && test -s conftest.two && | |
2520 | test -s conftest.dir/conftest.one && | |
2521 | test -s conftest.dir/conftest.two | |
2522 | then | |
2523 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2524 | break 3 | |
2525 | fi | |
e5c3f801 NN |
2526 | fi |
2527 | fi | |
2528 | done | |
c6b750e1 DJ |
2529 | done |
2530 | ;; | |
2531 | esac | |
81ecdfbb RW |
2532 | |
2533 | done | |
2534 | IFS=$as_save_IFS | |
c6b750e1 | 2535 | |
58c85be7 | 2536 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2537 | |
2538 | fi | |
2539 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2540 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2541 | else |
58c85be7 RW |
2542 | # As a last resort, use the slow shell script. Don't cache a |
2543 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2544 | # break other packages using the cache if that directory is |
58c85be7 | 2545 | # removed, or if the value is a relative name. |
c6b750e1 | 2546 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2547 | fi |
2548 | fi | |
81ecdfbb RW |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2550 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2551 | |
2552 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2553 | # It thinks the first close brace ends the variable substitution. | |
2554 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2555 | ||
c6b750e1 | 2556 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2557 | |
2558 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2559 | ||
81ecdfbb RW |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2561 | $as_echo_n "checking whether ln works... " >&6; } | |
2562 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2563 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2564 | else |
2565 | rm -f conftestdata_t | |
2566 | echo >conftestdata_f | |
2567 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2568 | then | |
2569 | acx_cv_prog_LN=ln | |
2570 | else | |
2571 | acx_cv_prog_LN=no | |
2572 | fi | |
2573 | rm -f conftestdata_f conftestdata_t | |
2574 | ||
2575 | fi | |
2576 | if test $acx_cv_prog_LN = no; then | |
2577 | LN="cp" | |
81ecdfbb RW |
2578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2579 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2580 | else |
2581 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2583 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2584 | fi |
2585 | ||
81ecdfbb RW |
2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2587 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2588 | LN_S=$as_ln_s |
2589 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2591 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2592 | else |
81ecdfbb RW |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2594 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2595 | fi |
2596 | ||
8e957354 PB |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2598 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2599 | if test "${ac_cv_path_SED+set}" = set; then : | |
2600 | $as_echo_n "(cached) " >&6 | |
2601 | else | |
2602 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2603 | for ac_i in 1 2 3 4 5 6 7; do | |
2604 | ac_script="$ac_script$as_nl$ac_script" | |
2605 | done | |
2606 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2607 | { ac_script=; unset ac_script;} | |
2608 | if test -z "$SED"; then | |
2609 | ac_path_SED_found=false | |
2610 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2612 | for as_dir in $PATH | |
2613 | do | |
2614 | IFS=$as_save_IFS | |
2615 | test -z "$as_dir" && as_dir=. | |
2616 | for ac_prog in sed gsed; do | |
2617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2618 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2619 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2620 | # Check for GNU ac_path_SED and select it if it is found. | |
2621 | # Check for GNU $ac_path_SED | |
2622 | case `"$ac_path_SED" --version 2>&1` in | |
2623 | *GNU*) | |
2624 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2625 | *) | |
2626 | ac_count=0 | |
2627 | $as_echo_n 0123456789 >"conftest.in" | |
2628 | while : | |
2629 | do | |
2630 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2631 | mv "conftest.tmp" "conftest.in" | |
2632 | cp "conftest.in" "conftest.nl" | |
2633 | $as_echo '' >> "conftest.nl" | |
2634 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2635 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2636 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2637 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2638 | # Best one so far, save it but keep looking for a better one | |
2639 | ac_cv_path_SED="$ac_path_SED" | |
2640 | ac_path_SED_max=$ac_count | |
2641 | fi | |
2642 | # 10*(2^10) chars as input seems more than enough | |
2643 | test $ac_count -gt 10 && break | |
2644 | done | |
2645 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2646 | esac | |
2647 | ||
2648 | $ac_path_SED_found && break 3 | |
2649 | done | |
2650 | done | |
2651 | done | |
2652 | IFS=$as_save_IFS | |
2653 | if test -z "$ac_cv_path_SED"; then | |
2654 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2655 | fi | |
2656 | else | |
2657 | ac_cv_path_SED=$SED | |
2658 | fi | |
2659 | ||
2660 | fi | |
2661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2662 | $as_echo "$ac_cv_path_SED" >&6; } | |
2663 | SED="$ac_cv_path_SED" | |
2664 | rm -f conftest.sed | |
2665 | ||
2666 | for ac_prog in gawk mawk nawk awk | |
2667 | do | |
2668 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2669 | set dummy $ac_prog; ac_word=$2 | |
2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2671 | $as_echo_n "checking for $ac_word... " >&6; } | |
2672 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2673 | $as_echo_n "(cached) " >&6 | |
2674 | else | |
2675 | if test -n "$AWK"; then | |
2676 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2677 | else | |
2678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2679 | for as_dir in $PATH | |
2680 | do | |
2681 | IFS=$as_save_IFS | |
2682 | test -z "$as_dir" && as_dir=. | |
2683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2685 | ac_cv_prog_AWK="$ac_prog" | |
2686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2687 | break 2 | |
2688 | fi | |
2689 | done | |
2690 | done | |
2691 | IFS=$as_save_IFS | |
2692 | ||
2693 | fi | |
2694 | fi | |
2695 | AWK=$ac_cv_prog_AWK | |
2696 | if test -n "$AWK"; then | |
2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2698 | $as_echo "$AWK" >&6; } | |
2699 | else | |
2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2701 | $as_echo "no" >&6; } | |
2702 | fi | |
2703 | ||
2704 | ||
2705 | test -n "$AWK" && break | |
2706 | done | |
2707 | ||
e5c3f801 | 2708 | |
0fdbe983 DJ |
2709 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2710 | ||
2711 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2712 | # a relative path. | |
2713 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2714 | INSTALL="${srcpwd}/install-sh -c" | |
2715 | fi | |
2716 | ||
a0da8069 NN |
2717 | # Set srcdir to "." if that's what it is. |
2718 | # This is important for multilib support. | |
2719 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2720 | if test "${pwd}" = "${srcpwd}" ; then |
2721 | srcdir=. | |
252b5132 RH |
2722 | fi |
2723 | ||
a0da8069 | 2724 | topsrcdir=$srcpwd |
252b5132 | 2725 | |
a0da8069 | 2726 | extra_host_args= |
afefada0 | 2727 | |
a0da8069 NN |
2728 | ### To add a new directory to the tree, first choose whether it is a target |
2729 | ### or a host dependent tool. Then put it into the appropriate list | |
2730 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2731 | |
c6b750e1 | 2732 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2733 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2734 | |
c6b750e1 DJ |
2735 | # Dependency sorting is only needed when *configuration* must be done in |
2736 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2737 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2738 | |
a0da8069 NN |
2739 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2740 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2741 | |
6a9cf61e PB |
2742 | # these library is used by various programs built for the build |
2743 | # environment | |
2744 | # | |
2745 | build_libs="build-libiberty" | |
2746 | ||
2747 | # these tools are built for the build environment | |
a90ef4bf | 2748 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2749 | |
a0da8069 NN |
2750 | # these libraries are used by various programs built for the host environment |
2751 | # | |
2bf680c4 | 2752 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" |
a0da8069 | 2753 | |
a0da8069 NN |
2754 | # these tools are built for the host environment |
2755 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2756 | # know that we are building the simulator. | |
2757 | # binutils, gas and ld appear in that order because it makes sense to run | |
2758 | # "make check" in that particular order. | |
e6de499b | 2759 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2760 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
a0da8069 NN |
2761 | |
2762 | # libgcj represents the runtime libraries only used by gcj. | |
2763 | libgcj="target-libffi \ | |
a0da8069 | 2764 | target-zlib \ |
a0da8069 NN |
2765 | target-libjava" |
2766 | ||
2767 | # these libraries are built for the target environment, and are built after | |
2768 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2769 | # Note that libiberty is not a target library. |
b1299c4e | 2770 | target_libraries="target-libgcc \ |
2bf680c4 | 2771 | target-libbacktrace \ |
a0da8069 NN |
2772 | target-libgloss \ |
2773 | target-newlib \ | |
cff87f51 | 2774 | target-libgomp \ |
522e3d71 | 2775 | target-libcilkrts \ |
7ec59b9e | 2776 | target-libatomic \ |
d32e2926 | 2777 | target-libitm \ |
b9459e83 | 2778 | target-libstdc++-v3 \ |
5286fdef | 2779 | target-libsanitizer \ |
95e43135 | 2780 | target-libvtv \ |
bb780410 | 2781 | target-libssp \ |
e552509b | 2782 | target-libquadmath \ |
4b1cb4fe | 2783 | target-libgfortran \ |
4f0ef2d8 | 2784 | target-boehm-gc \ |
83326456 | 2785 | ${libgcj} \ |
a2592b1b | 2786 | target-libobjc \ |
e552509b ILT |
2787 | target-libada \ |
2788 | target-libgo" | |
a0da8069 | 2789 | |
9c14acb8 NN |
2790 | # these tools are built using the target libraries, and are intended to |
2791 | # run only in the target environment | |
a0da8069 | 2792 | # |
9c14acb8 | 2793 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2794 | # list belongs in this list. |
a0da8069 | 2795 | # |
a90ef4bf | 2796 | target_tools="target-rda" |
252b5132 | 2797 | |
a0da8069 | 2798 | ################################################################################ |
252b5132 | 2799 | |
a0da8069 NN |
2800 | ## All tools belong in one of the four categories, and are assigned above |
2801 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2802 | ## is important because configure will choke if they ever get through. | |
2803 | ## ${configdirs} is directories we build using the host tools. | |
2804 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2805 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2806 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2807 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2808 | |
9cc8ae67 PB |
2809 | |
2810 | ||
a0da8069 | 2811 | ################################################################################ |
252b5132 | 2812 | |
a0da8069 | 2813 | srcname="gnu development package" |
252b5132 | 2814 | |
a0da8069 NN |
2815 | # This gets set non-empty for some net releases of packages. |
2816 | appdirs="" | |
252b5132 | 2817 | |
a0da8069 NN |
2818 | # Define is_cross_compiler to save on calls to 'test'. |
2819 | is_cross_compiler= | |
2820 | if test x"${host}" = x"${target}" ; then | |
2821 | is_cross_compiler=no | |
252b5132 | 2822 | else |
a0da8069 | 2823 | is_cross_compiler=yes |
c6b750e1 | 2824 | fi |
252b5132 | 2825 | |
9175bfc0 | 2826 | # Find the build and target subdir names. |
dd12c3a8 | 2827 | |
66a79c16 DJ |
2828 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2829 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2830 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2831 | # However, they still use the build modules, because the corresponding | |
2832 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2833 | # finishes. So: | |
2834 | # - build_subdir is where we find build modules, and never changes. | |
2835 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2836 | ||
2837 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2838 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2839 | |
81ecdfbb RW |
2840 | # Check whether --with-build-libsubdir was given. |
2841 | if test "${with_build_libsubdir+set}" = set; then : | |
2842 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2843 | else |
2844 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2845 | fi |
2846 | ||
b00612cc PB |
2847 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2848 | if ( test $srcdir = . && test -d gcc ) \ | |
2849 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2850 | host_subdir="host-${host_noncanonical}" | |
2851 | else | |
2852 | host_subdir=. | |
2853 | fi | |
dd12c3a8 NN |
2854 | # No prefix. |
2855 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2856 | |
2fd0b40b RW |
2857 | # Be sure to cover against remnants of an in-tree build. |
2858 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2859 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2860 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2861 | fi | |
252b5132 | 2862 | |
a0da8069 NN |
2863 | # Skipdirs are removed silently. |
2864 | skipdirs= | |
2865 | # Noconfigdirs are removed loudly. | |
2866 | noconfigdirs="" | |
252b5132 | 2867 | |
a0da8069 NN |
2868 | use_gnu_ld= |
2869 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2870 | if test x$with_gnu_ld = xno ; then | |
2871 | use_gnu_ld=no | |
93f9b408 | 2872 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2873 | fi |
2874 | ||
a0da8069 NN |
2875 | use_gnu_as= |
2876 | # Make sure we don't let GNU as be added if we didn't want it. | |
2877 | if test x$with_gnu_as = xno ; then | |
2878 | use_gnu_as=no | |
2879 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2880 | fi |
2881 | ||
700d40ca ILT |
2882 | use_included_zlib= |
2883 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2884 | if test x$with_system_zlib = xyes ; then | |
2885 | use_included_zlib=no | |
2886 | noconfigdirs="$noconfigdirs zlib" | |
2887 | fi | |
2888 | ||
c6b750e1 | 2889 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2890 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2891 | |
a0da8069 NN |
2892 | case ${with_x} in |
2893 | yes | "") ;; # the default value for this tree is that X11 is available | |
2894 | no) | |
675c6968 | 2895 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2896 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2897 | enable_gdbtk=no |
a0da8069 NN |
2898 | ;; |
2899 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2900 | esac | |
252b5132 | 2901 | |
0377a422 | 2902 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2903 | # Remove these if host=target. |
2904 | cross_only="target-libgloss target-newlib target-opcodes" | |
2905 | ||
2906 | case $is_cross_compiler in | |
2907 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2908 | esac |
252b5132 | 2909 | |
a0da8069 NN |
2910 | # If both --with-headers and --with-libs are specified, default to |
2911 | # --without-newlib. | |
32be62b5 RS |
2912 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2913 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2914 | if test x"${with_newlib}" = x ; then |
2915 | with_newlib=no | |
2916 | fi | |
252b5132 RH |
2917 | fi |
2918 | ||
a0da8069 NN |
2919 | # Recognize --with-newlib/--without-newlib. |
2920 | case ${with_newlib} in | |
2921 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2922 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2923 | esac | |
252b5132 | 2924 | |
c7791212 NC |
2925 | # Handle --enable-gold, --enable-ld. |
2926 | # --disable-gold [--enable-ld] | |
2927 | # Build only ld. Default option. | |
d3b50760 L |
2928 | # --enable-gold [--enable-ld] |
2929 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2930 | # as "ld.bfd" and "ld". | |
2931 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2932 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2933 | # install ld as "ld.bfd". | |
2934 | # --enable-gold[=default] --disable-ld | |
2935 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2936 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2937 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2938 | # and ld.bfd). | |
c7791212 NC |
2939 | # In other words, ld is default |
2940 | # --enable-gold=default --enable-ld=default | |
2941 | # Error. | |
2942 | ||
2943 | default_ld= | |
81ecdfbb RW |
2944 | # Check whether --enable-gold was given. |
2945 | if test "${enable_gold+set}" = set; then : | |
2946 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2947 | else |
2948 | ENABLE_GOLD=no | |
81ecdfbb RW |
2949 | fi |
2950 | ||
c7791212 NC |
2951 | case "${ENABLE_GOLD}" in |
2952 | yes|default) | |
e6de499b NC |
2953 | # Check for ELF target. |
2954 | is_elf=no | |
2955 | case "${target}" in | |
2956 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2957 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2958 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2bda3143 | 2959 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2960 | case "${target}" in |
2961 | *-*-linux*aout* | *-*-linux*oldld*) | |
2962 | ;; | |
2963 | *) | |
2964 | is_elf=yes | |
2965 | ;; | |
2966 | esac | |
2967 | esac | |
2968 | ||
2969 | if test "$is_elf" = "yes"; then | |
2970 | # Check for target supported by gold. | |
93f9b408 | 2971 | case "${target}" in |
5c0b3823 | 2972 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*) |
c7791212 NC |
2973 | configdirs="$configdirs gold" |
2974 | if test x${ENABLE_GOLD} = xdefault; then | |
2975 | default_ld=gold | |
2976 | fi | |
e6de499b | 2977 | ENABLE_GOLD=yes |
93f9b408 ILT |
2978 | ;; |
2979 | esac | |
e6de499b NC |
2980 | fi |
2981 | ;; | |
2982 | no) | |
2983 | ;; | |
2984 | *) | |
2985 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2986 | ;; | |
c7791212 NC |
2987 | esac |
2988 | ||
2989 | # Check whether --enable-ld was given. | |
2990 | if test "${enable_ld+set}" = set; then : | |
2991 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2992 | else | |
2993 | ENABLE_LD=yes | |
2994 | fi | |
2995 | ||
2996 | ||
2997 | case "${ENABLE_LD}" in | |
2998 | default) | |
d3b50760 | 2999 | if test x${default_ld} != x; then |
c7791212 NC |
3000 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3001 | fi | |
3002 | ;; | |
3003 | yes) | |
3004 | ;; | |
3005 | no) | |
3006 | if test x${ENABLE_GOLD} != xyes; then | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3008 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3009 | fi | |
3010 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3011 | ;; | |
3012 | *) | |
3013 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3014 | ;; | |
3015 | esac | |
93f9b408 | 3016 | |
a0da8069 | 3017 | # Configure extra directories which are host specific |
252b5132 | 3018 | |
a0da8069 NN |
3019 | case "${host}" in |
3020 | *-cygwin*) | |
3021 | configdirs="$configdirs libtermcap" ;; | |
3022 | esac | |
252b5132 | 3023 | |
59f7ec45 HPN |
3024 | # A target can indicate whether a language isn't supported for some reason. |
3025 | # Only spaces may be used in this macro; not newlines or tabs. | |
3026 | unsupported_languages= | |
3027 | ||
c6b750e1 | 3028 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3029 | # target this usually means that a port of the program doesn't |
3030 | # exist yet. | |
252b5132 | 3031 | |
a0da8069 | 3032 | case "${host}" in |
3516a403 | 3033 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3034 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3035 | ;; |
a0da8069 | 3036 | esac |
252b5132 | 3037 | |
4b1cb4fe | 3038 | |
89a1e9c3 PB |
3039 | # Check whether --enable-libquadmath was given. |
3040 | if test "${enable_libquadmath+set}" = set; then : | |
3041 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3042 | else | |
3043 | ENABLE_LIBQUADMATH=yes | |
3044 | fi | |
3045 | ||
3046 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3047 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3048 | fi | |
3049 | ||
3050 | ||
3051 | # Check whether --enable-libquadmath-support was given. | |
3052 | if test "${enable_libquadmath_support+set}" = set; then : | |
3053 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3054 | else | |
3055 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3056 | fi | |
3057 | ||
3058 | enable_libquadmath_support= | |
3059 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3060 | enable_libquadmath_support=no | |
3061 | fi | |
3062 | ||
3063 | ||
81ecdfbb RW |
3064 | # Check whether --enable-libada was given. |
3065 | if test "${enable_libada+set}" = set; then : | |
3066 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3067 | else |
3068 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3069 | fi |
3070 | ||
a2592b1b | 3071 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3072 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3073 | fi |
3074 | ||
81ecdfbb RW |
3075 | # Check whether --enable-libssp was given. |
3076 | if test "${enable_libssp+set}" = set; then : | |
3077 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3078 | else |
3079 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3080 | fi |
3081 | ||
5f128533 | 3082 | |
f66a9a70 L |
3083 | # Check whether --enable-libstdcxx was given. |
3084 | if test "${enable_libstdcxx+set}" = set; then : | |
3085 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3086 | else | |
3087 | ENABLE_LIBSTDCXX=default | |
3088 | fi | |
3089 | ||
3090 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
3091 | noconfigdirs="$noconfigdirs libstdc++-v3" | |
3092 | fi | |
3093 | ||
a0da8069 NN |
3094 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3095 | # front-end isn't enabled, we still get libgcj disabled. | |
3096 | libgcj_saved=$libgcj | |
3097 | case $enable_libgcj in | |
3098 | yes) | |
3099 | # If we reset it here, it won't get added to noconfigdirs in the | |
3100 | # target-specific build rules, so it will be forcibly enabled | |
3101 | # (unless the Java language itself isn't enabled). | |
3102 | libgcj= | |
3103 | ;; | |
3104 | no) | |
3105 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3106 | # Don't disable libffi, though, other languages use it. |
3107 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3108 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3109 | # built. | |
3110 | libgcj_saved= | |
a0da8069 NN |
3111 | ;; |
3112 | esac | |
252b5132 | 3113 | |
ffdd6afc ILT |
3114 | # Check whether --enable-static-libjava was given. |
3115 | if test "${enable_static_libjava+set}" = set; then : | |
3116 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3117 | else | |
3118 | ENABLE_STATIC_LIBJAVA=no | |
3119 | fi | |
3120 | ||
3121 | enable_static_libjava= | |
3122 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3123 | enable_static_libjava=yes | |
3124 | fi | |
3125 | ||
3126 | if test x$enable_static_libjava != xyes ; then | |
3127 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3128 | fi | |
3129 | ||
4b1cb4fe | 3130 | |
a6df5a19 PB |
3131 | # Disable libgomp on non POSIX hosted systems. |
3132 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3133 | # Enable libgomp by default on hosted POSIX systems. |
3134 | case "${target}" in | |
29383458 | 3135 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3136 | ;; |
5b806d27 | 3137 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3138 | ;; |
2479f722 | 3139 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3140 | ;; |
3141 | *-*-darwin* | *-*-aix*) | |
3142 | ;; | |
3143 | *) | |
3144 | noconfigdirs="$noconfigdirs target-libgomp" | |
3145 | ;; | |
3146 | esac | |
a6df5a19 | 3147 | fi |
b3ded179 | 3148 | |
7ec59b9e L |
3149 | # Disable libatomic on unsupported systems. |
3150 | if test -d ${srcdir}/libatomic; then | |
3151 | if test x$enable_libatomic = x; then | |
3152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3153 | $as_echo_n "checking for libatomic support... " >&6; } | |
3154 | if (srcdir=${srcdir}/libatomic; \ | |
3155 | . ${srcdir}/configure.tgt; \ | |
3156 | test -n "$UNSUPPORTED") | |
3157 | then | |
3158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3159 | $as_echo "no" >&6; } | |
3160 | noconfigdirs="$noconfigdirs target-libatomic" | |
3161 | else | |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3163 | $as_echo "yes" >&6; } | |
3164 | fi | |
3165 | fi | |
3166 | fi | |
3167 | ||
522e3d71 | 3168 | # Disable libcilkrts on unsupported systems. |
3169 | if test -d ${srcdir}/libcilkrts; then | |
3170 | if test x$enable_libcilkrts = x; then | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3172 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3173 | if (srcdir=${srcdir}/libcilkrts; \ | |
3174 | . ${srcdir}/configure.tgt; \ | |
3175 | test -n "$UNSUPPORTED") | |
3176 | then | |
3177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3178 | $as_echo "no" >&6; } | |
3179 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3180 | else | |
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3182 | $as_echo "yes" >&6; } | |
3183 | fi | |
3184 | fi | |
3185 | fi | |
3186 | ||
d32e2926 RH |
3187 | # Disable libitm on unsupported systems. |
3188 | if test -d ${srcdir}/libitm; then | |
3189 | if test x$enable_libitm = x; then | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3191 | $as_echo_n "checking for libitm support... " >&6; } | |
3192 | if (srcdir=${srcdir}/libitm; \ | |
3193 | . ${srcdir}/configure.tgt; \ | |
3194 | test -n "$UNSUPPORTED") | |
3195 | then | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3197 | $as_echo "no" >&6; } | |
3198 | noconfigdirs="$noconfigdirs target-libitm" | |
3199 | else | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3201 | $as_echo "yes" >&6; } | |
3202 | fi | |
3203 | fi | |
3204 | fi | |
3205 | ||
5286fdef L |
3206 | # Disable libsanitizer on unsupported systems. |
3207 | if test -d ${srcdir}/libsanitizer; then | |
3208 | if test x$enable_libsanitizer = x; then | |
3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3210 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3211 | if (srcdir=${srcdir}/libsanitizer; \ | |
3212 | . ${srcdir}/configure.tgt; \ | |
3213 | test -n "$UNSUPPORTED") | |
3214 | then | |
3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3216 | $as_echo "no" >&6; } | |
3217 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3218 | else | |
3219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3220 | $as_echo "yes" >&6; } | |
3221 | fi | |
3222 | fi | |
3223 | fi | |
3224 | ||
95e43135 JBG |
3225 | # Disable libvtv on unsupported systems. |
3226 | if test -d ${srcdir}/libvtv; then | |
3227 | if test x$enable_libvtv = x; then | |
3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3229 | $as_echo_n "checking for libvtv support... " >&6; } | |
3230 | if (srcdir=${srcdir}/libvtv; \ | |
3231 | . ${srcdir}/configure.tgt; \ | |
3232 | test "$VTV_SUPPORTED" != "yes") | |
3233 | then | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3235 | $as_echo "no" >&6; } | |
3236 | noconfigdirs="$noconfigdirs target-libvtv" | |
3237 | else | |
3238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3239 | $as_echo "yes" >&6; } | |
3240 | fi | |
3241 | fi | |
3242 | fi | |
3243 | ||
1488e230 DE |
3244 | # Disable libquadmath for some systems. |
3245 | case "${target}" in | |
5286fdef L |
3246 | avr-*-*) |
3247 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3248 | ;; | |
1488e230 DE |
3249 | # libquadmath is unused on AIX and libquadmath build process use of |
3250 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3251 | powerpc-*-aix* | rs6000-*-aix*) | |
3252 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3253 | ;; | |
3254 | esac | |
3255 | ||
065a5627 JM |
3256 | # Disable libssp for some systems. |
3257 | case "${target}" in | |
3258 | avr-*-*) | |
c5f5c3c2 | 3259 | # No hosted I/O support. |
065a5627 JM |
3260 | noconfigdirs="$noconfigdirs target-libssp" |
3261 | ;; | |
3262 | powerpc-*-aix* | rs6000-*-aix*) | |
3263 | noconfigdirs="$noconfigdirs target-libssp" | |
3264 | ;; | |
99c513f6 | 3265 | rl78-*-*) |
202e2356 NC |
3266 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3267 | # doesn't fault for those - instead, it gives a build-time error | |
3268 | # for explicit misaligned loads. | |
99c513f6 DD |
3269 | noconfigdirs="$noconfigdirs target-libssp" |
3270 | ;; | |
065a5627 JM |
3271 | esac |
3272 | ||
065a5627 | 3273 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3274 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3275 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3276 | case "${target}" in | |
3277 | *-*-vxworks*) | |
3278 | # VxWorks uses the Dinkumware C++ library. | |
3279 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3280 | ;; | |
3281 | arm*-wince-pe*) | |
3282 | # the C++ libraries don't build on top of CE's C libraries | |
3283 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3284 | ;; | |
3285 | avr-*-*) | |
3286 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3287 | ;; | |
3288 | esac | |
3289 | fi | |
065a5627 JM |
3290 | |
3291 | # Disable Fortran for some systems. | |
3292 | case "${target}" in | |
3293 | mmix-*-*) | |
3294 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3295 | unsupported_languages="$unsupported_languages fortran" | |
3296 | ;; | |
3297 | esac | |
3298 | ||
0827f9a6 | 3299 | # Disable Java if libffi is not supported. |
9863d716 | 3300 | case "${target}" in |
e7d5abf1 JBG |
3301 | aarch64-*-*) |
3302 | ;; | |
0827f9a6 JM |
3303 | alpha*-*-*) |
3304 | ;; | |
3305 | arm*-*-*) | |
3306 | ;; | |
3307 | cris-*-*) | |
3308 | ;; | |
3309 | frv-*-*) | |
3310 | ;; | |
3311 | hppa*-*-linux*) | |
3312 | ;; | |
3313 | hppa*-*-hpux*) | |
3314 | ;; | |
3315 | i?86-*-*) | |
3316 | ;; | |
3317 | ia64*-*-*) | |
3318 | ;; | |
3319 | m32r*-*-*) | |
3320 | ;; | |
3321 | m68k-*-*) | |
3322 | ;; | |
2479f722 | 3323 | mips*-*-rtems*) |
0827f9a6 JM |
3324 | ;; |
3325 | mips*-*-linux*) | |
3326 | ;; | |
3327 | powerpc*-*-linux*) | |
3328 | ;; | |
3329 | powerpc-*-darwin*) | |
3330 | ;; | |
3331 | powerpc-*-aix* | rs6000-*-aix*) | |
3332 | ;; | |
3333 | powerpc-*-freebsd*) | |
3334 | ;; | |
3335 | powerpc64-*-freebsd*) | |
3336 | ;; | |
3337 | powerpc*-*-rtems*) | |
9863d716 | 3338 | ;; |
0827f9a6 JM |
3339 | s390-*-* | s390x-*-*) |
3340 | ;; | |
3341 | sh-*-* | sh[34]*-*-*) | |
3342 | ;; | |
3343 | sh64-*-* | sh5*-*-*) | |
3344 | ;; | |
3345 | sparc*-*-*) | |
3346 | ;; | |
3347 | x86_64-*-*) | |
3348 | ;; | |
3349 | *-*-*) | |
3350 | unsupported_languages="$unsupported_languages java" | |
3351 | ;; | |
3352 | esac | |
3353 | ||
3354 | # Disable Java, libgcj or related libraries for some systems. | |
3355 | case "${target}" in | |
9863d716 JM |
3356 | powerpc-*-darwin*) |
3357 | ;; | |
3358 | i[3456789]86-*-darwin*) | |
3359 | ;; | |
3360 | x86_64-*-darwin[912]*) | |
3361 | ;; | |
3362 | *-*-darwin*) | |
3363 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3364 | ;; | |
9863d716 JM |
3365 | *-*-netware*) |
3366 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3367 | ;; | |
3368 | *-*-rtems*) | |
3369 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3370 | ;; | |
3371 | *-*-tpf*) | |
3372 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3373 | ;; | |
3374 | *-*-uclinux*) | |
3375 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3376 | ;; | |
3377 | *-*-vxworks*) | |
3378 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3379 | ;; | |
9863d716 JM |
3380 | alpha*-*-*vms*) |
3381 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3382 | ;; | |
0827f9a6 | 3383 | arm-wince-pe) |
9863d716 JM |
3384 | noconfigdirs="$noconfigdirs ${libgcj}" |
3385 | ;; | |
9863d716 JM |
3386 | arm*-*-symbianelf*) |
3387 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3388 | ;; | |
9863d716 | 3389 | bfin-*-*) |
9863d716 JM |
3390 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3391 | ;; | |
9863d716 JM |
3392 | cris-*-* | crisv32-*-*) |
3393 | unsupported_languages="$unsupported_languages java" | |
3394 | case "${target}" in | |
3395 | *-*-linux*) | |
3396 | ;; | |
3397 | *) # See PR46792 regarding target-libffi. | |
3398 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3399 | esac | |
3400 | ;; | |
9863d716 JM |
3401 | hppa*64*-*-linux*) |
3402 | # In this case, it's because the hppa64-linux target is for | |
3403 | # the kernel only at this point and has no libc, and thus no | |
3404 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3405 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3406 | ;; |
82ae827f | 3407 | hppa*64*-*-hpux*) |
9863d716 JM |
3408 | noconfigdirs="$noconfigdirs ${libgcj}" |
3409 | ;; | |
3410 | hppa*-hp-hpux11*) | |
3411 | ;; | |
82ae827f | 3412 | hppa*-*-hpux*) |
9863d716 JM |
3413 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3414 | # build on HP-UX 10.20. | |
3415 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3416 | ;; | |
9863d716 JM |
3417 | ia64*-*-*vms*) |
3418 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3419 | ;; | |
9863d716 JM |
3420 | i[3456789]86-w64-mingw*) |
3421 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3422 | ;; | |
3423 | i[3456789]86-*-mingw*) | |
3424 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3425 | ;; | |
3426 | x86_64-*-mingw*) | |
3427 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3428 | ;; | |
9863d716 JM |
3429 | mmix-*-*) |
3430 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3431 | ;; |
3432 | powerpc-*-aix*) | |
3433 | # copied from rs6000-*-* entry | |
3434 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3435 | ;; | |
9863d716 JM |
3436 | rs6000-*-aix*) |
3437 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3438 | ;; | |
9863d716 JM |
3439 | *-*-lynxos*) |
3440 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3441 | ;; | |
9863d716 JM |
3442 | esac |
3443 | ||
a413f71a ILT |
3444 | # Disable libgo for some systems where it is known to not work. |
3445 | # For testing, you can easily override this with --enable-libgo. | |
3446 | if test x$enable_libgo = x; then | |
3447 | case "${target}" in | |
3448 | *-*-darwin*) | |
3449 | # PR 46986 | |
3450 | noconfigdirs="$noconfigdirs target-libgo" | |
3451 | ;; | |
3452 | *-*-cygwin* | *-*-mingw*) | |
3453 | noconfigdirs="$noconfigdirs target-libgo" | |
3454 | ;; | |
3455 | *-*-aix*) | |
3456 | noconfigdirs="$noconfigdirs target-libgo" | |
3457 | ;; | |
3458 | esac | |
3459 | fi | |
3460 | ||
691bb5a1 DD |
3461 | # Default libgloss CPU subdirectory. |
3462 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3463 | |
ff46fb8f JM |
3464 | case "${target}" in |
3465 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3466 | libgloss_dir=wince | |
3467 | ;; | |
f1dd87fc YZ |
3468 | aarch64*-*-* ) |
3469 | libgloss_dir=aarch64 | |
3470 | ;; | |
ff46fb8f JM |
3471 | arm*-*-*) |
3472 | libgloss_dir=arm | |
3473 | ;; | |
3474 | cris-*-* | crisv32-*-*) | |
3475 | libgloss_dir=cris | |
3476 | ;; | |
3477 | hppa*-*-*) | |
3478 | libgloss_dir=pa | |
3479 | ;; | |
3480 | i[3456789]86-*-*) | |
3481 | libgloss_dir=i386 | |
3482 | ;; | |
3483 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3484 | libgloss_dir=m68hc11 | |
3485 | ;; | |
3486 | m68*-*-* | fido-*-*) | |
3487 | libgloss_dir=m68k | |
3488 | ;; | |
3489 | mips*-*-*) | |
3490 | libgloss_dir=mips | |
3491 | ;; | |
3492 | powerpc*-*-*) | |
3493 | libgloss_dir=rs6000 | |
3494 | ;; | |
3495 | sparc*-*-*) | |
3496 | libgloss_dir=sparc | |
3497 | ;; | |
3498 | esac | |
3499 | ||
c7e4b184 | 3500 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3501 | case "${target}" in |
c7e4b184 JM |
3502 | alpha*-dec-osf*) |
3503 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3504 | ;; | |
3505 | i[3456789]86-*-linux*) | |
3506 | # This section makes it possible to build newlib natively on linux. | |
3507 | # If we are using a cross compiler then don't configure newlib. | |
3508 | if test x${is_cross_compiler} != xno ; then | |
3509 | noconfigdirs="$noconfigdirs target-newlib" | |
3510 | fi | |
3511 | noconfigdirs="$noconfigdirs target-libgloss" | |
3512 | # If we are not using a cross compiler, do configure newlib. | |
3513 | # Note however, that newlib will only be configured in this situation | |
3514 | # if the --with-newlib option has been given, because otherwise | |
3515 | # 'target-newlib' will appear in skipdirs. | |
3516 | ;; | |
3517 | i[3456789]86-*-rdos*) | |
3518 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3519 | ;; | |
3520 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3521 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3522 | ;; | |
3523 | sparc-*-sunos4*) | |
3524 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3525 | ;; | |
3526 | *-*-aix*) | |
3527 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3528 | ;; | |
3529 | *-*-beos*) | |
3530 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3531 | ;; | |
a0da8069 | 3532 | *-*-chorusos) |
b2f14e4a | 3533 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3534 | ;; |
c7e4b184 JM |
3535 | *-*-dragonfly*) |
3536 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3537 | ;; | |
3538 | *-*-freebsd*) | |
3539 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3540 | ;; | |
3541 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3542 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3543 | ;; | |
3544 | *-*-lynxos*) | |
3545 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3546 | ;; | |
3547 | *-*-mingw*) | |
3548 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3549 | ;; | |
3550 | *-*-netbsd*) | |
3551 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3552 | ;; | |
3553 | *-*-netware*) | |
3554 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3555 | ;; | |
3556 | *-*-tpf*) | |
3557 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3558 | ;; | |
3559 | *-*-uclinux*) | |
3560 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3561 | ;; | |
3562 | *-*-vxworks*) | |
3563 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3564 | ;; | |
3565 | esac | |
3566 | ||
3567 | case "${target}" in | |
3568 | *-*-chorusos) | |
3569 | ;; | |
24741ab2 | 3570 | powerpc-*-darwin*) |
9d39db92 | 3571 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3572 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3573 | ;; |
85bd1942 TG |
3574 | i[3456789]86-*-darwin*) |
3575 | noconfigdirs="$noconfigdirs ld gprof" | |
3576 | noconfigdirs="$noconfigdirs sim target-rda" | |
3577 | ;; | |
e8a5fa9c | 3578 | x86_64-*-darwin[912]*) |
652dec25 TG |
3579 | noconfigdirs="$noconfigdirs ld gas gprof" |
3580 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3581 | ;; |
04d1ab34 | 3582 | *-*-darwin*) |
d320aacb | 3583 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3584 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3585 | ;; |
5b806d27 | 3586 | *-*-dragonfly*) |
5b806d27 | 3587 | ;; |
de0b4a87 | 3588 | *-*-freebsd*) |
4b1cb4fe DD |
3589 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3590 | && test -f /usr/local/include/gmp.h; then | |
3591 | with_gmp=/usr/local | |
3592 | fi | |
4b1cb4fe | 3593 | ;; |
f8a495c8 NC |
3594 | *-*-kaos*) |
3595 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3596 | noconfigdirs="$noconfigdirs target-libgloss" |
3597 | ;; | |
a0da8069 | 3598 | *-*-netbsd*) |
a0da8069 | 3599 | ;; |
2a3124ca | 3600 | *-*-netware*) |
a0da8069 NN |
3601 | ;; |
3602 | *-*-rtems*) | |
9863d716 | 3603 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3604 | ;; |
1587117a EC |
3605 | # The tpf target doesn't support gdb yet. |
3606 | *-*-tpf*) | |
c7e4b184 | 3607 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3608 | ;; |
c1968181 | 3609 | *-*-uclinux*) |
c7e4b184 | 3610 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3611 | ;; |
a0da8069 | 3612 | *-*-vxworks*) |
a0da8069 NN |
3613 | ;; |
3614 | alpha*-dec-osf*) | |
3615 | # ld works, but does not support shared libraries. | |
a0da8069 | 3616 | # gas doesn't generate exception information. |
c7e4b184 | 3617 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3618 | ;; |
3619 | alpha*-*-*vms*) | |
9863d716 | 3620 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3621 | ;; |
a0da8069 NN |
3622 | alpha*-*-*) |
3623 | # newlib is not 64 bit ready | |
9863d716 | 3624 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3625 | ;; |
a0da8069 | 3626 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3627 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3628 | ;; |
f4cfb980 | 3629 | arc-*-*|arceb-*-*) |
782cb41f | 3630 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3631 | ;; |
a0da8069 | 3632 | arm-*-pe*) |
9863d716 | 3633 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3634 | ;; |
a0da8069 | 3635 | arm-*-riscix*) |
b2f14e4a | 3636 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3637 | ;; |
8e71395b L |
3638 | avr-*-rtems*) |
3639 | ;; | |
3640 | avr-*-*) | |
3641 | if test x${with_avrlibc} != xno; then | |
3642 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3643 | fi | |
3644 | ;; | |
a0da8069 | 3645 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3646 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3647 | ;; |
b2f14e4a JM |
3648 | tic54x-*-*) |
3649 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3650 | ;; |
a0da8069 | 3651 | d10v-*-*) |
b2f14e4a | 3652 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3653 | ;; |
3654 | d30v-*-*) | |
b2f14e4a | 3655 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3656 | ;; |
3657 | fr30-*-elf*) | |
9863d716 | 3658 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3659 | ;; |
20135e4c | 3660 | moxie-*-*) |
20135e4c NC |
3661 | noconfigdirs="$noconfigdirs gprof" |
3662 | ;; | |
a0da8069 | 3663 | h8300*-*-*) |
9863d716 | 3664 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3665 | ;; |
3666 | h8500-*-*) | |
b2f14e4a | 3667 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3668 | ;; |
caeba88f | 3669 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3670 | ;; |
93cc359e | 3671 | hppa*64*-*-linux*) |
a0da8069 | 3672 | ;; |
f0ff0f90 | 3673 | hppa*-*-linux*) |
5dcac624 | 3674 | ;; |
a0da8069 | 3675 | hppa*-*-*elf* | \ |
a0da8069 NN |
3676 | hppa*-*-lites* | \ |
3677 | hppa*-*-openbsd* | \ | |
3678 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3679 | ;; |
3680 | hppa*-hp-hpux11*) | |
0377a422 | 3681 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3682 | ;; |
691bb5a1 | 3683 | hppa*-*-pro*) |
691bb5a1 | 3684 | ;; |
a0da8069 | 3685 | hppa*-*-*) |
9863d716 | 3686 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3687 | ;; |
b07c2aad | 3688 | i960-*-*) |
b2f14e4a | 3689 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3690 | ;; |
a0da8069 NN |
3691 | ia64*-*-elf*) |
3692 | # No gdb support yet. | |
0377a422 | 3693 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3694 | ;; |
3695 | ia64*-**-hpux*) | |
92c9a463 | 3696 | # No ld support yet. |
9863d716 | 3697 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3698 | ;; |
19e99079 | 3699 | ia64*-*-*vms*) |
7ec59b9e L |
3700 | # No ld support yet. |
3701 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3702 | ;; |
1f53ca9a | 3703 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3704 | ;; |
3705 | i[3456789]86-*-mingw*) | |
45055374 | 3706 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3707 | ;; |
a0da8069 NN |
3708 | *-*-cygwin*) |
3709 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3710 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3711 | # always build newlib if winsup directory is present. |
45055374 | 3712 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3713 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3714 | elif test -d "$srcdir/newlib"; then |
45055374 | 3715 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3716 | fi |
c6b750e1 | 3717 | ;; |
ec11bdc6 | 3718 | i[3456789]86-*-pe) |
782cb41f | 3719 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3720 | ;; |
ec11bdc6 | 3721 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3722 | # The linker does not yet know about weak symbols in COFF, |
3723 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3724 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3725 | ;; |
ec11bdc6 | 3726 | i[3456789]86-*-sco*) |
b2f14e4a | 3727 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3728 | ;; |
cff32a7c | 3729 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3730 | noconfigdirs="$noconfigdirs target-libgloss" |
3731 | ;; | |
ec11bdc6 | 3732 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3733 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3734 | ;; |
ec11bdc6 | 3735 | i[3456789]86-*-beos*) |
c7e4b184 | 3736 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3737 | ;; |
b59bea8a | 3738 | i[3456789]86-*-rdos*) |
c7e4b184 | 3739 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3740 | ;; |
a0da8069 | 3741 | mmix-*-*) |
9863d716 | 3742 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3743 | ;; |
4970f871 | 3744 | mt-*-*) |
cdb9b172 AH |
3745 | noconfigdirs="$noconfigdirs sim" |
3746 | ;; | |
a0da8069 NN |
3747 | powerpc-*-aix*) |
3748 | # copied from rs6000-*-* entry | |
c7e4b184 | 3749 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3750 | ;; |
93cc359e | 3751 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3752 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3753 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3754 | # always build newlib. |
3755 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3756 | ;; | |
3757 | # This is temporary until we can link against shared libraries | |
3758 | powerpcle-*-solaris*) | |
b2f14e4a | 3759 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3760 | ;; |
3761 | powerpc-*-beos*) | |
c7e4b184 | 3762 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3763 | ;; |
a0da8069 | 3764 | rs6000-*-lynxos*) |
c7e4b184 | 3765 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3766 | ;; |
3767 | rs6000-*-aix*) | |
c7e4b184 | 3768 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3769 | ;; |
3770 | rs6000-*-*) | |
9863d716 | 3771 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3772 | ;; |
3773 | m68k-apollo-*) | |
b2f14e4a | 3774 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3775 | ;; |
25a07265 | 3776 | microblaze*) |
9863d716 | 3777 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3778 | ;; |
d09bbf00 | 3779 | mips*-sde-elf* | mips*-mti-elf*) |
5bd8be13 RS |
3780 | if test x$with_newlib = xyes; then |
3781 | noconfigdirs="$noconfigdirs gprof" | |
3782 | fi | |
5bd8be13 | 3783 | ;; |
a0da8069 | 3784 | mips*-*-irix5*) |
b2f14e4a | 3785 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3786 | ;; |
3787 | mips*-*-irix6*) | |
9863d716 | 3788 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3789 | ;; |
a0da8069 | 3790 | mips*-*-bsd*) |
e8044f35 | 3791 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3792 | ;; |
a0da8069 | 3793 | mips*-*-linux*) |
a0da8069 | 3794 | ;; |
e8044f35 RS |
3795 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3796 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3797 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3798 | ;; | |
a0da8069 | 3799 | mips*-*-*) |
9863d716 | 3800 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3801 | ;; |
dbf85af7 | 3802 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3803 | case "${target}" in |
3804 | sh*-*-elf) | |
9863d716 | 3805 | ;; |
e8a5fa9c | 3806 | *) |
9863d716 | 3807 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3808 | esac |
a0da8069 | 3809 | ;; |
a0da8069 | 3810 | sparc-*-sunos4*) |
c7e4b184 | 3811 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3812 | use_gnu_ld=no |
3813 | fi | |
3814 | ;; | |
619a3713 | 3815 | tic6x-*-*) |
40ae9136 | 3816 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3817 | ;; |
eb4b2452 NC |
3818 | tilepro-*-* | tilegx-*-*) |
3819 | noconfigdirs="$noconfigdirs sim" | |
3820 | ;; | |
a0da8069 | 3821 | v810-*-*) |
b2f14e4a | 3822 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3823 | ;; |
3824 | vax-*-*) | |
9863d716 | 3825 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3826 | ;; |
a0da8069 | 3827 | esac |
252b5132 | 3828 | |
a0da8069 NN |
3829 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3830 | # depends upon some newlib header files. | |
3831 | case "${noconfigdirs}" in | |
3832 | *target-libgloss*) ;; | |
3833 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3834 | esac | |
3835 | ||
a0da8069 | 3836 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3837 | host_makefile_frag=/dev/null |
3838 | if test -d ${srcdir}/config ; then | |
3839 | case "${host}" in | |
ec11bdc6 | 3840 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3841 | host_makefile_frag="config/mh-djgpp" |
3842 | ;; | |
3843 | *-cygwin*) | |
e33b51a6 | 3844 | |
81ecdfbb RW |
3845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3846 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3847 | echo a >cygwin-cat-check |
1f53ca9a | 3848 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3849 | rm cygwin-cat-check |
81ecdfbb RW |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3851 | $as_echo "yes" >&6; } | |
e33b51a6 | 3852 | else |
8ade07e9 | 3853 | rm cygwin-cat-check |
81ecdfbb RW |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3855 | $as_echo "no" >&6; } | |
3856 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3857 | Please either mount the build directory in binary mode or run the following |
3858 | commands before running any configure script: | |
3859 | set -o igncr | |
3860 | export SHELLOPTS | |
81ecdfbb | 3861 | " "$LINENO" 5 |
e33b51a6 | 3862 | fi |
e33b51a6 | 3863 | |
a0da8069 NN |
3864 | host_makefile_frag="config/mh-cygwin" |
3865 | ;; | |
8a1599ab | 3866 | *-mingw*) |
84e7906e | 3867 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3868 | ;; |
da888c87 | 3869 | hppa*-hp-hpux10*) |
da888c87 | 3870 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3871 | ;; |
3516a403 | 3872 | hppa*-hp-hpux*) |
da888c87 PB |
3873 | host_makefile_frag="config/mh-pa" |
3874 | ;; | |
3875 | hppa*-*) | |
3876 | host_makefile_frag="config/mh-pa" | |
3877 | ;; | |
e552509b ILT |
3878 | *-*-darwin*) |
3879 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3880 | ;; |
f6d183c0 PB |
3881 | powerpc-*-aix*) |
3882 | host_makefile_frag="config/mh-ppc-aix" | |
3883 | ;; | |
3884 | rs6000-*-aix*) | |
3885 | host_makefile_frag="config/mh-ppc-aix" | |
3886 | ;; | |
a0da8069 NN |
3887 | esac |
3888 | fi | |
3889 | ||
9e07f89d | 3890 | if test "${build}" != "${host}" ; then |
1576798e PB |
3891 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3892 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3893 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3894 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3895 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3896 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3897 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3898 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3899 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3900 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3901 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3902 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3903 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3904 | else | |
3905 | AR_FOR_BUILD="\$(AR)" | |
3906 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3907 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3908 | CXX_FOR_BUILD="\$(CXX)" |
3909 | GCJ_FOR_BUILD="\$(GCJ)" | |
3910 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3911 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3912 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3913 | LD_FOR_BUILD="\$(LD)" | |
3914 | NM_FOR_BUILD="\$(NM)" | |
3915 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3916 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3917 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3918 | fi |
3919 | ||
3920 | ac_ext=c | |
c6b750e1 DJ |
3921 | ac_cpp='$CPP $CPPFLAGS' |
3922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3925 | if test -n "$ac_tool_prefix"; then | |
3926 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3927 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3929 | $as_echo_n "checking for $ac_word... " >&6; } | |
3930 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3931 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3932 | else |
3933 | if test -n "$CC"; then | |
3934 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3935 | else | |
3936 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3937 | for as_dir in $PATH | |
3938 | do | |
3939 | IFS=$as_save_IFS | |
3940 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3941 | for ac_exec_ext in '' $ac_executable_extensions; do |
3942 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3943 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3944 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3945 | break 2 |
3946 | fi | |
3947 | done | |
81ecdfbb RW |
3948 | done |
3949 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3950 | |
3951 | fi | |
3952 | fi | |
3953 | CC=$ac_cv_prog_CC | |
3954 | if test -n "$CC"; then | |
81ecdfbb RW |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3956 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3957 | else |
81ecdfbb RW |
3958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3959 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3960 | fi |
3961 | ||
81ecdfbb | 3962 | |
c6b750e1 DJ |
3963 | fi |
3964 | if test -z "$ac_cv_prog_CC"; then | |
3965 | ac_ct_CC=$CC | |
6a9cf61e | 3966 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3967 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3969 | $as_echo_n "checking for $ac_word... " >&6; } | |
3970 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3971 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3972 | else |
3973 | if test -n "$ac_ct_CC"; then | |
3974 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3975 | else | |
3976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3977 | for as_dir in $PATH | |
3978 | do | |
3979 | IFS=$as_save_IFS | |
3980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3981 | for ac_exec_ext in '' $ac_executable_extensions; do |
3982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3983 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3985 | break 2 |
3986 | fi | |
3987 | done | |
81ecdfbb RW |
3988 | done |
3989 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3990 | |
3991 | fi | |
3992 | fi | |
3993 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3994 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3996 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3997 | else |
81ecdfbb RW |
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3999 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4000 | fi |
4001 | ||
81ecdfbb RW |
4002 | if test "x$ac_ct_CC" = x; then |
4003 | CC="" | |
4004 | else | |
4005 | case $cross_compiling:$ac_tool_warned in | |
4006 | yes:) | |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4008 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4009 | ac_tool_warned=yes ;; | |
4010 | esac | |
4011 | CC=$ac_ct_CC | |
4012 | fi | |
c6b750e1 DJ |
4013 | else |
4014 | CC="$ac_cv_prog_CC" | |
4015 | fi | |
4016 | ||
4017 | if test -z "$CC"; then | |
81ecdfbb RW |
4018 | if test -n "$ac_tool_prefix"; then |
4019 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4020 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4022 | $as_echo_n "checking for $ac_word... " >&6; } | |
4023 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4024 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4025 | else |
4026 | if test -n "$CC"; then | |
4027 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4028 | else | |
c6b750e1 DJ |
4029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4030 | for as_dir in $PATH | |
4031 | do | |
4032 | IFS=$as_save_IFS | |
4033 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4034 | for ac_exec_ext in '' $ac_executable_extensions; do |
4035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4036 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4038 | break 2 |
4039 | fi | |
4040 | done | |
81ecdfbb RW |
4041 | done |
4042 | IFS=$as_save_IFS | |
c6b750e1 | 4043 | |
9e07f89d NN |
4044 | fi |
4045 | fi | |
c6b750e1 | 4046 | CC=$ac_cv_prog_CC |
9e07f89d | 4047 | if test -n "$CC"; then |
81ecdfbb RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4049 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4050 | else |
81ecdfbb RW |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4052 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4053 | fi |
4054 | ||
c6b750e1 | 4055 | |
81ecdfbb | 4056 | fi |
c6b750e1 | 4057 | fi |
9e07f89d NN |
4058 | if test -z "$CC"; then |
4059 | # Extract the first word of "cc", so it can be a program name with args. | |
4060 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4062 | $as_echo_n "checking for $ac_word... " >&6; } | |
4063 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4064 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4065 | else |
4066 | if test -n "$CC"; then | |
4067 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4068 | else | |
9e07f89d | 4069 | ac_prog_rejected=no |
c6b750e1 DJ |
4070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4071 | for as_dir in $PATH | |
4072 | do | |
4073 | IFS=$as_save_IFS | |
4074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4075 | for ac_exec_ext in '' $ac_executable_extensions; do |
4076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4077 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4078 | ac_prog_rejected=yes | |
4079 | continue | |
4080 | fi | |
4081 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4082 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4083 | break 2 |
4084 | fi | |
4085 | done | |
81ecdfbb RW |
4086 | done |
4087 | IFS=$as_save_IFS | |
c6b750e1 | 4088 | |
9e07f89d NN |
4089 | if test $ac_prog_rejected = yes; then |
4090 | # We found a bogon in the path, so make sure we never use it. | |
4091 | set dummy $ac_cv_prog_CC | |
4092 | shift | |
c6b750e1 | 4093 | if test $# != 0; then |
9e07f89d NN |
4094 | # We chose a different compiler from the bogus one. |
4095 | # However, it has the same basename, so the bogon will be chosen | |
4096 | # first if we set CC to just the basename; use the full file name. | |
4097 | shift | |
c6b750e1 | 4098 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4099 | fi |
4100 | fi | |
4101 | fi | |
4102 | fi | |
c6b750e1 | 4103 | CC=$ac_cv_prog_CC |
9e07f89d | 4104 | if test -n "$CC"; then |
81ecdfbb RW |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4106 | $as_echo "$CC" >&6; } | |
9e07f89d | 4107 | else |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4109 | $as_echo "no" >&6; } | |
9e07f89d NN |
4110 | fi |
4111 | ||
81ecdfbb | 4112 | |
c6b750e1 DJ |
4113 | fi |
4114 | if test -z "$CC"; then | |
4115 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4116 | for ac_prog in cl.exe |
c6b750e1 DJ |
4117 | do |
4118 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4119 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4121 | $as_echo_n "checking for $ac_word... " >&6; } | |
4122 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4123 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4124 | else |
4125 | if test -n "$CC"; then | |
4126 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4127 | else | |
c6b750e1 DJ |
4128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4129 | for as_dir in $PATH | |
4130 | do | |
4131 | IFS=$as_save_IFS | |
4132 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4133 | for ac_exec_ext in '' $ac_executable_extensions; do |
4134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4135 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4137 | break 2 |
376a0e54 | 4138 | fi |
c6b750e1 | 4139 | done |
81ecdfbb RW |
4140 | done |
4141 | IFS=$as_save_IFS | |
cac3d6c4 | 4142 | |
c6b750e1 DJ |
4143 | fi |
4144 | fi | |
4145 | CC=$ac_cv_prog_CC | |
4146 | if test -n "$CC"; then | |
81ecdfbb RW |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4148 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4149 | else |
81ecdfbb RW |
4150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4151 | $as_echo "no" >&6; } | |
9e07f89d | 4152 | fi |
cac3d6c4 | 4153 | |
81ecdfbb | 4154 | |
c6b750e1 DJ |
4155 | test -n "$CC" && break |
4156 | done | |
cac3d6c4 | 4157 | fi |
c6b750e1 DJ |
4158 | if test -z "$CC"; then |
4159 | ac_ct_CC=$CC | |
81ecdfbb | 4160 | for ac_prog in cl.exe |
c6b750e1 DJ |
4161 | do |
4162 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4163 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4165 | $as_echo_n "checking for $ac_word... " >&6; } | |
4166 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4167 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4168 | else |
c6b750e1 DJ |
4169 | if test -n "$ac_ct_CC"; then |
4170 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4171 | else |
c6b750e1 DJ |
4172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4173 | for as_dir in $PATH | |
4174 | do | |
4175 | IFS=$as_save_IFS | |
4176 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4177 | for ac_exec_ext in '' $ac_executable_extensions; do |
4178 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4179 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4180 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4181 | break 2 |
4182 | fi | |
4183 | done | |
81ecdfbb RW |
4184 | done |
4185 | IFS=$as_save_IFS | |
c6b750e1 | 4186 | |
cac3d6c4 CM |
4187 | fi |
4188 | fi | |
c6b750e1 DJ |
4189 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4190 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4192 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4193 | else |
81ecdfbb RW |
4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4195 | $as_echo "no" >&6; } | |
cac3d6c4 | 4196 | fi |
376a0e54 | 4197 | |
81ecdfbb | 4198 | |
c6b750e1 DJ |
4199 | test -n "$ac_ct_CC" && break |
4200 | done | |
4201 | ||
81ecdfbb RW |
4202 | if test "x$ac_ct_CC" = x; then |
4203 | CC="" | |
4204 | else | |
4205 | case $cross_compiling:$ac_tool_warned in | |
4206 | yes:) | |
4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4208 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4209 | ac_tool_warned=yes ;; | |
4210 | esac | |
4211 | CC=$ac_ct_CC | |
4212 | fi | |
c6b750e1 DJ |
4213 | fi |
4214 | ||
4215 | fi | |
4216 | ||
4217 | ||
81ecdfbb RW |
4218 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4220 | as_fn_error "no acceptable C compiler found in \$PATH | |
4221 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4222 | |
4223 | # Provide some information about the compiler. | |
81ecdfbb RW |
4224 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4225 | set X $ac_compile | |
4226 | ac_compiler=$2 | |
4227 | for ac_option in --version -v -V -qversion; do | |
4228 | { { ac_try="$ac_compiler $ac_option >&5" | |
4229 | case "(($ac_try" in | |
4230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4231 | *) ac_try_echo=$ac_try;; | |
4232 | esac | |
4233 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4234 | $as_echo "$ac_try_echo"; } >&5 | |
4235 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4236 | ac_status=$? |
81ecdfbb RW |
4237 | if test -s conftest.err; then |
4238 | sed '10a\ | |
4239 | ... rest of stderr output deleted ... | |
4240 | 10q' conftest.err >conftest.er1 | |
4241 | cat conftest.er1 >&5 | |
4242 | rm -f conftest.er1 conftest.err | |
4243 | fi | |
4244 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4245 | test $ac_status = 0; } | |
4246 | done | |
c6b750e1 | 4247 | |
81ecdfbb | 4248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4249 | /* end confdefs.h. */ |
4250 | ||
4251 | int | |
4252 | main () | |
4253 | { | |
4254 | ||
4255 | ; | |
4256 | return 0; | |
4257 | } | |
4258 | _ACEOF | |
4259 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4260 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4261 | # Try to create an executable without -o first, disregard a.out. |
4262 | # It will help us diagnose broken compilers, and finding out an intuition | |
4263 | # of exeext. | |
81ecdfbb RW |
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4265 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4266 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4267 | ||
4268 | # The possible output files: | |
4269 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4270 | ||
4271 | ac_rmfiles= | |
4272 | for ac_file in $ac_files | |
4273 | do | |
4274 | case $ac_file in | |
4275 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4276 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4277 | esac | |
4278 | done | |
4279 | rm -f $ac_rmfiles | |
4280 | ||
4281 | if { { ac_try="$ac_link_default" | |
4282 | case "(($ac_try" in | |
4283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4284 | *) ac_try_echo=$ac_try;; | |
4285 | esac | |
4286 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4287 | $as_echo "$ac_try_echo"; } >&5 | |
4288 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4289 | ac_status=$? |
81ecdfbb RW |
4290 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4291 | test $ac_status = 0; }; then : | |
4292 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4293 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4294 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4295 | # so that the user can short-circuit this test for compilers unknown to | |
4296 | # Autoconf. | |
4297 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4298 | do |
4299 | test -f "$ac_file" || continue | |
4300 | case $ac_file in | |
81ecdfbb | 4301 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4302 | ;; |
4303 | [ab].out ) | |
4304 | # We found the default executable, but exeext='' is most | |
4305 | # certainly right. | |
4306 | break;; | |
4307 | *.* ) | |
81ecdfbb RW |
4308 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4309 | then :; else | |
4310 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4311 | fi | |
4312 | # We set ac_cv_exeext here because the later test for it is not | |
4313 | # safe: cross compilers may not add the suffix if given an `-o' | |
4314 | # argument, so we may need to know it at that point already. | |
4315 | # Even if this section looks crufty: it has the advantage of | |
4316 | # actually working. | |
c6b750e1 DJ |
4317 | break;; |
4318 | * ) | |
4319 | break;; | |
4320 | esac | |
4321 | done | |
81ecdfbb RW |
4322 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4323 | ||
c6b750e1 | 4324 | else |
81ecdfbb RW |
4325 | ac_file='' |
4326 | fi | |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4328 | $as_echo "$ac_file" >&6; } | |
4329 | if test -z "$ac_file"; then : | |
4330 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4331 | sed 's/^/| /' conftest.$ac_ext >&5 |
4332 | ||
81ecdfbb RW |
4333 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4334 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4335 | { as_fn_set_status 77 | |
4336 | as_fn_error "C compiler cannot create executables | |
4337 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4338 | fi |
c6b750e1 | 4339 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4340 | |
81ecdfbb | 4341 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4342 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4344 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4345 | # If not cross compiling, check that we can run a simple program. |
4346 | if test "$cross_compiling" != yes; then | |
4347 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4348 | { { case "(($ac_try" in |
4349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4350 | *) ac_try_echo=$ac_try;; | |
4351 | esac | |
4352 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4353 | $as_echo "$ac_try_echo"; } >&5 | |
4354 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4355 | ac_status=$? |
81ecdfbb RW |
4356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4357 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4358 | cross_compiling=no |
4359 | else | |
4360 | if test "$cross_compiling" = maybe; then | |
4361 | cross_compiling=yes | |
4362 | else | |
81ecdfbb RW |
4363 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4364 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4365 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4366 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4367 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4368 | fi |
4369 | fi | |
4370 | fi | |
81ecdfbb RW |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4372 | $as_echo "yes" >&6; } | |
c6b750e1 | 4373 | |
81ecdfbb | 4374 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4375 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4376 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4377 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4379 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4381 | $as_echo "$cross_compiling" >&6; } | |
4382 | ||
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4384 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4385 | if { { ac_try="$ac_link" | |
4386 | case "(($ac_try" in | |
4387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4388 | *) ac_try_echo=$ac_try;; | |
4389 | esac | |
4390 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4391 | $as_echo "$ac_try_echo"; } >&5 | |
4392 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4393 | ac_status=$? |
81ecdfbb RW |
4394 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4395 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4396 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4397 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4398 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4399 | # `rm'. | |
4400 | for ac_file in conftest.exe conftest conftest.*; do | |
4401 | test -f "$ac_file" || continue | |
4402 | case $ac_file in | |
81ecdfbb | 4403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4404 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4405 | break;; |
4406 | * ) break;; | |
4407 | esac | |
4408 | done | |
4409 | else | |
81ecdfbb RW |
4410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4412 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4413 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4414 | fi |
c6b750e1 | 4415 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4417 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4418 | |
4419 | rm -f conftest.$ac_ext | |
4420 | EXEEXT=$ac_cv_exeext | |
4421 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4423 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4424 | if test "${ac_cv_objext+set}" = set; then : | |
4425 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4426 | else |
81ecdfbb | 4427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4428 | /* end confdefs.h. */ |
4429 | ||
4430 | int | |
4431 | main () | |
4432 | { | |
4433 | ||
4434 | ; | |
4435 | return 0; | |
4436 | } | |
4437 | _ACEOF | |
4438 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4439 | if { { ac_try="$ac_compile" |
4440 | case "(($ac_try" in | |
4441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4442 | *) ac_try_echo=$ac_try;; | |
4443 | esac | |
4444 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4445 | $as_echo "$ac_try_echo"; } >&5 | |
4446 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4447 | ac_status=$? |
81ecdfbb RW |
4448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4449 | test $ac_status = 0; }; then : | |
4450 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4451 | test -f "$ac_file" || continue; | |
c6b750e1 | 4452 | case $ac_file in |
81ecdfbb | 4453 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4454 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4455 | break;; | |
4456 | esac | |
4457 | done | |
cac3d6c4 | 4458 | else |
81ecdfbb | 4459 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4460 | sed 's/^/| /' conftest.$ac_ext >&5 |
4461 | ||
81ecdfbb RW |
4462 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4463 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4464 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4465 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4466 | fi |
c6b750e1 DJ |
4467 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4468 | fi | |
81ecdfbb RW |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4470 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4471 | OBJEXT=$ac_cv_objext |
4472 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4474 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4475 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4476 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4477 | else |
81ecdfbb | 4478 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4479 | /* end confdefs.h. */ |
4480 | ||
4481 | int | |
4482 | main () | |
4483 | { | |
4484 | #ifndef __GNUC__ | |
4485 | choke me | |
4486 | #endif | |
4487 | ||
4488 | ; | |
4489 | return 0; | |
4490 | } | |
4491 | _ACEOF | |
81ecdfbb | 4492 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4493 | ac_compiler_gnu=yes |
4494 | else | |
81ecdfbb | 4495 | ac_compiler_gnu=no |
c6b750e1 | 4496 | fi |
81ecdfbb | 4497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4498 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4499 | ||
4500 | fi | |
81ecdfbb RW |
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4502 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4503 | if test $ac_compiler_gnu = yes; then | |
4504 | GCC=yes | |
4505 | else | |
4506 | GCC= | |
4507 | fi | |
c6b750e1 DJ |
4508 | ac_test_CFLAGS=${CFLAGS+set} |
4509 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4511 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4512 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4513 | $as_echo_n "(cached) " >&6 | |
4514 | else | |
4515 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4516 | ac_c_werror_flag=yes | |
4517 | ac_cv_prog_cc_g=no | |
4518 | CFLAGS="-g" | |
4519 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4520 | /* end confdefs.h. */ |
4521 | ||
4522 | int | |
4523 | main () | |
4524 | { | |
4525 | ||
4526 | ; | |
4527 | return 0; | |
4528 | } | |
4529 | _ACEOF | |
81ecdfbb | 4530 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4531 | ac_cv_prog_cc_g=yes |
4532 | else | |
81ecdfbb RW |
4533 | CFLAGS="" |
4534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4535 | /* end confdefs.h. */ | |
4536 | ||
4537 | int | |
4538 | main () | |
4539 | { | |
4540 | ||
4541 | ; | |
4542 | return 0; | |
4543 | } | |
4544 | _ACEOF | |
4545 | if ac_fn_c_try_compile "$LINENO"; then : | |
4546 | ||
4547 | else | |
4548 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4549 | CFLAGS="-g" | |
4550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4551 | /* end confdefs.h. */ | |
cac3d6c4 | 4552 | |
81ecdfbb RW |
4553 | int |
4554 | main () | |
4555 | { | |
4556 | ||
4557 | ; | |
4558 | return 0; | |
4559 | } | |
4560 | _ACEOF | |
4561 | if ac_fn_c_try_compile "$LINENO"; then : | |
4562 | ac_cv_prog_cc_g=yes | |
4563 | fi | |
4564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4565 | fi |
81ecdfbb | 4566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4567 | fi |
81ecdfbb RW |
4568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4569 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4570 | fi | |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4572 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4573 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4574 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4575 | elif test $ac_cv_prog_cc_g = yes; then |
4576 | if test "$GCC" = yes; then | |
4577 | CFLAGS="-g -O2" | |
4578 | else | |
4579 | CFLAGS="-g" | |
4580 | fi | |
4581 | else | |
4582 | if test "$GCC" = yes; then | |
4583 | CFLAGS="-O2" | |
4584 | else | |
4585 | CFLAGS= | |
4586 | fi | |
4587 | fi | |
81ecdfbb RW |
4588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4589 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4590 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4591 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4592 | else |
81ecdfbb | 4593 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4594 | ac_save_CC=$CC |
81ecdfbb | 4595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4596 | /* end confdefs.h. */ |
4597 | #include <stdarg.h> | |
4598 | #include <stdio.h> | |
4599 | #include <sys/types.h> | |
4600 | #include <sys/stat.h> | |
4601 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4602 | struct buf { int x; }; | |
4603 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4604 | static char *e (p, i) | |
4605 | char **p; | |
4606 | int i; | |
4607 | { | |
4608 | return p[i]; | |
4609 | } | |
4610 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4611 | { | |
4612 | char *s; | |
4613 | va_list v; | |
4614 | va_start (v,p); | |
4615 | s = g (p, va_arg (v,int)); | |
4616 | va_end (v); | |
4617 | return s; | |
4618 | } | |
4619 | ||
4620 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4621 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4622 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4623 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4624 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4625 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4626 | that's true only with -std. */ |
c6b750e1 DJ |
4627 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4628 | ||
81ecdfbb RW |
4629 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4630 | inside strings and character constants. */ | |
4631 | #define FOO(x) 'x' | |
4632 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4633 | ||
c6b750e1 DJ |
4634 | int test (int i, double x); |
4635 | struct s1 {int (*f) (int a);}; | |
4636 | struct s2 {int (*f) (double a);}; | |
4637 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4638 | int argc; | |
4639 | char **argv; | |
4640 | int | |
4641 | main () | |
4642 | { | |
4643 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4644 | ; | |
4645 | return 0; | |
4646 | } | |
4647 | _ACEOF | |
81ecdfbb RW |
4648 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4649 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4650 | do |
4651 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4652 | if ac_fn_c_try_compile "$LINENO"; then : |
4653 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4654 | fi |
81ecdfbb RW |
4655 | rm -f core conftest.err conftest.$ac_objext |
4656 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4657 | done |
81ecdfbb | 4658 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4659 | CC=$ac_save_CC |
4660 | ||
4661 | fi | |
81ecdfbb RW |
4662 | # AC_CACHE_VAL |
4663 | case "x$ac_cv_prog_cc_c89" in | |
4664 | x) | |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4666 | $as_echo "none needed" >&6; } ;; | |
4667 | xno) | |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4669 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4670 | *) |
81ecdfbb RW |
4671 | CC="$CC $ac_cv_prog_cc_c89" |
4672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4673 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4674 | esac |
81ecdfbb | 4675 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4676 | |
c6b750e1 DJ |
4677 | fi |
4678 | ||
c6b750e1 DJ |
4679 | ac_ext=c |
4680 | ac_cpp='$CPP $CPPFLAGS' | |
4681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4684 | |
81ecdfbb | 4685 | ac_ext=cpp |
18f6b6ee PB |
4686 | ac_cpp='$CXXCPP $CPPFLAGS' |
4687 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4688 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4689 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4690 | if test -z "$CXX"; then |
4691 | if test -n "$CCC"; then | |
4692 | CXX=$CCC | |
4693 | else | |
4694 | if test -n "$ac_tool_prefix"; then | |
4695 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4696 | do |
4697 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4698 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4700 | $as_echo_n "checking for $ac_word... " >&6; } | |
4701 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4702 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4703 | else |
4704 | if test -n "$CXX"; then | |
4705 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4706 | else | |
4707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4708 | for as_dir in $PATH | |
4709 | do | |
4710 | IFS=$as_save_IFS | |
4711 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4712 | for ac_exec_ext in '' $ac_executable_extensions; do |
4713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4714 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4716 | break 2 |
4717 | fi | |
4718 | done | |
81ecdfbb RW |
4719 | done |
4720 | IFS=$as_save_IFS | |
512b7dfb | 4721 | |
18f6b6ee PB |
4722 | fi |
4723 | fi | |
4724 | CXX=$ac_cv_prog_CXX | |
4725 | if test -n "$CXX"; then | |
81ecdfbb RW |
4726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4727 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4728 | else |
81ecdfbb RW |
4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4730 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4731 | fi |
4732 | ||
81ecdfbb | 4733 | |
18f6b6ee PB |
4734 | test -n "$CXX" && break |
4735 | done | |
4736 | fi | |
4737 | if test -z "$CXX"; then | |
4738 | ac_ct_CXX=$CXX | |
81ecdfbb | 4739 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4740 | do |
4741 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4742 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4744 | $as_echo_n "checking for $ac_word... " >&6; } | |
4745 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4746 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4747 | else |
4748 | if test -n "$ac_ct_CXX"; then | |
4749 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4750 | else | |
4751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4752 | for as_dir in $PATH | |
4753 | do | |
4754 | IFS=$as_save_IFS | |
4755 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4756 | for ac_exec_ext in '' $ac_executable_extensions; do |
4757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4758 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4760 | break 2 |
512b7dfb | 4761 | fi |
18f6b6ee | 4762 | done |
81ecdfbb RW |
4763 | done |
4764 | IFS=$as_save_IFS | |
512b7dfb | 4765 | |
18f6b6ee PB |
4766 | fi |
4767 | fi | |
4768 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4769 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4771 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4772 | else |
81ecdfbb RW |
4773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4774 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4775 | fi |
4776 | ||
81ecdfbb | 4777 | |
18f6b6ee PB |
4778 | test -n "$ac_ct_CXX" && break |
4779 | done | |
18f6b6ee | 4780 | |
81ecdfbb RW |
4781 | if test "x$ac_ct_CXX" = x; then |
4782 | CXX="g++" | |
4783 | else | |
4784 | case $cross_compiling:$ac_tool_warned in | |
4785 | yes:) | |
4786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4787 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4788 | ac_tool_warned=yes ;; | |
4789 | esac | |
4790 | CXX=$ac_ct_CXX | |
4791 | fi | |
18f6b6ee PB |
4792 | fi |
4793 | ||
81ecdfbb RW |
4794 | fi |
4795 | fi | |
18f6b6ee | 4796 | # Provide some information about the compiler. |
81ecdfbb RW |
4797 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4798 | set X $ac_compile | |
4799 | ac_compiler=$2 | |
4800 | for ac_option in --version -v -V -qversion; do | |
4801 | { { ac_try="$ac_compiler $ac_option >&5" | |
4802 | case "(($ac_try" in | |
4803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4804 | *) ac_try_echo=$ac_try;; | |
4805 | esac | |
4806 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4807 | $as_echo "$ac_try_echo"; } >&5 | |
4808 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4809 | ac_status=$? |
81ecdfbb RW |
4810 | if test -s conftest.err; then |
4811 | sed '10a\ | |
4812 | ... rest of stderr output deleted ... | |
4813 | 10q' conftest.err >conftest.er1 | |
4814 | cat conftest.er1 >&5 | |
4815 | rm -f conftest.er1 conftest.err | |
4816 | fi | |
4817 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4818 | test $ac_status = 0; } | |
4819 | done | |
18f6b6ee | 4820 | |
81ecdfbb RW |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4822 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4823 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4824 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4825 | else |
81ecdfbb | 4826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4827 | /* end confdefs.h. */ |
4828 | ||
4829 | int | |
4830 | main () | |
4831 | { | |
4832 | #ifndef __GNUC__ | |
4833 | choke me | |
4834 | #endif | |
4835 | ||
4836 | ; | |
4837 | return 0; | |
4838 | } | |
4839 | _ACEOF | |
81ecdfbb | 4840 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4841 | ac_compiler_gnu=yes |
4842 | else | |
81ecdfbb | 4843 | ac_compiler_gnu=no |
18f6b6ee | 4844 | fi |
81ecdfbb | 4845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4846 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4847 | ||
4848 | fi | |
81ecdfbb RW |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4850 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4851 | if test $ac_compiler_gnu = yes; then | |
4852 | GXX=yes | |
4853 | else | |
4854 | GXX= | |
4855 | fi | |
18f6b6ee PB |
4856 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4857 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4859 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4860 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4861 | $as_echo_n "(cached) " >&6 | |
4862 | else | |
4863 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4864 | ac_cxx_werror_flag=yes | |
4865 | ac_cv_prog_cxx_g=no | |
4866 | CXXFLAGS="-g" | |
4867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4868 | /* end confdefs.h. */ |
4869 | ||
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | ||
4874 | ; | |
4875 | return 0; | |
4876 | } | |
4877 | _ACEOF | |
81ecdfbb | 4878 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4879 | ac_cv_prog_cxx_g=yes |
4880 | else | |
81ecdfbb RW |
4881 | CXXFLAGS="" |
4882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4883 | /* end confdefs.h. */ |
81ecdfbb | 4884 | |
18f6b6ee PB |
4885 | int |
4886 | main () | |
4887 | { | |
81ecdfbb | 4888 | |
18f6b6ee PB |
4889 | ; |
4890 | return 0; | |
4891 | } | |
4892 | _ACEOF | |
81ecdfbb | 4893 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4894 | |
81ecdfbb RW |
4895 | else |
4896 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4897 | CXXFLAGS="-g" | |
4898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4899 | /* end confdefs.h. */ |
81ecdfbb | 4900 | |
18f6b6ee PB |
4901 | int |
4902 | main () | |
4903 | { | |
81ecdfbb | 4904 | |
18f6b6ee PB |
4905 | ; |
4906 | return 0; | |
4907 | } | |
4908 | _ACEOF | |
81ecdfbb RW |
4909 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4910 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4911 | fi |
81ecdfbb RW |
4912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4913 | fi | |
4914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4915 | fi | |
4916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4917 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4918 | fi | |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4920 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4921 | if test "$ac_test_CXXFLAGS" = set; then | |
4922 | CXXFLAGS=$ac_save_CXXFLAGS | |
4923 | elif test $ac_cv_prog_cxx_g = yes; then | |
4924 | if test "$GXX" = yes; then | |
4925 | CXXFLAGS="-g -O2" | |
4926 | else | |
4927 | CXXFLAGS="-g" | |
4928 | fi | |
4929 | else | |
4930 | if test "$GXX" = yes; then | |
4931 | CXXFLAGS="-O2" | |
4932 | else | |
4933 | CXXFLAGS= | |
4934 | fi | |
18f6b6ee | 4935 | fi |
18f6b6ee PB |
4936 | ac_ext=c |
4937 | ac_cpp='$CPP $CPPFLAGS' | |
4938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4941 | ||
4942 | ||
4943 | # We must set the default linker to the linker used by gcc for the correct | |
4944 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4945 | # set the LD default to the ld used by gcc. | |
4946 | if test -z "$LD"; then | |
4947 | if test "$GCC" = yes; then | |
4948 | case $build in | |
4949 | *-*-mingw*) | |
4950 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4951 | *) | |
4952 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4953 | esac | |
4954 | case $gcc_prog_ld in | |
4955 | # Accept absolute paths. | |
4956 | [\\/]* | [A-Za-z]:[\\/]*) | |
4957 | LD="$gcc_prog_ld" ;; | |
4958 | esac | |
4959 | fi | |
512b7dfb PB |
4960 | fi |
4961 | ||
b3676d82 EB |
4962 | # Check whether -static-libstdc++ -static-libgcc is supported. |
4963 | have_static_libs=no | |
4964 | if test "$GCC" = yes; then | |
4965 | saved_LDFLAGS="$LDFLAGS" | |
4966 | ||
4967 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
4969 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
4970 | ac_ext=cpp | |
4971 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4972 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4973 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4974 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4975 | ||
4976 | ||
4977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4978 | /* end confdefs.h. */ | |
a882be68 EB |
4979 | |
4980 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
4981 | #error -static-libstdc++ not implemented | |
4982 | #endif | |
b3676d82 EB |
4983 | int main() {} |
4984 | _ACEOF | |
4985 | if ac_fn_cxx_try_link "$LINENO"; then : | |
4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4987 | $as_echo "yes" >&6; }; have_static_libs=yes | |
4988 | else | |
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4990 | $as_echo "no" >&6; } | |
4991 | fi | |
4992 | rm -f core conftest.err conftest.$ac_objext \ | |
4993 | conftest$ac_exeext conftest.$ac_ext | |
4994 | ac_ext=c | |
4995 | ac_cpp='$CPP $CPPFLAGS' | |
4996 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4997 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4998 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4999 | ||
5000 | ||
5001 | LDFLAGS="$saved_LDFLAGS" | |
5002 | fi | |
5003 | ||
512b7dfb PB |
5004 | |
5005 | ||
5006 | ||
c6b750e1 | 5007 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5008 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5009 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5010 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5011 | $as_echo_n "checking for $ac_word... " >&6; } | |
5012 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5013 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5014 | else |
512b7dfb PB |
5015 | if test -n "$GNATBIND"; then |
5016 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5017 | else |
c6b750e1 DJ |
5018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5019 | for as_dir in $PATH | |
5020 | do | |
5021 | IFS=$as_save_IFS | |
5022 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5023 | for ac_exec_ext in '' $ac_executable_extensions; do |
5024 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5025 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5026 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5027 | break 2 |
5028 | fi | |
5029 | done | |
81ecdfbb RW |
5030 | done |
5031 | IFS=$as_save_IFS | |
c6b750e1 | 5032 | |
9e07f89d NN |
5033 | fi |
5034 | fi | |
512b7dfb PB |
5035 | GNATBIND=$ac_cv_prog_GNATBIND |
5036 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5038 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5039 | else |
81ecdfbb RW |
5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5041 | $as_echo "no" >&6; } | |
9e07f89d NN |
5042 | fi |
5043 | ||
81ecdfbb | 5044 | |
c6b750e1 | 5045 | fi |
512b7dfb PB |
5046 | if test -z "$ac_cv_prog_GNATBIND"; then |
5047 | ac_ct_GNATBIND=$GNATBIND | |
5048 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5049 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5051 | $as_echo_n "checking for $ac_word... " >&6; } | |
5052 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5053 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5054 | else |
512b7dfb PB |
5055 | if test -n "$ac_ct_GNATBIND"; then |
5056 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5057 | else |
c6b750e1 DJ |
5058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5059 | for as_dir in $PATH | |
5060 | do | |
5061 | IFS=$as_save_IFS | |
5062 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5063 | for ac_exec_ext in '' $ac_executable_extensions; do |
5064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5065 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5067 | break 2 |
5068 | fi | |
5069 | done | |
81ecdfbb RW |
5070 | done |
5071 | IFS=$as_save_IFS | |
c6b750e1 | 5072 | |
9e07f89d NN |
5073 | fi |
5074 | fi | |
512b7dfb PB |
5075 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5076 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5078 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5079 | else |
81ecdfbb RW |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5081 | $as_echo "no" >&6; } | |
9e07f89d NN |
5082 | fi |
5083 | ||
81ecdfbb RW |
5084 | if test "x$ac_ct_GNATBIND" = x; then |
5085 | GNATBIND="no" | |
5086 | else | |
5087 | case $cross_compiling:$ac_tool_warned in | |
5088 | yes:) | |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5090 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5091 | ac_tool_warned=yes ;; | |
5092 | esac | |
5093 | GNATBIND=$ac_ct_GNATBIND | |
5094 | fi | |
24ff9987 | 5095 | else |
512b7dfb | 5096 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5097 | fi |
5098 | ||
7df2cd5d | 5099 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5100 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5101 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5103 | $as_echo_n "checking for $ac_word... " >&6; } | |
5104 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5105 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5106 | else |
512b7dfb PB |
5107 | if test -n "$GNATMAKE"; then |
5108 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5109 | else |
5110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5111 | for as_dir in $PATH | |
5112 | do | |
5113 | IFS=$as_save_IFS | |
5114 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5115 | for ac_exec_ext in '' $ac_executable_extensions; do |
5116 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5117 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5118 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5119 | break 2 |
5120 | fi | |
5121 | done | |
81ecdfbb RW |
5122 | done |
5123 | IFS=$as_save_IFS | |
7df2cd5d PB |
5124 | |
5125 | fi | |
5126 | fi | |
512b7dfb PB |
5127 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5128 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5130 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5131 | else |
81ecdfbb RW |
5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5133 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5134 | fi |
5135 | ||
81ecdfbb | 5136 | |
7df2cd5d | 5137 | fi |
512b7dfb PB |
5138 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5139 | ac_ct_GNATMAKE=$GNATMAKE | |
5140 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5141 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5143 | $as_echo_n "checking for $ac_word... " >&6; } | |
5144 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5145 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5146 | else |
512b7dfb PB |
5147 | if test -n "$ac_ct_GNATMAKE"; then |
5148 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5149 | else |
5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5151 | for as_dir in $PATH | |
5152 | do | |
5153 | IFS=$as_save_IFS | |
5154 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5155 | for ac_exec_ext in '' $ac_executable_extensions; do |
5156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5157 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5159 | break 2 |
5160 | fi | |
5161 | done | |
81ecdfbb RW |
5162 | done |
5163 | IFS=$as_save_IFS | |
7df2cd5d | 5164 | |
7df2cd5d PB |
5165 | fi |
5166 | fi | |
512b7dfb PB |
5167 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5168 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5170 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5171 | else |
81ecdfbb RW |
5172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5173 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5174 | fi |
5175 | ||
81ecdfbb RW |
5176 | if test "x$ac_ct_GNATMAKE" = x; then |
5177 | GNATMAKE="no" | |
5178 | else | |
5179 | case $cross_compiling:$ac_tool_warned in | |
5180 | yes:) | |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5182 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5183 | ac_tool_warned=yes ;; | |
5184 | esac | |
5185 | GNATMAKE=$ac_ct_GNATMAKE | |
5186 | fi | |
7df2cd5d | 5187 | else |
512b7dfb | 5188 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5189 | fi |
5190 | ||
81ecdfbb RW |
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5192 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5193 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5194 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5195 | else |
5196 | cat >conftest.adb <<EOF | |
5197 | procedure conftest is begin null; end conftest; | |
5198 | EOF | |
5199 | acx_cv_cc_gcc_supports_ada=no | |
5200 | # There is a bug in old released versions of GCC which causes the | |
5201 | # driver to exit successfully when the appropriate language module | |
5202 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5203 | # Therefore we must check for the error message as well as an | |
5204 | # unsuccessful exit. | |
b8908782 DD |
5205 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5206 | # given a .adb file, but produce no object file. So we must check | |
5207 | # if an object file was really produced to guard against this. | |
9e07f89d | 5208 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5209 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5210 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5211 | fi |
5212 | rm -f conftest.* | |
5213 | fi | |
81ecdfbb RW |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5215 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5216 | |
64b986c0 | 5217 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5218 | have_gnat=yes |
5219 | else | |
5220 | have_gnat=no | |
5221 | fi | |
5222 | ||
81ecdfbb RW |
5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5224 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5225 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5226 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5227 | else |
5228 | echo abfoo >t1 | |
5229 | echo cdfoo >t2 | |
5230 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5231 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5232 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5233 | : | |
5234 | else | |
5235 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5236 | fi | |
5237 | fi | |
b8908782 DD |
5238 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5239 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5240 | : |
b8908782 DD |
5241 | else |
5242 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5243 | fi | |
5244 | fi | |
5245 | rm t1 t2 | |
5246 | ||
5247 | fi | |
81ecdfbb RW |
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5249 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5250 | do_compare="$gcc_cv_prog_cmp_skip" |
5251 | ||
5252 | ||
9e07f89d | 5253 | |
ffdd6afc ILT |
5254 | # Check whether --enable-bootstrap was given. |
5255 | if test "${enable_bootstrap+set}" = set; then : | |
5256 | enableval=$enable_bootstrap; | |
5257 | else | |
5258 | enable_bootstrap=default | |
5259 | fi | |
5260 | ||
5261 | ||
5262 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5263 | if test -r $srcdir/gcc/configure; then | |
5264 | have_compiler=yes | |
5265 | else | |
5266 | have_compiler=no | |
5267 | fi | |
5268 | ||
5269 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5270 | *:*:*:no) ;; | |
5271 | ||
5272 | # Default behavior. Enable bootstrap if we have a compiler | |
5273 | # and we are in a native configuration. | |
5274 | yes:$build:$build:default) | |
5275 | enable_bootstrap=yes ;; | |
5276 | ||
5277 | *:*:*:default) | |
5278 | enable_bootstrap=no ;; | |
5279 | ||
5280 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5281 | yes:$build:$build:yes) | |
5282 | ;; | |
5283 | ||
5284 | # Other configurations, but we have a compiler. Assume the user knows | |
5285 | # what he's doing. | |
5286 | yes:*:*:yes) | |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5288 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5289 | ;; | |
5290 | ||
5291 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5292 | no:*:*:yes) | |
5293 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5294 | ||
5295 | # Fail if wrong command line | |
5296 | *) | |
5297 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5298 | ;; | |
5299 | esac | |
5300 | ||
d5f2ee2e KG |
5301 | # Used for setting $lt_cv_objdir |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5303 | $as_echo_n "checking for objdir... " >&6; } | |
5304 | if test "${lt_cv_objdir+set}" = set; then : | |
5305 | $as_echo_n "(cached) " >&6 | |
5306 | else | |
5307 | rm -f .libs 2>/dev/null | |
5308 | mkdir .libs 2>/dev/null | |
5309 | if test -d .libs; then | |
5310 | lt_cv_objdir=.libs | |
5311 | else | |
5312 | # MS-DOS does not allow filenames that begin with a dot. | |
5313 | lt_cv_objdir=_libs | |
5314 | fi | |
5315 | rmdir .libs 2>/dev/null | |
5316 | fi | |
5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5318 | $as_echo "$lt_cv_objdir" >&6; } | |
5319 | objdir=$lt_cv_objdir | |
5320 | ||
5321 | ||
5322 | ||
5323 | ||
5324 | ||
5325 | cat >>confdefs.h <<_ACEOF | |
5326 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5327 | _ACEOF | |
5328 | ||
5329 | ||
5330 | ||
e8a5fa9c | 5331 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5332 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5333 | gmpinc= |
4b900473 | 5334 | have_gmp=no |
e8a5fa9c RW |
5335 | |
5336 | # Specify a location for mpc | |
5337 | # check for this first so it ends up on the link line before mpfr. | |
5338 | ||
81ecdfbb RW |
5339 | # Check whether --with-mpc was given. |
5340 | if test "${with_mpc+set}" = set; then : | |
5341 | withval=$with_mpc; | |
5342 | fi | |
e8a5fa9c | 5343 | |
e8a5fa9c | 5344 | |
e552509b | 5345 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5346 | if test "${with_mpc_include+set}" = set; then : |
5347 | withval=$with_mpc_include; | |
5348 | fi | |
e8a5fa9c | 5349 | |
e8a5fa9c | 5350 | |
e552509b | 5351 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5352 | if test "${with_mpc_lib+set}" = set; then : |
5353 | withval=$with_mpc_lib; | |
5354 | fi | |
e8a5fa9c | 5355 | |
e8a5fa9c RW |
5356 | |
5357 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5358 | gmplibs="-L$with_mpc/lib $gmplibs" |
5359 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5360 | fi |
5361 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5362 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5363 | fi |
5364 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5365 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5366 | fi |
5367 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5368 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5369 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5370 | # Do not test the mpc version. Assume that it is sufficient, since |
5371 | # it is in the source tree, and the library has not been built yet | |
5372 | # but it would be included on the link line in the version check below | |
5373 | # hence making the test fail. | |
d9b76ff9 | 5374 | have_gmp=yes |
e8a5fa9c | 5375 | fi |
4b900473 | 5376 | |
11b04d1f DD |
5377 | # Specify a location for mpfr |
5378 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5379 | |
81ecdfbb RW |
5380 | # Check whether --with-mpfr-dir was given. |
5381 | if test "${with_mpfr_dir+set}" = set; then : | |
5382 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5383 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5384 | fi | |
5385 | ||
11b04d1f DD |
5386 | |
5387 | ||
81ecdfbb RW |
5388 | # Check whether --with-mpfr was given. |
5389 | if test "${with_mpfr+set}" = set; then : | |
5390 | withval=$with_mpfr; | |
5391 | fi | |
c6b750e1 | 5392 | |
11b04d1f | 5393 | |
e552509b | 5394 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5395 | if test "${with_mpfr_include+set}" = set; then : |
5396 | withval=$with_mpfr_include; | |
5397 | fi | |
c6b750e1 | 5398 | |
8a0d8a5c | 5399 | |
e552509b | 5400 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5401 | if test "${with_mpfr_lib+set}" = set; then : |
5402 | withval=$with_mpfr_lib; | |
5403 | fi | |
8a0d8a5c | 5404 | |
11b04d1f DD |
5405 | |
5406 | if test "x$with_mpfr" != x; then | |
5407 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5408 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5409 | fi |
8a0d8a5c | 5410 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5411 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5412 | fi |
5413 | if test "x$with_mpfr_lib" != x; then | |
5414 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5415 | fi | |
4b900473 | 5416 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5417 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5418 | if test -d ${srcdir}/mpfr/src; then | |
5419 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5420 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5421 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5422 | else | |
5423 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5424 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5425 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5426 | fi | |
4b900473 PB |
5427 | # Do not test the mpfr version. Assume that it is sufficient, since |
5428 | # it is in the source tree, and the library has not been built yet | |
5429 | # but it would be included on the link line in the version check below | |
5430 | # hence making the test fail. | |
5431 | have_gmp=yes | |
5432 | fi | |
11b04d1f | 5433 | |
4b1cb4fe | 5434 | # Specify a location for gmp |
c6b750e1 | 5435 | |
81ecdfbb RW |
5436 | # Check whether --with-gmp-dir was given. |
5437 | if test "${with_gmp_dir+set}" = set; then : | |
5438 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5439 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5440 | fi | |
5441 | ||
4b1cb4fe DD |
5442 | |
5443 | ||
81ecdfbb RW |
5444 | # Check whether --with-gmp was given. |
5445 | if test "${with_gmp+set}" = set; then : | |
5446 | withval=$with_gmp; | |
5447 | fi | |
c6b750e1 | 5448 | |
4b1cb4fe | 5449 | |
e552509b | 5450 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5451 | if test "${with_gmp_include+set}" = set; then : |
5452 | withval=$with_gmp_include; | |
5453 | fi | |
c6b750e1 | 5454 | |
8a0d8a5c | 5455 | |
e552509b | 5456 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5457 | if test "${with_gmp_lib+set}" = set; then : |
5458 | withval=$with_gmp_lib; | |
5459 | fi | |
8a0d8a5c PB |
5460 | |
5461 | ||
4b1cb4fe | 5462 | |
11b04d1f DD |
5463 | if test "x$with_gmp" != x; then |
5464 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5465 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5466 | fi |
8a0d8a5c PB |
5467 | if test "x$with_gmp_include" != x; then |
5468 | gmpinc="-I$with_gmp_include $gmpinc" | |
5469 | fi | |
5470 | if test "x$with_gmp_lib" != x; then | |
5471 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5472 | fi | |
4b900473 | 5473 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5474 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5475 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5476 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5477 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5478 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5479 | # Do not test the gmp version. Assume that it is sufficient, since |
5480 | # it is in the source tree, and the library has not been built yet | |
5481 | # but it would be included on the link line in the version check below | |
5482 | # hence making the test fail. | |
5483 | have_gmp=yes | |
5484 | fi | |
4b1cb4fe | 5485 | |
ceb92e78 | 5486 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5487 | have_gmp=yes |
5488 | saved_CFLAGS="$CFLAGS" | |
5489 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5490 | # Check for the recommended and required versions of GMP. |
5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5492 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5493 | |
5494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5495 | /* end confdefs.h. */ |
5496 | #include "gmp.h" | |
5497 | int | |
5498 | main () | |
5499 | { | |
5500 | ||
5501 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5502 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5503 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5504 | choke me |
5505 | #endif | |
5506 | ||
5507 | ; | |
5508 | return 0; | |
5509 | } | |
5510 | _ACEOF | |
5511 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5513 | /* end confdefs.h. */ |
a6b5846e | 5514 | #include <gmp.h> |
c6b750e1 DJ |
5515 | int |
5516 | main () | |
5517 | { | |
4b1cb4fe | 5518 | |
a6b5846e KG |
5519 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5520 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5521 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5522 | choke me |
5523 | #endif | |
c6b750e1 DJ |
5524 | |
5525 | ; | |
5526 | return 0; | |
5527 | } | |
5528 | _ACEOF | |
81ecdfbb RW |
5529 | if ac_fn_c_try_compile "$LINENO"; then : |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5531 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5532 | else |
5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5534 | $as_echo "buggy but acceptable" >&6; } | |
5535 | fi | |
5536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5537 | else |
81ecdfbb RW |
5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5539 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5540 | fi |
81ecdfbb | 5541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5542 | |
e8a5fa9c | 5543 | # If we have GMP, check the MPFR version. |
4b900473 | 5544 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5545 | # Check for the recommended and required versions of MPFR. |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5547 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5549 | /* end confdefs.h. */ |
9b134994 | 5550 | #include <gmp.h> |
4b900473 | 5551 | #include <mpfr.h> |
c6b750e1 DJ |
5552 | int |
5553 | main () | |
5554 | { | |
9b134994 | 5555 | |
7ec59b9e | 5556 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5557 | choke me |
5558 | #endif | |
c6b750e1 DJ |
5559 | |
5560 | ; | |
5561 | return 0; | |
5562 | } | |
5563 | _ACEOF | |
81ecdfbb RW |
5564 | if ac_fn_c_try_compile "$LINENO"; then : |
5565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5566 | /* end confdefs.h. */ |
4b1cb4fe | 5567 | #include <gmp.h> |
4b900473 | 5568 | #include <mpfr.h> |
c6b750e1 DJ |
5569 | int |
5570 | main () | |
5571 | { | |
9dbaa842 | 5572 | |
a6b5846e | 5573 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5574 | choke me |
5575 | #endif | |
e8a5fa9c RW |
5576 | |
5577 | ; | |
5578 | return 0; | |
5579 | } | |
5580 | _ACEOF | |
81ecdfbb RW |
5581 | if ac_fn_c_try_compile "$LINENO"; then : |
5582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5583 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5584 | else |
81ecdfbb RW |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5586 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5587 | fi |
81ecdfbb | 5588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5589 | else |
81ecdfbb RW |
5590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5591 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5592 | fi |
81ecdfbb | 5593 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5594 | fi |
5595 | ||
5596 | # Check for the MPC header version. | |
d9b76ff9 | 5597 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5598 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5600 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5602 | /* end confdefs.h. */ |
5603 | #include <mpc.h> | |
5604 | int | |
5605 | main () | |
5606 | { | |
5607 | ||
a6b5846e KG |
5608 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5609 | choke me | |
5610 | #endif | |
5611 | ||
5612 | ; | |
5613 | return 0; | |
5614 | } | |
5615 | _ACEOF | |
5616 | if ac_fn_c_try_compile "$LINENO"; then : | |
5617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5618 | /* end confdefs.h. */ | |
5619 | #include <mpc.h> | |
5620 | int | |
5621 | main () | |
5622 | { | |
5623 | ||
5624 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5625 | choke me |
5626 | #endif | |
5627 | ||
5628 | ; | |
5629 | return 0; | |
5630 | } | |
5631 | _ACEOF | |
81ecdfbb RW |
5632 | if ac_fn_c_try_compile "$LINENO"; then : |
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5634 | $as_echo "yes" >&6; } |
a6b5846e KG |
5635 | else |
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5637 | $as_echo "buggy but acceptable" >&6; } | |
5638 | fi | |
5639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5640 | else |
81ecdfbb | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5642 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5643 | fi |
81ecdfbb | 5644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5645 | fi |
5646 | ||
5647 | # Now check the MPFR library. | |
5648 | if test x"$have_gmp" = xyes; then | |
5649 | saved_LIBS="$LIBS" | |
5650 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5652 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5654 | /* end confdefs.h. */ |
d9b76ff9 | 5655 | #include <mpc.h> |
e8a5fa9c RW |
5656 | int |
5657 | main () | |
5658 | { | |
5659 | ||
5660 | mpfr_t n; | |
5661 | mpfr_t x; | |
d9b76ff9 | 5662 | mpc_t c; |
e8a5fa9c RW |
5663 | int t; |
5664 | mpfr_init (n); | |
5665 | mpfr_init (x); | |
5666 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5667 | mpfr_erfc (n, x, GMP_RNDN); | |
5668 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5669 | mpfr_clear(n); |
5670 | mpfr_clear(x); | |
5671 | mpc_init2 (c, 53); | |
5672 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5673 | mpc_cosh (c, c, MPC_RNDNN); | |
5674 | mpc_pow (c, c, c, MPC_RNDNN); | |
5675 | mpc_acosh (c, c, MPC_RNDNN); | |
5676 | mpc_clear (c); | |
c6b750e1 DJ |
5677 | |
5678 | ; | |
5679 | return 0; | |
5680 | } | |
5681 | _ACEOF | |
81ecdfbb RW |
5682 | if ac_fn_c_try_link "$LINENO"; then : |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5684 | $as_echo "yes" >&6; } | |
c6b750e1 | 5685 | else |
81ecdfbb RW |
5686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5687 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5688 | fi |
81ecdfbb RW |
5689 | rm -f core conftest.err conftest.$ac_objext \ |
5690 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5691 | LIBS="$saved_LIBS" |
5692 | fi | |
5693 | ||
4b900473 | 5694 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5695 | |
a6b5846e KG |
5696 | # The library versions listed in the error message below should match |
5697 | # the HARD-minimums enforced above. | |
4b900473 | 5698 | if test x$have_gmp != xyes; then |
7ec59b9e | 5699 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5700 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5701 | their locations. Source code for these libraries can be found at | |
5702 | their respective hosting sites as well as at | |
5703 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5704 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5705 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5706 | make sure that you have installed both the libraries and the header | |
5707 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5708 | fi |
9dbaa842 DD |
5709 | fi |
5710 | ||
e8a5fa9c RW |
5711 | # Flags needed for both GMP, MPFR and/or MPC. |
5712 | ||
5713 | ||
5714 | ||
4b1cb4fe DD |
5715 | |
5716 | ||
5717 | ||
7ec59b9e | 5718 | |
29383458 JM |
5719 | # Allow host libstdc++ to be specified for static linking with PPL. |
5720 | ||
81ecdfbb RW |
5721 | # Check whether --with-host-libstdcxx was given. |
5722 | if test "${with_host_libstdcxx+set}" = set; then : | |
5723 | withval=$with_host_libstdcxx; | |
5724 | fi | |
29383458 | 5725 | |
29383458 JM |
5726 | |
5727 | case $with_host_libstdcxx in | |
5728 | no|yes) | |
81ecdfbb | 5729 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5730 | ;; |
5731 | esac | |
e28c595f | 5732 | |
b3676d82 | 5733 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5734 | |
b3676d82 EB |
5735 | # Check whether --with-stage1-libs was given. |
5736 | if test "${with_stage1_libs+set}" = set; then : | |
5737 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5738 | stage1_libs= | |
e8a5fa9c | 5739 | else |
b3676d82 | 5740 | stage1_libs=$withval |
e8a5fa9c RW |
5741 | fi |
5742 | else | |
b3676d82 | 5743 | stage1_libs=$with_host_libstdcxx |
81ecdfbb RW |
5744 | fi |
5745 | ||
e8a5fa9c RW |
5746 | |
5747 | ||
b3676d82 | 5748 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5749 | |
b3676d82 EB |
5750 | # Check whether --with-stage1-ldflags was given. |
5751 | if test "${with_stage1_ldflags+set}" = set; then : | |
5752 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5753 | stage1_ldflags= | |
e8a5fa9c | 5754 | else |
b3676d82 | 5755 | stage1_ldflags=$withval |
e8a5fa9c RW |
5756 | fi |
5757 | else | |
b3676d82 EB |
5758 | stage1_ldflags= |
5759 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5760 | # if supported. But if the user explicitly specified the libraries to use, | |
5761 | # trust that they are doing what they want. | |
5762 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5763 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5764 | fi | |
81ecdfbb RW |
5765 | fi |
5766 | ||
e8a5fa9c RW |
5767 | |
5768 | ||
e8a5fa9c RW |
5769 | # Libraries to use for stage2 and later builds. This defaults to the |
5770 | # argument passed to --with-host-libstdcxx. | |
5771 | ||
81ecdfbb RW |
5772 | # Check whether --with-boot-libs was given. |
5773 | if test "${with_boot_libs+set}" = set; then : | |
5774 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5775 | poststage1_libs= |
5776 | else | |
5777 | poststage1_libs=$withval | |
5778 | fi | |
5779 | else | |
5780 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5781 | fi |
5782 | ||
e8a5fa9c RW |
5783 | |
5784 | ||
143754cd NC |
5785 | # Linker flags to use for stage2 and later builds. |
5786 | ||
5787 | # Check whether --with-boot-ldflags was given. | |
5788 | if test "${with_boot_ldflags+set}" = set; then : | |
5789 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5790 | poststage1_ldflags= | |
5791 | else | |
5792 | poststage1_ldflags=$withval | |
5793 | fi | |
5794 | else | |
5795 | poststage1_ldflags= | |
4f11b223 ILT |
5796 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5797 | # statically. But if the user explicitly specified the libraries to | |
5798 | # use, trust that they are doing what they want. | |
5799 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5800 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5801 | fi | |
5802 | fi | |
5803 | ||
5804 | ||
5805 | ||
8e71395b L |
5806 | # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL. |
5807 | # Basic setup is inlined here, actual checks are in config/cloog.m4 and | |
5808 | # config/isl.m4 | |
5809 | ||
5810 | ||
5811 | # Check whether --with-cloog was given. | |
5812 | if test "${with_cloog+set}" = set; then : | |
5813 | withval=$with_cloog; | |
5814 | fi | |
e28c595f JM |
5815 | |
5816 | ||
7ec59b9e L |
5817 | # Check whether --with-isl was given. |
5818 | if test "${with_isl+set}" = set; then : | |
5819 | withval=$with_isl; | |
81ecdfbb | 5820 | fi |
e28c595f | 5821 | |
e28c595f | 5822 | |
8e71395b L |
5823 | # Treat either --without-cloog or --without-isl as a request to disable |
5824 | # GRAPHITE support and skip all following checks. | |
5825 | if test "x$with_isl" != "xno" && | |
5826 | test "x$with_cloog" != "xno"; then | |
5827 | # Check for ISL | |
5828 | ||
5829 | ||
7ec59b9e L |
5830 | # Check whether --with-isl-include was given. |
5831 | if test "${with_isl_include+set}" = set; then : | |
5832 | withval=$with_isl_include; | |
81ecdfbb RW |
5833 | fi |
5834 | ||
e28c595f | 5835 | |
7ec59b9e L |
5836 | # Check whether --with-isl-lib was given. |
5837 | if test "${with_isl_lib+set}" = set; then : | |
5838 | withval=$with_isl_lib; | |
81ecdfbb | 5839 | fi |
e28c595f | 5840 | |
e28c595f | 5841 | |
7ec59b9e L |
5842 | # Check whether --enable-isl-version-check was given. |
5843 | if test "${enable_isl_version_check+set}" = set; then : | |
5844 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5845 | else | |
5846 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5847 | fi |
5848 | ||
5849 | ||
7ec59b9e L |
5850 | # Initialize isllibs and islinc. |
5851 | case $with_isl in | |
5852 | no) | |
5853 | isllibs= | |
5854 | islinc= | |
5855 | ;; | |
5856 | "" | yes) | |
5857 | ;; | |
5858 | *) | |
5859 | isllibs="-L$with_isl/lib" | |
5860 | islinc="-I$with_isl/include" | |
5861 | ;; | |
5862 | esac | |
5863 | if test "x${with_isl_include}" != x ; then | |
5864 | islinc="-I$with_isl_include" | |
5865 | fi | |
5866 | if test "x${with_isl_lib}" != x; then | |
5867 | isllibs="-L$with_isl_lib" | |
5868 | fi | |
5869 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5870 | && test -d ${srcdir}/isl; then | |
5871 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5872 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5873 | ENABLE_ISL_CHECK=no | |
3dae1673 JBG |
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5875 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
7ec59b9e | 5876 | fi |
b123da99 | 5877 | |
b123da99 | 5878 | |
e28c595f | 5879 | |
7ec59b9e L |
5880 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5881 | _isl_saved_CFLAGS=$CFLAGS | |
5882 | _isl_saved_LDFLAGS=$LDFLAGS | |
5883 | _isl_saved_LIBS=$LIBS | |
5884 | ||
5885 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5886 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5887 | LIBS="${_isl_saved_LIBS} -lisl" | |
7ec59b9e L |
5888 | |
5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5890 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
3dae1673 | 5891 | if test "$cross_compiling" = yes; then : |
7ec59b9e L |
5892 | gcc_cv_isl=yes |
5893 | else | |
5894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b123da99 | 5895 | /* end confdefs.h. */ |
7ec59b9e L |
5896 | #include <isl/version.h> |
5897 | #include <string.h> | |
b123da99 SP |
5898 | int |
5899 | main () | |
5900 | { | |
7ec59b9e L |
5901 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) |
5902 | return 1; | |
5903 | ||
b123da99 SP |
5904 | ; |
5905 | return 0; | |
5906 | } | |
5907 | _ACEOF | |
7ec59b9e L |
5908 | if ac_fn_c_try_run "$LINENO"; then : |
5909 | gcc_cv_isl=yes | |
e28c595f | 5910 | else |
7ec59b9e | 5911 | gcc_cv_isl=no |
b123da99 | 5912 | fi |
7ec59b9e L |
5913 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5914 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b123da99 | 5915 | fi |
7ec59b9e | 5916 | |
3dae1673 JBG |
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5918 | $as_echo "$gcc_cv_isl" >&6; } | |
5919 | ||
5920 | CFLAGS=$_isl_saved_CFLAGS | |
5921 | LDFLAGS=$_isl_saved_LDFLAGS | |
5922 | LIBS=$_isl_saved_LIBS | |
5923 | fi | |
5924 | ||
5925 | ||
5926 | if test "${gcc_cv_isl}" = no ; then | |
5927 | ||
5928 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5929 | _isl_saved_CFLAGS=$CFLAGS | |
5930 | _isl_saved_LDFLAGS=$LDFLAGS | |
5931 | _isl_saved_LIBS=$LIBS | |
5932 | ||
5933 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5934 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5935 | LIBS="${_isl_saved_LIBS} -lisl" | |
3dae1673 JBG |
5936 | |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5 | |
5938 | $as_echo_n "checking for version 0.11 of ISL... " >&6; } | |
5939 | if test "$cross_compiling" = yes; then : | |
5940 | gcc_cv_isl=yes | |
5941 | else | |
5942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5943 | /* end confdefs.h. */ | |
5944 | #include <isl/version.h> | |
5945 | #include <string.h> | |
5946 | int | |
5947 | main () | |
5948 | { | |
5949 | if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0) | |
5950 | return 1; | |
5951 | ||
5952 | ; | |
5953 | return 0; | |
5954 | } | |
5955 | _ACEOF | |
5956 | if ac_fn_c_try_run "$LINENO"; then : | |
5957 | gcc_cv_isl=yes | |
5958 | else | |
5959 | gcc_cv_isl=no | |
5960 | fi | |
5961 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5962 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
81ecdfbb | 5963 | fi |
3dae1673 JBG |
5964 | |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
7ec59b9e | 5966 | $as_echo "$gcc_cv_isl" >&6; } |
81ecdfbb | 5967 | |
7ec59b9e L |
5968 | CFLAGS=$_isl_saved_CFLAGS |
5969 | LDFLAGS=$_isl_saved_LDFLAGS | |
5970 | LIBS=$_isl_saved_LIBS | |
b123da99 | 5971 | fi |
e28c595f | 5972 | |
b123da99 | 5973 | |
b3fc79f8 JBG |
5974 | if test "${gcc_cv_isl}" = no ; then |
5975 | ||
5976 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5977 | _isl_saved_CFLAGS=$CFLAGS | |
5978 | _isl_saved_LDFLAGS=$LDFLAGS | |
5979 | _isl_saved_LIBS=$LIBS | |
5980 | ||
5981 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5982 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5983 | LIBS="${_isl_saved_LIBS} -lisl" | |
5984 | ||
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5 | |
5986 | $as_echo_n "checking for version 0.12 of ISL... " >&6; } | |
5987 | if test "$cross_compiling" = yes; then : | |
5988 | gcc_cv_isl=yes | |
5989 | else | |
5990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5991 | /* end confdefs.h. */ | |
5992 | #include <isl/version.h> | |
5993 | #include <string.h> | |
5994 | int | |
5995 | main () | |
5996 | { | |
5997 | if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0) | |
5998 | return 1; | |
5999 | ||
6000 | ; | |
6001 | return 0; | |
6002 | } | |
6003 | _ACEOF | |
6004 | if ac_fn_c_try_run "$LINENO"; then : | |
6005 | gcc_cv_isl=yes | |
6006 | else | |
6007 | gcc_cv_isl=no | |
6008 | fi | |
6009 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6010 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6011 | fi | |
6012 | ||
6013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
6014 | $as_echo "$gcc_cv_isl" >&6; } | |
6015 | ||
6016 | CFLAGS=$_isl_saved_CFLAGS | |
6017 | LDFLAGS=$_isl_saved_LDFLAGS | |
6018 | LIBS=$_isl_saved_LIBS | |
6019 | fi | |
6020 | ||
6021 | ||
6022 | fi | |
3dae1673 | 6023 | fi |
e28c595f | 6024 | |
e28c595f | 6025 | |
7ec59b9e L |
6026 | |
6027 | ||
7ec59b9e L |
6028 | if test "x${with_isl}" = xno; then |
6029 | graphite_requested=no | |
6030 | elif test "x${with_isl}" != x \ | |
6031 | || test "x${with_isl_include}" != x \ | |
6032 | || test "x${with_isl_lib}" != x ; then | |
6033 | graphite_requested=yes | |
6034 | else | |
6035 | graphite_requested=no | |
b123da99 | 6036 | fi |
e28c595f | 6037 | |
e28c595f JM |
6038 | |
6039 | ||
7ec59b9e L |
6040 | if test "${gcc_cv_isl}" = no ; then |
6041 | isllibs= | |
6042 | islinc= | |
6043 | fi | |
e28c595f | 6044 | |
7ec59b9e L |
6045 | if test "${graphite_requested}" = yes \ |
6046 | && test "x${isllibs}" = x \ | |
6047 | && test "x${islinc}" = x ; then | |
e28c595f | 6048 | |
7ec59b9e L |
6049 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6050 | fi | |
e552509b | 6051 | |
e28c595f JM |
6052 | |
6053 | ||
8e71395b L |
6054 | if test "x$gcc_cv_isl" != "xno"; then |
6055 | # Check for CLOOG | |
81ecdfbb | 6056 | |
e28c595f | 6057 | |
e552509b | 6058 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
6059 | if test "${with_cloog_include+set}" = set; then : |
6060 | withval=$with_cloog_include; | |
6061 | fi | |
e28c595f | 6062 | |
e28c595f | 6063 | |
e552509b | 6064 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
6065 | if test "${with_cloog_lib+set}" = set; then : |
6066 | withval=$with_cloog_lib; | |
6067 | fi | |
e28c595f | 6068 | |
e28c595f | 6069 | |
e552509b ILT |
6070 | # Check whether --enable-cloog-version-check was given. |
6071 | if test "${enable_cloog_version_check+set}" = set; then : | |
6072 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
6073 | else | |
6074 | ENABLE_CLOOG_CHECK=yes | |
6075 | fi | |
6076 | ||
6077 | ||
6078 | # Initialize clooglibs and clooginc. | |
6079 | case $with_cloog in | |
6080 | no) | |
6081 | clooglibs= | |
6082 | clooginc= | |
6083 | ;; | |
6084 | "" | yes) | |
6085 | ;; | |
6086 | *) | |
6087 | clooglibs="-L$with_cloog/lib" | |
6088 | clooginc="-I$with_cloog/include" | |
6089 | ;; | |
6090 | esac | |
6091 | if test "x${with_cloog_include}" != x ; then | |
6092 | clooginc="-I$with_cloog_include" | |
6093 | fi | |
6094 | if test "x${with_cloog_lib}" != x; then | |
6095 | clooglibs="-L$with_cloog_lib" | |
6096 | fi | |
3dae1673 | 6097 | if test "x${clooginc}" = x && test "x${clooglibs}" = x \ |
7ec59b9e L |
6098 | && test -d ${srcdir}/cloog; then |
6099 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
6100 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
3dae1673 JBG |
6101 | ENABLE_CLOOG_CHECK=no |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5 | |
6103 | $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;} | |
8d8eef9a RW |
6104 | fi |
6105 | ||
7ec59b9e | 6106 | clooginc="-DCLOOG_INT_GMP ${clooginc}" |
8e71395b | 6107 | clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl" |
e28c595f | 6108 | |
e552509b ILT |
6109 | |
6110 | ||
6111 | ||
6112 | ||
6113 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6114 | _cloog_saved_CFLAGS=$CFLAGS | |
6115 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6116 | ||
7ec59b9e L |
6117 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" |
6118 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
e552509b | 6119 | |
7ec59b9e L |
6120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 |
6121 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
3dae1673 | 6122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e552509b | 6123 | /* end confdefs.h. */ |
7ec59b9e | 6124 | #include "cloog/version.h" |
e552509b ILT |
6125 | int |
6126 | main () | |
6127 | { | |
6128 | #if CLOOG_VERSION_MAJOR != 0 \ | |
7ec59b9e L |
6129 | || CLOOG_VERSION_MINOR != 17 \ |
6130 | || CLOOG_VERSION_REVISION < 0 | |
e552509b ILT |
6131 | choke me |
6132 | #endif | |
6133 | ; | |
6134 | return 0; | |
6135 | } | |
6136 | _ACEOF | |
6137 | if ac_fn_c_try_compile "$LINENO"; then : | |
7ec59b9e | 6138 | gcc_cv_cloog=yes |
e552509b | 6139 | else |
7ec59b9e | 6140 | gcc_cv_cloog=no |
e552509b ILT |
6141 | fi |
6142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3dae1673 JBG |
6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 |
6144 | $as_echo "$gcc_cv_cloog" >&6; } | |
6145 | ||
6146 | CFLAGS=$_cloog_saved_CFLAGS | |
6147 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6148 | fi | |
6149 | ||
6150 | ||
6151 | if test "${gcc_cv_cloog}" = no ; then | |
6152 | ||
6153 | ||
6154 | ||
6155 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6156 | _cloog_saved_CFLAGS=$CFLAGS | |
6157 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6158 | ||
6159 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" | |
6160 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
6161 | ||
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5 | |
6163 | $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; } | |
6164 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6165 | /* end confdefs.h. */ | |
6166 | #include "cloog/version.h" | |
6167 | int | |
6168 | main () | |
6169 | { | |
6170 | #if CLOOG_VERSION_MAJOR != 0 \ | |
6171 | || CLOOG_VERSION_MINOR != 18 \ | |
6172 | || CLOOG_VERSION_REVISION < 0 | |
6173 | choke me | |
6174 | #endif | |
6175 | ; | |
6176 | return 0; | |
6177 | } | |
6178 | _ACEOF | |
6179 | if ac_fn_c_try_compile "$LINENO"; then : | |
6180 | gcc_cv_cloog=yes | |
6181 | else | |
6182 | gcc_cv_cloog=no | |
e552509b | 6183 | fi |
3dae1673 JBG |
6184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 | |
7ec59b9e | 6186 | $as_echo "$gcc_cv_cloog" >&6; } |
e552509b ILT |
6187 | |
6188 | CFLAGS=$_cloog_saved_CFLAGS | |
6189 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6190 | fi | |
6191 | ||
6192 | ||
3dae1673 | 6193 | fi |
e552509b | 6194 | |
e28c595f | 6195 | |
e28c595f JM |
6196 | |
6197 | ||
6198 | ||
8d8eef9a RW |
6199 | if test "x${with_cloog}" = xno; then |
6200 | graphite_requested=no | |
6201 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
6202 | || test "x${with_cloog_include}" != x \ |
6203 | || test "x${with_cloog_lib}" != x ; then | |
6204 | graphite_requested=yes | |
6205 | else | |
6206 | graphite_requested=no | |
6207 | fi | |
6208 | ||
6209 | ||
6210 | ||
7ec59b9e | 6211 | if test "${gcc_cv_cloog}" = no ; then |
e552509b ILT |
6212 | clooglibs= |
6213 | clooginc= | |
6214 | fi | |
6215 | ||
6216 | if test "${graphite_requested}" = yes \ | |
6217 | && test "x${clooglibs}" = x \ | |
6218 | && test "x${clooginc}" = x ; then | |
6219 | ||
8e71395b | 6220 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6221 | fi |
6222 | ||
6223 | ||
8e71395b | 6224 | fi |
e552509b ILT |
6225 | fi |
6226 | ||
7ec59b9e L |
6227 | # If either the ISL or the CLooG check failed, disable builds of in-tree |
6228 | # variants of both | |
8e71395b L |
6229 | if test "x$with_isl" = xno || |
6230 | test "x$with_cloog" = xno || | |
6231 | test "x$gcc_cv_cloog" = xno || | |
6232 | test "x$gcc_cv_isl" = xno; then | |
7ec59b9e | 6233 | noconfigdirs="$noconfigdirs cloog isl" |
8e71395b L |
6234 | islinc= |
6235 | clooginc= | |
6236 | clooglibs= | |
7ec59b9e L |
6237 | fi |
6238 | ||
8e71395b L |
6239 | |
6240 | ||
6241 | ||
6242 | ||
6243 | ||
700d40ca ILT |
6244 | # Check for LTO support. |
6245 | # Check whether --enable-lto was given. | |
6246 | if test "${enable_lto+set}" = set; then : | |
6247 | enableval=$enable_lto; enable_lto=$enableval | |
6248 | else | |
6249 | enable_lto=yes; default_enable_lto=yes | |
6250 | fi | |
6251 | ||
6252 | ||
143754cd | 6253 | |
e49e5c92 DK |
6254 | |
6255 | ||
6256 | target_elf=no | |
6257 | case $target in | |
6258 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6259 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
a009f2e7 | 6260 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6261 | target_elf=no |
6262 | ;; | |
6263 | *) | |
6264 | target_elf=yes | |
6265 | ;; | |
6266 | esac | |
6267 | ||
6268 | if test $target_elf = yes; then : | |
74cea91b DK |
6269 | # ELF platforms build the lto-plugin always. |
6270 | build_lto_plugin=yes | |
e49e5c92 | 6271 | |
e49e5c92 DK |
6272 | else |
6273 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6274 | case $target in |
899b04ef | 6275 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6276 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6277 | *) enable_lto=no ;; |
6278 | esac | |
e49e5c92 | 6279 | else |
29821356 RW |
6280 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6281 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6282 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6283 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6284 | # -flto it won't be needed until after installation anyway. | |
6285 | case $target in | |
a8eb3f0a | 6286 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6287 | *) if test x"$enable_lto" = x"yes"; then |
6288 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6289 | fi | |
6290 | ;; | |
6291 | esac | |
6292 | fi | |
a8eb3f0a | 6293 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6294 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6295 | case $target in |
74cea91b | 6296 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6297 | *) ;; |
6298 | esac | |
74cea91b | 6299 | |
e49e5c92 DK |
6300 | fi |
6301 | ||
700d40ca | 6302 | |
e28c595f | 6303 | |
7ec59b9e | 6304 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6305 | stage1_languages=,c, |
1d39f329 | 6306 | |
e8a5fa9c | 6307 | # Target libraries that we bootstrap. |
2aa2364a | 6308 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6309 | |
9e07f89d NN |
6310 | # Figure out what language subdirectories are present. |
6311 | # Look if the user specified --enable-languages="..."; if not, use | |
6312 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6313 | # go away some day. | |
6314 | # NB: embedded tabs in this IF block -- do not untabify | |
6315 | if test -d ${srcdir}/gcc; then | |
6316 | if test x"${enable_languages+set}" != xset; then | |
6317 | if test x"${LANGUAGES+set}" = xset; then | |
6318 | enable_languages="${LANGUAGES}" | |
6319 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6320 | else | |
6321 | enable_languages=all | |
6322 | fi | |
6323 | else | |
6324 | if test x"${enable_languages}" = x || | |
6325 | test x"${enable_languages}" = xyes; | |
6326 | then | |
6327 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6328 | exit 1 | |
6329 | fi | |
6330 | fi | |
6331 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6332 | ||
096f7d00 DE |
6333 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6334 | # and make the substitution. | |
6335 | case ,${enable_languages}, in | |
6336 | *,f95,*) | |
6337 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6338 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6339 | ;; | |
6340 | esac | |
6341 | ||
7ec59b9e L |
6342 | # If bootstrapping, C++ must be enabled. |
6343 | case ",$enable_languages,:$enable_bootstrap" in | |
6344 | *,c++,*:*) ;; | |
6345 | *:yes) | |
ffdd6afc ILT |
6346 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6347 | enable_languages="${enable_languages},c++" | |
6348 | else | |
7ec59b9e | 6349 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6350 | fi |
6351 | ;; | |
6352 | esac | |
6353 | ||
9e07f89d NN |
6354 | # First scan to see if an enabled language requires some other language. |
6355 | # We assume that a given config-lang.in will list all the language | |
6356 | # front ends it requires, even if some are required indirectly. | |
6357 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6358 | case ${lang_frag} in | |
6359 | ..) ;; | |
6360 | # The odd quoting in the next line works around | |
6361 | # an apparent bug in bash 1.12 on linux. | |
6362 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6363 | *) | |
e552509b ILT |
6364 | # From the config-lang.in, get $language, $lang_requires, and |
6365 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6366 | language= |
6367 | lang_requires= | |
e552509b | 6368 | lang_requires_boot_languages= |
9e07f89d | 6369 | . ${lang_frag} |
e552509b | 6370 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6371 | case ,${enable_languages}, in |
6372 | *,$other,*) ;; | |
6373 | *,all,*) ;; | |
6374 | *,$language,*) | |
6375 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6376 | enable_languages="${enable_languages},${other}" | |
6377 | ;; | |
6378 | esac | |
6379 | done | |
e552509b ILT |
6380 | for other in ${lang_requires_boot_languages} ; do |
6381 | if test "$other" != "c"; then | |
6382 | case ,${enable_stage1_languages}, in | |
6383 | *,$other,*) ;; | |
6384 | *,all,*) ;; | |
6385 | *) | |
6386 | case ,${enable_languages}, in | |
6387 | *,$language,*) | |
6388 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6389 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6390 | ;; | |
6391 | esac | |
6392 | ;; | |
6393 | esac | |
6394 | fi | |
6395 | done | |
9e07f89d NN |
6396 | ;; |
6397 | esac | |
6398 | done | |
6399 | ||
9b134994 | 6400 | new_enable_languages=,c, |
700d40ca ILT |
6401 | |
6402 | # If LTO is enabled, add the LTO front end. | |
6403 | extra_host_libiberty_configure_flags= | |
6404 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6405 | case ,${enable_languages}, in |
6406 | *,lto,*) ;; | |
6407 | *) enable_languages="${enable_languages},lto" ;; | |
6408 | esac | |
a8eb3f0a | 6409 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6410 | configdirs="$configdirs lto-plugin" |
6411 | extra_host_libiberty_configure_flags=--enable-shared | |
6412 | fi | |
6413 | fi | |
6414 | ||
6415 | ||
9e07f89d | 6416 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6417 | potential_languages=,c, |
9e07f89d | 6418 | |
9e1a94f4 ILT |
6419 | enabled_target_libs= |
6420 | disabled_target_libs= | |
6421 | ||
9e07f89d NN |
6422 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6423 | case ${lang_frag} in | |
6424 | ..) ;; | |
6425 | # The odd quoting in the next line works around | |
6426 | # an apparent bug in bash 1.12 on linux. | |
6427 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6428 | *) | |
c6b750e1 | 6429 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6430 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6431 | language= |
6432 | target_libs= | |
6433 | lang_dirs= | |
64ce424c | 6434 | subdir_requires= |
9b134994 PB |
6435 | boot_language=no |
6436 | build_by_default=yes | |
9e07f89d | 6437 | . ${lang_frag} |
9b134994 PB |
6438 | if test x${language} = x; then |
6439 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6440 | exit 1 | |
6441 | fi | |
6442 | ||
ffdd6afc | 6443 | if test "$language" = "c++"; then |
7ec59b9e | 6444 | boot_language=yes |
e8a5fa9c RW |
6445 | fi |
6446 | ||
8e71395b | 6447 | add_this_lang=no |
9b134994 PB |
6448 | case ,${enable_languages}, in |
6449 | *,${language},*) | |
7ec59b9e L |
6450 | # Language was explicitly selected; include it |
6451 | # unless it is C, which is enabled by default. | |
6452 | if test "$language" != "c"; then | |
6453 | add_this_lang=yes | |
6454 | fi | |
9e07f89d | 6455 | ;; |
9b134994 PB |
6456 | *,all,*) |
6457 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6458 | if test "$language" != "c"; then |
6459 | add_this_lang=${build_by_default} | |
6460 | fi | |
9e07f89d NN |
6461 | ;; |
6462 | esac | |
4b1cb4fe | 6463 | |
64ce424c | 6464 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6465 | for i in $subdir_requires; do |
3d3adb43 | 6466 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6467 | case ,${enable_languages}, in |
6468 | *,${language},*) | |
6469 | # Specifically requested language; tell them. | |
81ecdfbb | 6470 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6471 | ;; |
6472 | *) | |
6473 | # Silently disable. | |
9b134994 | 6474 | add_this_lang=unsupported |
64ce424c PB |
6475 | ;; |
6476 | esac | |
6477 | done | |
6478 | ||
9b134994 PB |
6479 | # Disable Ada if no preexisting GNAT is available. |
6480 | case ,${enable_languages},:${language}:${have_gnat} in | |
6481 | *,${language},*:ada:no) | |
6482 | # Specifically requested language; tell them. | |
81ecdfbb | 6483 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6484 | ;; |
6485 | *:ada:no) | |
6486 | # Silently disable. | |
6487 | add_this_lang=unsupported | |
6488 | ;; | |
6489 | esac | |
6490 | ||
59f7ec45 HPN |
6491 | # Disable a language that is unsupported by the target. |
6492 | case " $unsupported_languages " in | |
6493 | *" $language "*) | |
9b134994 | 6494 | add_this_lang=unsupported |
59f7ec45 HPN |
6495 | ;; |
6496 | esac | |
6497 | ||
4b1cb4fe | 6498 | case $add_this_lang in |
9b134994 | 6499 | unsupported) |
9e07f89d | 6500 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6501 | disabled_target_libs="$disabled_target_libs $target_libs" |
6502 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6503 | ;; |
9b134994 PB |
6504 | no) |
6505 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6506 | disabled_target_libs="$disabled_target_libs $target_libs" |
6507 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6508 | potential_languages="${potential_languages}${language}," |
6509 | ;; | |
6510 | yes) | |
6511 | new_enable_languages="${new_enable_languages}${language}," | |
6512 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6513 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6514 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6515 | case "${boot_language}:,$enable_stage1_languages," in |
6516 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6517 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6518 | case ",$stage1_languages," in |
6519 | *,$language,* | ,yes, | ,all,) ;; | |
6520 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6521 | esac | |
e8a5fa9c RW |
6522 | # We need to bootstrap any supporting libraries. |
6523 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6524 | ;; |
6525 | esac | |
6526 | ;; | |
9e07f89d NN |
6527 | esac |
6528 | ;; | |
6529 | esac | |
6530 | done | |
6531 | ||
9e1a94f4 ILT |
6532 | # Add target libraries which are only needed for disabled languages |
6533 | # to noconfigdirs. | |
6534 | if test -n "$disabled_target_libs"; then | |
6535 | for dir in $disabled_target_libs; do | |
6536 | case " $enabled_target_libs " in | |
6537 | *" ${dir} "*) ;; | |
6538 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6539 | esac | |
6540 | done | |
6541 | fi | |
6542 | ||
81ecdfbb RW |
6543 | # Check whether --enable-stage1-languages was given. |
6544 | if test "${enable_stage1_languages+set}" = set; then : | |
6545 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6546 | ,no,|,,) |
6547 | # Set it to something that will have no effect in the loop below | |
6548 | enable_stage1_languages=c ;; | |
6549 | ,yes,) | |
6550 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6551 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6552 | *,all,*) | |
6553 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6554 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6555 | esac | |
6556 | ||
6557 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6558 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6559 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6560 | case $potential_languages in | |
6561 | *,$i,*) | |
6562 | case $stage1_languages in | |
6563 | *,$i,*) ;; | |
6564 | *) stage1_languages="$stage1_languages$i," ;; | |
6565 | esac ;; | |
6566 | *) | |
6567 | case $missing_languages in | |
6568 | *,$i,*) ;; | |
6569 | *) missing_languages="$missing_languages$i," ;; | |
6570 | esac ;; | |
6571 | esac | |
6572 | done | |
81ecdfbb RW |
6573 | fi |
6574 | ||
9b134994 PB |
6575 | |
6576 | # Remove leading/trailing commas that were added for simplicity | |
6577 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6578 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6579 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6580 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6581 | ||
9e07f89d | 6582 | if test "x$missing_languages" != x; then |
81ecdfbb | 6583 | as_fn_error " |
27258dd4 | 6584 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6585 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6586 | fi |
9e07f89d NN |
6587 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6588 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6589 | enable_languages="$new_enable_languages" |
9e07f89d | 6590 | fi |
9b134994 | 6591 | |
c6b750e1 | 6592 | |
81ec575a | 6593 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6594 | fi |
6595 | ||
a6df5a19 PB |
6596 | # Handle --disable-<component> generically. |
6597 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6598 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6599 | varname=`echo $dirname | sed -e s/+/_/g` |
6600 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6601 | noconfigdirs="$noconfigdirs $dir" |
6602 | fi | |
6603 | done | |
6604 | ||
4f0ef2d8 | 6605 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6606 | # Check whether --enable-objc-gc was given. |
6607 | if test "${enable_objc_gc+set}" = set; then : | |
6608 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6609 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6610 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6611 | ;; |
6612 | esac | |
81ecdfbb RW |
6613 | fi |
6614 | ||
4f0ef2d8 CD |
6615 | |
6616 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6617 | case ,${enable_languages},:${enable_objc_gc} in |
6618 | *,objc,*:yes) | |
4f0ef2d8 CD |
6619 | # Keep target-boehm-gc if requested for Objective-C. |
6620 | ;; | |
4f0ef2d8 | 6621 | *) |
d42c4017 DA |
6622 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6623 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6624 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6625 | fi | |
4f0ef2d8 CD |
6626 | ;; |
6627 | esac | |
6628 | ||
95e43135 | 6629 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
7ec59b9e L |
6630 | case ,${enable_languages}, in |
6631 | *,c++,*) ;; | |
6632 | *) | |
9aaf2a7e | 6633 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6634 | ;; |
6635 | esac | |
6636 | ||
caeba88f AL |
6637 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6638 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6639 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6640 | ||
6641 | notsupp="" | |
6642 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6643 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6644 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6645 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6646 | if test -r $srcdir/$dirname/configure ; then | |
6647 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6648 | true | |
6649 | else | |
6650 | notsupp="$notsupp $dir" | |
6651 | fi | |
6652 | fi | |
6653 | fi | |
caeba88f AL |
6654 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6655 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6656 | if test -r $srcdir/$dirname/configure ; then | |
6657 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6658 | true | |
6659 | else | |
6660 | notsupp="$notsupp $dir" | |
6661 | fi | |
6662 | fi | |
6663 | fi | |
9e07f89d NN |
6664 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6665 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6666 | if test -r $srcdir/$dirname/configure ; then | |
6667 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6668 | true | |
6669 | else | |
6670 | notsupp="$notsupp $dir" | |
6671 | fi | |
6672 | fi | |
6673 | fi | |
6674 | done | |
6675 | ||
9e07f89d NN |
6676 | # Quietly strip out all directories which aren't configurable in this tree. |
6677 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6678 | # is now the case. | |
6a9cf61e PB |
6679 | build_configdirs_all="$build_configdirs" |
6680 | build_configdirs= | |
6681 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6682 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6683 | if test -f ${srcdir}/$j/configure ; then |
6684 | build_configdirs="${build_configdirs} $i" | |
6685 | fi | |
6686 | done | |
6687 | ||
9e07f89d NN |
6688 | configdirs_all="$configdirs" |
6689 | configdirs= | |
6690 | for i in ${configdirs_all} ; do | |
6691 | if test -f ${srcdir}/$i/configure ; then | |
6692 | configdirs="${configdirs} $i" | |
6693 | fi | |
6694 | done | |
6a9cf61e | 6695 | |
9e07f89d NN |
6696 | target_configdirs_all="$target_configdirs" |
6697 | target_configdirs= | |
6698 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6699 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6700 | if test -f ${srcdir}/$j/configure ; then |
6701 | target_configdirs="${target_configdirs} $i" | |
6702 | fi | |
6703 | done | |
6704 | ||
6705 | # Produce a warning message for the subdirs we can't configure. | |
6706 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6707 | # FSF releases, it's important to let people know when their machine isn't | |
6708 | # supported by the one or two programs in a package. | |
6709 | ||
6710 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6711 | # If $appdirs is non-empty, at least one of those directories must still | |
6712 | # be configured, or we error out. (E.g., if the gas release supports a | |
6713 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6714 | # pretend that all is well.) | |
6715 | if test -n "$appdirs" ; then | |
6716 | for dir in $appdirs ; do | |
6717 | if test -r $dir/Makefile.in ; then | |
6718 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6719 | appdirs="" | |
6720 | break | |
6721 | fi | |
6a9cf61e | 6722 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6723 | appdirs="" |
6724 | break | |
6725 | fi | |
6726 | fi | |
6727 | done | |
6728 | if test -n "$appdirs" ; then | |
6729 | echo "*** This configuration is not supported by this package." 1>&2 | |
6730 | exit 1 | |
6731 | fi | |
6732 | fi | |
6733 | # Okay, some application will build, or we don't care to check. Still | |
6734 | # notify of subdirs not getting built. | |
6735 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6736 | echo " ${notsupp}" 1>&2 | |
6737 | echo " (Any other directories should still work fine.)" 1>&2 | |
6738 | fi | |
6739 | ||
6740 | case "$host" in | |
6741 | *msdosdjgpp*) | |
6742 | enable_gdbtk=no ;; | |
6743 | esac | |
6744 | ||
18f6b6ee PB |
6745 | # To find our prefix, in gcc_cv_tool_prefix. |
6746 | ||
6747 | # The user is always right. | |
6748 | if test "${PATH_SEPARATOR+set}" != set; then | |
6749 | echo "#! /bin/sh" >conf$$.sh | |
6750 | echo "exit 0" >>conf$$.sh | |
6751 | chmod +x conf$$.sh | |
6752 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6753 | PATH_SEPARATOR=';' | |
6754 | else | |
6755 | PATH_SEPARATOR=: | |
6756 | fi | |
6757 | rm -f conf$$.sh | |
6758 | fi | |
6759 | ||
6760 | ||
6761 | ||
6762 | if test "x$exec_prefix" = xNONE; then | |
6763 | if test "x$prefix" = xNONE; then | |
6764 | gcc_cv_tool_prefix=$ac_default_prefix | |
6765 | else | |
6766 | gcc_cv_tool_prefix=$prefix | |
6767 | fi | |
6768 | else | |
6769 | gcc_cv_tool_prefix=$exec_prefix | |
6770 | fi | |
6771 | ||
6772 | # If there is no compiler in the tree, use the PATH only. In any | |
6773 | # case, if there is no compiler in the tree nobody should use | |
6774 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6775 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6776 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6777 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6778 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6779 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6780 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6781 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6782 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6783 | else | |
6784 | gcc_cv_tool_dirs= | |
6785 | fi | |
6786 | ||
6787 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6788 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6789 | fi | |
6790 | ||
6791 | ||
6792 | ||
9e07f89d NN |
6793 | copy_dirs= |
6794 | ||
c6b750e1 | 6795 | |
81ecdfbb RW |
6796 | # Check whether --with-build-sysroot was given. |
6797 | if test "${with_build_sysroot+set}" = set; then : | |
6798 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6799 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6800 | fi | |
6801 | else | |
6802 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6803 | fi |
a19b6204 MM |
6804 | |
6805 | ||
8a6ee3ab | 6806 | |
81ecdfbb RW |
6807 | |
6808 | # Check whether --with-debug-prefix-map was given. | |
6809 | if test "${with_debug_prefix_map+set}" = set; then : | |
6810 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6811 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6812 | for debug_map in $withval; do | |
6813 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6814 | done | |
6815 | fi | |
6816 | else | |
6817 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6818 | fi |
6819 | ||
8a6ee3ab JM |
6820 | |
6821 | ||
7f6ef0c0 PB |
6822 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6823 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6824 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6825 | # We want to ensure that TARGET libraries (which we know are built with | |
6826 | # gcc) are built with "-O2 -g", so include those options when setting | |
6827 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6828 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6829 | CFLAGS_FOR_TARGET=$CFLAGS | |
6830 | case " $CFLAGS " in | |
6831 | *" -O2 "*) ;; | |
68f107fa | 6832 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6833 | esac |
6834 | case " $CFLAGS " in | |
6835 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6836 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6837 | esac |
6838 | fi | |
6839 | ||
6840 | ||
6841 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6842 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6843 | case " $CXXFLAGS " in | |
6844 | *" -O2 "*) ;; | |
68f107fa | 6845 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6846 | esac |
6847 | case " $CXXFLAGS " in | |
6848 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6849 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6850 | esac |
6851 | fi | |
6852 | ||
6853 | ||
91c1f14c DK |
6854 | |
6855 | ||
9e07f89d NN |
6856 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6857 | # the named directory are copied to $(tooldir)/sys-include. | |
6858 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6859 | if test x${is_cross_compiler} = xno ; then | |
6860 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6861 | exit 1 | |
6862 | fi | |
6863 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6864 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6865 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6866 | fi |
6867 | fi | |
6868 | ||
6869 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6870 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6871 | # are permitted. | |
6872 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6873 | if test x${is_cross_compiler} = xno ; then | |
6874 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6875 | exit 1 | |
6876 | fi | |
6877 | if test x"${with_libs}" != xyes ; then | |
6878 | # Copy the libraries in reverse order, so that files in the first named | |
6879 | # library override files in subsequent libraries. | |
18f6b6ee | 6880 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6881 | for l in ${with_libs}; do |
c6b750e1 | 6882 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6883 | done |
6884 | fi | |
6885 | fi | |
6886 | ||
700d40ca | 6887 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6888 | # |
6889 | # This is done by determining whether or not the appropriate directory | |
6890 | # is available, and by checking whether or not specific configurations | |
6891 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6892 | # |
6893 | # The command line options always override the explicit settings in | |
2429c060 PB |
6894 | # configure.in, and the settings in configure.in override this magic. |
6895 | # | |
c6b750e1 | 6896 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6897 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6898 | # --without-gnu-ld options for the configure script. Similarly, if |
6899 | # the default is to use the included zlib and you don't want to do that, | |
6900 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6901 | |
6902 | if test x${use_gnu_as} = x && | |
6903 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6904 | with_gnu_as=yes | |
6905 | extra_host_args="$extra_host_args --with-gnu-as" | |
6906 | fi | |
6907 | ||
6908 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6909 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6910 | with_gnu_ld=yes |
6911 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6912 | fi | |
6913 | ||
700d40ca ILT |
6914 | if test x${use_included_zlib} = x && |
6915 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6916 | : | |
6917 | else | |
6918 | with_system_zlib=yes | |
6919 | extra_host_args="$extra_host_args --with-system-zlib" | |
6920 | fi | |
6921 | ||
2429c060 PB |
6922 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6923 | # can detect this case. | |
6924 | ||
6925 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6926 | with_newlib=yes | |
6927 | extra_host_args="$extra_host_args --with-newlib" | |
6928 | fi | |
6929 | ||
9e07f89d NN |
6930 | # Handle ${copy_dirs} |
6931 | set fnord ${copy_dirs} | |
6932 | shift | |
6933 | while test $# != 0 ; do | |
6934 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6935 | : | |
6936 | else | |
6937 | echo Copying $1 to $2 | |
6938 | ||
6939 | # Use the install script to create the directory and all required | |
6940 | # parent directories. | |
6941 | if test -d $2 ; then | |
6942 | : | |
6943 | else | |
6944 | echo >config.temp | |
6945 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6946 | fi | |
6947 | ||
6948 | # Copy the directory, assuming we have tar. | |
6949 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6950 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6951 | ||
6952 | # It is the responsibility of the user to correctly adjust all | |
6953 | # symlinks. If somebody can figure out how to handle them correctly | |
6954 | # here, feel free to add the code. | |
6955 | ||
6956 | echo $1 > $2/COPIED | |
6957 | fi | |
6958 | shift; shift | |
6959 | done | |
6960 | ||
2429c060 PB |
6961 | # Determine a target-dependent exec_prefix that the installed |
6962 | # gcc will search in. Keep this list sorted by triplet, with | |
6963 | # the *-*-osname triplets last. | |
6964 | md_exec_prefix= | |
6965 | case "${target}" in | |
521ec477 | 6966 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6967 | md_exec_prefix=/dev/env/DJDIR/bin |
6968 | ;; | |
2429c060 | 6969 | *-*-hpux* | \ |
2429c060 | 6970 | *-*-nto-qnx* | \ |
1f111696 | 6971 | *-*-solaris2*) |
2429c060 PB |
6972 | md_exec_prefix=/usr/ccs/bin |
6973 | ;; | |
6974 | esac | |
6975 | ||
a0da8069 NN |
6976 | extra_arflags_for_target= |
6977 | extra_nmflags_for_target= | |
6978 | extra_ranlibflags_for_target= | |
6979 | target_makefile_frag=/dev/null | |
6980 | case "${target}" in | |
77d7106f AM |
6981 | spu-*-*) |
6982 | target_makefile_frag="config/mt-spu" | |
6983 | ;; | |
d09bbf00 | 6984 | mips*-sde-elf* | mips*-mti-elf*) |
429acdec RS |
6985 | target_makefile_frag="config/mt-sde" |
6986 | ;; | |
f3b1e08e RS |
6987 | mipsisa*-*-elfoabi*) |
6988 | target_makefile_frag="config/mt-mips-elfoabi" | |
6989 | ;; | |
e7c8859c RS |
6990 | mips*-*-*linux* | mips*-*-gnu*) |
6991 | target_makefile_frag="config/mt-mips-gnu" | |
6992 | ;; | |
29383458 | 6993 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6994 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6995 | ;; |
6996 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6997 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6998 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6999 | # harmless if we're using GNU nm or ar. | |
7000 | extra_arflags_for_target=" -X32_64" | |
7001 | extra_nmflags_for_target=" -B -X32_64" | |
7002 | ;; | |
a0da8069 NN |
7003 | esac |
7004 | ||
7005 | alphaieee_frag=/dev/null | |
7006 | case $target in | |
7007 | alpha*-*-*) | |
7008 | # This just makes sure to use the -mieee option to build target libs. | |
7009 | # This should probably be set individually by each library. | |
7010 | alphaieee_frag="config/mt-alphaieee" | |
7011 | ;; | |
7012 | esac | |
7013 | ||
7014 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7015 | # the target libraries, similarly if it is not specified, use -Os | |
7016 | # on selected platforms. | |
7017 | ospace_frag=/dev/null | |
7018 | case "${enable_target_optspace}:${target}" in | |
7019 | yes:*) | |
7020 | ospace_frag="config/mt-ospace" | |
7021 | ;; | |
7022 | :d30v-*) | |
7023 | ospace_frag="config/mt-d30v" | |
7024 | ;; | |
7025 | :m32r-* | :d10v-* | :fr30-*) | |
7026 | ospace_frag="config/mt-ospace" | |
7027 | ;; | |
7028 | no:* | :*) | |
7029 | ;; | |
7030 | *) | |
7031 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7032 | ;; | |
7033 | esac | |
7034 | ||
a0da8069 NN |
7035 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7036 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7037 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7038 | build_tooldir=${tooldir} |
7039 | ||
a0da8069 NN |
7040 | # Create a .gdbinit file which runs the one in srcdir |
7041 | # and tells GDB to look there for source files. | |
7042 | ||
7043 | if test -r ${srcdir}/.gdbinit ; then | |
7044 | case ${srcdir} in | |
7045 | .) ;; | |
7046 | *) cat > ./.gdbinit <<EOF | |
7047 | # ${NO_EDIT} | |
7048 | dir ${srcdir} | |
7049 | dir . | |
7050 | source ${srcdir}/.gdbinit | |
7051 | EOF | |
7052 | ;; | |
7053 | esac | |
7054 | fi | |
7055 | ||
a0da8069 NN |
7056 | # Make sure that the compiler is able to generate an executable. If it |
7057 | # can't, we are probably in trouble. We don't care whether we can run the | |
7058 | # executable--we might be using a cross compiler--we only care whether it | |
7059 | # can be created. At this point the main configure script has set CC. | |
7060 | we_are_ok=no | |
7061 | echo "int main () { return 0; }" > conftest.c | |
7062 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7063 | if test $? = 0 ; then | |
7064 | if test -s conftest || test -s conftest.exe ; then | |
7065 | we_are_ok=yes | |
7066 | fi | |
c6b750e1 | 7067 | fi |
a0da8069 NN |
7068 | case $we_are_ok in |
7069 | no) | |
7070 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7071 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7072 | rm -f conftest* | |
7073 | exit 1 | |
7074 | ;; | |
7075 | esac | |
7076 | rm -f conftest* | |
7077 | ||
3bbd2f8f | 7078 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7079 | case "${host}" in |
7080 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7081 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7082 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7083 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7084 | esac | |
7085 | ||
3bbd2f8f | 7086 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7087 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7088 | # built executables to PATH. | |
3bbd2f8f AL |
7089 | if test "$RPATH_ENVVAR" = PATH; then |
7090 | GCC_SHLIB_SUBDIR=/shlib | |
7091 | else | |
7092 | GCC_SHLIB_SUBDIR= | |
7093 | fi | |
7094 | ||
a0da8069 NN |
7095 | # Record target_configdirs and the configure arguments for target and |
7096 | # build configuration in Makefile. | |
7097 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7098 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 7099 | |
2aa2364a JR |
7100 | # If we are building libgomp, bootstrap it. |
7101 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7102 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7103 | fi | |
7104 | ||
5eb08693 L |
7105 | # If we are building libsanitizer, bootstrap it. |
7106 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then | |
7107 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
7108 | fi | |
7109 | ||
95e43135 JBG |
7110 | # If we are building libvtv, bootstrap it. |
7111 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then | |
7112 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, | |
7113 | fi | |
7114 | ||
a0da8069 NN |
7115 | # Determine whether gdb needs tk/tcl or not. |
7116 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7117 | # and in that case we want gdb to be built without tk. Ugh! | |
7118 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7119 | # so we should be able to put the 'maybe's in unconditionally and | |
7120 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7121 | # 100% sure that that's safe though. | |
c180f501 | 7122 | |
675c6968 | 7123 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7124 | case "$enable_gdbtk" in |
7125 | no) | |
7126 | GDB_TK="" ;; | |
c180f501 AC |
7127 | yes) |
7128 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7129 | *) |
c180f501 AC |
7130 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7131 | # distro. Eventually someone will fix this and move Insight, nee | |
7132 | # gdbtk to a separate directory. | |
7133 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7134 | GDB_TK="${gdb_tk}" | |
7135 | else | |
7136 | GDB_TK="" | |
7137 | fi | |
7138 | ;; | |
a0da8069 | 7139 | esac |
907be67c DJ |
7140 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7141 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7142 | |
6bd3dfaa | 7143 | # Strip out unwanted targets. |
dd12c3a8 NN |
7144 | |
7145 | # While at that, we remove Makefiles if we were started for recursive | |
7146 | # configuration, so that the top-level Makefile reconfigures them, | |
7147 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7148 | |
06a51eac RW |
7149 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7150 | # but now we're fixing up the Makefile ourselves with the additional | |
7151 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7152 | # extrasub-{build,host,target} not because there is any reason to split | |
7153 | # the substitutions up that way, but only to remain below the limit of | |
7154 | # 99 commands in a script, for HP-UX sed. | |
7155 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7156 | |
16b1ad29 RW |
7157 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7158 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7159 | yes:yes:*\ gold\ *:*) | |
7160 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7161 | ;; | |
7162 | esac | |
7163 | ||
9cb3fa6f | 7164 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 7165 | case $enable_bootstrap in |
319cab08 | 7166 | yes) |
96655cc4 AO |
7167 | bootstrap_suffix=bootstrap |
7168 | BUILD_CONFIG=bootstrap-debug | |
7169 | ;; | |
319cab08 | 7170 | no) |
96655cc4 AO |
7171 | bootstrap_suffix=no-bootstrap |
7172 | BUILD_CONFIG= | |
7173 | ;; | |
319cab08 PB |
7174 | esac |
7175 | ||
96655cc4 AO |
7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7177 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7178 | ||
7179 | ||
7180 | # Check whether --with-build-config was given. | |
7181 | if test "${with_build_config+set}" = set; then : | |
7182 | withval=$with_build_config; case $with_build_config in | |
7183 | yes) with_build_config= ;; | |
7184 | no) with_build_config= BUILD_CONFIG= ;; | |
7185 | esac | |
7186 | fi | |
7187 | ||
7188 | ||
7189 | if test "x${with_build_config}" != x; then | |
7190 | BUILD_CONFIG=$with_build_config | |
7191 | else | |
7192 | case $BUILD_CONFIG in | |
7193 | bootstrap-debug) | |
7194 | if echo "int f (void) { return 0; }" > conftest.c && | |
7195 | ${CC} -c conftest.c && | |
7196 | mv conftest.o conftest.o.g0 && | |
7197 | ${CC} -c -g conftest.c && | |
7198 | mv conftest.o conftest.o.g && | |
a009f2e7 | 7199 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
7200 | : |
7201 | else | |
7202 | BUILD_CONFIG= | |
7203 | fi | |
7204 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7205 | ;; | |
7206 | esac | |
7207 | fi | |
7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7209 | $as_echo "$BUILD_CONFIG" >&6; } | |
7210 | ||
7211 | ||
06a51eac | 7212 | extrasub_build= |
6a9cf61e | 7213 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7214 | if test -z "${no_recursion}" \ |
7215 | && test -f ${build_subdir}/${module}/Makefile; then | |
7216 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7217 | rm -f ${build_subdir}/${module}/Makefile | |
7218 | fi | |
06a51eac | 7219 | extrasub_build="$extrasub_build |
498d4a71 CF |
7220 | /^@if build-$module\$/d |
7221 | /^@endif build-$module\$/d | |
7222 | /^@if build-$module-$bootstrap_suffix\$/d | |
7223 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7224 | done | |
06a51eac | 7225 | extrasub_host= |
498d4a71 | 7226 | for module in ${configdirs} ; do |
80911fe1 | 7227 | if test -z "${no_recursion}"; then |
8cf39b1b | 7228 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7229 | if test -f ${file}; then |
7230 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7231 | rm -f ${file} | |
7232 | fi | |
7233 | done | |
498d4a71 | 7234 | fi |
06a51eac | 7235 | extrasub_host="$extrasub_host |
498d4a71 CF |
7236 | /^@if $module\$/d |
7237 | /^@endif $module\$/d | |
7238 | /^@if $module-$bootstrap_suffix\$/d | |
7239 | /^@endif $module-$bootstrap_suffix\$/d" | |
7240 | done | |
06a51eac | 7241 | extrasub_target= |
498d4a71 CF |
7242 | for module in ${target_configdirs} ; do |
7243 | if test -z "${no_recursion}" \ | |
7244 | && test -f ${target_subdir}/${module}/Makefile; then | |
7245 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7246 | rm -f ${target_subdir}/${module}/Makefile | |
7247 | fi | |
e8a5fa9c RW |
7248 | |
7249 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7250 | case $bootstrap_target_libs in | |
7251 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7252 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7253 | esac | |
7254 | ||
06a51eac | 7255 | extrasub_target="$extrasub_target |
498d4a71 CF |
7256 | /^@if target-$module\$/d |
7257 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7258 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7259 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7260 | done |
7261 | ||
06a51eac RW |
7262 | # Do the final fixup along with target modules. |
7263 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7264 | /^@if /,/^@endif /d" |
a0da8069 NN |
7265 | |
7266 | # Create the serialization dependencies. This uses a temporary file. | |
7267 | ||
81ecdfbb RW |
7268 | # Check whether --enable-serial-configure was given. |
7269 | if test "${enable_serial_configure+set}" = set; then : | |
7270 | enableval=$enable_serial_configure; | |
7271 | fi | |
e6bfb94a AO |
7272 | |
7273 | ||
1047cb91 DD |
7274 | case ${enable_serial_configure} in |
7275 | yes) | |
7276 | enable_serial_build_configure=yes | |
7277 | enable_serial_host_configure=yes | |
7278 | enable_serial_target_configure=yes | |
7279 | ;; | |
7280 | esac | |
7281 | ||
a0da8069 NN |
7282 | # These force 'configure's to be done one at a time, to avoid problems |
7283 | # with contention over a shared config.cache. | |
7284 | rm -f serdep.tmp | |
e6bfb94a | 7285 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7286 | olditem= |
1047cb91 | 7287 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7288 | for item in ${build_configdirs} ; do |
7289 | case ${olditem} in | |
7290 | "") ;; | |
e6bfb94a | 7291 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7292 | esac |
7293 | olditem=${item} | |
7294 | done | |
7295 | olditem= | |
1047cb91 | 7296 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7297 | for item in ${configdirs} ; do |
7298 | case ${olditem} in | |
7299 | "") ;; | |
e6bfb94a | 7300 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7301 | esac |
7302 | olditem=${item} | |
7303 | done | |
7304 | olditem= | |
1047cb91 | 7305 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7306 | for item in ${target_configdirs} ; do |
7307 | case ${olditem} in | |
7308 | "") ;; | |
e6bfb94a | 7309 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7310 | esac |
7311 | olditem=${item} | |
7312 | done | |
7313 | serialization_dependencies=serdep.tmp | |
7314 | ||
7315 | ||
e6bfb94a | 7316 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7317 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7318 | # might not want to pass down to subconfigures. The exception being |
7319 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7320 | # files altogether, and which should be passed on to subconfigures. | |
7321 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7322 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7323 | baseargs= |
65b4571a | 7324 | tbaseargs= |
c6b750e1 DJ |
7325 | keep_next=no |
7326 | skip_next=no | |
7327 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7328 | for ac_arg |
7329 | do | |
c6b750e1 DJ |
7330 | if test X"$skip_next" = X"yes"; then |
7331 | skip_next=no | |
7332 | continue | |
7333 | fi | |
7334 | if test X"$keep_next" = X"yes"; then | |
7335 | case $ac_arg in | |
7336 | *\'*) | |
7337 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7338 | esac | |
7339 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7340 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7341 | keep_next=no |
7342 | continue | |
7343 | fi | |
7344 | ||
7345 | # Handle separated arguments. Based on the logic generated by | |
7346 | # autoconf 2.59. | |
7347 | case $ac_arg in | |
7348 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7349 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7350 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7351 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7352 | separate_arg=no | |
7353 | ;; | |
7354 | -*) | |
7355 | separate_arg=yes | |
7356 | ;; | |
7357 | *) | |
7358 | separate_arg=no | |
7359 | ;; | |
7360 | esac | |
7361 | ||
65b4571a AO |
7362 | skip_targ=no |
7363 | case $ac_arg in | |
7364 | ||
7365 | --with-* | --without-*) | |
7366 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7367 | ||
7368 | case $libopt in | |
7369 | *[-_]include) | |
7370 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7371 | ;; | |
7372 | *[-_]lib) | |
7373 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7374 | ;; | |
7375 | *) | |
7376 | lib=$libopt | |
7377 | ;; | |
7378 | esac | |
7379 | ||
7380 | ||
7381 | case $lib in | |
7ec59b9e | 7382 | mpc | mpfr | gmp | cloog) |
65b4571a AO |
7383 | # If we're processing --with-$lib, --with-$lib-include or |
7384 | # --with-$lib-lib, for one of the libs above, and target is | |
7385 | # different from host, don't pass the current argument to any | |
7386 | # target library's configure. | |
7387 | if test x$is_cross_compiler = xyes; then | |
7388 | skip_targ=yes | |
7389 | fi | |
7390 | ;; | |
7391 | esac | |
7392 | ;; | |
7393 | esac | |
7394 | ||
c6b750e1 | 7395 | case "$ac_arg" in |
30167e0a NC |
7396 | --cache-file=/dev/null | \ |
7397 | -cache-file=/dev/null ) | |
7398 | # Handled here to avoid the test to skip args below. | |
7399 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7400 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7401 | # Assert: $separate_arg should always be no. |
7402 | keep_next=$separate_arg | |
7403 | ;; | |
c6b750e1 DJ |
7404 | --no*) |
7405 | continue | |
7406 | ;; | |
7407 | --c* | \ | |
7408 | --sr* | \ | |
7409 | --ho* | \ | |
7410 | --bu* | \ | |
7411 | --t* | \ | |
7412 | --program-* | \ | |
7413 | -cache_file* | \ | |
7414 | -srcdir* | \ | |
7415 | -host* | \ | |
7416 | -build* | \ | |
7417 | -target* | \ | |
7418 | -program-prefix* | \ | |
7419 | -program-suffix* | \ | |
7420 | -program-transform-name* ) | |
7421 | skip_next=$separate_arg | |
7422 | continue | |
7423 | ;; | |
7424 | -*) | |
7425 | # An option. Add it. | |
7426 | case $ac_arg in | |
7427 | *\'*) | |
7428 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7429 | esac | |
7430 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7431 | if test X"$skip_targ" = Xno; then |
7432 | tbaseargs="$tbaseargs '$ac_arg'" | |
7433 | fi | |
c6b750e1 DJ |
7434 | keep_next=$separate_arg |
7435 | ;; | |
7436 | *) | |
7437 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7438 | # pass it down; let the Makefile handle this. | |
7439 | continue | |
7440 | ;; | |
7441 | esac | |
7442 | done | |
7443 | # Remove the initial space we just introduced and, as these will be | |
7444 | # expanded by make, quote '$'. | |
7445 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7446 | |
f27d4f92 DJ |
7447 | # Add in --program-transform-name, after --program-prefix and |
7448 | # --program-suffix have been applied to it. Autoconf has already | |
7449 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7450 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7451 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7452 | # Also, because we want to override the logic in subdir configure scripts to |
7453 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7454 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7455 | ${program_transform_name} | |
7456 | EOF_SED | |
7457 | gcc_transform_name=`cat conftestsed.out` | |
7458 | rm -f conftestsed.out | |
7459 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7460 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7461 | if test "$silent" = yes; then |
7462 | baseargs="$baseargs --silent" | |
65b4571a | 7463 | tbaseargs="$tbaseargs --silent" |
2444379b | 7464 | fi |
34a0f3cf | 7465 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7466 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7467 | |
4074d5f2 RW |
7468 | # Record and document user additions to sub configure arguments. |
7469 | ||
7470 | ||
7471 | ||
7472 | ||
a0da8069 NN |
7473 | # For the build-side libraries, we just need to pretend we're native, |
7474 | # and not use the same cache file. Multilibs are neither needed nor | |
7475 | # desired. | |
4074d5f2 | 7476 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7477 | |
7478 | # For host modules, accept cache file option, or specification as blank. | |
7479 | case "${cache_file}" in | |
7480 | "") # empty | |
7481 | cache_file_option="" ;; | |
7482 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7483 | cache_file_option="--cache-file=${cache_file}" ;; | |
7484 | *) # relative path | |
7485 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7486 | esac | |
7487 | ||
82252c06 NN |
7488 | # Host dirs don't like to share a cache file either, horribly enough. |
7489 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7490 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7491 | |
65b4571a | 7492 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7493 | |
7494 | # Passing a --with-cross-host argument lets the target libraries know | |
7495 | # whether they are being built with a cross-compiler or being built | |
7496 | # native. However, it would be better to use other mechanisms to make the | |
7497 | # sorts of decisions they want to make on this basis. Please consider | |
7498 | # this option to be deprecated. FIXME. | |
7499 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7500 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7501 | fi |
7502 | ||
afc0578d | 7503 | # Special user-friendly check for native x86_64-linux build, if |
7504 | # multilib is not explicitly enabled. | |
7505 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7506 | x86_64-*linux*:yes:$build:$build:) | |
7507 | # Make sure we have a developement environment that handles 32-bit | |
7508 | dev64=no | |
7509 | echo "int main () { return 0; }" > conftest.c | |
7510 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7511 | if test $? = 0 ; then | |
7512 | if test -s conftest || test -s conftest.exe ; then | |
7513 | dev64=yes | |
7514 | fi | |
7515 | fi | |
7516 | rm -f conftest* | |
7517 | if test x${dev64} != xyes ; then | |
7518 | 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 | |
7519 | fi | |
7520 | ;; | |
7521 | esac | |
7522 | ||
938d2b74 RW |
7523 | # Default to --enable-multilib. |
7524 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7525 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7526 | fi |
a0da8069 NN |
7527 | |
7528 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7529 | # changed from the earlier setting of with_newlib. | |
7530 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7531 | target_configargs="--with-newlib ${target_configargs}" | |
7532 | fi | |
7533 | ||
95036d20 NN |
7534 | # Different target subdirs use different values of certain variables |
7535 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7536 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7537 | # it doesn't automatically accept command-line overrides of them. | |
7538 | # This means it's not safe for target subdirs to share a cache file, | |
7539 | # which is disgusting, but there you have it. Hopefully this can be | |
7540 | # fixed in future. It's still worthwhile to use a cache file for each | |
7541 | # directory. I think. | |
7542 | ||
ae380b45 MS |
7543 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7544 | # We need to pass --target, as newer autoconf's requires consistency | |
7545 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7546 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7547 | |
a0da8069 NN |
7548 | FLAGS_FOR_TARGET= |
7549 | case " $target_configdirs " in | |
7550 | *" newlib "*) | |
7551 | case " $target_configargs " in | |
7552 | *" --with-newlib "*) | |
7553 | case "$target" in | |
1f53ca9a | 7554 | *-cygwin*) |
6d94c122 | 7555 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7556 | ;; |
a0da8069 NN |
7557 | esac |
7558 | ||
7559 | # If we're not building GCC, don't discard standard headers. | |
7560 | if test -d ${srcdir}/gcc; then | |
7561 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7562 | ||
7563 | if test "${build}" != "${host}"; then | |
7564 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7565 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7566 | # to it. This is right: we don't want to search that directory | |
7567 | # for binaries, but we want the header files in there, so add | |
7568 | # them explicitly. | |
e552509b | 7569 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7570 | |
7571 | # Someone might think of using the pre-installed headers on | |
7572 | # Canadian crosses, in case the installed compiler is not fully | |
7573 | # compatible with the compiler being built. In this case, it | |
7574 | # would be better to flag an error than risking having | |
7575 | # incompatible object files being constructed. We can't | |
7576 | # guarantee that an error will be flagged, but let's hope the | |
7577 | # compiler will do it, when presented with incompatible header | |
7578 | # files. | |
7579 | fi | |
7580 | fi | |
7581 | ||
7582 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7583 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7584 | # Here host == target, so we don't need to build gcc, |
7585 | # so we don't want to discard standard headers. | |
7586 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7587 | ;; | |
7588 | *) | |
7589 | # If we're building newlib, use its generic headers last, but search | |
7590 | # for any libc-related directories first (so make it the last -B | |
7591 | # switch). | |
7592 | 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 |
7593 | |
7594 | # If we're building libgloss, find the startup file, simulator library | |
7595 | # and linker script. | |
7596 | case " $target_configdirs " in | |
7597 | *" libgloss "*) | |
7598 | # Look for startup file, simulator library and maybe linker script. | |
7599 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7600 | # Look for libnosys.a in case the target needs it. | |
7601 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7602 | # Most targets have the linker script in the source directory. | |
7603 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7604 | ;; | |
7605 | esac | |
a0da8069 NN |
7606 | ;; |
7607 | esac | |
7608 | ;; | |
7609 | esac | |
7610 | ;; | |
7611 | esac | |
1f53ca9a | 7612 | |
45055374 | 7613 | case "$target" in |
1f53ca9a AO |
7614 | x86_64-*mingw* | *-w64-mingw*) |
7615 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7616 | # however, use a symlink named 'mingw' in ${prefix} . | |
7617 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7618 | ;; | |
7619 | *-mingw*) | |
7620 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7621 | 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' | |
7622 | ;; | |
45055374 | 7623 | esac |
a0da8069 | 7624 | |
5fbad20a DD |
7625 | # Allow the user to override the flags for |
7626 | # our build compiler if desired. | |
c66487f8 NC |
7627 | if test x"${build}" = x"${host}" ; then |
7628 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7629 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7630 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7631 | fi | |
5fbad20a | 7632 | |
a0da8069 NN |
7633 | # On Canadian crosses, we'll be searching the right directories for |
7634 | # the previously-installed cross compiler, so don't bother to add | |
7635 | # flags for directories within the install tree of the compiler | |
7636 | # being built; programs in there won't even run. | |
7637 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7638 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7639 | 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 |
7640 | fi |
7641 | ||
7642 | if test "x${use_gnu_ld}" = x && | |
7643 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7644 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7645 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7646 | fi |
7647 | ||
a481dbb7 DD |
7648 | # Search for other target-specific linker scripts and such. |
7649 | case "${target}" in | |
4e206d7e DB |
7650 | mep*) |
7651 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7652 | ;; | |
7653 | esac | |
7654 | ||
a0da8069 | 7655 | # Makefile fragments. |
3e707e94 PB |
7656 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7657 | do | |
7658 | eval fragval=\$$frag | |
7659 | if test $fragval != /dev/null; then | |
7660 | eval $frag=${srcdir}/$fragval | |
7661 | fi | |
7662 | done | |
a0da8069 NN |
7663 | |
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | # Miscellanea: directories, flags, etc. | |
7669 | ||
7670 | ||
7671 | ||
7672 | ||
7673 | ||
7674 | ||
7675 | ||
3bbd2f8f | 7676 | |
6a9cf61e | 7677 | # Build module lists & subconfigure args. |
a0da8069 NN |
7678 | |
7679 | ||
7680 | ||
be01d343 PB |
7681 | # Host module lists & subconfigure args. |
7682 | ||
7683 | ||
7684 | ||
911e63d0 | 7685 | |
be01d343 PB |
7686 | # Target module lists & subconfigure args. |
7687 | ||
7688 | ||
7689 | ||
7690 | # Build tools. | |
7691 | ||
7692 | ||
7693 | ||
1576798e PB |
7694 | |
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | ||
be01d343 PB |
7708 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7709 | # on the build machine. These are used if the Makefile can't locate these | |
7710 | # programs in objdir. | |
7711 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7712 | ||
7713 | for ac_prog in 'bison -y' byacc yacc | |
7714 | do | |
c6b750e1 | 7715 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7716 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7718 | $as_echo_n "checking for $ac_word... " >&6; } | |
7719 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7720 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7721 | else |
7722 | if test -n "$YACC"; then | |
7723 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7724 | else | |
c6b750e1 DJ |
7725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7726 | for as_dir in $PATH | |
7727 | do | |
7728 | IFS=$as_save_IFS | |
7729 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7730 | for ac_exec_ext in '' $ac_executable_extensions; do |
7731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7732 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7734 | break 2 |
7735 | fi | |
7736 | done | |
81ecdfbb RW |
7737 | done |
7738 | IFS=$as_save_IFS | |
c6b750e1 | 7739 | |
be01d343 PB |
7740 | fi |
7741 | fi | |
c6b750e1 | 7742 | YACC=$ac_cv_prog_YACC |
be01d343 | 7743 | if test -n "$YACC"; then |
81ecdfbb RW |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7745 | $as_echo "$YACC" >&6; } | |
be01d343 | 7746 | else |
81ecdfbb RW |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7748 | $as_echo "no" >&6; } | |
be01d343 PB |
7749 | fi |
7750 | ||
81ecdfbb | 7751 | |
c6b750e1 | 7752 | test -n "$YACC" && break |
be01d343 PB |
7753 | done |
7754 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7755 | ||
7756 | case " $build_configdirs " in | |
7757 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7758 | esac |
7759 | ||
7760 | for ac_prog in bison | |
7761 | do | |
c6b750e1 | 7762 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7763 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7765 | $as_echo_n "checking for $ac_word... " >&6; } | |
7766 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7767 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7768 | else |
7769 | if test -n "$BISON"; then | |
7770 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7771 | else | |
c6b750e1 DJ |
7772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7773 | for as_dir in $PATH | |
7774 | do | |
7775 | IFS=$as_save_IFS | |
7776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7777 | for ac_exec_ext in '' $ac_executable_extensions; do |
7778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7779 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7781 | break 2 |
7782 | fi | |
7783 | done | |
81ecdfbb RW |
7784 | done |
7785 | IFS=$as_save_IFS | |
c6b750e1 | 7786 | |
be01d343 PB |
7787 | fi |
7788 | fi | |
c6b750e1 | 7789 | BISON=$ac_cv_prog_BISON |
be01d343 | 7790 | if test -n "$BISON"; then |
81ecdfbb RW |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7792 | $as_echo "$BISON" >&6; } | |
be01d343 | 7793 | else |
81ecdfbb RW |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7795 | $as_echo "no" >&6; } | |
be01d343 PB |
7796 | fi |
7797 | ||
81ecdfbb | 7798 | |
c6b750e1 | 7799 | test -n "$BISON" && break |
be01d343 PB |
7800 | done |
7801 | test -n "$BISON" || BISON="$MISSING bison" | |
7802 | ||
7803 | case " $build_configdirs " in | |
7804 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7805 | esac | |
7806 | ||
7807 | for ac_prog in gm4 gnum4 m4 | |
7808 | do | |
c6b750e1 | 7809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7810 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7812 | $as_echo_n "checking for $ac_word... " >&6; } | |
7813 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7814 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7815 | else |
7816 | if test -n "$M4"; then | |
7817 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7818 | else | |
c6b750e1 DJ |
7819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7820 | for as_dir in $PATH | |
7821 | do | |
7822 | IFS=$as_save_IFS | |
7823 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7824 | for ac_exec_ext in '' $ac_executable_extensions; do |
7825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7826 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7828 | break 2 |
7829 | fi | |
7830 | done | |
81ecdfbb RW |
7831 | done |
7832 | IFS=$as_save_IFS | |
c6b750e1 | 7833 | |
be01d343 PB |
7834 | fi |
7835 | fi | |
c6b750e1 | 7836 | M4=$ac_cv_prog_M4 |
be01d343 | 7837 | if test -n "$M4"; then |
81ecdfbb RW |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7839 | $as_echo "$M4" >&6; } | |
be01d343 | 7840 | else |
81ecdfbb RW |
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7842 | $as_echo "no" >&6; } | |
be01d343 PB |
7843 | fi |
7844 | ||
81ecdfbb | 7845 | |
c6b750e1 | 7846 | test -n "$M4" && break |
be01d343 PB |
7847 | done |
7848 | test -n "$M4" || M4="$MISSING m4" | |
7849 | ||
7850 | case " $build_configdirs " in | |
7851 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7852 | esac | |
7853 | ||
7854 | for ac_prog in flex lex | |
7855 | do | |
c6b750e1 | 7856 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7857 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7859 | $as_echo_n "checking for $ac_word... " >&6; } | |
7860 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7861 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7862 | else |
7863 | if test -n "$LEX"; then | |
7864 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7865 | else | |
c6b750e1 DJ |
7866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7867 | for as_dir in $PATH | |
7868 | do | |
7869 | IFS=$as_save_IFS | |
7870 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7871 | for ac_exec_ext in '' $ac_executable_extensions; do |
7872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7873 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7875 | break 2 |
7876 | fi | |
7877 | done | |
81ecdfbb RW |
7878 | done |
7879 | IFS=$as_save_IFS | |
c6b750e1 | 7880 | |
be01d343 PB |
7881 | fi |
7882 | fi | |
c6b750e1 | 7883 | LEX=$ac_cv_prog_LEX |
be01d343 | 7884 | if test -n "$LEX"; then |
81ecdfbb RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7886 | $as_echo "$LEX" >&6; } | |
be01d343 | 7887 | else |
81ecdfbb RW |
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7889 | $as_echo "no" >&6; } | |
be01d343 PB |
7890 | fi |
7891 | ||
81ecdfbb | 7892 | |
c6b750e1 | 7893 | test -n "$LEX" && break |
be01d343 PB |
7894 | done |
7895 | test -n "$LEX" || LEX="$MISSING flex" | |
7896 | ||
7897 | case " $build_configdirs " in | |
7898 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7899 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7900 | esac | |
7901 | ||
7902 | for ac_prog in flex | |
7903 | do | |
c6b750e1 | 7904 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7905 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7907 | $as_echo_n "checking for $ac_word... " >&6; } | |
7908 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7909 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7910 | else |
7911 | if test -n "$FLEX"; then | |
7912 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7913 | else | |
c6b750e1 DJ |
7914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7915 | for as_dir in $PATH | |
7916 | do | |
7917 | IFS=$as_save_IFS | |
7918 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7919 | for ac_exec_ext in '' $ac_executable_extensions; do |
7920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7921 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7923 | break 2 |
7924 | fi | |
7925 | done | |
81ecdfbb RW |
7926 | done |
7927 | IFS=$as_save_IFS | |
c6b750e1 | 7928 | |
be01d343 PB |
7929 | fi |
7930 | fi | |
c6b750e1 | 7931 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7932 | if test -n "$FLEX"; then |
81ecdfbb RW |
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7934 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7935 | else |
81ecdfbb RW |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7937 | $as_echo "no" >&6; } | |
be01d343 PB |
7938 | fi |
7939 | ||
81ecdfbb | 7940 | |
c6b750e1 | 7941 | test -n "$FLEX" && break |
be01d343 PB |
7942 | done |
7943 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7944 | ||
7945 | case " $build_configdirs " in | |
7946 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7947 | esac | |
7948 | ||
7949 | for ac_prog in makeinfo | |
7950 | do | |
c6b750e1 | 7951 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7952 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7954 | $as_echo_n "checking for $ac_word... " >&6; } | |
7955 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7956 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7957 | else |
7958 | if test -n "$MAKEINFO"; then | |
7959 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7960 | else | |
c6b750e1 DJ |
7961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7962 | for as_dir in $PATH | |
7963 | do | |
7964 | IFS=$as_save_IFS | |
7965 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7966 | for ac_exec_ext in '' $ac_executable_extensions; do |
7967 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7968 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7969 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7970 | break 2 |
7971 | fi | |
7972 | done | |
81ecdfbb RW |
7973 | done |
7974 | IFS=$as_save_IFS | |
c6b750e1 | 7975 | |
be01d343 PB |
7976 | fi |
7977 | fi | |
c6b750e1 | 7978 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7979 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7981 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7982 | else |
81ecdfbb RW |
7983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7984 | $as_echo "no" >&6; } | |
be01d343 PB |
7985 | fi |
7986 | ||
81ecdfbb | 7987 | |
c6b750e1 | 7988 | test -n "$MAKEINFO" && break |
be01d343 PB |
7989 | done |
7990 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7991 | ||
7992 | case " $build_configdirs " in | |
7993 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7994 | *) | |
7995 | ||
10ad8ef3 | 7996 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7997 | # higher, else we use the "missing" dummy. |
7998 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7999 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8000 | : |
8001 | else | |
8002 | MAKEINFO="$MISSING makeinfo" | |
8003 | fi | |
8004 | ;; | |
8005 | ||
8006 | esac | |
a0da8069 | 8007 | |
be01d343 | 8008 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8009 | |
be01d343 PB |
8010 | for ac_prog in expect |
8011 | do | |
c6b750e1 | 8012 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8013 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8015 | $as_echo_n "checking for $ac_word... " >&6; } | |
8016 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
8017 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8018 | else |
8019 | if test -n "$EXPECT"; then | |
8020 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8021 | else | |
c6b750e1 DJ |
8022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8023 | for as_dir in $PATH | |
8024 | do | |
8025 | IFS=$as_save_IFS | |
8026 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8027 | for ac_exec_ext in '' $ac_executable_extensions; do |
8028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8029 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8031 | break 2 |
8032 | fi | |
8033 | done | |
81ecdfbb RW |
8034 | done |
8035 | IFS=$as_save_IFS | |
c6b750e1 | 8036 | |
be01d343 PB |
8037 | fi |
8038 | fi | |
c6b750e1 | 8039 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8040 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8042 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8043 | else |
81ecdfbb RW |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8045 | $as_echo "no" >&6; } | |
be01d343 | 8046 | fi |
a0da8069 | 8047 | |
81ecdfbb | 8048 | |
c6b750e1 | 8049 | test -n "$EXPECT" && break |
be01d343 PB |
8050 | done |
8051 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8052 | |
be01d343 PB |
8053 | case " $configdirs " in |
8054 | *" expect "*) | |
8055 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8056 | ;; | |
8057 | esac | |
a0da8069 | 8058 | |
be01d343 PB |
8059 | for ac_prog in runtest |
8060 | do | |
c6b750e1 | 8061 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8062 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8064 | $as_echo_n "checking for $ac_word... " >&6; } | |
8065 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8066 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8067 | else |
8068 | if test -n "$RUNTEST"; then | |
8069 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8070 | else | |
c6b750e1 DJ |
8071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8072 | for as_dir in $PATH | |
8073 | do | |
8074 | IFS=$as_save_IFS | |
8075 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8076 | for ac_exec_ext in '' $ac_executable_extensions; do |
8077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8078 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8080 | break 2 |
8081 | fi | |
8082 | done | |
81ecdfbb RW |
8083 | done |
8084 | IFS=$as_save_IFS | |
c6b750e1 | 8085 | |
be01d343 PB |
8086 | fi |
8087 | fi | |
c6b750e1 | 8088 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8089 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8091 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8092 | else |
81ecdfbb RW |
8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8094 | $as_echo "no" >&6; } | |
be01d343 | 8095 | fi |
a0da8069 | 8096 | |
81ecdfbb | 8097 | |
c6b750e1 | 8098 | test -n "$RUNTEST" && break |
be01d343 PB |
8099 | done |
8100 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8101 | |
be01d343 PB |
8102 | case " $configdirs " in |
8103 | *" dejagnu "*) | |
6b89cc21 | 8104 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8105 | ;; |
8106 | esac | |
a0da8069 NN |
8107 | |
8108 | ||
a0da8069 | 8109 | # Host tools. |
859789af AC |
8110 | ncn_tool_prefix= |
8111 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8112 | ncn_target_tool_prefix= | |
8113 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8114 | ||
9a819804 AO |
8115 | |
8116 | ||
8117 | if test -n "$AR"; then | |
8118 | ac_cv_prog_AR=$AR | |
8119 | elif test -n "$ac_cv_prog_AR"; then | |
8120 | AR=$ac_cv_prog_AR | |
8121 | fi | |
8122 | ||
8123 | if test -n "$ac_cv_prog_AR"; then | |
8124 | for ncn_progname in ar; do | |
8125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8126 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8128 | $as_echo_n "checking for $ac_word... " >&6; } | |
8129 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8130 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8131 | else |
8132 | if test -n "$AR"; then | |
8133 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8134 | else | |
8135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8136 | for as_dir in $PATH | |
8137 | do | |
8138 | IFS=$as_save_IFS | |
8139 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8140 | for ac_exec_ext in '' $ac_executable_extensions; do |
8141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8142 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8144 | break 2 |
8145 | fi | |
8146 | done | |
81ecdfbb RW |
8147 | done |
8148 | IFS=$as_save_IFS | |
9a819804 AO |
8149 | |
8150 | fi | |
8151 | fi | |
8152 | AR=$ac_cv_prog_AR | |
8153 | if test -n "$AR"; then | |
81ecdfbb RW |
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8155 | $as_echo "$AR" >&6; } | |
9a819804 | 8156 | else |
81ecdfbb RW |
8157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8158 | $as_echo "no" >&6; } | |
9a819804 AO |
8159 | fi |
8160 | ||
81ecdfbb | 8161 | |
9a819804 AO |
8162 | done |
8163 | fi | |
8164 | ||
8165 | for ncn_progname in ar; do | |
05cbd757 PB |
8166 | if test -n "$ncn_tool_prefix"; then |
8167 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8168 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8170 | $as_echo_n "checking for $ac_word... " >&6; } | |
8171 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8172 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8173 | else |
8174 | if test -n "$AR"; then | |
8175 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8176 | else | |
c6b750e1 DJ |
8177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8178 | for as_dir in $PATH | |
8179 | do | |
8180 | IFS=$as_save_IFS | |
8181 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8182 | for ac_exec_ext in '' $ac_executable_extensions; do |
8183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8184 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8186 | break 2 |
8187 | fi | |
8188 | done | |
81ecdfbb RW |
8189 | done |
8190 | IFS=$as_save_IFS | |
c6b750e1 | 8191 | |
859789af AC |
8192 | fi |
8193 | fi | |
c6b750e1 | 8194 | AR=$ac_cv_prog_AR |
859789af | 8195 | if test -n "$AR"; then |
81ecdfbb RW |
8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8197 | $as_echo "$AR" >&6; } | |
859789af | 8198 | else |
81ecdfbb RW |
8199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8200 | $as_echo "no" >&6; } | |
859789af AC |
8201 | fi |
8202 | ||
81ecdfbb | 8203 | |
05cbd757 PB |
8204 | fi |
8205 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8206 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8207 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8209 | $as_echo_n "checking for $ac_word... " >&6; } | |
8210 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8211 | $as_echo_n "(cached) " >&6 | |
859789af | 8212 | else |
05cbd757 PB |
8213 | if test -n "$AR"; then |
8214 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8215 | else |
c6b750e1 DJ |
8216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8217 | for as_dir in $PATH | |
8218 | do | |
8219 | IFS=$as_save_IFS | |
8220 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8221 | for ac_exec_ext in '' $ac_executable_extensions; do |
8222 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8223 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8224 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8225 | break 2 |
8226 | fi | |
8227 | done | |
81ecdfbb RW |
8228 | done |
8229 | IFS=$as_save_IFS | |
c6b750e1 | 8230 | |
859789af AC |
8231 | fi |
8232 | fi | |
c6b750e1 | 8233 | AR=$ac_cv_prog_AR |
05cbd757 | 8234 | if test -n "$AR"; then |
81ecdfbb RW |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8236 | $as_echo "$AR" >&6; } | |
859789af | 8237 | else |
81ecdfbb RW |
8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8239 | $as_echo "no" >&6; } | |
859789af | 8240 | fi |
c6b750e1 | 8241 | |
81ecdfbb | 8242 | |
05cbd757 PB |
8243 | fi |
8244 | test -n "$ac_cv_prog_AR" && break | |
8245 | done | |
8246 | ||
8247 | if test -z "$ac_cv_prog_AR" ; then | |
8248 | set dummy ar | |
8249 | if test $build = $host ; then | |
8250 | AR="$2" | |
859789af | 8251 | else |
05cbd757 | 8252 | AR="${ncn_tool_prefix}$2" |
859789af | 8253 | fi |
859789af AC |
8254 | fi |
8255 | ||
9a819804 AO |
8256 | |
8257 | ||
8258 | if test -n "$AS"; then | |
8259 | ac_cv_prog_AS=$AS | |
8260 | elif test -n "$ac_cv_prog_AS"; then | |
8261 | AS=$ac_cv_prog_AS | |
8262 | fi | |
8263 | ||
8264 | if test -n "$ac_cv_prog_AS"; then | |
8265 | for ncn_progname in as; do | |
8266 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8267 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8269 | $as_echo_n "checking for $ac_word... " >&6; } | |
8270 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8271 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8272 | else |
8273 | if test -n "$AS"; then | |
8274 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8275 | else | |
8276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8277 | for as_dir in $PATH | |
8278 | do | |
8279 | IFS=$as_save_IFS | |
8280 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8281 | for ac_exec_ext in '' $ac_executable_extensions; do |
8282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8283 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8284 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8285 | break 2 |
8286 | fi | |
8287 | done | |
81ecdfbb RW |
8288 | done |
8289 | IFS=$as_save_IFS | |
9a819804 AO |
8290 | |
8291 | fi | |
8292 | fi | |
8293 | AS=$ac_cv_prog_AS | |
8294 | if test -n "$AS"; then | |
81ecdfbb RW |
8295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8296 | $as_echo "$AS" >&6; } | |
9a819804 | 8297 | else |
81ecdfbb RW |
8298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8299 | $as_echo "no" >&6; } | |
9a819804 AO |
8300 | fi |
8301 | ||
81ecdfbb | 8302 | |
9a819804 AO |
8303 | done |
8304 | fi | |
8305 | ||
8306 | for ncn_progname in as; do | |
05cbd757 PB |
8307 | if test -n "$ncn_tool_prefix"; then |
8308 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8309 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8311 | $as_echo_n "checking for $ac_word... " >&6; } | |
8312 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8313 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8314 | else |
8315 | if test -n "$AS"; then | |
8316 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8317 | else |
8318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8319 | for as_dir in $PATH | |
8320 | do | |
8321 | IFS=$as_save_IFS | |
8322 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8323 | for ac_exec_ext in '' $ac_executable_extensions; do |
8324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8325 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8327 | break 2 |
8328 | fi | |
8329 | done | |
81ecdfbb RW |
8330 | done |
8331 | IFS=$as_save_IFS | |
c6b750e1 | 8332 | |
859789af AC |
8333 | fi |
8334 | fi | |
c6b750e1 | 8335 | AS=$ac_cv_prog_AS |
859789af | 8336 | if test -n "$AS"; then |
81ecdfbb RW |
8337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8338 | $as_echo "$AS" >&6; } | |
859789af | 8339 | else |
81ecdfbb RW |
8340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8341 | $as_echo "no" >&6; } | |
859789af AC |
8342 | fi |
8343 | ||
81ecdfbb | 8344 | |
05cbd757 PB |
8345 | fi |
8346 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8347 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8348 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8350 | $as_echo_n "checking for $ac_word... " >&6; } | |
8351 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8352 | $as_echo_n "(cached) " >&6 | |
859789af | 8353 | else |
05cbd757 PB |
8354 | if test -n "$AS"; then |
8355 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8356 | else |
c6b750e1 DJ |
8357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8358 | for as_dir in $PATH | |
8359 | do | |
8360 | IFS=$as_save_IFS | |
8361 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8362 | for ac_exec_ext in '' $ac_executable_extensions; do |
8363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8364 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8366 | break 2 |
8367 | fi | |
8368 | done | |
81ecdfbb RW |
8369 | done |
8370 | IFS=$as_save_IFS | |
c6b750e1 | 8371 | |
859789af AC |
8372 | fi |
8373 | fi | |
c6b750e1 | 8374 | AS=$ac_cv_prog_AS |
05cbd757 | 8375 | if test -n "$AS"; then |
81ecdfbb RW |
8376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8377 | $as_echo "$AS" >&6; } | |
859789af | 8378 | else |
81ecdfbb RW |
8379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8380 | $as_echo "no" >&6; } | |
859789af | 8381 | fi |
c6b750e1 | 8382 | |
81ecdfbb | 8383 | |
05cbd757 PB |
8384 | fi |
8385 | test -n "$ac_cv_prog_AS" && break | |
8386 | done | |
8387 | ||
8388 | if test -z "$ac_cv_prog_AS" ; then | |
8389 | set dummy as | |
8390 | if test $build = $host ; then | |
8391 | AS="$2" | |
859789af | 8392 | else |
05cbd757 | 8393 | AS="${ncn_tool_prefix}$2" |
859789af | 8394 | fi |
859789af AC |
8395 | fi |
8396 | ||
9a819804 AO |
8397 | |
8398 | ||
8399 | if test -n "$DLLTOOL"; then | |
8400 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8401 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8402 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8403 | fi | |
8404 | ||
8405 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8406 | for ncn_progname in dlltool; do | |
8407 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8408 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8410 | $as_echo_n "checking for $ac_word... " >&6; } | |
8411 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8412 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8413 | else |
8414 | if test -n "$DLLTOOL"; then | |
8415 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8416 | else | |
8417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8418 | for as_dir in $PATH | |
8419 | do | |
8420 | IFS=$as_save_IFS | |
8421 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8422 | for ac_exec_ext in '' $ac_executable_extensions; do |
8423 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8424 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8426 | break 2 |
8427 | fi | |
8428 | done | |
81ecdfbb RW |
8429 | done |
8430 | IFS=$as_save_IFS | |
9a819804 AO |
8431 | |
8432 | fi | |
8433 | fi | |
8434 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8435 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8437 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8438 | else |
81ecdfbb RW |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8440 | $as_echo "no" >&6; } | |
9a819804 AO |
8441 | fi |
8442 | ||
81ecdfbb | 8443 | |
9a819804 AO |
8444 | done |
8445 | fi | |
8446 | ||
8447 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8448 | if test -n "$ncn_tool_prefix"; then |
8449 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8450 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8452 | $as_echo_n "checking for $ac_word... " >&6; } | |
8453 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8454 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8455 | else |
8456 | if test -n "$DLLTOOL"; then | |
8457 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8458 | else | |
c6b750e1 DJ |
8459 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8460 | for as_dir in $PATH | |
8461 | do | |
8462 | IFS=$as_save_IFS | |
8463 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8464 | for ac_exec_ext in '' $ac_executable_extensions; do |
8465 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8466 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8467 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8468 | break 2 |
8469 | fi | |
8470 | done | |
81ecdfbb RW |
8471 | done |
8472 | IFS=$as_save_IFS | |
c6b750e1 | 8473 | |
859789af AC |
8474 | fi |
8475 | fi | |
c6b750e1 | 8476 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8477 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8479 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8480 | else |
81ecdfbb RW |
8481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8482 | $as_echo "no" >&6; } | |
859789af AC |
8483 | fi |
8484 | ||
81ecdfbb | 8485 | |
05cbd757 PB |
8486 | fi |
8487 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8488 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8489 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8491 | $as_echo_n "checking for $ac_word... " >&6; } | |
8492 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8493 | $as_echo_n "(cached) " >&6 | |
859789af | 8494 | else |
05cbd757 PB |
8495 | if test -n "$DLLTOOL"; then |
8496 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8497 | else |
c6b750e1 DJ |
8498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8499 | for as_dir in $PATH | |
8500 | do | |
8501 | IFS=$as_save_IFS | |
8502 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8503 | for ac_exec_ext in '' $ac_executable_extensions; do |
8504 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8505 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8506 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8507 | break 2 |
8508 | fi | |
8509 | done | |
81ecdfbb RW |
8510 | done |
8511 | IFS=$as_save_IFS | |
c6b750e1 | 8512 | |
859789af AC |
8513 | fi |
8514 | fi | |
c6b750e1 | 8515 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8516 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8518 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8519 | else |
81ecdfbb RW |
8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8521 | $as_echo "no" >&6; } | |
859789af | 8522 | fi |
c6b750e1 | 8523 | |
81ecdfbb | 8524 | |
05cbd757 PB |
8525 | fi |
8526 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8527 | done | |
8528 | ||
8529 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8530 | set dummy dlltool | |
8531 | if test $build = $host ; then | |
8532 | DLLTOOL="$2" | |
859789af | 8533 | else |
05cbd757 | 8534 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8535 | fi |
859789af AC |
8536 | fi |
8537 | ||
9a819804 AO |
8538 | |
8539 | ||
8540 | if test -n "$LD"; then | |
8541 | ac_cv_prog_LD=$LD | |
8542 | elif test -n "$ac_cv_prog_LD"; then | |
8543 | LD=$ac_cv_prog_LD | |
8544 | fi | |
8545 | ||
8546 | if test -n "$ac_cv_prog_LD"; then | |
8547 | for ncn_progname in ld; do | |
8548 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8549 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8551 | $as_echo_n "checking for $ac_word... " >&6; } | |
8552 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8553 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8554 | else |
8555 | if test -n "$LD"; then | |
8556 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8557 | else | |
8558 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8559 | for as_dir in $PATH | |
8560 | do | |
8561 | IFS=$as_save_IFS | |
8562 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8563 | for ac_exec_ext in '' $ac_executable_extensions; do |
8564 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8565 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8566 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8567 | break 2 |
8568 | fi | |
8569 | done | |
81ecdfbb RW |
8570 | done |
8571 | IFS=$as_save_IFS | |
9a819804 AO |
8572 | |
8573 | fi | |
8574 | fi | |
8575 | LD=$ac_cv_prog_LD | |
8576 | if test -n "$LD"; then | |
81ecdfbb RW |
8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8578 | $as_echo "$LD" >&6; } | |
9a819804 | 8579 | else |
81ecdfbb RW |
8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8581 | $as_echo "no" >&6; } | |
9a819804 AO |
8582 | fi |
8583 | ||
81ecdfbb | 8584 | |
9a819804 AO |
8585 | done |
8586 | fi | |
8587 | ||
8588 | for ncn_progname in ld; do | |
05cbd757 PB |
8589 | if test -n "$ncn_tool_prefix"; then |
8590 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8591 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8593 | $as_echo_n "checking for $ac_word... " >&6; } | |
8594 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8595 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8596 | else |
8597 | if test -n "$LD"; then | |
8598 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8599 | else | |
c6b750e1 DJ |
8600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8601 | for as_dir in $PATH | |
8602 | do | |
8603 | IFS=$as_save_IFS | |
8604 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8605 | for ac_exec_ext in '' $ac_executable_extensions; do |
8606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8607 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8609 | break 2 |
8610 | fi | |
8611 | done | |
81ecdfbb RW |
8612 | done |
8613 | IFS=$as_save_IFS | |
c6b750e1 | 8614 | |
859789af AC |
8615 | fi |
8616 | fi | |
c6b750e1 | 8617 | LD=$ac_cv_prog_LD |
859789af | 8618 | if test -n "$LD"; then |
81ecdfbb RW |
8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8620 | $as_echo "$LD" >&6; } | |
859789af | 8621 | else |
81ecdfbb RW |
8622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8623 | $as_echo "no" >&6; } | |
859789af AC |
8624 | fi |
8625 | ||
81ecdfbb | 8626 | |
05cbd757 PB |
8627 | fi |
8628 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8629 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8630 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8632 | $as_echo_n "checking for $ac_word... " >&6; } | |
8633 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8634 | $as_echo_n "(cached) " >&6 | |
859789af | 8635 | else |
05cbd757 PB |
8636 | if test -n "$LD"; then |
8637 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8638 | else |
c6b750e1 DJ |
8639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8640 | for as_dir in $PATH | |
8641 | do | |
8642 | IFS=$as_save_IFS | |
8643 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8644 | for ac_exec_ext in '' $ac_executable_extensions; do |
8645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8646 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8648 | break 2 |
8649 | fi | |
8650 | done | |
81ecdfbb RW |
8651 | done |
8652 | IFS=$as_save_IFS | |
c6b750e1 | 8653 | |
859789af AC |
8654 | fi |
8655 | fi | |
c6b750e1 | 8656 | LD=$ac_cv_prog_LD |
05cbd757 | 8657 | if test -n "$LD"; then |
81ecdfbb RW |
8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8659 | $as_echo "$LD" >&6; } | |
859789af | 8660 | else |
81ecdfbb RW |
8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8662 | $as_echo "no" >&6; } | |
859789af | 8663 | fi |
c6b750e1 | 8664 | |
81ecdfbb | 8665 | |
05cbd757 PB |
8666 | fi |
8667 | test -n "$ac_cv_prog_LD" && break | |
8668 | done | |
8669 | ||
8670 | if test -z "$ac_cv_prog_LD" ; then | |
8671 | set dummy ld | |
8672 | if test $build = $host ; then | |
8673 | LD="$2" | |
859789af | 8674 | else |
05cbd757 | 8675 | LD="${ncn_tool_prefix}$2" |
859789af | 8676 | fi |
859789af AC |
8677 | fi |
8678 | ||
9a819804 AO |
8679 | |
8680 | ||
8681 | if test -n "$LIPO"; then | |
8682 | ac_cv_prog_LIPO=$LIPO | |
8683 | elif test -n "$ac_cv_prog_LIPO"; then | |
8684 | LIPO=$ac_cv_prog_LIPO | |
8685 | fi | |
8686 | ||
8687 | if test -n "$ac_cv_prog_LIPO"; then | |
8688 | for ncn_progname in lipo; do | |
8689 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8690 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8692 | $as_echo_n "checking for $ac_word... " >&6; } | |
8693 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8694 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8695 | else |
8696 | if test -n "$LIPO"; then | |
8697 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8698 | else | |
8699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8700 | for as_dir in $PATH | |
8701 | do | |
8702 | IFS=$as_save_IFS | |
8703 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8704 | for ac_exec_ext in '' $ac_executable_extensions; do |
8705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8706 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8708 | break 2 |
8709 | fi | |
8710 | done | |
81ecdfbb RW |
8711 | done |
8712 | IFS=$as_save_IFS | |
9a819804 AO |
8713 | |
8714 | fi | |
8715 | fi | |
8716 | LIPO=$ac_cv_prog_LIPO | |
8717 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8719 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8720 | else |
81ecdfbb RW |
8721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8722 | $as_echo "no" >&6; } | |
9a819804 AO |
8723 | fi |
8724 | ||
81ecdfbb | 8725 | |
9a819804 AO |
8726 | done |
8727 | fi | |
8728 | ||
8729 | for ncn_progname in lipo; do | |
be01d343 PB |
8730 | if test -n "$ncn_tool_prefix"; then |
8731 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8732 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8734 | $as_echo_n "checking for $ac_word... " >&6; } | |
8735 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8736 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8737 | else |
8738 | if test -n "$LIPO"; then | |
8739 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8740 | else | |
c6b750e1 DJ |
8741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8742 | for as_dir in $PATH | |
8743 | do | |
8744 | IFS=$as_save_IFS | |
8745 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8746 | for ac_exec_ext in '' $ac_executable_extensions; do |
8747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8748 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8750 | break 2 |
8751 | fi | |
8752 | done | |
81ecdfbb RW |
8753 | done |
8754 | IFS=$as_save_IFS | |
c6b750e1 | 8755 | |
be01d343 PB |
8756 | fi |
8757 | fi | |
c6b750e1 | 8758 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8759 | if test -n "$LIPO"; then |
81ecdfbb RW |
8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8761 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8762 | else |
81ecdfbb RW |
8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8764 | $as_echo "no" >&6; } | |
be01d343 PB |
8765 | fi |
8766 | ||
81ecdfbb | 8767 | |
be01d343 PB |
8768 | fi |
8769 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8770 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8771 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8773 | $as_echo_n "checking for $ac_word... " >&6; } | |
8774 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8775 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8776 | else |
8777 | if test -n "$LIPO"; then | |
8778 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8779 | else | |
c6b750e1 DJ |
8780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8781 | for as_dir in $PATH | |
8782 | do | |
8783 | IFS=$as_save_IFS | |
8784 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8785 | for ac_exec_ext in '' $ac_executable_extensions; do |
8786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8787 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8789 | break 2 |
8790 | fi | |
8791 | done | |
81ecdfbb RW |
8792 | done |
8793 | IFS=$as_save_IFS | |
c6b750e1 | 8794 | |
be01d343 PB |
8795 | fi |
8796 | fi | |
c6b750e1 | 8797 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8798 | if test -n "$LIPO"; then |
81ecdfbb RW |
8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8800 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8801 | else |
81ecdfbb RW |
8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8803 | $as_echo "no" >&6; } | |
be01d343 | 8804 | fi |
c6b750e1 | 8805 | |
81ecdfbb | 8806 | |
be01d343 PB |
8807 | fi |
8808 | test -n "$ac_cv_prog_LIPO" && break | |
8809 | done | |
8810 | ||
8811 | if test -z "$ac_cv_prog_LIPO" ; then | |
8812 | set dummy lipo | |
8813 | if test $build = $host ; then | |
8814 | LIPO="$2" | |
8815 | else | |
8816 | LIPO="${ncn_tool_prefix}$2" | |
8817 | fi | |
8818 | fi | |
8819 | ||
9a819804 AO |
8820 | |
8821 | ||
8822 | if test -n "$NM"; then | |
8823 | ac_cv_prog_NM=$NM | |
8824 | elif test -n "$ac_cv_prog_NM"; then | |
8825 | NM=$ac_cv_prog_NM | |
8826 | fi | |
8827 | ||
8828 | if test -n "$ac_cv_prog_NM"; then | |
8829 | for ncn_progname in nm; do | |
8830 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8831 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8833 | $as_echo_n "checking for $ac_word... " >&6; } | |
8834 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8835 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8836 | else |
8837 | if test -n "$NM"; then | |
8838 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8839 | else | |
c6b750e1 DJ |
8840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8841 | for as_dir in $PATH | |
8842 | do | |
8843 | IFS=$as_save_IFS | |
8844 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8845 | for ac_exec_ext in '' $ac_executable_extensions; do |
8846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8847 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8849 | break 2 |
8850 | fi | |
8851 | done | |
81ecdfbb RW |
8852 | done |
8853 | IFS=$as_save_IFS | |
c6b750e1 | 8854 | |
859789af AC |
8855 | fi |
8856 | fi | |
c6b750e1 | 8857 | NM=$ac_cv_prog_NM |
859789af | 8858 | if test -n "$NM"; then |
81ecdfbb RW |
8859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8860 | $as_echo "$NM" >&6; } | |
859789af | 8861 | else |
81ecdfbb RW |
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8863 | $as_echo "no" >&6; } | |
859789af AC |
8864 | fi |
8865 | ||
81ecdfbb | 8866 | |
9a819804 AO |
8867 | done |
8868 | fi | |
8869 | ||
8870 | for ncn_progname in nm; do | |
8871 | if test -n "$ncn_tool_prefix"; then | |
8872 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8873 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8875 | $as_echo_n "checking for $ac_word... " >&6; } | |
8876 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8877 | $as_echo_n "(cached) " >&6 | |
859789af | 8878 | else |
05cbd757 PB |
8879 | if test -n "$NM"; then |
8880 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8881 | else |
c6b750e1 DJ |
8882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8883 | for as_dir in $PATH | |
8884 | do | |
8885 | IFS=$as_save_IFS | |
8886 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8887 | for ac_exec_ext in '' $ac_executable_extensions; do |
8888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8889 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8891 | break 2 |
8892 | fi | |
8893 | done | |
81ecdfbb RW |
8894 | done |
8895 | IFS=$as_save_IFS | |
c6b750e1 | 8896 | |
859789af AC |
8897 | fi |
8898 | fi | |
c6b750e1 | 8899 | NM=$ac_cv_prog_NM |
05cbd757 | 8900 | if test -n "$NM"; then |
81ecdfbb RW |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8902 | $as_echo "$NM" >&6; } | |
859789af | 8903 | else |
81ecdfbb RW |
8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8905 | $as_echo "no" >&6; } | |
859789af | 8906 | fi |
c6b750e1 | 8907 | |
81ecdfbb | 8908 | |
05cbd757 | 8909 | fi |
9a819804 AO |
8910 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8911 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8912 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8914 | $as_echo_n "checking for $ac_word... " >&6; } | |
8915 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8916 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8917 | else |
8918 | if test -n "$NM"; then | |
8919 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8920 | else | |
8921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8922 | for as_dir in $PATH | |
8923 | do | |
8924 | IFS=$as_save_IFS | |
8925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8926 | for ac_exec_ext in '' $ac_executable_extensions; do |
8927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8928 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8930 | break 2 |
8931 | fi | |
8932 | done | |
81ecdfbb RW |
8933 | done |
8934 | IFS=$as_save_IFS | |
9a819804 AO |
8935 | |
8936 | fi | |
8937 | fi | |
8938 | NM=$ac_cv_prog_NM | |
8939 | if test -n "$NM"; then | |
81ecdfbb RW |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8941 | $as_echo "$NM" >&6; } | |
9a819804 | 8942 | else |
81ecdfbb RW |
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8944 | $as_echo "no" >&6; } | |
9a819804 AO |
8945 | fi |
8946 | ||
81ecdfbb | 8947 | |
9a819804 AO |
8948 | fi |
8949 | test -n "$ac_cv_prog_NM" && break | |
8950 | done | |
8951 | ||
8952 | if test -z "$ac_cv_prog_NM" ; then | |
8953 | set dummy nm | |
8954 | if test $build = $host ; then | |
8955 | NM="$2" | |
8956 | else | |
8957 | NM="${ncn_tool_prefix}$2" | |
8958 | fi | |
8959 | fi | |
8960 | ||
8961 | ||
8962 | ||
8963 | if test -n "$RANLIB"; then | |
8964 | ac_cv_prog_RANLIB=$RANLIB | |
8965 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8966 | RANLIB=$ac_cv_prog_RANLIB | |
8967 | fi | |
8968 | ||
8969 | if test -n "$ac_cv_prog_RANLIB"; then | |
8970 | for ncn_progname in ranlib; do | |
8971 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8972 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8974 | $as_echo_n "checking for $ac_word... " >&6; } | |
8975 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8976 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8977 | else |
8978 | if test -n "$RANLIB"; then | |
8979 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8980 | else | |
8981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8982 | for as_dir in $PATH | |
8983 | do | |
8984 | IFS=$as_save_IFS | |
8985 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8986 | for ac_exec_ext in '' $ac_executable_extensions; do |
8987 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8988 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8990 | break 2 |
8991 | fi | |
8992 | done | |
81ecdfbb RW |
8993 | done |
8994 | IFS=$as_save_IFS | |
9a819804 AO |
8995 | |
8996 | fi | |
8997 | fi | |
8998 | RANLIB=$ac_cv_prog_RANLIB | |
8999 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9001 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9002 | else |
81ecdfbb RW |
9003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9004 | $as_echo "no" >&6; } | |
9a819804 AO |
9005 | fi |
9006 | ||
81ecdfbb | 9007 | |
9a819804 AO |
9008 | done |
9009 | fi | |
859789af | 9010 | |
9a819804 | 9011 | for ncn_progname in ranlib; do |
05cbd757 PB |
9012 | if test -n "$ncn_tool_prefix"; then |
9013 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9014 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9016 | $as_echo_n "checking for $ac_word... " >&6; } | |
9017 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9018 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9019 | else |
9020 | if test -n "$RANLIB"; then | |
9021 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9022 | else | |
c6b750e1 DJ |
9023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9024 | for as_dir in $PATH | |
9025 | do | |
9026 | IFS=$as_save_IFS | |
9027 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9028 | for ac_exec_ext in '' $ac_executable_extensions; do |
9029 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9030 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9031 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9032 | break 2 |
9033 | fi | |
9034 | done | |
81ecdfbb RW |
9035 | done |
9036 | IFS=$as_save_IFS | |
c6b750e1 | 9037 | |
859789af AC |
9038 | fi |
9039 | fi | |
c6b750e1 | 9040 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9041 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9043 | $as_echo "$RANLIB" >&6; } | |
859789af | 9044 | else |
81ecdfbb RW |
9045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9046 | $as_echo "no" >&6; } | |
859789af AC |
9047 | fi |
9048 | ||
81ecdfbb | 9049 | |
05cbd757 PB |
9050 | fi |
9051 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9052 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9053 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9055 | $as_echo_n "checking for $ac_word... " >&6; } | |
9056 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9057 | $as_echo_n "(cached) " >&6 | |
859789af | 9058 | else |
05cbd757 PB |
9059 | if test -n "$RANLIB"; then |
9060 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9061 | else |
c6b750e1 DJ |
9062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9063 | for as_dir in $PATH | |
9064 | do | |
9065 | IFS=$as_save_IFS | |
9066 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9067 | for ac_exec_ext in '' $ac_executable_extensions; do |
9068 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9069 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9071 | break 2 |
9072 | fi | |
9073 | done | |
81ecdfbb RW |
9074 | done |
9075 | IFS=$as_save_IFS | |
c6b750e1 | 9076 | |
859789af AC |
9077 | fi |
9078 | fi | |
c6b750e1 | 9079 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9080 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9082 | $as_echo "$RANLIB" >&6; } | |
859789af | 9083 | else |
81ecdfbb RW |
9084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9085 | $as_echo "no" >&6; } | |
859789af | 9086 | fi |
c6b750e1 | 9087 | |
81ecdfbb | 9088 | |
859789af | 9089 | fi |
05cbd757 PB |
9090 | test -n "$ac_cv_prog_RANLIB" && break |
9091 | done | |
9092 | ||
9093 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9094 | RANLIB="true" |
859789af AC |
9095 | fi |
9096 | ||
9a819804 AO |
9097 | |
9098 | ||
9099 | if test -n "$STRIP"; then | |
9100 | ac_cv_prog_STRIP=$STRIP | |
9101 | elif test -n "$ac_cv_prog_STRIP"; then | |
9102 | STRIP=$ac_cv_prog_STRIP | |
9103 | fi | |
9104 | ||
9105 | if test -n "$ac_cv_prog_STRIP"; then | |
9106 | for ncn_progname in strip; do | |
9107 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9108 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9110 | $as_echo_n "checking for $ac_word... " >&6; } | |
9111 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9112 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9113 | else |
9114 | if test -n "$STRIP"; then | |
9115 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9116 | else | |
9117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9118 | for as_dir in $PATH | |
9119 | do | |
9120 | IFS=$as_save_IFS | |
9121 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9122 | for ac_exec_ext in '' $ac_executable_extensions; do |
9123 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9124 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9125 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9126 | break 2 |
9127 | fi | |
9128 | done | |
81ecdfbb RW |
9129 | done |
9130 | IFS=$as_save_IFS | |
9a819804 AO |
9131 | |
9132 | fi | |
9133 | fi | |
9134 | STRIP=$ac_cv_prog_STRIP | |
9135 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9137 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9138 | else |
81ecdfbb RW |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9140 | $as_echo "no" >&6; } | |
9a819804 AO |
9141 | fi |
9142 | ||
81ecdfbb | 9143 | |
9a819804 AO |
9144 | done |
9145 | fi | |
9146 | ||
9147 | for ncn_progname in strip; do | |
be01d343 PB |
9148 | if test -n "$ncn_tool_prefix"; then |
9149 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9150 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9152 | $as_echo_n "checking for $ac_word... " >&6; } | |
9153 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9154 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9155 | else |
9156 | if test -n "$STRIP"; then | |
9157 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9158 | else | |
c6b750e1 DJ |
9159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9160 | for as_dir in $PATH | |
9161 | do | |
9162 | IFS=$as_save_IFS | |
9163 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9164 | for ac_exec_ext in '' $ac_executable_extensions; do |
9165 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9166 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9168 | break 2 |
9169 | fi | |
9170 | done | |
81ecdfbb RW |
9171 | done |
9172 | IFS=$as_save_IFS | |
c6b750e1 | 9173 | |
be01d343 PB |
9174 | fi |
9175 | fi | |
c6b750e1 | 9176 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9177 | if test -n "$STRIP"; then |
81ecdfbb RW |
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9179 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9180 | else |
81ecdfbb RW |
9181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9182 | $as_echo "no" >&6; } | |
be01d343 PB |
9183 | fi |
9184 | ||
81ecdfbb | 9185 | |
be01d343 PB |
9186 | fi |
9187 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9188 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9189 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9191 | $as_echo_n "checking for $ac_word... " >&6; } | |
9192 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9193 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9194 | else |
9195 | if test -n "$STRIP"; then | |
9196 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9197 | else | |
c6b750e1 DJ |
9198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9199 | for as_dir in $PATH | |
9200 | do | |
9201 | IFS=$as_save_IFS | |
9202 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9203 | for ac_exec_ext in '' $ac_executable_extensions; do |
9204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9205 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9207 | break 2 |
9208 | fi | |
9209 | done | |
81ecdfbb RW |
9210 | done |
9211 | IFS=$as_save_IFS | |
c6b750e1 | 9212 | |
be01d343 PB |
9213 | fi |
9214 | fi | |
c6b750e1 | 9215 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9216 | if test -n "$STRIP"; then |
81ecdfbb RW |
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9218 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9219 | else |
81ecdfbb RW |
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9221 | $as_echo "no" >&6; } | |
be01d343 | 9222 | fi |
c6b750e1 | 9223 | |
81ecdfbb | 9224 | |
be01d343 PB |
9225 | fi |
9226 | test -n "$ac_cv_prog_STRIP" && break | |
9227 | done | |
9228 | ||
9229 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9230 | STRIP="true" |
be01d343 PB |
9231 | fi |
9232 | ||
9a819804 AO |
9233 | |
9234 | ||
9235 | if test -n "$WINDRES"; then | |
9236 | ac_cv_prog_WINDRES=$WINDRES | |
9237 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9238 | WINDRES=$ac_cv_prog_WINDRES | |
9239 | fi | |
9240 | ||
9241 | if test -n "$ac_cv_prog_WINDRES"; then | |
9242 | for ncn_progname in windres; do | |
9243 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9244 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9246 | $as_echo_n "checking for $ac_word... " >&6; } | |
9247 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9248 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9249 | else |
9250 | if test -n "$WINDRES"; then | |
9251 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9252 | else | |
9253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9254 | for as_dir in $PATH | |
9255 | do | |
9256 | IFS=$as_save_IFS | |
9257 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9258 | for ac_exec_ext in '' $ac_executable_extensions; do |
9259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9260 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9262 | break 2 |
9263 | fi | |
9264 | done | |
81ecdfbb RW |
9265 | done |
9266 | IFS=$as_save_IFS | |
9a819804 AO |
9267 | |
9268 | fi | |
9269 | fi | |
9270 | WINDRES=$ac_cv_prog_WINDRES | |
9271 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9273 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9274 | else |
81ecdfbb RW |
9275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9276 | $as_echo "no" >&6; } | |
9a819804 AO |
9277 | fi |
9278 | ||
81ecdfbb | 9279 | |
9a819804 AO |
9280 | done |
9281 | fi | |
9282 | ||
9283 | for ncn_progname in windres; do | |
05cbd757 PB |
9284 | if test -n "$ncn_tool_prefix"; then |
9285 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9286 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9288 | $as_echo_n "checking for $ac_word... " >&6; } | |
9289 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9290 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9291 | else |
9292 | if test -n "$WINDRES"; then | |
9293 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9294 | else | |
c6b750e1 DJ |
9295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9296 | for as_dir in $PATH | |
9297 | do | |
9298 | IFS=$as_save_IFS | |
9299 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9300 | for ac_exec_ext in '' $ac_executable_extensions; do |
9301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9302 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9304 | break 2 |
9305 | fi | |
9306 | done | |
81ecdfbb RW |
9307 | done |
9308 | IFS=$as_save_IFS | |
c6b750e1 | 9309 | |
859789af AC |
9310 | fi |
9311 | fi | |
c6b750e1 | 9312 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9313 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9315 | $as_echo "$WINDRES" >&6; } | |
859789af | 9316 | else |
81ecdfbb RW |
9317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9318 | $as_echo "no" >&6; } | |
859789af AC |
9319 | fi |
9320 | ||
81ecdfbb | 9321 | |
05cbd757 PB |
9322 | fi |
9323 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9324 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9325 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9327 | $as_echo_n "checking for $ac_word... " >&6; } | |
9328 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9329 | $as_echo_n "(cached) " >&6 | |
859789af | 9330 | else |
05cbd757 PB |
9331 | if test -n "$WINDRES"; then |
9332 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9333 | else |
c6b750e1 DJ |
9334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9335 | for as_dir in $PATH | |
9336 | do | |
9337 | IFS=$as_save_IFS | |
9338 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9339 | for ac_exec_ext in '' $ac_executable_extensions; do |
9340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9341 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9342 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9343 | break 2 |
9344 | fi | |
9345 | done | |
81ecdfbb RW |
9346 | done |
9347 | IFS=$as_save_IFS | |
c6b750e1 | 9348 | |
859789af AC |
9349 | fi |
9350 | fi | |
c6b750e1 | 9351 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9352 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9354 | $as_echo "$WINDRES" >&6; } | |
859789af | 9355 | else |
81ecdfbb RW |
9356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9357 | $as_echo "no" >&6; } | |
859789af | 9358 | fi |
c6b750e1 | 9359 | |
81ecdfbb | 9360 | |
05cbd757 PB |
9361 | fi |
9362 | test -n "$ac_cv_prog_WINDRES" && break | |
9363 | done | |
9364 | ||
9365 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9366 | set dummy windres | |
9367 | if test $build = $host ; then | |
9368 | WINDRES="$2" | |
859789af | 9369 | else |
05cbd757 | 9370 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9371 | fi |
859789af AC |
9372 | fi |
9373 | ||
9a819804 AO |
9374 | |
9375 | ||
0c24b341 NC |
9376 | if test -n "$WINDMC"; then |
9377 | ac_cv_prog_WINDMC=$WINDMC | |
9378 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9379 | WINDMC=$ac_cv_prog_WINDMC | |
9380 | fi | |
9381 | ||
9382 | if test -n "$ac_cv_prog_WINDMC"; then | |
9383 | for ncn_progname in windmc; do | |
9384 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9385 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9387 | $as_echo_n "checking for $ac_word... " >&6; } | |
9388 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9389 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9390 | else |
9391 | if test -n "$WINDMC"; then | |
9392 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9393 | else | |
9394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9395 | for as_dir in $PATH | |
9396 | do | |
9397 | IFS=$as_save_IFS | |
9398 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9399 | for ac_exec_ext in '' $ac_executable_extensions; do |
9400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9401 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9403 | break 2 |
9404 | fi | |
9405 | done | |
81ecdfbb RW |
9406 | done |
9407 | IFS=$as_save_IFS | |
0c24b341 NC |
9408 | |
9409 | fi | |
9410 | fi | |
9411 | WINDMC=$ac_cv_prog_WINDMC | |
9412 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9414 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9415 | else |
81ecdfbb RW |
9416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9417 | $as_echo "no" >&6; } | |
0c24b341 NC |
9418 | fi |
9419 | ||
81ecdfbb | 9420 | |
0c24b341 NC |
9421 | done |
9422 | fi | |
9423 | ||
9424 | for ncn_progname in windmc; do | |
9425 | if test -n "$ncn_tool_prefix"; then | |
9426 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9427 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9429 | $as_echo_n "checking for $ac_word... " >&6; } | |
9430 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9431 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9432 | else |
9433 | if test -n "$WINDMC"; then | |
9434 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9435 | else | |
9436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9437 | for as_dir in $PATH | |
9438 | do | |
9439 | IFS=$as_save_IFS | |
9440 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9441 | for ac_exec_ext in '' $ac_executable_extensions; do |
9442 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9443 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9445 | break 2 |
9446 | fi | |
9447 | done | |
81ecdfbb RW |
9448 | done |
9449 | IFS=$as_save_IFS | |
0c24b341 NC |
9450 | |
9451 | fi | |
9452 | fi | |
9453 | WINDMC=$ac_cv_prog_WINDMC | |
9454 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9456 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9457 | else |
81ecdfbb RW |
9458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9459 | $as_echo "no" >&6; } | |
0c24b341 NC |
9460 | fi |
9461 | ||
81ecdfbb | 9462 | |
0c24b341 NC |
9463 | fi |
9464 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9465 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9466 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9468 | $as_echo_n "checking for $ac_word... " >&6; } | |
9469 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9470 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9471 | else |
9472 | if test -n "$WINDMC"; then | |
9473 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9474 | else | |
9475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9476 | for as_dir in $PATH | |
9477 | do | |
9478 | IFS=$as_save_IFS | |
9479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9480 | for ac_exec_ext in '' $ac_executable_extensions; do |
9481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9482 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9484 | break 2 |
9485 | fi | |
9486 | done | |
81ecdfbb RW |
9487 | done |
9488 | IFS=$as_save_IFS | |
0c24b341 NC |
9489 | |
9490 | fi | |
9491 | fi | |
9492 | WINDMC=$ac_cv_prog_WINDMC | |
9493 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9495 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9496 | else |
81ecdfbb RW |
9497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9498 | $as_echo "no" >&6; } | |
0c24b341 NC |
9499 | fi |
9500 | ||
81ecdfbb | 9501 | |
0c24b341 NC |
9502 | fi |
9503 | test -n "$ac_cv_prog_WINDMC" && break | |
9504 | done | |
9505 | ||
9506 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9507 | set dummy windmc | |
9508 | if test $build = $host ; then | |
9509 | WINDMC="$2" | |
9510 | else | |
9511 | WINDMC="${ncn_tool_prefix}$2" | |
9512 | fi | |
9513 | fi | |
9514 | ||
9515 | ||
9516 | ||
9a819804 AO |
9517 | if test -n "$OBJCOPY"; then |
9518 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9519 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9520 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9521 | fi | |
9522 | ||
9523 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9524 | for ncn_progname in objcopy; do | |
9525 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9526 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9528 | $as_echo_n "checking for $ac_word... " >&6; } | |
9529 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9530 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9531 | else |
9532 | if test -n "$OBJCOPY"; then | |
9533 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9534 | else | |
9535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9536 | for as_dir in $PATH | |
9537 | do | |
9538 | IFS=$as_save_IFS | |
9539 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9540 | for ac_exec_ext in '' $ac_executable_extensions; do |
9541 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9542 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9544 | break 2 |
9545 | fi | |
9546 | done | |
81ecdfbb RW |
9547 | done |
9548 | IFS=$as_save_IFS | |
9a819804 AO |
9549 | |
9550 | fi | |
9551 | fi | |
9552 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9553 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9555 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9556 | else |
81ecdfbb RW |
9557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9558 | $as_echo "no" >&6; } | |
9a819804 AO |
9559 | fi |
9560 | ||
81ecdfbb | 9561 | |
9a819804 AO |
9562 | done |
9563 | fi | |
9564 | ||
9565 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9566 | if test -n "$ncn_tool_prefix"; then |
9567 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9568 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9570 | $as_echo_n "checking for $ac_word... " >&6; } | |
9571 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9572 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9573 | else |
9574 | if test -n "$OBJCOPY"; then | |
9575 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9576 | else | |
c6b750e1 DJ |
9577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9578 | for as_dir in $PATH | |
9579 | do | |
9580 | IFS=$as_save_IFS | |
9581 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9582 | for ac_exec_ext in '' $ac_executable_extensions; do |
9583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9584 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9586 | break 2 |
9587 | fi | |
9588 | done | |
81ecdfbb RW |
9589 | done |
9590 | IFS=$as_save_IFS | |
c6b750e1 | 9591 | |
859789af AC |
9592 | fi |
9593 | fi | |
c6b750e1 | 9594 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9595 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9597 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9598 | else |
81ecdfbb RW |
9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9600 | $as_echo "no" >&6; } | |
859789af AC |
9601 | fi |
9602 | ||
81ecdfbb | 9603 | |
05cbd757 PB |
9604 | fi |
9605 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9606 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9607 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9609 | $as_echo_n "checking for $ac_word... " >&6; } | |
9610 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9611 | $as_echo_n "(cached) " >&6 | |
859789af | 9612 | else |
05cbd757 PB |
9613 | if test -n "$OBJCOPY"; then |
9614 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9615 | else |
c6b750e1 DJ |
9616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9617 | for as_dir in $PATH | |
9618 | do | |
9619 | IFS=$as_save_IFS | |
9620 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9621 | for ac_exec_ext in '' $ac_executable_extensions; do |
9622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9623 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9625 | break 2 |
9626 | fi | |
9627 | done | |
81ecdfbb RW |
9628 | done |
9629 | IFS=$as_save_IFS | |
c6b750e1 | 9630 | |
859789af AC |
9631 | fi |
9632 | fi | |
c6b750e1 | 9633 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9634 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9636 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9637 | else |
81ecdfbb RW |
9638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9639 | $as_echo "no" >&6; } | |
859789af | 9640 | fi |
c6b750e1 | 9641 | |
81ecdfbb | 9642 | |
05cbd757 PB |
9643 | fi |
9644 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9645 | done | |
9646 | ||
9647 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9648 | set dummy objcopy | |
9649 | if test $build = $host ; then | |
9650 | OBJCOPY="$2" | |
859789af | 9651 | else |
05cbd757 | 9652 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9653 | fi |
859789af AC |
9654 | fi |
9655 | ||
9a819804 AO |
9656 | |
9657 | ||
9658 | if test -n "$OBJDUMP"; then | |
9659 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9660 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9661 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9662 | fi | |
9663 | ||
9664 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9665 | for ncn_progname in objdump; do | |
9666 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9667 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9669 | $as_echo_n "checking for $ac_word... " >&6; } | |
9670 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9671 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9672 | else |
9673 | if test -n "$OBJDUMP"; then | |
9674 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9675 | else | |
9676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9677 | for as_dir in $PATH | |
9678 | do | |
9679 | IFS=$as_save_IFS | |
9680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9681 | for ac_exec_ext in '' $ac_executable_extensions; do |
9682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9683 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9685 | break 2 |
9686 | fi | |
9687 | done | |
81ecdfbb RW |
9688 | done |
9689 | IFS=$as_save_IFS | |
9a819804 AO |
9690 | |
9691 | fi | |
9692 | fi | |
9693 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9694 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9696 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9697 | else |
81ecdfbb RW |
9698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9699 | $as_echo "no" >&6; } | |
9a819804 AO |
9700 | fi |
9701 | ||
81ecdfbb | 9702 | |
9a819804 AO |
9703 | done |
9704 | fi | |
9705 | ||
9706 | for ncn_progname in objdump; do | |
05cbd757 PB |
9707 | if test -n "$ncn_tool_prefix"; then |
9708 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9709 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9711 | $as_echo_n "checking for $ac_word... " >&6; } | |
9712 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9713 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9714 | else |
9715 | if test -n "$OBJDUMP"; then | |
9716 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9717 | else | |
c6b750e1 DJ |
9718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9719 | for as_dir in $PATH | |
9720 | do | |
9721 | IFS=$as_save_IFS | |
9722 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9723 | for ac_exec_ext in '' $ac_executable_extensions; do |
9724 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9725 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9726 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9727 | break 2 |
9728 | fi | |
9729 | done | |
81ecdfbb RW |
9730 | done |
9731 | IFS=$as_save_IFS | |
c6b750e1 | 9732 | |
859789af AC |
9733 | fi |
9734 | fi | |
c6b750e1 | 9735 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9736 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9738 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9739 | else |
81ecdfbb RW |
9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9741 | $as_echo "no" >&6; } | |
859789af AC |
9742 | fi |
9743 | ||
81ecdfbb | 9744 | |
05cbd757 PB |
9745 | fi |
9746 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9747 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9748 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9750 | $as_echo_n "checking for $ac_word... " >&6; } | |
9751 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9752 | $as_echo_n "(cached) " >&6 | |
859789af | 9753 | else |
05cbd757 PB |
9754 | if test -n "$OBJDUMP"; then |
9755 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9756 | else |
c6b750e1 DJ |
9757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9758 | for as_dir in $PATH | |
9759 | do | |
9760 | IFS=$as_save_IFS | |
9761 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9762 | for ac_exec_ext in '' $ac_executable_extensions; do |
9763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9764 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9766 | break 2 |
9767 | fi | |
9768 | done | |
81ecdfbb RW |
9769 | done |
9770 | IFS=$as_save_IFS | |
c6b750e1 | 9771 | |
859789af AC |
9772 | fi |
9773 | fi | |
c6b750e1 | 9774 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9775 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9777 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9778 | else |
81ecdfbb RW |
9779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9780 | $as_echo "no" >&6; } | |
859789af | 9781 | fi |
c6b750e1 | 9782 | |
81ecdfbb | 9783 | |
05cbd757 PB |
9784 | fi |
9785 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9786 | done | |
9787 | ||
9788 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9789 | set dummy objdump | |
9790 | if test $build = $host ; then | |
9791 | OBJDUMP="$2" | |
859789af | 9792 | else |
05cbd757 | 9793 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9794 | fi |
859789af AC |
9795 | fi |
9796 | ||
a0da8069 NN |
9797 | |
9798 | ||
b121d7d4 DD |
9799 | if test -n "$READELF"; then |
9800 | ac_cv_prog_READELF=$READELF | |
9801 | elif test -n "$ac_cv_prog_READELF"; then | |
9802 | READELF=$ac_cv_prog_READELF | |
9803 | fi | |
9804 | ||
9805 | if test -n "$ac_cv_prog_READELF"; then | |
9806 | for ncn_progname in readelf; do | |
9807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9808 | set dummy ${ncn_progname}; ac_word=$2 | |
9809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9810 | $as_echo_n "checking for $ac_word... " >&6; } | |
9811 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9812 | $as_echo_n "(cached) " >&6 | |
9813 | else | |
9814 | if test -n "$READELF"; then | |
9815 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9816 | else | |
9817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9818 | for as_dir in $PATH | |
9819 | do | |
9820 | IFS=$as_save_IFS | |
9821 | test -z "$as_dir" && as_dir=. | |
9822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9824 | ac_cv_prog_READELF="${ncn_progname}" | |
9825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9826 | break 2 | |
9827 | fi | |
9828 | done | |
9829 | done | |
9830 | IFS=$as_save_IFS | |
9831 | ||
9832 | fi | |
9833 | fi | |
9834 | READELF=$ac_cv_prog_READELF | |
9835 | if test -n "$READELF"; then | |
9836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9837 | $as_echo "$READELF" >&6; } | |
9838 | else | |
9839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9840 | $as_echo "no" >&6; } | |
9841 | fi | |
9842 | ||
9843 | ||
9844 | done | |
9845 | fi | |
9846 | ||
9847 | for ncn_progname in readelf; do | |
9848 | if test -n "$ncn_tool_prefix"; then | |
9849 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9850 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9852 | $as_echo_n "checking for $ac_word... " >&6; } | |
9853 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9854 | $as_echo_n "(cached) " >&6 | |
9855 | else | |
9856 | if test -n "$READELF"; then | |
9857 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9858 | else | |
9859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9860 | for as_dir in $PATH | |
9861 | do | |
9862 | IFS=$as_save_IFS | |
9863 | test -z "$as_dir" && as_dir=. | |
9864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9866 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9868 | break 2 | |
9869 | fi | |
9870 | done | |
9871 | done | |
9872 | IFS=$as_save_IFS | |
9873 | ||
9874 | fi | |
9875 | fi | |
9876 | READELF=$ac_cv_prog_READELF | |
9877 | if test -n "$READELF"; then | |
9878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9879 | $as_echo "$READELF" >&6; } | |
9880 | else | |
9881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9882 | $as_echo "no" >&6; } | |
9883 | fi | |
9884 | ||
9885 | ||
9886 | fi | |
9887 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9888 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9889 | set dummy ${ncn_progname}; ac_word=$2 | |
9890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9891 | $as_echo_n "checking for $ac_word... " >&6; } | |
9892 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9893 | $as_echo_n "(cached) " >&6 | |
9894 | else | |
9895 | if test -n "$READELF"; then | |
9896 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9897 | else | |
9898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9899 | for as_dir in $PATH | |
9900 | do | |
9901 | IFS=$as_save_IFS | |
9902 | test -z "$as_dir" && as_dir=. | |
9903 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9904 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9905 | ac_cv_prog_READELF="${ncn_progname}" | |
9906 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9907 | break 2 | |
9908 | fi | |
9909 | done | |
9910 | done | |
9911 | IFS=$as_save_IFS | |
9912 | ||
9913 | fi | |
9914 | fi | |
9915 | READELF=$ac_cv_prog_READELF | |
9916 | if test -n "$READELF"; then | |
9917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9918 | $as_echo "$READELF" >&6; } | |
9919 | else | |
9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9921 | $as_echo "no" >&6; } | |
9922 | fi | |
9923 | ||
9924 | ||
9925 | fi | |
9926 | test -n "$ac_cv_prog_READELF" && break | |
9927 | done | |
9928 | ||
9929 | if test -z "$ac_cv_prog_READELF" ; then | |
9930 | set dummy readelf | |
9931 | if test $build = $host ; then | |
9932 | READELF="$2" | |
9933 | else | |
9934 | READELF="${ncn_tool_prefix}$2" | |
9935 | fi | |
9936 | fi | |
9937 | ||
9938 | ||
9939 | ||
a0da8069 NN |
9940 | |
9941 | ||
9942 | ||
be01d343 | 9943 | # Target tools. |
c6b750e1 | 9944 | |
81ecdfbb RW |
9945 | # Check whether --with-build-time-tools was given. |
9946 | if test "${with_build_time_tools+set}" = set; then : | |
9947 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9948 | x/*) ;; |
9949 | *) | |
9950 | with_build_time_tools= | |
81ecdfbb RW |
9951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9952 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9953 | ;; |
9954 | esac | |
859789af | 9955 | else |
2429c060 | 9956 | with_build_time_tools= |
81ecdfbb RW |
9957 | fi |
9958 | ||
859789af | 9959 | |
9a819804 AO |
9960 | |
9961 | ||
9962 | if test -n "$CC_FOR_TARGET"; then | |
9963 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9964 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9965 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9966 | fi | |
9967 | ||
9968 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9969 | for ncn_progname in cc gcc; do | |
9970 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9971 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9973 | $as_echo_n "checking for $ac_word... " >&6; } | |
9974 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9975 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9976 | else |
9977 | if test -n "$CC_FOR_TARGET"; then | |
9978 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9979 | else | |
9980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9981 | for as_dir in $PATH | |
9982 | do | |
9983 | IFS=$as_save_IFS | |
9984 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9985 | for ac_exec_ext in '' $ac_executable_extensions; do |
9986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9987 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9989 | break 2 |
9990 | fi | |
9991 | done | |
81ecdfbb RW |
9992 | done |
9993 | IFS=$as_save_IFS | |
9a819804 AO |
9994 | |
9995 | fi | |
9996 | fi | |
9997 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9998 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10000 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10001 | else |
81ecdfbb RW |
10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10003 | $as_echo "no" >&6; } | |
9a819804 AO |
10004 | fi |
10005 | ||
81ecdfbb | 10006 | |
9a819804 AO |
10007 | done |
10008 | fi | |
10009 | ||
10010 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10011 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10013 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10014 | if test -x $with_build_time_tools/${ncn_progname}; then |
10015 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10017 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10018 | break |
2429c060 | 10019 | else |
81ecdfbb RW |
10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10021 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10022 | fi |
10023 | done | |
55db4b87 PB |
10024 | fi |
10025 | ||
2429c060 PB |
10026 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10027 | for ncn_progname in cc gcc; do | |
10028 | if test -n "$ncn_target_tool_prefix"; then | |
10029 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10030 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10032 | $as_echo_n "checking for $ac_word... " >&6; } | |
10033 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10034 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10035 | else |
10036 | if test -n "$CC_FOR_TARGET"; then | |
10037 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10038 | else | |
c6b750e1 DJ |
10039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10040 | for as_dir in $PATH | |
10041 | do | |
10042 | IFS=$as_save_IFS | |
10043 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10044 | for ac_exec_ext in '' $ac_executable_extensions; do |
10045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10046 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10048 | break 2 |
10049 | fi | |
10050 | done | |
81ecdfbb RW |
10051 | done |
10052 | IFS=$as_save_IFS | |
c6b750e1 | 10053 | |
55db4b87 PB |
10054 | fi |
10055 | fi | |
c6b750e1 | 10056 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10057 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10059 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10060 | else |
81ecdfbb RW |
10061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10062 | $as_echo "no" >&6; } | |
55db4b87 PB |
10063 | fi |
10064 | ||
81ecdfbb | 10065 | |
2429c060 PB |
10066 | fi |
10067 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10068 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10069 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10071 | $as_echo_n "checking for $ac_word... " >&6; } | |
10072 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10073 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10074 | else |
05cbd757 PB |
10075 | if test -n "$CC_FOR_TARGET"; then |
10076 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10077 | else |
c6b750e1 DJ |
10078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10079 | for as_dir in $PATH | |
10080 | do | |
10081 | IFS=$as_save_IFS | |
10082 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10083 | for ac_exec_ext in '' $ac_executable_extensions; do |
10084 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10085 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10087 | break 2 |
10088 | fi | |
10089 | done | |
81ecdfbb RW |
10090 | done |
10091 | IFS=$as_save_IFS | |
c6b750e1 | 10092 | |
55db4b87 PB |
10093 | fi |
10094 | fi | |
c6b750e1 | 10095 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10096 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10098 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10099 | else |
81ecdfbb RW |
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10101 | $as_echo "no" >&6; } | |
55db4b87 | 10102 | fi |
c6b750e1 | 10103 | |
81ecdfbb | 10104 | |
2429c060 PB |
10105 | fi |
10106 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10107 | done | |
10108 | fi | |
c6b750e1 | 10109 | |
05cbd757 PB |
10110 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10111 | set dummy cc gcc | |
10112 | if test $build = $target ; then | |
10113 | CC_FOR_TARGET="$2" | |
55db4b87 | 10114 | else |
05cbd757 | 10115 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10116 | fi |
d3f5afc4 MS |
10117 | else |
10118 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10119 | fi |
10120 | ||
9a819804 AO |
10121 | |
10122 | ||
10123 | if test -n "$CXX_FOR_TARGET"; then | |
10124 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10125 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10126 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10127 | fi | |
10128 | ||
10129 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10130 | for ncn_progname in c++ g++ cxx gxx; do | |
10131 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10132 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10134 | $as_echo_n "checking for $ac_word... " >&6; } | |
10135 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10136 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10137 | else |
10138 | if test -n "$CXX_FOR_TARGET"; then | |
10139 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10140 | else | |
10141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10142 | for as_dir in $PATH | |
10143 | do | |
10144 | IFS=$as_save_IFS | |
10145 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10146 | for ac_exec_ext in '' $ac_executable_extensions; do |
10147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10148 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10150 | break 2 |
10151 | fi | |
10152 | done | |
81ecdfbb RW |
10153 | done |
10154 | IFS=$as_save_IFS | |
9a819804 AO |
10155 | |
10156 | fi | |
10157 | fi | |
10158 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10159 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10161 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10162 | else |
81ecdfbb RW |
10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10164 | $as_echo "no" >&6; } | |
9a819804 AO |
10165 | fi |
10166 | ||
81ecdfbb | 10167 | |
9a819804 AO |
10168 | done |
10169 | fi | |
10170 | ||
10171 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10172 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10174 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10175 | if test -x $with_build_time_tools/${ncn_progname}; then |
10176 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10178 | $as_echo "yes" >&6; } | |
2429c060 PB |
10179 | break |
10180 | else | |
81ecdfbb RW |
10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10182 | $as_echo "no" >&6; } | |
2429c060 PB |
10183 | fi |
10184 | done | |
10185 | fi | |
10186 | ||
10187 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10188 | for ncn_progname in c++ g++ cxx gxx; do | |
10189 | if test -n "$ncn_target_tool_prefix"; then | |
10190 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10191 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10193 | $as_echo_n "checking for $ac_word... " >&6; } | |
10194 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10195 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10196 | else |
10197 | if test -n "$CXX_FOR_TARGET"; then | |
10198 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10199 | else | |
c6b750e1 DJ |
10200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10201 | for as_dir in $PATH | |
10202 | do | |
10203 | IFS=$as_save_IFS | |
10204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10205 | for ac_exec_ext in '' $ac_executable_extensions; do |
10206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10207 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10209 | break 2 |
10210 | fi | |
10211 | done | |
81ecdfbb RW |
10212 | done |
10213 | IFS=$as_save_IFS | |
c6b750e1 | 10214 | |
55db4b87 PB |
10215 | fi |
10216 | fi | |
c6b750e1 | 10217 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10218 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10220 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10221 | else |
81ecdfbb RW |
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10223 | $as_echo "no" >&6; } | |
55db4b87 PB |
10224 | fi |
10225 | ||
81ecdfbb | 10226 | |
2429c060 PB |
10227 | fi |
10228 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10229 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10230 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10232 | $as_echo_n "checking for $ac_word... " >&6; } | |
10233 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10234 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10235 | else |
05cbd757 PB |
10236 | if test -n "$CXX_FOR_TARGET"; then |
10237 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10238 | else |
c6b750e1 DJ |
10239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10240 | for as_dir in $PATH | |
10241 | do | |
10242 | IFS=$as_save_IFS | |
10243 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10244 | for ac_exec_ext in '' $ac_executable_extensions; do |
10245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10246 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10247 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10248 | break 2 |
10249 | fi | |
10250 | done | |
81ecdfbb RW |
10251 | done |
10252 | IFS=$as_save_IFS | |
c6b750e1 | 10253 | |
55db4b87 PB |
10254 | fi |
10255 | fi | |
c6b750e1 | 10256 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10257 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10259 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10260 | else |
81ecdfbb RW |
10261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10262 | $as_echo "no" >&6; } | |
55db4b87 | 10263 | fi |
c6b750e1 | 10264 | |
81ecdfbb | 10265 | |
2429c060 PB |
10266 | fi |
10267 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10268 | done | |
10269 | fi | |
c6b750e1 | 10270 | |
05cbd757 PB |
10271 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10272 | set dummy c++ g++ cxx gxx | |
10273 | if test $build = $target ; then | |
10274 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10275 | else |
05cbd757 | 10276 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10277 | fi |
d3f5afc4 MS |
10278 | else |
10279 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10280 | fi |
10281 | ||
9a819804 AO |
10282 | |
10283 | ||
10284 | if test -n "$GCC_FOR_TARGET"; then | |
10285 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10286 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10287 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10288 | fi | |
10289 | ||
10290 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10291 | for ncn_progname in gcc; do | |
10292 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10293 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10295 | $as_echo_n "checking for $ac_word... " >&6; } | |
10296 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10297 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10298 | else |
10299 | if test -n "$GCC_FOR_TARGET"; then | |
10300 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10301 | else | |
10302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10303 | for as_dir in $PATH | |
10304 | do | |
10305 | IFS=$as_save_IFS | |
10306 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10307 | for ac_exec_ext in '' $ac_executable_extensions; do |
10308 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10309 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10310 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10311 | break 2 |
10312 | fi | |
10313 | done | |
81ecdfbb RW |
10314 | done |
10315 | IFS=$as_save_IFS | |
9a819804 AO |
10316 | |
10317 | fi | |
10318 | fi | |
10319 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10320 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10322 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10323 | else |
81ecdfbb RW |
10324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10325 | $as_echo "no" >&6; } | |
9a819804 AO |
10326 | fi |
10327 | ||
81ecdfbb | 10328 | |
9a819804 AO |
10329 | done |
10330 | fi | |
10331 | ||
10332 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10333 | for ncn_progname in gcc; do |
81ecdfbb RW |
10334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10335 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10336 | if test -x $with_build_time_tools/${ncn_progname}; then |
10337 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10339 | $as_echo "yes" >&6; } | |
2429c060 PB |
10340 | break |
10341 | else | |
81ecdfbb RW |
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10343 | $as_echo "no" >&6; } | |
2429c060 PB |
10344 | fi |
10345 | done | |
10346 | fi | |
10347 | ||
10348 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10349 | for ncn_progname in gcc; do | |
10350 | if test -n "$ncn_target_tool_prefix"; then | |
10351 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10352 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10354 | $as_echo_n "checking for $ac_word... " >&6; } | |
10355 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10356 | $as_echo_n "(cached) " >&6 | |
859789af | 10357 | else |
2429c060 PB |
10358 | if test -n "$GCC_FOR_TARGET"; then |
10359 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10360 | else |
c6b750e1 DJ |
10361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10362 | for as_dir in $PATH | |
10363 | do | |
10364 | IFS=$as_save_IFS | |
10365 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10366 | for ac_exec_ext in '' $ac_executable_extensions; do |
10367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10368 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10370 | break 2 |
10371 | fi | |
10372 | done | |
81ecdfbb RW |
10373 | done |
10374 | IFS=$as_save_IFS | |
c6b750e1 | 10375 | |
55db4b87 PB |
10376 | fi |
10377 | fi | |
c6b750e1 | 10378 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10379 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10381 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10382 | else |
81ecdfbb RW |
10383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10384 | $as_echo "no" >&6; } | |
55db4b87 PB |
10385 | fi |
10386 | ||
81ecdfbb | 10387 | |
2429c060 PB |
10388 | fi |
10389 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10390 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10391 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10393 | $as_echo_n "checking for $ac_word... " >&6; } | |
10394 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10395 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10396 | else |
05cbd757 PB |
10397 | if test -n "$GCC_FOR_TARGET"; then |
10398 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10399 | else |
c6b750e1 DJ |
10400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10401 | for as_dir in $PATH | |
10402 | do | |
10403 | IFS=$as_save_IFS | |
10404 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10405 | for ac_exec_ext in '' $ac_executable_extensions; do |
10406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10407 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10409 | break 2 |
10410 | fi | |
10411 | done | |
81ecdfbb RW |
10412 | done |
10413 | IFS=$as_save_IFS | |
c6b750e1 | 10414 | |
55db4b87 PB |
10415 | fi |
10416 | fi | |
c6b750e1 | 10417 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10418 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10420 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10421 | else |
81ecdfbb RW |
10422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10423 | $as_echo "no" >&6; } | |
55db4b87 | 10424 | fi |
c6b750e1 | 10425 | |
81ecdfbb | 10426 | |
2429c060 PB |
10427 | fi |
10428 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10429 | done | |
10430 | fi | |
c6b750e1 | 10431 | |
05cbd757 PB |
10432 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10433 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10434 | else |
10435 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10436 | fi |
10437 | ||
9a819804 AO |
10438 | |
10439 | ||
10440 | if test -n "$GCJ_FOR_TARGET"; then | |
10441 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10442 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10443 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10444 | fi | |
10445 | ||
10446 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10447 | for ncn_progname in gcj; do | |
10448 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10449 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10451 | $as_echo_n "checking for $ac_word... " >&6; } | |
10452 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10453 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10454 | else |
10455 | if test -n "$GCJ_FOR_TARGET"; then | |
10456 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10457 | else | |
10458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10459 | for as_dir in $PATH | |
10460 | do | |
10461 | IFS=$as_save_IFS | |
10462 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10463 | for ac_exec_ext in '' $ac_executable_extensions; do |
10464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10465 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10467 | break 2 |
10468 | fi | |
10469 | done | |
81ecdfbb RW |
10470 | done |
10471 | IFS=$as_save_IFS | |
9a819804 AO |
10472 | |
10473 | fi | |
10474 | fi | |
10475 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10476 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10478 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10479 | else |
81ecdfbb RW |
10480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10481 | $as_echo "no" >&6; } | |
9a819804 AO |
10482 | fi |
10483 | ||
81ecdfbb | 10484 | |
9a819804 AO |
10485 | done |
10486 | fi | |
10487 | ||
10488 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10489 | for ncn_progname in gcj; do |
81ecdfbb RW |
10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10491 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10492 | if test -x $with_build_time_tools/${ncn_progname}; then |
10493 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10495 | $as_echo "yes" >&6; } | |
2429c060 PB |
10496 | break |
10497 | else | |
81ecdfbb RW |
10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10499 | $as_echo "no" >&6; } | |
2429c060 PB |
10500 | fi |
10501 | done | |
10502 | fi | |
10503 | ||
10504 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10505 | for ncn_progname in gcj; do | |
10506 | if test -n "$ncn_target_tool_prefix"; then | |
10507 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10508 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10510 | $as_echo_n "checking for $ac_word... " >&6; } | |
10511 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10512 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10513 | else |
10514 | if test -n "$GCJ_FOR_TARGET"; then | |
10515 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10516 | else | |
c6b750e1 DJ |
10517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10518 | for as_dir in $PATH | |
10519 | do | |
10520 | IFS=$as_save_IFS | |
10521 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10522 | for ac_exec_ext in '' $ac_executable_extensions; do |
10523 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10524 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10525 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10526 | break 2 |
10527 | fi | |
10528 | done | |
81ecdfbb RW |
10529 | done |
10530 | IFS=$as_save_IFS | |
c6b750e1 | 10531 | |
55db4b87 PB |
10532 | fi |
10533 | fi | |
9a819804 AO |
10534 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10535 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10537 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10538 | else |
81ecdfbb RW |
10539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10540 | $as_echo "no" >&6; } | |
9a819804 AO |
10541 | fi |
10542 | ||
81ecdfbb | 10543 | |
9a819804 AO |
10544 | fi |
10545 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10546 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10547 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10549 | $as_echo_n "checking for $ac_word... " >&6; } | |
10550 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10551 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10552 | else |
10553 | if test -n "$GCJ_FOR_TARGET"; then | |
10554 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10555 | else | |
10556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10557 | for as_dir in $PATH | |
10558 | do | |
10559 | IFS=$as_save_IFS | |
10560 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10561 | for ac_exec_ext in '' $ac_executable_extensions; do |
10562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10563 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10564 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10565 | break 2 |
10566 | fi | |
10567 | done | |
81ecdfbb RW |
10568 | done |
10569 | IFS=$as_save_IFS | |
9a819804 AO |
10570 | |
10571 | fi | |
10572 | fi | |
10573 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10574 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10576 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10577 | else |
81ecdfbb RW |
10578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10579 | $as_echo "no" >&6; } | |
9a819804 AO |
10580 | fi |
10581 | ||
81ecdfbb | 10582 | |
9a819804 AO |
10583 | fi |
10584 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10585 | done | |
10586 | fi | |
10587 | ||
10588 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10589 | set dummy gcj | |
10590 | if test $build = $target ; then | |
10591 | GCJ_FOR_TARGET="$2" | |
10592 | else | |
10593 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10594 | fi | |
d3f5afc4 MS |
10595 | else |
10596 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10597 | fi |
10598 | ||
10599 | ||
10600 | ||
10601 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10602 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10603 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10604 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10605 | fi |
10606 | ||
9a819804 AO |
10607 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10608 | for ncn_progname in gfortran; do | |
10609 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10610 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10612 | $as_echo_n "checking for $ac_word... " >&6; } | |
10613 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10614 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10615 | else |
9a819804 AO |
10616 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10617 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10618 | else |
c6b750e1 DJ |
10619 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10620 | for as_dir in $PATH | |
10621 | do | |
10622 | IFS=$as_save_IFS | |
10623 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10624 | for ac_exec_ext in '' $ac_executable_extensions; do |
10625 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10626 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10627 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10628 | break 2 |
10629 | fi | |
10630 | done | |
81ecdfbb RW |
10631 | done |
10632 | IFS=$as_save_IFS | |
c6b750e1 | 10633 | |
55db4b87 PB |
10634 | fi |
10635 | fi | |
9a819804 AO |
10636 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10637 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10639 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10640 | else |
81ecdfbb RW |
10641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10642 | $as_echo "no" >&6; } | |
55db4b87 | 10643 | fi |
c6b750e1 | 10644 | |
81ecdfbb | 10645 | |
2429c060 PB |
10646 | done |
10647 | fi | |
c6b750e1 | 10648 | |
9a819804 | 10649 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10650 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10652 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10653 | if test -x $with_build_time_tools/${ncn_progname}; then |
10654 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10656 | $as_echo "yes" >&6; } | |
2429c060 PB |
10657 | break |
10658 | else | |
81ecdfbb RW |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10660 | $as_echo "no" >&6; } | |
2429c060 PB |
10661 | fi |
10662 | done | |
10663 | fi | |
10664 | ||
10665 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10666 | for ncn_progname in gfortran; do | |
10667 | if test -n "$ncn_target_tool_prefix"; then | |
10668 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10669 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10671 | $as_echo_n "checking for $ac_word... " >&6; } | |
10672 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10673 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10674 | else |
10675 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10676 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10677 | else | |
c6b750e1 DJ |
10678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10679 | for as_dir in $PATH | |
10680 | do | |
10681 | IFS=$as_save_IFS | |
10682 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10683 | for ac_exec_ext in '' $ac_executable_extensions; do |
10684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10685 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10687 | break 2 |
10688 | fi | |
10689 | done | |
81ecdfbb RW |
10690 | done |
10691 | IFS=$as_save_IFS | |
c6b750e1 | 10692 | |
55db4b87 PB |
10693 | fi |
10694 | fi | |
c6b750e1 | 10695 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10696 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10698 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10699 | else |
81ecdfbb RW |
10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10701 | $as_echo "no" >&6; } | |
55db4b87 PB |
10702 | fi |
10703 | ||
81ecdfbb | 10704 | |
2429c060 PB |
10705 | fi |
10706 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10707 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10708 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10710 | $as_echo_n "checking for $ac_word... " >&6; } | |
10711 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10712 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10713 | else |
05cbd757 | 10714 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10715 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10716 | else | |
10717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10718 | for as_dir in $PATH | |
10719 | do | |
10720 | IFS=$as_save_IFS | |
10721 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10722 | for ac_exec_ext in '' $ac_executable_extensions; do |
10723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10724 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10726 | break 2 |
10727 | fi | |
10728 | done | |
81ecdfbb RW |
10729 | done |
10730 | IFS=$as_save_IFS | |
c6b750e1 | 10731 | |
55db4b87 PB |
10732 | fi |
10733 | fi | |
c6b750e1 | 10734 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10735 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10737 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10738 | else |
81ecdfbb RW |
10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10740 | $as_echo "no" >&6; } | |
55db4b87 | 10741 | fi |
c6b750e1 | 10742 | |
81ecdfbb | 10743 | |
2429c060 PB |
10744 | fi |
10745 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10746 | done | |
10747 | fi | |
c6b750e1 | 10748 | |
05cbd757 PB |
10749 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10750 | set dummy gfortran | |
10751 | if test $build = $target ; then | |
10752 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10753 | else |
05cbd757 | 10754 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10755 | fi |
d3f5afc4 MS |
10756 | else |
10757 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10758 | fi |
10759 | ||
2429c060 PB |
10760 | |
10761 | ||
e552509b ILT |
10762 | if test -n "$GOC_FOR_TARGET"; then |
10763 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10764 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10765 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10766 | fi | |
10767 | ||
10768 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10769 | for ncn_progname in gccgo; do | |
10770 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10771 | set dummy ${ncn_progname}; ac_word=$2 | |
10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10773 | $as_echo_n "checking for $ac_word... " >&6; } | |
10774 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10775 | $as_echo_n "(cached) " >&6 | |
10776 | else | |
10777 | if test -n "$GOC_FOR_TARGET"; then | |
10778 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10779 | else | |
10780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10781 | for as_dir in $PATH | |
10782 | do | |
10783 | IFS=$as_save_IFS | |
10784 | test -z "$as_dir" && as_dir=. | |
10785 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10787 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10789 | break 2 | |
10790 | fi | |
10791 | done | |
10792 | done | |
10793 | IFS=$as_save_IFS | |
10794 | ||
10795 | fi | |
10796 | fi | |
10797 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10798 | if test -n "$GOC_FOR_TARGET"; then | |
10799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10800 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10801 | else | |
10802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10803 | $as_echo "no" >&6; } | |
10804 | fi | |
10805 | ||
10806 | ||
10807 | done | |
10808 | fi | |
10809 | ||
10810 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10811 | for ncn_progname in gccgo; do | |
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10813 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10814 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10815 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10817 | $as_echo "yes" >&6; } | |
10818 | break | |
10819 | else | |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10821 | $as_echo "no" >&6; } | |
10822 | fi | |
10823 | done | |
10824 | fi | |
10825 | ||
10826 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10827 | for ncn_progname in gccgo; do | |
10828 | if test -n "$ncn_target_tool_prefix"; then | |
10829 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10830 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10832 | $as_echo_n "checking for $ac_word... " >&6; } | |
10833 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10834 | $as_echo_n "(cached) " >&6 | |
10835 | else | |
10836 | if test -n "$GOC_FOR_TARGET"; then | |
10837 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10838 | else | |
10839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10840 | for as_dir in $PATH | |
10841 | do | |
10842 | IFS=$as_save_IFS | |
10843 | test -z "$as_dir" && as_dir=. | |
10844 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10845 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10846 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10847 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10848 | break 2 | |
10849 | fi | |
10850 | done | |
10851 | done | |
10852 | IFS=$as_save_IFS | |
10853 | ||
10854 | fi | |
10855 | fi | |
10856 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10857 | if test -n "$GOC_FOR_TARGET"; then | |
10858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10859 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10860 | else | |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10862 | $as_echo "no" >&6; } | |
10863 | fi | |
10864 | ||
10865 | ||
10866 | fi | |
10867 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10868 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10869 | set dummy ${ncn_progname}; ac_word=$2 | |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10871 | $as_echo_n "checking for $ac_word... " >&6; } | |
10872 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10873 | $as_echo_n "(cached) " >&6 | |
10874 | else | |
10875 | if test -n "$GOC_FOR_TARGET"; then | |
10876 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10877 | else | |
10878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10879 | for as_dir in $PATH | |
10880 | do | |
10881 | IFS=$as_save_IFS | |
10882 | test -z "$as_dir" && as_dir=. | |
10883 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10884 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10885 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10886 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10887 | break 2 | |
10888 | fi | |
10889 | done | |
10890 | done | |
10891 | IFS=$as_save_IFS | |
10892 | ||
10893 | fi | |
10894 | fi | |
10895 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10896 | if test -n "$GOC_FOR_TARGET"; then | |
10897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10898 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10899 | else | |
10900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10901 | $as_echo "no" >&6; } | |
10902 | fi | |
10903 | ||
10904 | ||
10905 | fi | |
10906 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10907 | done | |
10908 | fi | |
10909 | ||
10910 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10911 | set dummy gccgo | |
10912 | if test $build = $target ; then | |
10913 | GOC_FOR_TARGET="$2" | |
10914 | else | |
10915 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10916 | fi | |
10917 | else | |
10918 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10919 | fi | |
10920 | ||
10921 | ||
10922 | ||
2429c060 PB |
10923 | cat > conftest.c << \EOF |
10924 | #ifdef __GNUC__ | |
10925 | gcc_yay; | |
10926 | #endif | |
10927 | EOF | |
10928 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10929 | have_gcc_for_target=yes | |
859789af | 10930 | else |
2429c060 PB |
10931 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10932 | have_gcc_for_target=no | |
859789af | 10933 | fi |
2429c060 PB |
10934 | rm conftest.c |
10935 | ||
10936 | ||
10937 | ||
859789af | 10938 | |
2429c060 PB |
10939 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10940 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10942 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10943 | if test -x $with_build_time_tools/ar; then |
10944 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10945 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10947 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10948 | else |
81ecdfbb RW |
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10950 | $as_echo "no" >&6; } | |
3a35eeb3 | 10951 | fi |
2429c060 PB |
10952 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10953 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10954 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10955 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10956 | fi |
2429c060 | 10957 | fi |
c6b750e1 | 10958 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10959 | # Extract the first word of "ar", so it can be a program name with args. |
10960 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10962 | $as_echo_n "checking for $ac_word... " >&6; } | |
10963 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10964 | $as_echo_n "(cached) " >&6 | |
859789af | 10965 | else |
c6b750e1 DJ |
10966 | case $AR_FOR_TARGET in |
10967 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10968 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10969 | ;; | |
2429c060 | 10970 | *) |
c6b750e1 DJ |
10971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10972 | for as_dir in $gcc_cv_tool_dirs | |
10973 | do | |
10974 | IFS=$as_save_IFS | |
10975 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10976 | for ac_exec_ext in '' $ac_executable_extensions; do |
10977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10978 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10980 | break 2 |
10981 | fi | |
10982 | done | |
81ecdfbb RW |
10983 | done |
10984 | IFS=$as_save_IFS | |
c6b750e1 | 10985 | |
2429c060 PB |
10986 | ;; |
10987 | esac | |
859789af | 10988 | fi |
c6b750e1 | 10989 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10990 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10992 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10993 | else |
81ecdfbb RW |
10994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10995 | $as_echo "no" >&6; } | |
859789af | 10996 | fi |
05cbd757 | 10997 | |
81ecdfbb | 10998 | |
2429c060 PB |
10999 | fi |
11000 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
11001 | |
11002 | ||
11003 | if test -n "$AR_FOR_TARGET"; then | |
11004 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11005 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11006 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11007 | fi | |
11008 | ||
11009 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11010 | for ncn_progname in ar; do | |
11011 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11012 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11014 | $as_echo_n "checking for $ac_word... " >&6; } | |
11015 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11016 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11017 | else |
11018 | if test -n "$AR_FOR_TARGET"; then | |
11019 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11020 | else | |
11021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11022 | for as_dir in $PATH | |
11023 | do | |
11024 | IFS=$as_save_IFS | |
11025 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11026 | for ac_exec_ext in '' $ac_executable_extensions; do |
11027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11028 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11030 | break 2 |
11031 | fi | |
11032 | done | |
81ecdfbb RW |
11033 | done |
11034 | IFS=$as_save_IFS | |
9a819804 AO |
11035 | |
11036 | fi | |
11037 | fi | |
11038 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11039 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11041 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11042 | else |
81ecdfbb RW |
11043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11044 | $as_echo "no" >&6; } | |
9a819804 AO |
11045 | fi |
11046 | ||
81ecdfbb | 11047 | |
9a819804 AO |
11048 | done |
11049 | fi | |
11050 | ||
11051 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11052 | for ncn_progname in ar; do |
81ecdfbb RW |
11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11054 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11055 | if test -x $with_build_time_tools/${ncn_progname}; then |
11056 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11058 | $as_echo "yes" >&6; } | |
2429c060 PB |
11059 | break |
11060 | else | |
81ecdfbb RW |
11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11062 | $as_echo "no" >&6; } | |
2429c060 PB |
11063 | fi |
11064 | done | |
859789af AC |
11065 | fi |
11066 | ||
2429c060 PB |
11067 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11068 | for ncn_progname in ar; do | |
11069 | if test -n "$ncn_target_tool_prefix"; then | |
11070 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11071 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11073 | $as_echo_n "checking for $ac_word... " >&6; } | |
11074 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11075 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11076 | else |
2429c060 PB |
11077 | if test -n "$AR_FOR_TARGET"; then |
11078 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11079 | else |
c6b750e1 DJ |
11080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11081 | for as_dir in $PATH | |
11082 | do | |
11083 | IFS=$as_save_IFS | |
11084 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11085 | for ac_exec_ext in '' $ac_executable_extensions; do |
11086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11087 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11089 | break 2 |
11090 | fi | |
11091 | done | |
81ecdfbb RW |
11092 | done |
11093 | IFS=$as_save_IFS | |
c6b750e1 | 11094 | |
7e0f7140 GK |
11095 | fi |
11096 | fi | |
c6b750e1 | 11097 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11098 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11100 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11101 | else |
81ecdfbb RW |
11102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11103 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11104 | fi |
11105 | ||
81ecdfbb | 11106 | |
2429c060 PB |
11107 | fi |
11108 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11109 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11110 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11112 | $as_echo_n "checking for $ac_word... " >&6; } | |
11113 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11114 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11115 | else |
2429c060 PB |
11116 | if test -n "$AR_FOR_TARGET"; then |
11117 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11118 | else |
c6b750e1 DJ |
11119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11120 | for as_dir in $PATH | |
11121 | do | |
11122 | IFS=$as_save_IFS | |
11123 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11124 | for ac_exec_ext in '' $ac_executable_extensions; do |
11125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11126 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11128 | break 2 |
11129 | fi | |
11130 | done | |
81ecdfbb RW |
11131 | done |
11132 | IFS=$as_save_IFS | |
c6b750e1 | 11133 | |
7e0f7140 GK |
11134 | fi |
11135 | fi | |
c6b750e1 | 11136 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11137 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11139 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11140 | else |
81ecdfbb RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11142 | $as_echo "no" >&6; } | |
7e0f7140 | 11143 | fi |
c6b750e1 | 11144 | |
81ecdfbb | 11145 | |
2429c060 PB |
11146 | fi |
11147 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11148 | done | |
11149 | fi | |
c6b750e1 | 11150 | |
2429c060 PB |
11151 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11152 | set dummy ar | |
7e0f7140 | 11153 | if test $build = $target ; then |
2429c060 | 11154 | AR_FOR_TARGET="$2" |
7e0f7140 | 11155 | else |
2429c060 | 11156 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11157 | fi |
d3f5afc4 MS |
11158 | else |
11159 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11160 | fi |
11161 | ||
3a35eeb3 PB |
11162 | else |
11163 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11164 | fi |
11165 | ||
11166 | ||
11167 | ||
11168 | ||
11169 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11170 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11172 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11173 | if test -x $with_build_time_tools/as; then |
11174 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11175 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11177 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11178 | else |
81ecdfbb RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11180 | $as_echo "no" >&6; } | |
3a35eeb3 | 11181 | fi |
2429c060 PB |
11182 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11183 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11184 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11185 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11186 | fi |
11187 | fi | |
c6b750e1 | 11188 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11189 | # Extract the first word of "as", so it can be a program name with args. |
11190 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11192 | $as_echo_n "checking for $ac_word... " >&6; } | |
11193 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11194 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11195 | else |
c6b750e1 DJ |
11196 | case $AS_FOR_TARGET in |
11197 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11198 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11199 | ;; | |
2429c060 | 11200 | *) |
c6b750e1 DJ |
11201 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11202 | for as_dir in $gcc_cv_tool_dirs | |
11203 | do | |
11204 | IFS=$as_save_IFS | |
11205 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11206 | for ac_exec_ext in '' $ac_executable_extensions; do |
11207 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11208 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11209 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11210 | break 2 |
11211 | fi | |
11212 | done | |
81ecdfbb RW |
11213 | done |
11214 | IFS=$as_save_IFS | |
c6b750e1 | 11215 | |
2429c060 PB |
11216 | ;; |
11217 | esac | |
11218 | fi | |
c6b750e1 | 11219 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11220 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11222 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11223 | else |
81ecdfbb RW |
11224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11225 | $as_echo "no" >&6; } | |
2429c060 PB |
11226 | fi |
11227 | ||
81ecdfbb | 11228 | |
2429c060 PB |
11229 | fi |
11230 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11231 | |
11232 | ||
11233 | if test -n "$AS_FOR_TARGET"; then | |
11234 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11235 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11236 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11237 | fi | |
11238 | ||
11239 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11240 | for ncn_progname in as; do | |
11241 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11242 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11244 | $as_echo_n "checking for $ac_word... " >&6; } | |
11245 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11246 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11247 | else |
11248 | if test -n "$AS_FOR_TARGET"; then | |
11249 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11250 | else | |
11251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11252 | for as_dir in $PATH | |
11253 | do | |
11254 | IFS=$as_save_IFS | |
11255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11256 | for ac_exec_ext in '' $ac_executable_extensions; do |
11257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11258 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11260 | break 2 |
11261 | fi | |
11262 | done | |
81ecdfbb RW |
11263 | done |
11264 | IFS=$as_save_IFS | |
9a819804 AO |
11265 | |
11266 | fi | |
11267 | fi | |
11268 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11269 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11271 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11272 | else |
81ecdfbb RW |
11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11274 | $as_echo "no" >&6; } | |
9a819804 AO |
11275 | fi |
11276 | ||
81ecdfbb | 11277 | |
9a819804 AO |
11278 | done |
11279 | fi | |
11280 | ||
11281 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11282 | for ncn_progname in as; do |
81ecdfbb RW |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11284 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11285 | if test -x $with_build_time_tools/${ncn_progname}; then |
11286 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11288 | $as_echo "yes" >&6; } | |
2429c060 PB |
11289 | break |
11290 | else | |
81ecdfbb RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11292 | $as_echo "no" >&6; } | |
2429c060 PB |
11293 | fi |
11294 | done | |
11295 | fi | |
11296 | ||
11297 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11298 | for ncn_progname in as; do | |
11299 | if test -n "$ncn_target_tool_prefix"; then | |
11300 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11301 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11303 | $as_echo_n "checking for $ac_word... " >&6; } | |
11304 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11305 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11306 | else |
11307 | if test -n "$AS_FOR_TARGET"; then | |
11308 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11309 | else | |
c6b750e1 DJ |
11310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11311 | for as_dir in $PATH | |
11312 | do | |
11313 | IFS=$as_save_IFS | |
11314 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11315 | for ac_exec_ext in '' $ac_executable_extensions; do |
11316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11317 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11319 | break 2 |
11320 | fi | |
11321 | done | |
81ecdfbb RW |
11322 | done |
11323 | IFS=$as_save_IFS | |
c6b750e1 | 11324 | |
2429c060 PB |
11325 | fi |
11326 | fi | |
c6b750e1 | 11327 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11328 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11330 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11331 | else |
81ecdfbb RW |
11332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11333 | $as_echo "no" >&6; } | |
2429c060 PB |
11334 | fi |
11335 | ||
81ecdfbb | 11336 | |
2429c060 PB |
11337 | fi |
11338 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11339 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11340 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11342 | $as_echo_n "checking for $ac_word... " >&6; } | |
11343 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11344 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11345 | else |
11346 | if test -n "$AS_FOR_TARGET"; then | |
11347 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11348 | else | |
c6b750e1 DJ |
11349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11350 | for as_dir in $PATH | |
11351 | do | |
11352 | IFS=$as_save_IFS | |
11353 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11354 | for ac_exec_ext in '' $ac_executable_extensions; do |
11355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11356 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11358 | break 2 |
11359 | fi | |
11360 | done | |
81ecdfbb RW |
11361 | done |
11362 | IFS=$as_save_IFS | |
c6b750e1 | 11363 | |
2429c060 PB |
11364 | fi |
11365 | fi | |
c6b750e1 | 11366 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11367 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11369 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11370 | else |
81ecdfbb RW |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11372 | $as_echo "no" >&6; } | |
2429c060 | 11373 | fi |
c6b750e1 | 11374 | |
81ecdfbb | 11375 | |
2429c060 PB |
11376 | fi |
11377 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11378 | done | |
11379 | fi | |
c6b750e1 | 11380 | |
2429c060 PB |
11381 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11382 | set dummy as | |
11383 | if test $build = $target ; then | |
11384 | AS_FOR_TARGET="$2" | |
11385 | else | |
11386 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11387 | fi | |
d3f5afc4 MS |
11388 | else |
11389 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11390 | fi |
11391 | ||
3a35eeb3 PB |
11392 | else |
11393 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11394 | fi |
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11400 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11402 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11403 | if test -x $with_build_time_tools/dlltool; then |
11404 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11405 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11407 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11408 | else |
81ecdfbb RW |
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11410 | $as_echo "no" >&6; } | |
3a35eeb3 | 11411 | fi |
2429c060 PB |
11412 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11413 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11414 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11415 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11416 | fi |
11417 | fi | |
c6b750e1 | 11418 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11419 | # Extract the first word of "dlltool", so it can be a program name with args. |
11420 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11422 | $as_echo_n "checking for $ac_word... " >&6; } | |
11423 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11424 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11425 | else |
c6b750e1 DJ |
11426 | case $DLLTOOL_FOR_TARGET in |
11427 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11428 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11429 | ;; | |
2429c060 | 11430 | *) |
c6b750e1 DJ |
11431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11432 | for as_dir in $gcc_cv_tool_dirs | |
11433 | do | |
11434 | IFS=$as_save_IFS | |
11435 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11436 | for ac_exec_ext in '' $ac_executable_extensions; do |
11437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11438 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11440 | break 2 |
11441 | fi | |
11442 | done | |
81ecdfbb RW |
11443 | done |
11444 | IFS=$as_save_IFS | |
c6b750e1 | 11445 | |
2429c060 PB |
11446 | ;; |
11447 | esac | |
11448 | fi | |
c6b750e1 | 11449 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11450 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11452 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11453 | else |
81ecdfbb RW |
11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11455 | $as_echo "no" >&6; } | |
2429c060 PB |
11456 | fi |
11457 | ||
81ecdfbb | 11458 | |
2429c060 PB |
11459 | fi |
11460 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11461 | |
11462 | ||
11463 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11464 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11465 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11466 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11467 | fi | |
11468 | ||
11469 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11470 | for ncn_progname in dlltool; do | |
11471 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11472 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11474 | $as_echo_n "checking for $ac_word... " >&6; } | |
11475 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11476 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11477 | else |
11478 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11479 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11480 | else | |
11481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11482 | for as_dir in $PATH | |
11483 | do | |
11484 | IFS=$as_save_IFS | |
11485 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11486 | for ac_exec_ext in '' $ac_executable_extensions; do |
11487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11488 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11490 | break 2 |
11491 | fi | |
11492 | done | |
81ecdfbb RW |
11493 | done |
11494 | IFS=$as_save_IFS | |
9a819804 AO |
11495 | |
11496 | fi | |
11497 | fi | |
11498 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11499 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11501 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11502 | else |
81ecdfbb RW |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11504 | $as_echo "no" >&6; } | |
9a819804 AO |
11505 | fi |
11506 | ||
81ecdfbb | 11507 | |
9a819804 AO |
11508 | done |
11509 | fi | |
11510 | ||
11511 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11512 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11514 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11515 | if test -x $with_build_time_tools/${ncn_progname}; then |
11516 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11518 | $as_echo "yes" >&6; } | |
2429c060 PB |
11519 | break |
11520 | else | |
81ecdfbb RW |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11522 | $as_echo "no" >&6; } | |
2429c060 PB |
11523 | fi |
11524 | done | |
11525 | fi | |
11526 | ||
11527 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11528 | for ncn_progname in dlltool; do | |
11529 | if test -n "$ncn_target_tool_prefix"; then | |
11530 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11531 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11533 | $as_echo_n "checking for $ac_word... " >&6; } | |
11534 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11535 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11536 | else |
11537 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11538 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11539 | else | |
c6b750e1 DJ |
11540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11541 | for as_dir in $PATH | |
11542 | do | |
11543 | IFS=$as_save_IFS | |
11544 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11545 | for ac_exec_ext in '' $ac_executable_extensions; do |
11546 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11547 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11549 | break 2 |
11550 | fi | |
11551 | done | |
81ecdfbb RW |
11552 | done |
11553 | IFS=$as_save_IFS | |
c6b750e1 | 11554 | |
2429c060 PB |
11555 | fi |
11556 | fi | |
c6b750e1 | 11557 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11558 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11560 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11561 | else |
81ecdfbb RW |
11562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11563 | $as_echo "no" >&6; } | |
2429c060 PB |
11564 | fi |
11565 | ||
81ecdfbb | 11566 | |
2429c060 PB |
11567 | fi |
11568 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11569 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11570 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11572 | $as_echo_n "checking for $ac_word... " >&6; } | |
11573 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11574 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11575 | else |
11576 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11577 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11578 | else | |
c6b750e1 DJ |
11579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11580 | for as_dir in $PATH | |
11581 | do | |
11582 | IFS=$as_save_IFS | |
11583 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11584 | for ac_exec_ext in '' $ac_executable_extensions; do |
11585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11586 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11588 | break 2 |
11589 | fi | |
11590 | done | |
81ecdfbb RW |
11591 | done |
11592 | IFS=$as_save_IFS | |
c6b750e1 | 11593 | |
2429c060 PB |
11594 | fi |
11595 | fi | |
c6b750e1 | 11596 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11597 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11599 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11600 | else |
81ecdfbb RW |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11602 | $as_echo "no" >&6; } | |
2429c060 | 11603 | fi |
c6b750e1 | 11604 | |
81ecdfbb | 11605 | |
2429c060 PB |
11606 | fi |
11607 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11608 | done | |
11609 | fi | |
c6b750e1 | 11610 | |
2429c060 PB |
11611 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11612 | set dummy dlltool | |
11613 | if test $build = $target ; then | |
11614 | DLLTOOL_FOR_TARGET="$2" | |
11615 | else | |
11616 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11617 | fi | |
d3f5afc4 MS |
11618 | else |
11619 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11620 | fi |
11621 | ||
3a35eeb3 PB |
11622 | else |
11623 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11624 | fi |
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11630 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11632 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11633 | if test -x $with_build_time_tools/ld; then |
11634 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11635 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11637 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11638 | else |
81ecdfbb RW |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11640 | $as_echo "no" >&6; } | |
3a35eeb3 | 11641 | fi |
2429c060 PB |
11642 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11643 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11644 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11645 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11646 | fi |
11647 | fi | |
c6b750e1 | 11648 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11649 | # Extract the first word of "ld", so it can be a program name with args. |
11650 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11652 | $as_echo_n "checking for $ac_word... " >&6; } | |
11653 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11654 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11655 | else |
c6b750e1 DJ |
11656 | case $LD_FOR_TARGET in |
11657 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11658 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11659 | ;; | |
2429c060 | 11660 | *) |
c6b750e1 DJ |
11661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11662 | for as_dir in $gcc_cv_tool_dirs | |
11663 | do | |
11664 | IFS=$as_save_IFS | |
11665 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11666 | for ac_exec_ext in '' $ac_executable_extensions; do |
11667 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11668 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11670 | break 2 |
11671 | fi | |
11672 | done | |
81ecdfbb RW |
11673 | done |
11674 | IFS=$as_save_IFS | |
c6b750e1 | 11675 | |
2429c060 PB |
11676 | ;; |
11677 | esac | |
11678 | fi | |
c6b750e1 | 11679 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11680 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11682 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11683 | else |
81ecdfbb RW |
11684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11685 | $as_echo "no" >&6; } | |
2429c060 PB |
11686 | fi |
11687 | ||
81ecdfbb | 11688 | |
2429c060 PB |
11689 | fi |
11690 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11691 | |
11692 | ||
11693 | if test -n "$LD_FOR_TARGET"; then | |
11694 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11695 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11696 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11697 | fi | |
11698 | ||
11699 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11700 | for ncn_progname in ld; do | |
11701 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11702 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11704 | $as_echo_n "checking for $ac_word... " >&6; } | |
11705 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11706 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11707 | else |
11708 | if test -n "$LD_FOR_TARGET"; then | |
11709 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11710 | else | |
11711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11712 | for as_dir in $PATH | |
11713 | do | |
11714 | IFS=$as_save_IFS | |
11715 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11716 | for ac_exec_ext in '' $ac_executable_extensions; do |
11717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11718 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11720 | break 2 |
11721 | fi | |
11722 | done | |
81ecdfbb RW |
11723 | done |
11724 | IFS=$as_save_IFS | |
9a819804 AO |
11725 | |
11726 | fi | |
11727 | fi | |
11728 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11729 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11731 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11732 | else |
81ecdfbb RW |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11734 | $as_echo "no" >&6; } | |
9a819804 AO |
11735 | fi |
11736 | ||
81ecdfbb | 11737 | |
9a819804 AO |
11738 | done |
11739 | fi | |
11740 | ||
11741 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11742 | for ncn_progname in ld; do |
81ecdfbb RW |
11743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11744 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11745 | if test -x $with_build_time_tools/${ncn_progname}; then |
11746 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11748 | $as_echo "yes" >&6; } | |
2429c060 PB |
11749 | break |
11750 | else | |
81ecdfbb RW |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11752 | $as_echo "no" >&6; } | |
2429c060 PB |
11753 | fi |
11754 | done | |
11755 | fi | |
11756 | ||
11757 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11758 | for ncn_progname in ld; do | |
11759 | if test -n "$ncn_target_tool_prefix"; then | |
11760 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11761 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11763 | $as_echo_n "checking for $ac_word... " >&6; } | |
11764 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11765 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11766 | else |
11767 | if test -n "$LD_FOR_TARGET"; then | |
11768 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11769 | else | |
c6b750e1 DJ |
11770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11771 | for as_dir in $PATH | |
11772 | do | |
11773 | IFS=$as_save_IFS | |
11774 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11775 | for ac_exec_ext in '' $ac_executable_extensions; do |
11776 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11777 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11778 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11779 | break 2 |
11780 | fi | |
11781 | done | |
81ecdfbb RW |
11782 | done |
11783 | IFS=$as_save_IFS | |
c6b750e1 | 11784 | |
2429c060 PB |
11785 | fi |
11786 | fi | |
c6b750e1 | 11787 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11788 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11790 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11791 | else |
81ecdfbb RW |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11793 | $as_echo "no" >&6; } | |
2429c060 PB |
11794 | fi |
11795 | ||
81ecdfbb | 11796 | |
2429c060 PB |
11797 | fi |
11798 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11799 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11800 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11802 | $as_echo_n "checking for $ac_word... " >&6; } | |
11803 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11804 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11805 | else |
11806 | if test -n "$LD_FOR_TARGET"; then | |
11807 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11808 | else | |
c6b750e1 DJ |
11809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11810 | for as_dir in $PATH | |
11811 | do | |
11812 | IFS=$as_save_IFS | |
11813 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11814 | for ac_exec_ext in '' $ac_executable_extensions; do |
11815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11816 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11818 | break 2 |
11819 | fi | |
11820 | done | |
81ecdfbb RW |
11821 | done |
11822 | IFS=$as_save_IFS | |
c6b750e1 | 11823 | |
2429c060 PB |
11824 | fi |
11825 | fi | |
c6b750e1 | 11826 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11827 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11829 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11830 | else |
81ecdfbb RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11832 | $as_echo "no" >&6; } | |
2429c060 | 11833 | fi |
c6b750e1 | 11834 | |
81ecdfbb | 11835 | |
2429c060 PB |
11836 | fi |
11837 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11838 | done | |
11839 | fi | |
c6b750e1 | 11840 | |
2429c060 PB |
11841 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11842 | set dummy ld | |
11843 | if test $build = $target ; then | |
11844 | LD_FOR_TARGET="$2" | |
11845 | else | |
11846 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11847 | fi | |
d3f5afc4 MS |
11848 | else |
11849 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11850 | fi |
11851 | ||
3a35eeb3 PB |
11852 | else |
11853 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11854 | fi |
11855 | ||
11856 | ||
11857 | ||
11858 | ||
11859 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11860 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11862 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11863 | if test -x $with_build_time_tools/lipo; then |
11864 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11865 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11867 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11868 | else |
81ecdfbb RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11870 | $as_echo "no" >&6; } | |
3a35eeb3 | 11871 | fi |
2429c060 PB |
11872 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11873 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11874 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11875 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11876 | fi |
11877 | fi | |
9a819804 AO |
11878 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11879 | # Extract the first word of "lipo", so it can be a program name with args. | |
11880 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11882 | $as_echo_n "checking for $ac_word... " >&6; } | |
11883 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11884 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11885 | else |
11886 | case $LIPO_FOR_TARGET in | |
11887 | [\\/]* | ?:[\\/]*) | |
11888 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11889 | ;; | |
11890 | *) | |
11891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11892 | for as_dir in $gcc_cv_tool_dirs | |
11893 | do | |
11894 | IFS=$as_save_IFS | |
11895 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11896 | for ac_exec_ext in '' $ac_executable_extensions; do |
11897 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11898 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11900 | break 2 |
11901 | fi | |
11902 | done | |
81ecdfbb RW |
11903 | done |
11904 | IFS=$as_save_IFS | |
9a819804 AO |
11905 | |
11906 | ;; | |
11907 | esac | |
11908 | fi | |
11909 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11910 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11912 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11913 | else |
81ecdfbb RW |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11915 | $as_echo "no" >&6; } | |
9a819804 AO |
11916 | fi |
11917 | ||
81ecdfbb | 11918 | |
9a819804 AO |
11919 | fi |
11920 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11921 | ||
11922 | ||
11923 | if test -n "$LIPO_FOR_TARGET"; then | |
11924 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11925 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11926 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11927 | fi | |
11928 | ||
11929 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11930 | for ncn_progname in lipo; do | |
11931 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11932 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11934 | $as_echo_n "checking for $ac_word... " >&6; } | |
11935 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11936 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11937 | else |
9a819804 AO |
11938 | if test -n "$LIPO_FOR_TARGET"; then |
11939 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11940 | else | |
11941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11942 | for as_dir in $PATH | |
c6b750e1 DJ |
11943 | do |
11944 | IFS=$as_save_IFS | |
11945 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11946 | for ac_exec_ext in '' $ac_executable_extensions; do |
11947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11948 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11950 | break 2 |
11951 | fi | |
11952 | done | |
81ecdfbb RW |
11953 | done |
11954 | IFS=$as_save_IFS | |
c6b750e1 | 11955 | |
2429c060 | 11956 | fi |
9a819804 AO |
11957 | fi |
11958 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11959 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11961 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11962 | else |
81ecdfbb RW |
11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11964 | $as_echo "no" >&6; } | |
2429c060 PB |
11965 | fi |
11966 | ||
81ecdfbb | 11967 | |
9a819804 | 11968 | done |
2429c060 | 11969 | fi |
9a819804 AO |
11970 | |
11971 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11972 | for ncn_progname in lipo; do |
81ecdfbb RW |
11973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11974 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11975 | if test -x $with_build_time_tools/${ncn_progname}; then |
11976 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11978 | $as_echo "yes" >&6; } | |
2429c060 PB |
11979 | break |
11980 | else | |
81ecdfbb RW |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11982 | $as_echo "no" >&6; } | |
2429c060 PB |
11983 | fi |
11984 | done | |
11985 | fi | |
11986 | ||
11987 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11988 | for ncn_progname in lipo; do | |
11989 | if test -n "$ncn_target_tool_prefix"; then | |
11990 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11991 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11993 | $as_echo_n "checking for $ac_word... " >&6; } | |
11994 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11995 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11996 | else |
11997 | if test -n "$LIPO_FOR_TARGET"; then | |
11998 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11999 | else | |
c6b750e1 DJ |
12000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12001 | for as_dir in $PATH | |
12002 | do | |
12003 | IFS=$as_save_IFS | |
12004 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12005 | for ac_exec_ext in '' $ac_executable_extensions; do |
12006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12007 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12009 | break 2 |
12010 | fi | |
12011 | done | |
81ecdfbb RW |
12012 | done |
12013 | IFS=$as_save_IFS | |
c6b750e1 | 12014 | |
2429c060 PB |
12015 | fi |
12016 | fi | |
c6b750e1 | 12017 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12018 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12020 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12021 | else |
81ecdfbb RW |
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12023 | $as_echo "no" >&6; } | |
2429c060 PB |
12024 | fi |
12025 | ||
81ecdfbb | 12026 | |
2429c060 PB |
12027 | fi |
12028 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12029 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12030 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12032 | $as_echo_n "checking for $ac_word... " >&6; } | |
12033 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12034 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
12035 | else |
12036 | if test -n "$LIPO_FOR_TARGET"; then | |
12037 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12038 | else | |
c6b750e1 DJ |
12039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12040 | for as_dir in $PATH | |
12041 | do | |
12042 | IFS=$as_save_IFS | |
12043 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12044 | for ac_exec_ext in '' $ac_executable_extensions; do |
12045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12046 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12048 | break 2 |
12049 | fi | |
12050 | done | |
81ecdfbb RW |
12051 | done |
12052 | IFS=$as_save_IFS | |
c6b750e1 | 12053 | |
2429c060 PB |
12054 | fi |
12055 | fi | |
c6b750e1 | 12056 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12057 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12059 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12060 | else |
81ecdfbb RW |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12062 | $as_echo "no" >&6; } | |
2429c060 | 12063 | fi |
c6b750e1 | 12064 | |
81ecdfbb | 12065 | |
2429c060 PB |
12066 | fi |
12067 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12068 | done | |
12069 | fi | |
c6b750e1 | 12070 | |
2429c060 PB |
12071 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12072 | set dummy lipo | |
12073 | if test $build = $target ; then | |
12074 | LIPO_FOR_TARGET="$2" | |
12075 | else | |
12076 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12077 | fi | |
d3f5afc4 MS |
12078 | else |
12079 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12080 | fi |
12081 | ||
3a35eeb3 PB |
12082 | else |
12083 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12084 | fi |
12085 | ||
12086 | ||
12087 | ||
12088 | ||
12089 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12090 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12092 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12093 | if test -x $with_build_time_tools/nm; then |
12094 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12095 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12097 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12098 | else |
81ecdfbb RW |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12100 | $as_echo "no" >&6; } | |
3a35eeb3 | 12101 | fi |
2429c060 PB |
12102 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12103 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12104 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12105 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12106 | fi |
12107 | fi | |
c6b750e1 | 12108 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12109 | # Extract the first word of "nm", so it can be a program name with args. |
12110 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12112 | $as_echo_n "checking for $ac_word... " >&6; } | |
12113 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12114 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12115 | else |
c6b750e1 DJ |
12116 | case $NM_FOR_TARGET in |
12117 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12118 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12119 | ;; | |
2429c060 | 12120 | *) |
c6b750e1 DJ |
12121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12122 | for as_dir in $gcc_cv_tool_dirs | |
12123 | do | |
12124 | IFS=$as_save_IFS | |
12125 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12126 | for ac_exec_ext in '' $ac_executable_extensions; do |
12127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12128 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12130 | break 2 |
12131 | fi | |
12132 | done | |
81ecdfbb RW |
12133 | done |
12134 | IFS=$as_save_IFS | |
c6b750e1 | 12135 | |
2429c060 PB |
12136 | ;; |
12137 | esac | |
12138 | fi | |
c6b750e1 | 12139 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12140 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12142 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12143 | else |
81ecdfbb RW |
12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12145 | $as_echo "no" >&6; } | |
2429c060 PB |
12146 | fi |
12147 | ||
81ecdfbb | 12148 | |
2429c060 PB |
12149 | fi |
12150 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12151 | |
12152 | ||
12153 | if test -n "$NM_FOR_TARGET"; then | |
12154 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12155 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12156 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12157 | fi | |
12158 | ||
12159 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12160 | for ncn_progname in nm; do | |
12161 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12162 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12164 | $as_echo_n "checking for $ac_word... " >&6; } | |
12165 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12166 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12167 | else |
12168 | if test -n "$NM_FOR_TARGET"; then | |
12169 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12170 | else | |
12171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12172 | for as_dir in $PATH | |
12173 | do | |
12174 | IFS=$as_save_IFS | |
12175 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12176 | for ac_exec_ext in '' $ac_executable_extensions; do |
12177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12178 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12180 | break 2 |
12181 | fi | |
12182 | done | |
81ecdfbb RW |
12183 | done |
12184 | IFS=$as_save_IFS | |
9a819804 AO |
12185 | |
12186 | fi | |
12187 | fi | |
12188 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12189 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12191 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12192 | else |
81ecdfbb RW |
12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12194 | $as_echo "no" >&6; } | |
9a819804 AO |
12195 | fi |
12196 | ||
81ecdfbb | 12197 | |
9a819804 AO |
12198 | done |
12199 | fi | |
12200 | ||
12201 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12202 | for ncn_progname in nm; do |
81ecdfbb RW |
12203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12204 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12205 | if test -x $with_build_time_tools/${ncn_progname}; then |
12206 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12208 | $as_echo "yes" >&6; } | |
2429c060 PB |
12209 | break |
12210 | else | |
81ecdfbb RW |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12212 | $as_echo "no" >&6; } | |
2429c060 PB |
12213 | fi |
12214 | done | |
12215 | fi | |
12216 | ||
12217 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12218 | for ncn_progname in nm; do | |
12219 | if test -n "$ncn_target_tool_prefix"; then | |
12220 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12221 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12223 | $as_echo_n "checking for $ac_word... " >&6; } | |
12224 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12225 | $as_echo_n "(cached) " >&6 | |
859789af | 12226 | else |
55db4b87 PB |
12227 | if test -n "$NM_FOR_TARGET"; then |
12228 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12229 | else |
c6b750e1 DJ |
12230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12231 | for as_dir in $PATH | |
12232 | do | |
12233 | IFS=$as_save_IFS | |
12234 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12235 | for ac_exec_ext in '' $ac_executable_extensions; do |
12236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12237 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12239 | break 2 |
12240 | fi | |
12241 | done | |
81ecdfbb RW |
12242 | done |
12243 | IFS=$as_save_IFS | |
c6b750e1 | 12244 | |
859789af AC |
12245 | fi |
12246 | fi | |
c6b750e1 | 12247 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12248 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12250 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12251 | else |
81ecdfbb RW |
12252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12253 | $as_echo "no" >&6; } | |
859789af AC |
12254 | fi |
12255 | ||
81ecdfbb | 12256 | |
2429c060 PB |
12257 | fi |
12258 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12259 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12260 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12262 | $as_echo_n "checking for $ac_word... " >&6; } | |
12263 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12264 | $as_echo_n "(cached) " >&6 | |
859789af | 12265 | else |
05cbd757 PB |
12266 | if test -n "$NM_FOR_TARGET"; then |
12267 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12268 | else |
c6b750e1 DJ |
12269 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12270 | for as_dir in $PATH | |
12271 | do | |
12272 | IFS=$as_save_IFS | |
12273 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12274 | for ac_exec_ext in '' $ac_executable_extensions; do |
12275 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12276 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12277 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12278 | break 2 |
12279 | fi | |
12280 | done | |
81ecdfbb RW |
12281 | done |
12282 | IFS=$as_save_IFS | |
c6b750e1 | 12283 | |
859789af AC |
12284 | fi |
12285 | fi | |
c6b750e1 | 12286 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12287 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12289 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12290 | else |
81ecdfbb RW |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12292 | $as_echo "no" >&6; } | |
859789af | 12293 | fi |
c6b750e1 | 12294 | |
81ecdfbb | 12295 | |
2429c060 PB |
12296 | fi |
12297 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12298 | done | |
12299 | fi | |
c6b750e1 | 12300 | |
05cbd757 PB |
12301 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12302 | set dummy nm | |
12303 | if test $build = $target ; then | |
12304 | NM_FOR_TARGET="$2" | |
859789af | 12305 | else |
05cbd757 | 12306 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12307 | fi |
d3f5afc4 MS |
12308 | else |
12309 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12310 | fi |
12311 | ||
3a35eeb3 PB |
12312 | else |
12313 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12314 | fi |
12315 | ||
12316 | ||
12317 | ||
12318 | ||
12319 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12320 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12322 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12323 | if test -x $with_build_time_tools/objdump; then |
12324 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12325 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12327 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12328 | else |
81ecdfbb RW |
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12330 | $as_echo "no" >&6; } | |
3a35eeb3 | 12331 | fi |
2429c060 PB |
12332 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12333 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12334 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12335 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12336 | fi |
12337 | fi | |
c6b750e1 | 12338 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12339 | # Extract the first word of "objdump", so it can be a program name with args. |
12340 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12342 | $as_echo_n "checking for $ac_word... " >&6; } | |
12343 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12344 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12345 | else |
c6b750e1 DJ |
12346 | case $OBJDUMP_FOR_TARGET in |
12347 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12348 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12349 | ;; | |
2429c060 | 12350 | *) |
c6b750e1 DJ |
12351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12352 | for as_dir in $gcc_cv_tool_dirs | |
12353 | do | |
12354 | IFS=$as_save_IFS | |
12355 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12356 | for ac_exec_ext in '' $ac_executable_extensions; do |
12357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12358 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12359 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12360 | break 2 |
12361 | fi | |
12362 | done | |
81ecdfbb RW |
12363 | done |
12364 | IFS=$as_save_IFS | |
c6b750e1 | 12365 | |
2429c060 PB |
12366 | ;; |
12367 | esac | |
12368 | fi | |
c6b750e1 | 12369 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12370 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12372 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12373 | else |
81ecdfbb RW |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12375 | $as_echo "no" >&6; } | |
2429c060 PB |
12376 | fi |
12377 | ||
81ecdfbb | 12378 | |
2429c060 PB |
12379 | fi |
12380 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12381 | |
12382 | ||
12383 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12384 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12385 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12386 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12387 | fi | |
12388 | ||
12389 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12390 | for ncn_progname in objdump; do | |
12391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12392 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12394 | $as_echo_n "checking for $ac_word... " >&6; } | |
12395 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12396 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12397 | else |
12398 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12399 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12400 | else | |
12401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12402 | for as_dir in $PATH | |
12403 | do | |
12404 | IFS=$as_save_IFS | |
12405 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12406 | for ac_exec_ext in '' $ac_executable_extensions; do |
12407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12408 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12410 | break 2 |
12411 | fi | |
12412 | done | |
81ecdfbb RW |
12413 | done |
12414 | IFS=$as_save_IFS | |
9a819804 AO |
12415 | |
12416 | fi | |
12417 | fi | |
12418 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12419 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12421 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12422 | else |
81ecdfbb RW |
12423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12424 | $as_echo "no" >&6; } | |
9a819804 AO |
12425 | fi |
12426 | ||
81ecdfbb | 12427 | |
9a819804 AO |
12428 | done |
12429 | fi | |
12430 | ||
12431 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12432 | for ncn_progname in objdump; do |
81ecdfbb RW |
12433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12434 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12435 | if test -x $with_build_time_tools/${ncn_progname}; then |
12436 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12438 | $as_echo "yes" >&6; } | |
2429c060 PB |
12439 | break |
12440 | else | |
81ecdfbb RW |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12442 | $as_echo "no" >&6; } | |
2429c060 PB |
12443 | fi |
12444 | done | |
12445 | fi | |
12446 | ||
12447 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12448 | for ncn_progname in objdump; do | |
12449 | if test -n "$ncn_target_tool_prefix"; then | |
12450 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12451 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12453 | $as_echo_n "checking for $ac_word... " >&6; } | |
12454 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12455 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12456 | else |
12457 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12458 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12459 | else | |
c6b750e1 DJ |
12460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12461 | for as_dir in $PATH | |
12462 | do | |
12463 | IFS=$as_save_IFS | |
12464 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12465 | for ac_exec_ext in '' $ac_executable_extensions; do |
12466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12467 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12469 | break 2 |
12470 | fi | |
12471 | done | |
81ecdfbb RW |
12472 | done |
12473 | IFS=$as_save_IFS | |
c6b750e1 | 12474 | |
5ae72758 DJ |
12475 | fi |
12476 | fi | |
c6b750e1 | 12477 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12478 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12480 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12481 | else |
81ecdfbb RW |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12483 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12484 | fi |
12485 | ||
81ecdfbb | 12486 | |
2429c060 PB |
12487 | fi |
12488 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12489 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12490 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12492 | $as_echo_n "checking for $ac_word... " >&6; } | |
12493 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12494 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12495 | else |
12496 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12497 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12498 | else | |
c6b750e1 DJ |
12499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12500 | for as_dir in $PATH | |
12501 | do | |
12502 | IFS=$as_save_IFS | |
12503 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12504 | for ac_exec_ext in '' $ac_executable_extensions; do |
12505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12506 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12508 | break 2 |
12509 | fi | |
12510 | done | |
81ecdfbb RW |
12511 | done |
12512 | IFS=$as_save_IFS | |
c6b750e1 | 12513 | |
5ae72758 DJ |
12514 | fi |
12515 | fi | |
c6b750e1 | 12516 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12517 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12519 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12520 | else |
81ecdfbb RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12522 | $as_echo "no" >&6; } | |
5ae72758 | 12523 | fi |
c6b750e1 | 12524 | |
81ecdfbb | 12525 | |
2429c060 PB |
12526 | fi |
12527 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12528 | done | |
12529 | fi | |
c6b750e1 | 12530 | |
5ae72758 DJ |
12531 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12532 | set dummy objdump | |
12533 | if test $build = $target ; then | |
12534 | OBJDUMP_FOR_TARGET="$2" | |
12535 | else | |
12536 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12537 | fi | |
d3f5afc4 MS |
12538 | else |
12539 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12540 | fi |
12541 | ||
3a35eeb3 PB |
12542 | else |
12543 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12544 | fi |
12545 | ||
12546 | ||
12547 | ||
12548 | ||
12549 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12550 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12552 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12553 | if test -x $with_build_time_tools/ranlib; then |
12554 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12555 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12557 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12558 | else |
81ecdfbb RW |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12560 | $as_echo "no" >&6; } | |
3a35eeb3 | 12561 | fi |
2429c060 PB |
12562 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12563 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12564 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12565 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12566 | fi |
12567 | fi | |
c6b750e1 | 12568 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12569 | # Extract the first word of "ranlib", so it can be a program name with args. |
12570 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12572 | $as_echo_n "checking for $ac_word... " >&6; } | |
12573 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12574 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12575 | else |
c6b750e1 DJ |
12576 | case $RANLIB_FOR_TARGET in |
12577 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12578 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12579 | ;; | |
2429c060 | 12580 | *) |
c6b750e1 DJ |
12581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12582 | for as_dir in $gcc_cv_tool_dirs | |
12583 | do | |
12584 | IFS=$as_save_IFS | |
12585 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12586 | for ac_exec_ext in '' $ac_executable_extensions; do |
12587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12588 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12590 | break 2 |
12591 | fi | |
12592 | done | |
81ecdfbb RW |
12593 | done |
12594 | IFS=$as_save_IFS | |
c6b750e1 | 12595 | |
2429c060 PB |
12596 | ;; |
12597 | esac | |
12598 | fi | |
c6b750e1 | 12599 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12600 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12602 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12603 | else |
81ecdfbb RW |
12604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12605 | $as_echo "no" >&6; } | |
2429c060 PB |
12606 | fi |
12607 | ||
81ecdfbb | 12608 | |
2429c060 PB |
12609 | fi |
12610 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12611 | |
12612 | ||
12613 | if test -n "$RANLIB_FOR_TARGET"; then | |
12614 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12615 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12616 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12617 | fi | |
12618 | ||
12619 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12620 | for ncn_progname in ranlib; do | |
12621 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12622 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12624 | $as_echo_n "checking for $ac_word... " >&6; } | |
12625 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12626 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12627 | else |
12628 | if test -n "$RANLIB_FOR_TARGET"; then | |
12629 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12630 | else | |
12631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12632 | for as_dir in $PATH | |
12633 | do | |
12634 | IFS=$as_save_IFS | |
12635 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12636 | for ac_exec_ext in '' $ac_executable_extensions; do |
12637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12638 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12640 | break 2 |
12641 | fi | |
12642 | done | |
81ecdfbb RW |
12643 | done |
12644 | IFS=$as_save_IFS | |
9a819804 AO |
12645 | |
12646 | fi | |
12647 | fi | |
12648 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12649 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12651 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12652 | else |
81ecdfbb RW |
12653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12654 | $as_echo "no" >&6; } | |
9a819804 AO |
12655 | fi |
12656 | ||
81ecdfbb | 12657 | |
9a819804 AO |
12658 | done |
12659 | fi | |
12660 | ||
12661 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12662 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12664 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12665 | if test -x $with_build_time_tools/${ncn_progname}; then |
12666 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12668 | $as_echo "yes" >&6; } | |
2429c060 PB |
12669 | break |
12670 | else | |
81ecdfbb RW |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12672 | $as_echo "no" >&6; } | |
2429c060 PB |
12673 | fi |
12674 | done | |
12675 | fi | |
12676 | ||
12677 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12678 | for ncn_progname in ranlib; do | |
12679 | if test -n "$ncn_target_tool_prefix"; then | |
12680 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12681 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12683 | $as_echo_n "checking for $ac_word... " >&6; } | |
12684 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12685 | $as_echo_n "(cached) " >&6 | |
859789af | 12686 | else |
55db4b87 PB |
12687 | if test -n "$RANLIB_FOR_TARGET"; then |
12688 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12689 | else |
c6b750e1 DJ |
12690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12691 | for as_dir in $PATH | |
12692 | do | |
12693 | IFS=$as_save_IFS | |
12694 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12695 | for ac_exec_ext in '' $ac_executable_extensions; do |
12696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12697 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12699 | break 2 |
12700 | fi | |
12701 | done | |
81ecdfbb RW |
12702 | done |
12703 | IFS=$as_save_IFS | |
c6b750e1 | 12704 | |
859789af AC |
12705 | fi |
12706 | fi | |
c6b750e1 | 12707 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12708 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12710 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12711 | else |
81ecdfbb RW |
12712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12713 | $as_echo "no" >&6; } | |
859789af AC |
12714 | fi |
12715 | ||
81ecdfbb | 12716 | |
2429c060 PB |
12717 | fi |
12718 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12719 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12720 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12722 | $as_echo_n "checking for $ac_word... " >&6; } | |
12723 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12724 | $as_echo_n "(cached) " >&6 | |
859789af | 12725 | else |
05cbd757 PB |
12726 | if test -n "$RANLIB_FOR_TARGET"; then |
12727 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12728 | else |
c6b750e1 DJ |
12729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12730 | for as_dir in $PATH | |
12731 | do | |
12732 | IFS=$as_save_IFS | |
12733 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12734 | for ac_exec_ext in '' $ac_executable_extensions; do |
12735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12736 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12738 | break 2 |
12739 | fi | |
12740 | done | |
81ecdfbb RW |
12741 | done |
12742 | IFS=$as_save_IFS | |
c6b750e1 | 12743 | |
859789af AC |
12744 | fi |
12745 | fi | |
c6b750e1 | 12746 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12747 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12749 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12750 | else |
81ecdfbb RW |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12752 | $as_echo "no" >&6; } | |
859789af | 12753 | fi |
c6b750e1 | 12754 | |
81ecdfbb | 12755 | |
2429c060 PB |
12756 | fi |
12757 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12758 | done | |
12759 | fi | |
c6b750e1 | 12760 | |
2429c060 PB |
12761 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12762 | set dummy ranlib | |
12763 | if test $build = $target ; then | |
12764 | RANLIB_FOR_TARGET="$2" | |
12765 | else | |
12766 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12767 | fi |
d3f5afc4 MS |
12768 | else |
12769 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12770 | fi |
05cbd757 | 12771 | |
3a35eeb3 PB |
12772 | else |
12773 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12774 | fi |
12775 | ||
2429c060 PB |
12776 | |
12777 | ||
12778 | ||
b121d7d4 DD |
12779 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12780 | if test -n "$with_build_time_tools"; then | |
12781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12782 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12783 | if test -x $with_build_time_tools/readelf; then | |
12784 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12785 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12787 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12788 | else | |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12790 | $as_echo "no" >&6; } | |
12791 | fi | |
12792 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12793 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12794 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12795 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12796 | fi | |
12797 | fi | |
12798 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12799 | # Extract the first word of "readelf", so it can be a program name with args. | |
12800 | set dummy readelf; ac_word=$2 | |
12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12802 | $as_echo_n "checking for $ac_word... " >&6; } | |
12803 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12804 | $as_echo_n "(cached) " >&6 | |
12805 | else | |
12806 | case $READELF_FOR_TARGET in | |
12807 | [\\/]* | ?:[\\/]*) | |
12808 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12809 | ;; | |
12810 | *) | |
12811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12812 | for as_dir in $gcc_cv_tool_dirs | |
12813 | do | |
12814 | IFS=$as_save_IFS | |
12815 | test -z "$as_dir" && as_dir=. | |
12816 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12818 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12820 | break 2 | |
12821 | fi | |
12822 | done | |
12823 | done | |
12824 | IFS=$as_save_IFS | |
12825 | ||
12826 | ;; | |
12827 | esac | |
12828 | fi | |
12829 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12830 | if test -n "$READELF_FOR_TARGET"; then | |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12832 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12833 | else | |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12835 | $as_echo "no" >&6; } | |
12836 | fi | |
12837 | ||
12838 | ||
12839 | fi | |
12840 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12841 | ||
12842 | ||
12843 | if test -n "$READELF_FOR_TARGET"; then | |
12844 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12845 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12846 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12847 | fi | |
12848 | ||
12849 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12850 | for ncn_progname in readelf; do | |
12851 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12852 | set dummy ${ncn_progname}; ac_word=$2 | |
12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12854 | $as_echo_n "checking for $ac_word... " >&6; } | |
12855 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12856 | $as_echo_n "(cached) " >&6 | |
12857 | else | |
12858 | if test -n "$READELF_FOR_TARGET"; then | |
12859 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12860 | else | |
12861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12862 | for as_dir in $PATH | |
12863 | do | |
12864 | IFS=$as_save_IFS | |
12865 | test -z "$as_dir" && as_dir=. | |
12866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12868 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12870 | break 2 | |
12871 | fi | |
12872 | done | |
12873 | done | |
12874 | IFS=$as_save_IFS | |
12875 | ||
12876 | fi | |
12877 | fi | |
12878 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12879 | if test -n "$READELF_FOR_TARGET"; then | |
12880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12881 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12882 | else | |
12883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12884 | $as_echo "no" >&6; } | |
12885 | fi | |
12886 | ||
12887 | ||
12888 | done | |
12889 | fi | |
12890 | ||
12891 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12892 | for ncn_progname in readelf; do | |
12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12894 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12895 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12896 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12898 | $as_echo "yes" >&6; } | |
12899 | break | |
12900 | else | |
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12902 | $as_echo "no" >&6; } | |
12903 | fi | |
12904 | done | |
12905 | fi | |
12906 | ||
12907 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12908 | for ncn_progname in readelf; do | |
12909 | if test -n "$ncn_target_tool_prefix"; then | |
12910 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12911 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12913 | $as_echo_n "checking for $ac_word... " >&6; } | |
12914 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12915 | $as_echo_n "(cached) " >&6 | |
12916 | else | |
12917 | if test -n "$READELF_FOR_TARGET"; then | |
12918 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12919 | else | |
12920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12921 | for as_dir in $PATH | |
12922 | do | |
12923 | IFS=$as_save_IFS | |
12924 | test -z "$as_dir" && as_dir=. | |
12925 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12927 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12929 | break 2 | |
12930 | fi | |
12931 | done | |
12932 | done | |
12933 | IFS=$as_save_IFS | |
12934 | ||
12935 | fi | |
12936 | fi | |
12937 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12938 | if test -n "$READELF_FOR_TARGET"; then | |
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12940 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12941 | else | |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12943 | $as_echo "no" >&6; } | |
12944 | fi | |
12945 | ||
12946 | ||
12947 | fi | |
12948 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12949 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12950 | set dummy ${ncn_progname}; ac_word=$2 | |
12951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12952 | $as_echo_n "checking for $ac_word... " >&6; } | |
12953 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12954 | $as_echo_n "(cached) " >&6 | |
12955 | else | |
12956 | if test -n "$READELF_FOR_TARGET"; then | |
12957 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12958 | else | |
12959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12960 | for as_dir in $PATH | |
12961 | do | |
12962 | IFS=$as_save_IFS | |
12963 | test -z "$as_dir" && as_dir=. | |
12964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12965 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12966 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12968 | break 2 | |
12969 | fi | |
12970 | done | |
12971 | done | |
12972 | IFS=$as_save_IFS | |
12973 | ||
12974 | fi | |
12975 | fi | |
12976 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12977 | if test -n "$READELF_FOR_TARGET"; then | |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12979 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12980 | else | |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12982 | $as_echo "no" >&6; } | |
12983 | fi | |
12984 | ||
12985 | ||
12986 | fi | |
12987 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
12988 | done | |
12989 | fi | |
12990 | ||
12991 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
12992 | set dummy readelf | |
12993 | if test $build = $target ; then | |
12994 | READELF_FOR_TARGET="$2" | |
12995 | else | |
12996 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12997 | fi | |
12998 | else | |
12999 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13000 | fi | |
13001 | ||
13002 | else | |
13003 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13004 | fi | |
13005 | ||
13006 | ||
13007 | ||
13008 | ||
2429c060 PB |
13009 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13010 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13012 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13013 | if test -x $with_build_time_tools/strip; then |
13014 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13015 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13017 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13018 | else |
81ecdfbb RW |
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13020 | $as_echo "no" >&6; } | |
3a35eeb3 | 13021 | fi |
2429c060 PB |
13022 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13023 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13024 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13025 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13026 | fi |
13027 | fi | |
c6b750e1 | 13028 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13029 | # Extract the first word of "strip", so it can be a program name with args. |
13030 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13032 | $as_echo_n "checking for $ac_word... " >&6; } | |
13033 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13034 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13035 | else |
c6b750e1 DJ |
13036 | case $STRIP_FOR_TARGET in |
13037 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13038 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13039 | ;; | |
2429c060 | 13040 | *) |
c6b750e1 DJ |
13041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13042 | for as_dir in $gcc_cv_tool_dirs | |
13043 | do | |
13044 | IFS=$as_save_IFS | |
13045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13046 | for ac_exec_ext in '' $ac_executable_extensions; do |
13047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13048 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13050 | break 2 |
13051 | fi | |
13052 | done | |
81ecdfbb RW |
13053 | done |
13054 | IFS=$as_save_IFS | |
c6b750e1 | 13055 | |
2429c060 PB |
13056 | ;; |
13057 | esac | |
13058 | fi | |
c6b750e1 | 13059 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13060 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13062 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13063 | else |
81ecdfbb RW |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13065 | $as_echo "no" >&6; } | |
2429c060 PB |
13066 | fi |
13067 | ||
81ecdfbb | 13068 | |
2429c060 PB |
13069 | fi |
13070 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13071 | |
13072 | ||
13073 | if test -n "$STRIP_FOR_TARGET"; then | |
13074 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13075 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13076 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13077 | fi | |
13078 | ||
13079 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13080 | for ncn_progname in strip; do | |
13081 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13082 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13084 | $as_echo_n "checking for $ac_word... " >&6; } | |
13085 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13086 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13087 | else |
13088 | if test -n "$STRIP_FOR_TARGET"; then | |
13089 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13090 | else | |
13091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13092 | for as_dir in $PATH | |
13093 | do | |
13094 | IFS=$as_save_IFS | |
13095 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13096 | for ac_exec_ext in '' $ac_executable_extensions; do |
13097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13098 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13100 | break 2 |
13101 | fi | |
13102 | done | |
81ecdfbb RW |
13103 | done |
13104 | IFS=$as_save_IFS | |
9a819804 AO |
13105 | |
13106 | fi | |
13107 | fi | |
13108 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13109 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13111 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13112 | else |
81ecdfbb RW |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13114 | $as_echo "no" >&6; } | |
9a819804 AO |
13115 | fi |
13116 | ||
81ecdfbb | 13117 | |
9a819804 AO |
13118 | done |
13119 | fi | |
13120 | ||
13121 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13122 | for ncn_progname in strip; do |
81ecdfbb RW |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13124 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13125 | if test -x $with_build_time_tools/${ncn_progname}; then |
13126 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13128 | $as_echo "yes" >&6; } | |
2429c060 PB |
13129 | break |
13130 | else | |
81ecdfbb RW |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13132 | $as_echo "no" >&6; } | |
2429c060 PB |
13133 | fi |
13134 | done | |
13135 | fi | |
13136 | ||
13137 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13138 | for ncn_progname in strip; do | |
13139 | if test -n "$ncn_target_tool_prefix"; then | |
13140 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13141 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13143 | $as_echo_n "checking for $ac_word... " >&6; } | |
13144 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13145 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13146 | else |
13147 | if test -n "$STRIP_FOR_TARGET"; then | |
13148 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13149 | else |
13150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13151 | for as_dir in $PATH | |
13152 | do | |
13153 | IFS=$as_save_IFS | |
13154 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13155 | for ac_exec_ext in '' $ac_executable_extensions; do |
13156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13157 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13159 | break 2 |
13160 | fi | |
13161 | done | |
81ecdfbb RW |
13162 | done |
13163 | IFS=$as_save_IFS | |
c6b750e1 | 13164 | |
7e0f7140 GK |
13165 | fi |
13166 | fi | |
c6b750e1 | 13167 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13168 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13170 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13171 | else |
81ecdfbb RW |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13173 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13174 | fi |
13175 | ||
81ecdfbb | 13176 | |
2429c060 PB |
13177 | fi |
13178 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13179 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13180 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13182 | $as_echo_n "checking for $ac_word... " >&6; } | |
13183 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13184 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13185 | else |
13186 | if test -n "$STRIP_FOR_TARGET"; then | |
13187 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13188 | else | |
c6b750e1 DJ |
13189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13190 | for as_dir in $PATH | |
13191 | do | |
13192 | IFS=$as_save_IFS | |
13193 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13194 | for ac_exec_ext in '' $ac_executable_extensions; do |
13195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13196 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13198 | break 2 |
13199 | fi | |
13200 | done | |
81ecdfbb RW |
13201 | done |
13202 | IFS=$as_save_IFS | |
c6b750e1 | 13203 | |
7e0f7140 GK |
13204 | fi |
13205 | fi | |
c6b750e1 | 13206 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13207 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13209 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13210 | else |
81ecdfbb RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13212 | $as_echo "no" >&6; } | |
7e0f7140 | 13213 | fi |
c6b750e1 | 13214 | |
81ecdfbb | 13215 | |
2429c060 PB |
13216 | fi |
13217 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13218 | done | |
13219 | fi | |
c6b750e1 | 13220 | |
7e0f7140 GK |
13221 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13222 | set dummy strip | |
13223 | if test $build = $target ; then | |
13224 | STRIP_FOR_TARGET="$2" | |
13225 | else | |
13226 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13227 | fi | |
d3f5afc4 MS |
13228 | else |
13229 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13230 | fi |
13231 | ||
3a35eeb3 PB |
13232 | else |
13233 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13234 | fi |
13235 | ||
13236 | ||
13237 | ||
13238 | ||
13239 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13240 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13242 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13243 | if test -x $with_build_time_tools/windres; then |
13244 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13245 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13247 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13248 | else |
81ecdfbb RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13250 | $as_echo "no" >&6; } | |
3a35eeb3 | 13251 | fi |
2429c060 PB |
13252 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13253 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13254 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13255 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13256 | fi |
13257 | fi | |
c6b750e1 | 13258 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13259 | # Extract the first word of "windres", so it can be a program name with args. |
13260 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13262 | $as_echo_n "checking for $ac_word... " >&6; } | |
13263 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13264 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13265 | else |
c6b750e1 DJ |
13266 | case $WINDRES_FOR_TARGET in |
13267 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13268 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13269 | ;; | |
2429c060 | 13270 | *) |
c6b750e1 DJ |
13271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13272 | for as_dir in $gcc_cv_tool_dirs | |
13273 | do | |
13274 | IFS=$as_save_IFS | |
13275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13276 | for ac_exec_ext in '' $ac_executable_extensions; do |
13277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13278 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13280 | break 2 |
13281 | fi | |
13282 | done | |
81ecdfbb RW |
13283 | done |
13284 | IFS=$as_save_IFS | |
c6b750e1 | 13285 | |
2429c060 PB |
13286 | ;; |
13287 | esac | |
13288 | fi | |
c6b750e1 | 13289 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13290 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13292 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13293 | else |
81ecdfbb RW |
13294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13295 | $as_echo "no" >&6; } | |
2429c060 PB |
13296 | fi |
13297 | ||
81ecdfbb | 13298 | |
2429c060 PB |
13299 | fi |
13300 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13301 | |
13302 | ||
13303 | if test -n "$WINDRES_FOR_TARGET"; then | |
13304 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13305 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13306 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13307 | fi | |
13308 | ||
13309 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13310 | for ncn_progname in windres; do | |
13311 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13312 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13314 | $as_echo_n "checking for $ac_word... " >&6; } | |
13315 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13316 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13317 | else |
13318 | if test -n "$WINDRES_FOR_TARGET"; then | |
13319 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13320 | else | |
13321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13322 | for as_dir in $PATH | |
13323 | do | |
13324 | IFS=$as_save_IFS | |
13325 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13326 | for ac_exec_ext in '' $ac_executable_extensions; do |
13327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13328 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13330 | break 2 |
13331 | fi | |
13332 | done | |
81ecdfbb RW |
13333 | done |
13334 | IFS=$as_save_IFS | |
9a819804 AO |
13335 | |
13336 | fi | |
13337 | fi | |
13338 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13339 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13341 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13342 | else |
81ecdfbb RW |
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13344 | $as_echo "no" >&6; } | |
9a819804 AO |
13345 | fi |
13346 | ||
81ecdfbb | 13347 | |
9a819804 AO |
13348 | done |
13349 | fi | |
13350 | ||
13351 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13352 | for ncn_progname in windres; do |
81ecdfbb RW |
13353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13354 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13355 | if test -x $with_build_time_tools/${ncn_progname}; then |
13356 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13358 | $as_echo "yes" >&6; } | |
2429c060 PB |
13359 | break |
13360 | else | |
81ecdfbb RW |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13362 | $as_echo "no" >&6; } | |
2429c060 PB |
13363 | fi |
13364 | done | |
13365 | fi | |
13366 | ||
13367 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13368 | for ncn_progname in windres; do | |
13369 | if test -n "$ncn_target_tool_prefix"; then | |
13370 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13371 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13373 | $as_echo_n "checking for $ac_word... " >&6; } | |
13374 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13375 | $as_echo_n "(cached) " >&6 | |
859789af | 13376 | else |
55db4b87 PB |
13377 | if test -n "$WINDRES_FOR_TARGET"; then |
13378 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13379 | else |
c6b750e1 DJ |
13380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13381 | for as_dir in $PATH | |
13382 | do | |
13383 | IFS=$as_save_IFS | |
13384 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13385 | for ac_exec_ext in '' $ac_executable_extensions; do |
13386 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13387 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13388 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13389 | break 2 |
13390 | fi | |
13391 | done | |
81ecdfbb RW |
13392 | done |
13393 | IFS=$as_save_IFS | |
c6b750e1 | 13394 | |
859789af AC |
13395 | fi |
13396 | fi | |
c6b750e1 | 13397 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13398 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13400 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13401 | else |
81ecdfbb RW |
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13403 | $as_echo "no" >&6; } | |
859789af AC |
13404 | fi |
13405 | ||
81ecdfbb | 13406 | |
2429c060 PB |
13407 | fi |
13408 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13409 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13410 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13412 | $as_echo_n "checking for $ac_word... " >&6; } | |
13413 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13414 | $as_echo_n "(cached) " >&6 | |
859789af | 13415 | else |
05cbd757 PB |
13416 | if test -n "$WINDRES_FOR_TARGET"; then |
13417 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13418 | else |
c6b750e1 DJ |
13419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13420 | for as_dir in $PATH | |
13421 | do | |
13422 | IFS=$as_save_IFS | |
13423 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13424 | for ac_exec_ext in '' $ac_executable_extensions; do |
13425 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13426 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13427 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13428 | break 2 |
13429 | fi | |
13430 | done | |
81ecdfbb RW |
13431 | done |
13432 | IFS=$as_save_IFS | |
c6b750e1 | 13433 | |
859789af AC |
13434 | fi |
13435 | fi | |
c6b750e1 | 13436 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13437 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13439 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13440 | else |
81ecdfbb RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13442 | $as_echo "no" >&6; } | |
859789af | 13443 | fi |
c6b750e1 | 13444 | |
81ecdfbb | 13445 | |
2429c060 PB |
13446 | fi |
13447 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13448 | done | |
13449 | fi | |
c6b750e1 | 13450 | |
05cbd757 PB |
13451 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13452 | set dummy windres | |
13453 | if test $build = $target ; then | |
13454 | WINDRES_FOR_TARGET="$2" | |
859789af | 13455 | else |
05cbd757 | 13456 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13457 | fi |
d3f5afc4 MS |
13458 | else |
13459 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13460 | fi |
13461 | ||
3a35eeb3 PB |
13462 | else |
13463 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13464 | fi |
13465 | ||
852e5f18 | 13466 | |
0c24b341 NC |
13467 | |
13468 | ||
13469 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13470 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13472 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13473 | if test -x $with_build_time_tools/windmc; then |
13474 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13475 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13477 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13478 | else |
81ecdfbb RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13480 | $as_echo "no" >&6; } | |
0c24b341 NC |
13481 | fi |
13482 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13483 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13484 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13485 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13486 | fi | |
13487 | fi | |
13488 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13489 | # Extract the first word of "windmc", so it can be a program name with args. | |
13490 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13492 | $as_echo_n "checking for $ac_word... " >&6; } | |
13493 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13494 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13495 | else |
13496 | case $WINDMC_FOR_TARGET in | |
13497 | [\\/]* | ?:[\\/]*) | |
13498 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13499 | ;; | |
13500 | *) | |
13501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13502 | for as_dir in $gcc_cv_tool_dirs | |
13503 | do | |
13504 | IFS=$as_save_IFS | |
13505 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13506 | for ac_exec_ext in '' $ac_executable_extensions; do |
13507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13508 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13510 | break 2 |
13511 | fi | |
13512 | done | |
81ecdfbb RW |
13513 | done |
13514 | IFS=$as_save_IFS | |
0c24b341 NC |
13515 | |
13516 | ;; | |
13517 | esac | |
13518 | fi | |
13519 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13520 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13522 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13523 | else |
81ecdfbb RW |
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13525 | $as_echo "no" >&6; } | |
0c24b341 NC |
13526 | fi |
13527 | ||
81ecdfbb | 13528 | |
0c24b341 NC |
13529 | fi |
13530 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13531 | ||
13532 | ||
13533 | if test -n "$WINDMC_FOR_TARGET"; then | |
13534 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13535 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13536 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13537 | fi | |
13538 | ||
13539 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13540 | for ncn_progname in windmc; do | |
13541 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13542 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13544 | $as_echo_n "checking for $ac_word... " >&6; } | |
13545 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13546 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13547 | else |
13548 | if test -n "$WINDMC_FOR_TARGET"; then | |
13549 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13550 | else | |
13551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13552 | for as_dir in $PATH | |
13553 | do | |
13554 | IFS=$as_save_IFS | |
13555 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13556 | for ac_exec_ext in '' $ac_executable_extensions; do |
13557 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13558 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13560 | break 2 |
13561 | fi | |
13562 | done | |
81ecdfbb RW |
13563 | done |
13564 | IFS=$as_save_IFS | |
0c24b341 NC |
13565 | |
13566 | fi | |
13567 | fi | |
13568 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13569 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13571 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13572 | else |
81ecdfbb RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13574 | $as_echo "no" >&6; } | |
0c24b341 NC |
13575 | fi |
13576 | ||
81ecdfbb | 13577 | |
0c24b341 NC |
13578 | done |
13579 | fi | |
13580 | ||
13581 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13582 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13584 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13585 | if test -x $with_build_time_tools/${ncn_progname}; then |
13586 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13588 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13589 | break |
13590 | else | |
81ecdfbb RW |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13592 | $as_echo "no" >&6; } | |
0c24b341 NC |
13593 | fi |
13594 | done | |
13595 | fi | |
13596 | ||
13597 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13598 | for ncn_progname in windmc; do | |
13599 | if test -n "$ncn_target_tool_prefix"; then | |
13600 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13601 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13603 | $as_echo_n "checking for $ac_word... " >&6; } | |
13604 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13605 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13606 | else |
13607 | if test -n "$WINDMC_FOR_TARGET"; then | |
13608 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13609 | else | |
13610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13611 | for as_dir in $PATH | |
13612 | do | |
13613 | IFS=$as_save_IFS | |
13614 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13615 | for ac_exec_ext in '' $ac_executable_extensions; do |
13616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13617 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13618 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13619 | break 2 |
13620 | fi | |
13621 | done | |
81ecdfbb RW |
13622 | done |
13623 | IFS=$as_save_IFS | |
0c24b341 NC |
13624 | |
13625 | fi | |
13626 | fi | |
13627 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13628 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13630 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13631 | else |
81ecdfbb RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13633 | $as_echo "no" >&6; } | |
0c24b341 NC |
13634 | fi |
13635 | ||
81ecdfbb | 13636 | |
0c24b341 NC |
13637 | fi |
13638 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13639 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13640 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13642 | $as_echo_n "checking for $ac_word... " >&6; } | |
13643 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13644 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13645 | else |
13646 | if test -n "$WINDMC_FOR_TARGET"; then | |
13647 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13648 | else | |
13649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13650 | for as_dir in $PATH | |
13651 | do | |
13652 | IFS=$as_save_IFS | |
13653 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13654 | for ac_exec_ext in '' $ac_executable_extensions; do |
13655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13656 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13658 | break 2 |
13659 | fi | |
13660 | done | |
81ecdfbb RW |
13661 | done |
13662 | IFS=$as_save_IFS | |
0c24b341 NC |
13663 | |
13664 | fi | |
13665 | fi | |
13666 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13667 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13669 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13670 | else |
81ecdfbb RW |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13672 | $as_echo "no" >&6; } | |
0c24b341 NC |
13673 | fi |
13674 | ||
81ecdfbb | 13675 | |
0c24b341 NC |
13676 | fi |
13677 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13678 | done | |
13679 | fi | |
13680 | ||
13681 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13682 | set dummy windmc | |
13683 | if test $build = $target ; then | |
13684 | WINDMC_FOR_TARGET="$2" | |
13685 | else | |
13686 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13687 | fi | |
13688 | else | |
13689 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13690 | fi | |
13691 | ||
13692 | else | |
13693 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13694 | fi | |
13695 | ||
13696 | ||
be01d343 PB |
13697 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13698 | ||
81ecdfbb RW |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13700 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13701 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13702 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13703 | # We already found the complete path | |
b8025f34 | 13704 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13706 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13707 | else |
13708 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13710 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13711 | fi |
be01d343 PB |
13712 | else |
13713 | ok=yes | |
13714 | case " ${configdirs} " in | |
13715 | *" binutils "*) ;; | |
13716 | *) ok=no ;; | |
13717 | esac | |
c6b750e1 | 13718 | |
be01d343 PB |
13719 | if test $ok = yes; then |
13720 | # An in-tree tool is available and we can use it | |
13721 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13723 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13724 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13725 | # We already found the complete path | |
b8025f34 | 13726 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13728 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13729 | elif test "x$target" = "x$host"; then |
13730 | # We can use an host tool | |
13731 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13733 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13734 | else |
13735 | # We need a cross tool | |
81ecdfbb RW |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13737 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13738 | fi |
13739 | fi | |
4b900473 | 13740 | |
81ecdfbb RW |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13742 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13743 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13744 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13745 | # We already found the complete path | |
b8025f34 | 13746 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13748 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13749 | else |
13750 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13752 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13753 | fi |
be01d343 PB |
13754 | else |
13755 | ok=yes | |
13756 | case " ${configdirs} " in | |
13757 | *" gas "*) ;; | |
13758 | *) ok=no ;; | |
13759 | esac | |
c6b750e1 | 13760 | |
be01d343 PB |
13761 | if test $ok = yes; then |
13762 | # An in-tree tool is available and we can use it | |
13763 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13765 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13766 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13767 | # We already found the complete path | |
b8025f34 | 13768 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13770 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13771 | elif test "x$target" = "x$host"; then |
13772 | # We can use an host tool | |
13773 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13775 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13776 | else |
13777 | # We need a cross tool | |
81ecdfbb RW |
13778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13779 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13780 | fi |
13781 | fi | |
4b900473 | 13782 | |
81ecdfbb RW |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13784 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13785 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13786 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13787 | # We already found the complete path | |
b8025f34 | 13788 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13790 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13791 | else |
13792 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13794 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13795 | fi |
be01d343 PB |
13796 | else |
13797 | ok=yes | |
13798 | case " ${configdirs} " in | |
13799 | *" gcc "*) ;; | |
13800 | *) ok=no ;; | |
13801 | esac | |
c6b750e1 | 13802 | |
be01d343 PB |
13803 | if test $ok = yes; then |
13804 | # An in-tree tool is available and we can use it | |
13805 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13807 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13808 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13809 | # We already found the complete path | |
b8025f34 | 13810 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13812 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13813 | elif test "x$target" = "x$host"; then |
13814 | # We can use an host tool | |
13815 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13817 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13818 | else |
13819 | # We need a cross tool | |
81ecdfbb RW |
13820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13821 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13822 | fi |
13823 | fi | |
4b900473 | 13824 | |
81ecdfbb RW |
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13826 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13827 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13828 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13829 | # We already found the complete path | |
b8025f34 | 13830 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13832 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13833 | else |
13834 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13836 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13837 | fi |
be01d343 PB |
13838 | else |
13839 | ok=yes | |
13840 | case " ${configdirs} " in | |
13841 | *" gcc "*) ;; | |
13842 | *) ok=no ;; | |
13843 | esac | |
13844 | case ,${enable_languages}, in | |
13845 | *,c++,*) ;; | |
13846 | *) ok=no ;; | |
13847 | esac | |
13848 | if test $ok = yes; then | |
13849 | # An in-tree tool is available and we can use it | |
95e43135 | 13850 | 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 |
13851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13852 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13853 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13854 | # We already found the complete path | |
b8025f34 | 13855 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13857 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13858 | elif test "x$target" = "x$host"; then |
13859 | # We can use an host tool | |
13860 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13862 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13863 | else |
13864 | # We need a cross tool | |
81ecdfbb RW |
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13866 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13867 | fi |
13868 | fi | |
4b900473 | 13869 | |
81ecdfbb RW |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13871 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13872 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13873 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13874 | # We already found the complete path | |
b8025f34 | 13875 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13877 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13878 | else |
13879 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13881 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13882 | fi |
be01d343 PB |
13883 | else |
13884 | ok=yes | |
13885 | case " ${configdirs} " in | |
13886 | *" gcc "*) ;; | |
13887 | *) ok=no ;; | |
13888 | esac | |
13889 | case ,${enable_languages}, in | |
13890 | *,c++,*) ;; | |
13891 | *) ok=no ;; | |
13892 | esac | |
13893 | if test $ok = yes; then | |
13894 | # An in-tree tool is available and we can use it | |
95e43135 | 13895 | 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 |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13897 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13898 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13899 | # We already found the complete path | |
b8025f34 | 13900 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13902 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13903 | elif test "x$target" = "x$host"; then |
13904 | # We can use an host tool | |
13905 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13907 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13908 | else |
13909 | # We need a cross tool | |
81ecdfbb RW |
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13911 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13912 | fi |
13913 | fi | |
4b900473 | 13914 | |
81ecdfbb RW |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13916 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13917 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13918 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13919 | # We already found the complete path | |
b8025f34 | 13920 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13922 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13923 | else |
13924 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13926 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13927 | fi |
be01d343 PB |
13928 | else |
13929 | ok=yes | |
13930 | case " ${configdirs} " in | |
13931 | *" binutils "*) ;; | |
13932 | *) ok=no ;; | |
13933 | esac | |
c6b750e1 | 13934 | |
be01d343 PB |
13935 | if test $ok = yes; then |
13936 | # An in-tree tool is available and we can use it | |
13937 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13939 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13940 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13941 | # We already found the complete path | |
b8025f34 | 13942 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13944 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13945 | elif test "x$target" = "x$host"; then |
13946 | # We can use an host tool | |
13947 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13949 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13950 | else |
13951 | # We need a cross tool | |
81ecdfbb RW |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13953 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13954 | fi |
13955 | fi | |
4b900473 | 13956 | |
81ecdfbb RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13958 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13959 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13960 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13961 | # We already found the complete path | |
b8025f34 | 13962 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13964 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13965 | else |
13966 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13968 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13969 | fi |
be01d343 PB |
13970 | else |
13971 | ok=yes | |
13972 | case " ${configdirs} " in | |
13973 | *" gcc "*) ;; | |
13974 | *) ok=no ;; | |
13975 | esac | |
c6b750e1 | 13976 | |
be01d343 PB |
13977 | if test $ok = yes; then |
13978 | # An in-tree tool is available and we can use it | |
13979 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13981 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13982 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13983 | # We already found the complete path | |
b8025f34 | 13984 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13986 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13987 | elif test "x$target" = "x$host"; then |
13988 | # We can use an host tool | |
13989 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13991 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13992 | else |
13993 | # We need a cross tool | |
81ecdfbb RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13995 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13996 | fi |
13997 | fi | |
4b900473 | 13998 | |
81ecdfbb RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14000 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 14001 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14002 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14003 | # We already found the complete path | |
b8025f34 | 14004 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14006 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14007 | else |
14008 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14010 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14011 | fi |
be01d343 PB |
14012 | else |
14013 | ok=yes | |
14014 | case " ${configdirs} " in | |
14015 | *" gcc "*) ;; | |
14016 | *) ok=no ;; | |
14017 | esac | |
14018 | case ,${enable_languages}, in | |
14019 | *,java,*) ;; | |
14020 | *) ok=no ;; | |
14021 | esac | |
14022 | if test $ok = yes; then | |
14023 | # An in-tree tool is available and we can use it | |
14024 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14026 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14027 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14028 | # We already found the complete path | |
b8025f34 | 14029 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14031 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14032 | elif test "x$target" = "x$host"; then |
14033 | # We can use an host tool | |
14034 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
14035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14036 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14037 | else |
14038 | # We need a cross tool | |
81ecdfbb RW |
14039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14040 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14041 | fi |
14042 | fi | |
4b900473 | 14043 | |
81ecdfbb RW |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14045 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14046 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14047 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14048 | # We already found the complete path | |
b8025f34 | 14049 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14051 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14052 | else |
14053 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14055 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14056 | fi |
be01d343 PB |
14057 | else |
14058 | ok=yes | |
14059 | case " ${configdirs} " in | |
14060 | *" gcc "*) ;; | |
14061 | *) ok=no ;; | |
14062 | esac | |
14063 | case ,${enable_languages}, in | |
14064 | *,fortran,*) ;; | |
14065 | *) ok=no ;; | |
14066 | esac | |
14067 | if test $ok = yes; then | |
14068 | # An in-tree tool is available and we can use it | |
14069 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14071 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14072 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14073 | # We already found the complete path | |
b8025f34 | 14074 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14076 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14077 | elif test "x$target" = "x$host"; then |
14078 | # We can use an host tool | |
14079 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14081 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14082 | else |
14083 | # We need a cross tool | |
81ecdfbb RW |
14084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14085 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14086 | fi |
14087 | fi | |
4b900473 | 14088 | |
e552509b ILT |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14090 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14091 | if test "x${build}" != "x${host}" ; then | |
14092 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14093 | # We already found the complete path | |
14094 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14096 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14097 | else | |
14098 | # Canadian cross, just use what we found | |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14100 | $as_echo "pre-installed" >&6; } | |
14101 | fi | |
14102 | else | |
14103 | ok=yes | |
14104 | case " ${configdirs} " in | |
14105 | *" gcc "*) ;; | |
14106 | *) ok=no ;; | |
14107 | esac | |
14108 | case ,${enable_languages}, in | |
14109 | *,go,*) ;; | |
14110 | *) ok=no ;; | |
14111 | esac | |
14112 | if test $ok = yes; then | |
14113 | # An in-tree tool is available and we can use it | |
14114 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14116 | $as_echo "just compiled" >&6; } | |
14117 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14118 | # We already found the complete path | |
14119 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14121 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14122 | elif test "x$target" = "x$host"; then | |
14123 | # We can use an host tool | |
14124 | GOC_FOR_TARGET='$(GOC)' | |
14125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14126 | $as_echo "host tool" >&6; } | |
14127 | else | |
14128 | # We need a cross tool | |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14130 | $as_echo "pre-installed" >&6; } | |
14131 | fi | |
14132 | fi | |
14133 | ||
81ecdfbb RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14135 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14136 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14137 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14138 | # We already found the complete path | |
b8025f34 | 14139 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14141 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14142 | else |
14143 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14145 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14146 | fi |
be01d343 PB |
14147 | else |
14148 | ok=yes | |
14149 | case " ${configdirs} " in | |
14150 | *" ld "*) ;; | |
14151 | *) ok=no ;; | |
14152 | esac | |
c6b750e1 | 14153 | |
be01d343 PB |
14154 | if test $ok = yes; then |
14155 | # An in-tree tool is available and we can use it | |
14156 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14158 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14159 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14160 | # We already found the complete path | |
b8025f34 | 14161 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14163 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14164 | elif test "x$target" = "x$host"; then |
14165 | # We can use an host tool | |
14166 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14168 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14169 | else |
14170 | # We need a cross tool | |
81ecdfbb RW |
14171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14172 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14173 | fi |
14174 | fi | |
4b900473 | 14175 | |
81ecdfbb RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14177 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14178 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14179 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14180 | # We already found the complete path | |
b8025f34 | 14181 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14183 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14184 | else |
14185 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14187 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14188 | fi |
be01d343 | 14189 | else |
2429c060 PB |
14190 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14191 | # We already found the complete path | |
b8025f34 | 14192 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14194 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14195 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14196 | # We can use an host tool |
14197 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14199 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14200 | else |
14201 | # We need a cross tool | |
81ecdfbb RW |
14202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14203 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14204 | fi |
14205 | fi | |
4b900473 | 14206 | |
81ecdfbb RW |
14207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14208 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14209 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14210 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14211 | # We already found the complete path | |
b8025f34 | 14212 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14214 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14215 | else |
14216 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14218 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14219 | fi |
be01d343 PB |
14220 | else |
14221 | ok=yes | |
14222 | case " ${configdirs} " in | |
14223 | *" binutils "*) ;; | |
14224 | *) ok=no ;; | |
14225 | esac | |
c6b750e1 | 14226 | |
be01d343 PB |
14227 | if test $ok = yes; then |
14228 | # An in-tree tool is available and we can use it | |
14229 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14231 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14232 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14233 | # We already found the complete path | |
b8025f34 | 14234 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14236 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14237 | elif test "x$target" = "x$host"; then |
14238 | # We can use an host tool | |
14239 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14241 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14242 | else |
14243 | # We need a cross tool | |
81ecdfbb RW |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14245 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14246 | fi |
14247 | fi | |
4b900473 | 14248 | |
81ecdfbb RW |
14249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14250 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14251 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14252 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14253 | # We already found the complete path | |
b8025f34 | 14254 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14256 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14257 | else |
14258 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14260 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14261 | fi |
be01d343 PB |
14262 | else |
14263 | ok=yes | |
14264 | case " ${configdirs} " in | |
14265 | *" binutils "*) ;; | |
14266 | *) ok=no ;; | |
14267 | esac | |
c6b750e1 | 14268 | |
be01d343 PB |
14269 | if test $ok = yes; then |
14270 | # An in-tree tool is available and we can use it | |
14271 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14273 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14274 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14275 | # We already found the complete path | |
b8025f34 | 14276 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14278 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14279 | elif test "x$target" = "x$host"; then |
14280 | # We can use an host tool | |
14281 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14283 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14284 | else |
14285 | # We need a cross tool | |
81ecdfbb RW |
14286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14287 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14288 | fi |
14289 | fi | |
4b900473 | 14290 | |
81ecdfbb RW |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14292 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14293 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14294 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14295 | # We already found the complete path | |
b8025f34 | 14296 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14298 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14299 | else |
14300 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14302 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14303 | fi |
be01d343 PB |
14304 | else |
14305 | ok=yes | |
14306 | case " ${configdirs} " in | |
14307 | *" binutils "*) ;; | |
14308 | *) ok=no ;; | |
14309 | esac | |
c6b750e1 | 14310 | |
be01d343 PB |
14311 | if test $ok = yes; then |
14312 | # An in-tree tool is available and we can use it | |
14313 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14315 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14316 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14317 | # We already found the complete path | |
b8025f34 | 14318 | ac_dir=`dirname $RANLIB_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; } | |
be01d343 PB |
14321 | elif test "x$target" = "x$host"; then |
14322 | # We can use an host tool | |
14323 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14325 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14326 | else |
14327 | # We need a cross tool | |
81ecdfbb RW |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14329 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14330 | fi |
14331 | fi | |
4b900473 | 14332 | |
b121d7d4 DD |
14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14334 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14335 | if test "x${build}" != "x${host}" ; then | |
14336 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14337 | # We already found the complete path | |
14338 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14340 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14341 | else | |
14342 | # Canadian cross, just use what we found | |
14343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14344 | $as_echo "pre-installed" >&6; } | |
14345 | fi | |
14346 | else | |
14347 | ok=yes | |
14348 | case " ${configdirs} " in | |
14349 | *" binutils "*) ;; | |
14350 | *) ok=no ;; | |
14351 | esac | |
14352 | ||
14353 | if test $ok = yes; then | |
14354 | # An in-tree tool is available and we can use it | |
14355 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14357 | $as_echo "just compiled" >&6; } | |
14358 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14359 | # We already found the complete path | |
14360 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14362 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14363 | elif test "x$target" = "x$host"; then | |
14364 | # We can use an host tool | |
14365 | READELF_FOR_TARGET='$(READELF)' | |
14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14367 | $as_echo "host tool" >&6; } | |
14368 | else | |
14369 | # We need a cross tool | |
14370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14371 | $as_echo "pre-installed" >&6; } | |
14372 | fi | |
14373 | fi | |
14374 | ||
81ecdfbb RW |
14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14376 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14377 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14378 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14379 | # We already found the complete path | |
b8025f34 | 14380 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14382 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14383 | else |
14384 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14386 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14387 | fi |
be01d343 PB |
14388 | else |
14389 | ok=yes | |
14390 | case " ${configdirs} " in | |
14391 | *" binutils "*) ;; | |
14392 | *) ok=no ;; | |
14393 | esac | |
c6b750e1 | 14394 | |
be01d343 PB |
14395 | if test $ok = yes; then |
14396 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14397 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14399 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14400 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14401 | # We already found the complete path | |
b8025f34 | 14402 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14404 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14405 | elif test "x$target" = "x$host"; then |
14406 | # We can use an host tool | |
14407 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14409 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14410 | else |
14411 | # We need a cross tool | |
81ecdfbb RW |
14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14413 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14414 | fi |
14415 | fi | |
4b900473 | 14416 | |
81ecdfbb RW |
14417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14418 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14419 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14420 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14421 | # We already found the complete path | |
b8025f34 | 14422 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14424 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14425 | else |
14426 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14428 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14429 | fi |
be01d343 PB |
14430 | else |
14431 | ok=yes | |
14432 | case " ${configdirs} " in | |
14433 | *" binutils "*) ;; | |
14434 | *) ok=no ;; | |
14435 | esac | |
c6b750e1 | 14436 | |
be01d343 PB |
14437 | if test $ok = yes; then |
14438 | # An in-tree tool is available and we can use it | |
14439 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14441 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14442 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14443 | # We already found the complete path | |
b8025f34 | 14444 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14446 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14447 | elif test "x$target" = "x$host"; then |
14448 | # We can use an host tool | |
14449 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14451 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14452 | else |
14453 | # We need a cross tool | |
81ecdfbb RW |
14454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14455 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14456 | fi |
a0da8069 | 14457 | fi |
54752a6b | 14458 | |
81ecdfbb RW |
14459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14460 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14461 | if test "x${build}" != "x${host}" ; then |
14462 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14463 | # We already found the complete path | |
14464 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14466 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14467 | else |
14468 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14470 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14471 | fi |
14472 | else | |
14473 | ok=yes | |
14474 | case " ${configdirs} " in | |
14475 | *" binutils "*) ;; | |
14476 | *) ok=no ;; | |
14477 | esac | |
14478 | ||
14479 | if test $ok = yes; then | |
14480 | # An in-tree tool is available and we can use it | |
14481 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14483 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14484 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14485 | # We already found the complete path | |
14486 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14488 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14489 | elif test "x$target" = "x$host"; then |
14490 | # We can use an host tool | |
14491 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14493 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14494 | else |
14495 | # We need a cross tool | |
81ecdfbb RW |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14497 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14498 | fi |
14499 | fi | |
14500 | ||
54752a6b NN |
14501 | |
14502 | ||
be01d343 | 14503 | |
4b900473 | 14504 | |
a0da8069 NN |
14505 | # Certain tools may need extra flags. |
14506 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14507 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14508 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14509 | ||
be01d343 PB |
14510 | # When building target libraries, except in a Canadian cross, we use |
14511 | # the same toolchain as the compiler we just built. | |
14512 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14513 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14514 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14515 | if test $host = $build; then | |
14516 | case " $configdirs " in | |
14517 | *" gcc "*) | |
14518 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14519 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14520 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14521 | ;; | |
14522 | esac | |
14523 | fi | |
14524 | ||
14525 | ||
14526 | ||
14527 | ||
14528 | ||
81ecdfbb RW |
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14530 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14531 | # Check whether --enable-maintainer-mode was given. | |
14532 | if test "${enable_maintainer_mode+set}" = set; then : | |
14533 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14534 | else |
14535 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14536 | fi |
14537 | ||
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14539 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14540 | |
14541 | ||
14542 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14543 | MAINTAINER_MODE_TRUE= | |
14544 | MAINTAINER_MODE_FALSE='#' | |
14545 | else | |
14546 | MAINTAINER_MODE_TRUE='#' | |
14547 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14548 | fi |
3d5e36ae AO |
14549 | MAINT=$MAINTAINER_MODE_TRUE |
14550 | ||
1d39f329 NN |
14551 | # --------------------- |
14552 | # GCC bootstrap support | |
14553 | # --------------------- | |
14554 | ||
14555 | # Stage specific cflags for build. | |
14556 | stage1_cflags="-g" | |
14557 | case $build in | |
14558 | vax-*-*) | |
14559 | case ${GCC} in | |
14560 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14561 | *) stage1_cflags="-g -J" ;; | |
14562 | esac ;; | |
1d39f329 NN |
14563 | esac |
14564 | ||
1d89b610 | 14565 | |
1d39f329 | 14566 | |
8a0d8a5c | 14567 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14568 | # Check whether --enable-stage1-checking was given. |
14569 | if test "${enable_stage1_checking+set}" = set; then : | |
14570 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14571 | else |
5566c1fa | 14572 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14573 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14574 | else |
5566c1fa | 14575 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14576 | fi |
81ecdfbb | 14577 | fi |
8a0d8a5c PB |
14578 | |
14579 | ||
c6b750e1 | 14580 | |
81ecdfbb RW |
14581 | # Enable -Werror in bootstrap stage2 and later. |
14582 | # Check whether --enable-werror was given. | |
14583 | if test "${enable_werror+set}" = set; then : | |
14584 | enableval=$enable_werror; | |
1d39f329 | 14585 | else |
a0323144 | 14586 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14587 | enable_werror=yes |
79fcd0ec PB |
14588 | else |
14589 | enable_werror=no | |
14590 | fi | |
81ecdfbb RW |
14591 | fi |
14592 | ||
1a6f2dc7 NN |
14593 | case ${enable_werror} in |
14594 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14595 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14596 | esac |
14597 | ||
14598 | ||
82033c9b JBG |
14599 | # Enable --enable-host-shared. |
14600 | # Check whether --enable-host-shared was given. | |
14601 | if test "${enable_host_shared+set}" = set; then : | |
14602 | enableval=$enable_host_shared; host_shared=$enableval | |
14603 | else | |
14604 | host_shared=no | |
14605 | fi | |
14606 | ||
14607 | ||
14608 | ||
e8a5fa9c RW |
14609 | # Specify what files to not compare during bootstrap. |
14610 | ||
14611 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14612 | case "$target" in | |
14613 | hppa*64*-*-hpux*) ;; | |
14614 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14615 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14616 | esac |
14617 | ||
14618 | ||
81ecdfbb RW |
14619 | ac_config_files="$ac_config_files Makefile" |
14620 | ||
c6b750e1 | 14621 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14622 | # This file is a shell script that caches the results of configure |
14623 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14624 | # scripts and configure runs, see configure's option --config-cache. |
14625 | # It is not useful on other systems. If it contains results you don't | |
14626 | # want to keep, you may remove or edit it. | |
a0da8069 | 14627 | # |
c6b750e1 DJ |
14628 | # config.status only pays attention to the cache file if you give it |
14629 | # the --recheck option to rerun configure. | |
a0da8069 | 14630 | # |
c6b750e1 DJ |
14631 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14632 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14633 | # following values. | |
14634 | ||
14635 | _ACEOF | |
14636 | ||
a0da8069 NN |
14637 | # The following way of writing the cache mishandles newlines in values, |
14638 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14639 | # So, we kill variables containing newlines. |
a0da8069 NN |
14640 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14641 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14642 | ( |
14643 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14644 | eval ac_val=\$$ac_var | |
14645 | case $ac_val in #( | |
14646 | *${as_nl}*) | |
14647 | case $ac_var in #( | |
14648 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14649 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14650 | esac | |
14651 | case $ac_var in #( | |
14652 | _ | IFS | as_nl) ;; #( | |
14653 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14654 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14655 | esac ;; | |
14656 | esac | |
14657 | done | |
14658 | ||
c6b750e1 | 14659 | (set) 2>&1 | |
81ecdfbb RW |
14660 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14661 | *${as_nl}ac_space=\ *) | |
14662 | # `set' does not quote correctly, so add quotes: double-quote | |
14663 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14664 | sed -n \ |
14665 | "s/'/'\\\\''/g; | |
14666 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14667 | ;; #( |
c6b750e1 DJ |
14668 | *) |
14669 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14670 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14671 | ;; |
81ecdfbb RW |
14672 | esac | |
14673 | sort | |
14674 | ) | | |
c6b750e1 | 14675 | sed ' |
81ecdfbb | 14676 | /^ac_cv_env_/b end |
c6b750e1 | 14677 | t clear |
81ecdfbb | 14678 | :clear |
c6b750e1 DJ |
14679 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14680 | t end | |
81ecdfbb RW |
14681 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14682 | :end' >>confcache | |
14683 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14684 | if test -w "$cache_file"; then | |
14685 | test "x$cache_file" != "x/dev/null" && | |
14686 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14687 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14688 | cat confcache >$cache_file |
a0da8069 | 14689 | else |
81ecdfbb RW |
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14691 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14692 | fi |
852e5f18 | 14693 | fi |
a0da8069 | 14694 | rm -f confcache |
852e5f18 | 14695 | |
a0da8069 NN |
14696 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14697 | # Let make expand exec_prefix. | |
14698 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14699 | |
a0da8069 NN |
14700 | # Transform confdefs.h into DEFS. |
14701 | # Protect against shell expansion while executing Makefile rules. | |
14702 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14703 | # |
14704 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14705 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14706 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14707 | ac_script=' |
14708 | :mline | |
14709 | /\\$/{ | |
14710 | N | |
14711 | s,\\\n,, | |
14712 | b mline | |
14713 | } | |
c6b750e1 | 14714 | t clear |
81ecdfbb RW |
14715 | :clear |
14716 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14717 | t quote |
81ecdfbb | 14718 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14719 | t quote |
81ecdfbb RW |
14720 | b any |
14721 | :quote | |
14722 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14723 | s/\[/\\&/g | |
14724 | s/\]/\\&/g | |
14725 | s/\$/$$/g | |
14726 | H | |
14727 | :any | |
14728 | ${ | |
14729 | g | |
14730 | s/^\n// | |
14731 | s/\n/ /g | |
14732 | p | |
14733 | } | |
14734 | ' | |
14735 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14736 | |
14737 | ||
14738 | ac_libobjs= | |
14739 | ac_ltlibobjs= | |
14740 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14741 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14742 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14743 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14744 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14745 | # will be set to the directory where LIBOBJS objects are built. | |
14746 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14747 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14748 | done |
14749 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14750 | |
c6b750e1 | 14751 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14752 | |
cac3d6c4 | 14753 | |
c6b750e1 DJ |
14754 | |
14755 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14756 | ac_write_fail=0 |
c6b750e1 DJ |
14757 | ac_clean_files_save=$ac_clean_files |
14758 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14759 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14760 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14761 | as_write_fail=0 | |
14762 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14763 | #! $SHELL |
14764 | # Generated by $as_me. | |
a0da8069 | 14765 | # Run this file to recreate the current configuration. |
a0da8069 | 14766 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14767 | # configure, is in config.log if it exists. |
376a0e54 | 14768 | |
c6b750e1 DJ |
14769 | debug=false |
14770 | ac_cs_recheck=false | |
14771 | ac_cs_silent=false | |
c6b750e1 | 14772 | |
81ecdfbb RW |
14773 | SHELL=\${CONFIG_SHELL-$SHELL} |
14774 | export SHELL | |
14775 | _ASEOF | |
14776 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14777 | ## -------------------- ## | |
14778 | ## M4sh Initialization. ## | |
14779 | ## -------------------- ## | |
14780 | ||
14781 | # Be more Bourne compatible | |
14782 | DUALCASE=1; export DUALCASE # for MKS sh | |
14783 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14784 | emulate sh |
14785 | NULLCMD=: | |
81ecdfbb | 14786 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14787 | # is contrary to our usage. Disable this feature. |
14788 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14789 | setopt NO_GLOB_SUBST |
14790 | else | |
14791 | case `(set -o) 2>/dev/null` in #( | |
14792 | *posix*) : | |
14793 | set -o posix ;; #( | |
14794 | *) : | |
14795 | ;; | |
14796 | esac | |
c6b750e1 | 14797 | fi |
c6b750e1 | 14798 | |
81ecdfbb RW |
14799 | |
14800 | as_nl=' | |
14801 | ' | |
14802 | export as_nl | |
14803 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14804 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14805 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14806 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14807 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14808 | # but without wasting forks for bash or zsh. | |
14809 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14810 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14811 | as_echo='print -r --' | |
14812 | as_echo_n='print -rn --' | |
14813 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14814 | as_echo='printf %s\n' | |
14815 | as_echo_n='printf %s' | |
14816 | else | |
14817 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14818 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14819 | as_echo_n='/usr/ucb/echo -n' | |
14820 | else | |
14821 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14822 | as_echo_n_body='eval | |
14823 | arg=$1; | |
14824 | case $arg in #( | |
14825 | *"$as_nl"*) | |
14826 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14827 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14828 | esac; | |
14829 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14830 | ' | |
14831 | export as_echo_n_body | |
14832 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14833 | fi | |
14834 | export as_echo_body | |
14835 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14836 | fi |
14837 | ||
81ecdfbb RW |
14838 | # The user is always right. |
14839 | if test "${PATH_SEPARATOR+set}" != set; then | |
14840 | PATH_SEPARATOR=: | |
14841 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14842 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14843 | PATH_SEPARATOR=';' | |
14844 | } | |
14845 | fi | |
14846 | ||
14847 | ||
14848 | # IFS | |
14849 | # We need space, tab and new line, in precisely that order. Quoting is | |
14850 | # there to prevent editors from complaining about space-tab. | |
14851 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14852 | # splitting by setting IFS to empty value.) | |
14853 | IFS=" "" $as_nl" | |
14854 | ||
14855 | # Find who we are. Look in the path if we contain no directory separator. | |
14856 | case $0 in #(( | |
14857 | *[\\/]* ) as_myself=$0 ;; | |
14858 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14859 | for as_dir in $PATH | |
14860 | do | |
14861 | IFS=$as_save_IFS | |
14862 | test -z "$as_dir" && as_dir=. | |
14863 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14864 | done | |
14865 | IFS=$as_save_IFS | |
14866 | ||
14867 | ;; | |
14868 | esac | |
14869 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14870 | # in which case we are not to be found in the path. | |
14871 | if test "x$as_myself" = x; then | |
14872 | as_myself=$0 | |
14873 | fi | |
14874 | if test ! -f "$as_myself"; then | |
14875 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14876 | exit 1 | |
14877 | fi | |
c6b750e1 | 14878 | |
81ecdfbb RW |
14879 | # Unset variables that we do not need and which cause bugs (e.g. in |
14880 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14881 | # suppresses any "Segmentation fault" message there. '((' could | |
14882 | # trigger a bug in pdksh 5.2.14. | |
14883 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14884 | do eval test x\${$as_var+set} = xset \ | |
14885 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14886 | done | |
c6b750e1 DJ |
14887 | PS1='$ ' |
14888 | PS2='> ' | |
14889 | PS4='+ ' | |
14890 | ||
14891 | # NLS nuisances. | |
81ecdfbb RW |
14892 | LC_ALL=C |
14893 | export LC_ALL | |
14894 | LANGUAGE=C | |
14895 | export LANGUAGE | |
14896 | ||
14897 | # CDPATH. | |
14898 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14899 | ||
14900 | ||
14901 | # as_fn_error ERROR [LINENO LOG_FD] | |
14902 | # --------------------------------- | |
14903 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14904 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14905 | # script with status $?, using 1 if that was 0. | |
14906 | as_fn_error () | |
14907 | { | |
14908 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14909 | if test "$3"; then | |
14910 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14911 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14912 | fi |
81ecdfbb RW |
14913 | $as_echo "$as_me: error: $1" >&2 |
14914 | as_fn_exit $as_status | |
14915 | } # as_fn_error | |
14916 | ||
14917 | ||
14918 | # as_fn_set_status STATUS | |
14919 | # ----------------------- | |
14920 | # Set $? to STATUS, without forking. | |
14921 | as_fn_set_status () | |
14922 | { | |
14923 | return $1 | |
14924 | } # as_fn_set_status | |
14925 | ||
14926 | # as_fn_exit STATUS | |
14927 | # ----------------- | |
14928 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14929 | as_fn_exit () | |
14930 | { | |
14931 | set +e | |
14932 | as_fn_set_status $1 | |
14933 | exit $1 | |
14934 | } # as_fn_exit | |
14935 | ||
14936 | # as_fn_unset VAR | |
14937 | # --------------- | |
14938 | # Portably unset VAR. | |
14939 | as_fn_unset () | |
14940 | { | |
14941 | { eval $1=; unset $1;} | |
14942 | } | |
14943 | as_unset=as_fn_unset | |
14944 | # as_fn_append VAR VALUE | |
14945 | # ---------------------- | |
14946 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14947 | # advantage of any shell optimizations that allow amortized linear growth over | |
14948 | # repeated appends, instead of the typical quadratic growth present in naive | |
14949 | # implementations. | |
14950 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14951 | eval 'as_fn_append () | |
14952 | { | |
14953 | eval $1+=\$2 | |
14954 | }' | |
14955 | else | |
14956 | as_fn_append () | |
14957 | { | |
14958 | eval $1=\$$1\$2 | |
14959 | } | |
14960 | fi # as_fn_append | |
14961 | ||
14962 | # as_fn_arith ARG... | |
14963 | # ------------------ | |
14964 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14965 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14966 | # must be portable across $(()) and expr. | |
14967 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14968 | eval 'as_fn_arith () | |
14969 | { | |
14970 | as_val=$(( $* )) | |
14971 | }' | |
14972 | else | |
14973 | as_fn_arith () | |
14974 | { | |
14975 | as_val=`expr "$@" || test $? -eq 1` | |
14976 | } | |
14977 | fi # as_fn_arith | |
14978 | ||
c6b750e1 | 14979 | |
81ecdfbb RW |
14980 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14981 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14982 | as_expr=expr |
14983 | else | |
14984 | as_expr=false | |
14985 | fi | |
14986 | ||
81ecdfbb | 14987 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14988 | as_basename=basename |
14989 | else | |
14990 | as_basename=false | |
14991 | fi | |
14992 | ||
81ecdfbb RW |
14993 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14994 | as_dirname=dirname | |
14995 | else | |
14996 | as_dirname=false | |
14997 | fi | |
c6b750e1 | 14998 | |
81ecdfbb | 14999 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15000 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15001 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15002 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15003 | $as_echo X/"$0" | | |
15004 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15005 | s//\1/ | |
15006 | q | |
15007 | } | |
15008 | /^X\/\(\/\/\)$/{ | |
15009 | s//\1/ | |
15010 | q | |
15011 | } | |
15012 | /^X\/\(\/\).*/{ | |
15013 | s//\1/ | |
15014 | q | |
15015 | } | |
15016 | s/.*/./; q'` | |
c6b750e1 | 15017 | |
c6b750e1 DJ |
15018 | # Avoid depending upon Character Ranges. |
15019 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15020 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15021 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15022 | as_cr_digits='0123456789' | |
15023 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15024 | ||
81ecdfbb RW |
15025 | ECHO_C= ECHO_N= ECHO_T= |
15026 | case `echo -n x` in #((((( | |
15027 | -n*) | |
15028 | case `echo 'xy\c'` in | |
15029 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15030 | xy) ECHO_C='\c';; | |
15031 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15032 | ECHO_T=' ';; | |
15033 | esac;; | |
15034 | *) | |
15035 | ECHO_N='-n';; | |
c6b750e1 DJ |
15036 | esac |
15037 | ||
81ecdfbb RW |
15038 | rm -f conf$$ conf$$.exe conf$$.file |
15039 | if test -d conf$$.dir; then | |
15040 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15041 | else |
81ecdfbb RW |
15042 | rm -f conf$$.dir |
15043 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15044 | fi |
81ecdfbb RW |
15045 | if (echo >conf$$.file) 2>/dev/null; then |
15046 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15047 | as_ln_s='ln -s' |
81ecdfbb RW |
15048 | # ... but there are two gotchas: |
15049 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15050 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15051 | # In both cases, we have to default to `cp -p'. | |
15052 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15053 | as_ln_s='cp -p' | |
15054 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15055 | as_ln_s=ln | |
15056 | else | |
15057 | as_ln_s='cp -p' | |
c6b750e1 | 15058 | fi |
c6b750e1 DJ |
15059 | else |
15060 | as_ln_s='cp -p' | |
15061 | fi | |
81ecdfbb RW |
15062 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15063 | rmdir conf$$.dir 2>/dev/null | |
15064 | ||
15065 | ||
15066 | # as_fn_mkdir_p | |
15067 | # ------------- | |
15068 | # Create "$as_dir" as a directory, including parents if necessary. | |
15069 | as_fn_mkdir_p () | |
15070 | { | |
15071 | ||
15072 | case $as_dir in #( | |
15073 | -*) as_dir=./$as_dir;; | |
15074 | esac | |
15075 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15076 | as_dirs= | |
15077 | while :; do | |
15078 | case $as_dir in #( | |
15079 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15080 | *) as_qdir=$as_dir;; | |
15081 | esac | |
15082 | as_dirs="'$as_qdir' $as_dirs" | |
15083 | as_dir=`$as_dirname -- "$as_dir" || | |
15084 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15085 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15086 | X"$as_dir" : 'X\(//\)$' \| \ | |
15087 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15088 | $as_echo X"$as_dir" | | |
15089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15090 | s//\1/ | |
15091 | q | |
15092 | } | |
15093 | /^X\(\/\/\)[^/].*/{ | |
15094 | s//\1/ | |
15095 | q | |
15096 | } | |
15097 | /^X\(\/\/\)$/{ | |
15098 | s//\1/ | |
15099 | q | |
15100 | } | |
15101 | /^X\(\/\).*/{ | |
15102 | s//\1/ | |
15103 | q | |
15104 | } | |
15105 | s/.*/./; q'` | |
15106 | test -d "$as_dir" && break | |
15107 | done | |
15108 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15109 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15110 | ||
c6b750e1 | 15111 | |
81ecdfbb | 15112 | } # as_fn_mkdir_p |
c6b750e1 | 15113 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15114 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15115 | else |
15116 | test -d ./-p && rmdir ./-p | |
15117 | as_mkdir_p=false | |
15118 | fi | |
15119 | ||
81ecdfbb RW |
15120 | if test -x / >/dev/null 2>&1; then |
15121 | as_test_x='test -x' | |
15122 | else | |
15123 | if ls -dL / >/dev/null 2>&1; then | |
15124 | as_ls_L_option=L | |
15125 | else | |
15126 | as_ls_L_option= | |
15127 | fi | |
15128 | as_test_x=' | |
15129 | eval sh -c '\'' | |
15130 | if test -d "$1"; then | |
15131 | test -d "$1/."; | |
15132 | else | |
15133 | case $1 in #( | |
15134 | -*)set "./$1";; | |
15135 | esac; | |
15136 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15137 | ???[sx]*):;;*)false;;esac;fi | |
15138 | '\'' sh | |
15139 | ' | |
15140 | fi | |
15141 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15142 | |
15143 | # Sed expression to map a string onto a valid CPP name. | |
15144 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15145 | ||
15146 | # Sed expression to map a string onto a valid variable name. | |
15147 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15148 | ||
15149 | ||
c6b750e1 | 15150 | exec 6>&1 |
81ecdfbb RW |
15151 | ## ----------------------------------- ## |
15152 | ## Main body of $CONFIG_STATUS script. ## | |
15153 | ## ----------------------------------- ## | |
15154 | _ASEOF | |
15155 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15156 | ||
15157 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15158 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15159 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15160 | # values after options handling. |
15161 | ac_log=" | |
c6b750e1 | 15162 | This file was extended by $as_me, which was |
81ecdfbb | 15163 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15164 | |
15165 | CONFIG_FILES = $CONFIG_FILES | |
15166 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15167 | CONFIG_LINKS = $CONFIG_LINKS | |
15168 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15169 | $ $0 $@ | |
15170 | ||
81ecdfbb RW |
15171 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15172 | " | |
15173 | ||
c6b750e1 DJ |
15174 | _ACEOF |
15175 | ||
81ecdfbb RW |
15176 | case $ac_config_files in *" |
15177 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15178 | esac | |
c6b750e1 | 15179 | |
c6b750e1 | 15180 | |
c6b750e1 | 15181 | |
81ecdfbb RW |
15182 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15183 | # Files that config.status was made for. | |
15184 | config_files="$ac_config_files" | |
c6b750e1 | 15185 | |
81ecdfbb | 15186 | _ACEOF |
c6b750e1 | 15187 | |
81ecdfbb | 15188 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15189 | ac_cs_usage="\ |
81ecdfbb RW |
15190 | \`$as_me' instantiates files and other configuration actions |
15191 | from templates according to the current configuration. Unless the files | |
15192 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15193 | |
81ecdfbb | 15194 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15195 | |
15196 | -h, --help print this help, then exit | |
81ecdfbb RW |
15197 | -V, --version print version number and configuration settings, then exit |
15198 | -q, --quiet, --silent | |
15199 | do not print progress messages | |
c6b750e1 DJ |
15200 | -d, --debug don't remove temporary files |
15201 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15202 | --file=FILE[:TEMPLATE] |
15203 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15204 | |
15205 | Configuration files: | |
15206 | $config_files | |
15207 | ||
81ecdfbb | 15208 | Report bugs to the package provider." |
c6b750e1 | 15209 | |
81ecdfbb RW |
15210 | _ACEOF |
15211 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15212 | ac_cs_version="\\ |
15213 | config.status | |
81ecdfbb RW |
15214 | configured by $0, generated by GNU Autoconf 2.64, |
15215 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15216 | |
81ecdfbb | 15217 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15218 | This config.status script is free software; the Free Software Foundation |
15219 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15220 | |
15221 | ac_pwd='$ac_pwd' | |
15222 | srcdir='$srcdir' | |
15223 | INSTALL='$INSTALL' | |
8e957354 | 15224 | AWK='$AWK' |
81ecdfbb | 15225 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15226 | _ACEOF |
15227 | ||
81ecdfbb RW |
15228 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15229 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15230 | ac_need_defaults=: |
15231 | while test $# != 0 | |
a0da8069 | 15232 | do |
c6b750e1 DJ |
15233 | case $1 in |
15234 | --*=*) | |
81ecdfbb RW |
15235 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15236 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15237 | ac_shift=: |
15238 | ;; | |
81ecdfbb | 15239 | *) |
c6b750e1 DJ |
15240 | ac_option=$1 |
15241 | ac_optarg=$2 | |
15242 | ac_shift=shift | |
15243 | ;; | |
c6b750e1 DJ |
15244 | esac |
15245 | ||
15246 | case $ac_option in | |
15247 | # Handling of the options. | |
a0da8069 | 15248 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15249 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15250 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15251 | $as_echo "$ac_cs_version"; exit ;; | |
15252 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15253 | debug=: ;; |
15254 | --file | --fil | --fi | --f ) | |
15255 | $ac_shift | |
81ecdfbb RW |
15256 | case $ac_optarg in |
15257 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15258 | esac | |
15259 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15260 | ac_need_defaults=false;; |
81ecdfbb RW |
15261 | --he | --h | --help | --hel | -h ) |
15262 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15263 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15264 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15265 | ac_cs_silent=: ;; | |
15266 | ||
15267 | # This is an error. | |
81ecdfbb RW |
15268 | -*) as_fn_error "unrecognized option: \`$1' |
15269 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15270 | |
81ecdfbb RW |
15271 | *) as_fn_append ac_config_targets " $1" |
15272 | ac_need_defaults=false ;; | |
c6b750e1 | 15273 | |
376a0e54 | 15274 | esac |
c6b750e1 | 15275 | shift |
376a0e54 CM |
15276 | done |
15277 | ||
c6b750e1 | 15278 | ac_configure_extra_args= |
376a0e54 | 15279 | |
c6b750e1 DJ |
15280 | if $ac_cs_silent; then |
15281 | exec 6>/dev/null | |
15282 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15283 | fi | |
376a0e54 | 15284 | |
c6b750e1 | 15285 | _ACEOF |
81ecdfbb | 15286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15287 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15288 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15289 | shift | |
15290 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15291 | CONFIG_SHELL='$SHELL' | |
15292 | export CONFIG_SHELL | |
15293 | exec "\$@" | |
c6b750e1 DJ |
15294 | fi |
15295 | ||
15296 | _ACEOF | |
81ecdfbb RW |
15297 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15298 | exec 5>>config.log | |
15299 | { | |
15300 | echo | |
15301 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15302 | ## Running $as_me. ## | |
15303 | _ASBOX | |
15304 | $as_echo "$ac_log" | |
15305 | } >&5 | |
c6b750e1 | 15306 | |
81ecdfbb RW |
15307 | _ACEOF |
15308 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15309 | # |
15310 | # INIT-COMMANDS | |
15311 | # | |
15312 | extrasub_build="$extrasub_build" | |
15313 | extrasub_host="$extrasub_host" | |
15314 | extrasub_target="$extrasub_target" | |
15315 | ||
81ecdfbb | 15316 | _ACEOF |
c6b750e1 | 15317 | |
81ecdfbb | 15318 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15319 | |
81ecdfbb | 15320 | # Handling of arguments. |
c6b750e1 DJ |
15321 | for ac_config_target in $ac_config_targets |
15322 | do | |
81ecdfbb RW |
15323 | case $ac_config_target in |
15324 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15325 | ||
15326 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15327 | esac |
15328 | done | |
15329 | ||
81ecdfbb | 15330 | |
c6b750e1 DJ |
15331 | # If the user did not use the arguments to specify the items to instantiate, |
15332 | # then the envvar interface is used. Set only those that are not. | |
15333 | # We use the long form for the default assignment because of an extremely | |
15334 | # bizarre bug on SunOS 4.1.3. | |
15335 | if $ac_need_defaults; then | |
15336 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15337 | fi | |
15338 | ||
15339 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15340 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15341 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15342 | # Hook for its removal unless debugging. |
15343 | # Note that there is a small window in which the directory will not be cleaned: | |
15344 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15345 | $debug || |
15346 | { | |
81ecdfbb RW |
15347 | tmp= |
15348 | trap 'exit_status=$? | |
15349 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15350 | ' 0 | |
15351 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15352 | } |
c6b750e1 DJ |
15353 | # Create a (secure) tmp directory for tmp files. |
15354 | ||
15355 | { | |
81ecdfbb | 15356 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15357 | test -n "$tmp" && test -d "$tmp" |
15358 | } || | |
15359 | { | |
81ecdfbb RW |
15360 | tmp=./conf$$-$RANDOM |
15361 | (umask 077 && mkdir "$tmp") | |
15362 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15363 | ||
15364 | # Set up the scripts for CONFIG_FILES section. | |
15365 | # No need to generate them if there are no CONFIG_FILES. | |
15366 | # This happens for instance with `./config.status config.h'. | |
15367 | if test -n "$CONFIG_FILES"; then | |
15368 | ||
15369 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15370 | ac_cs_awk_getline=: | |
15371 | ac_cs_awk_pipe_init= | |
15372 | ac_cs_awk_read_file=' | |
15373 | while ((getline aline < (F[key])) > 0) | |
15374 | print(aline) | |
15375 | close(F[key])' | |
15376 | ac_cs_awk_pipe_fini= | |
15377 | else | |
15378 | ac_cs_awk_getline=false | |
15379 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15380 | ac_cs_awk_read_file=' | |
15381 | print "|#_!!_#|" | |
15382 | print "cat " F[key] " &&" | |
15383 | '$ac_cs_awk_pipe_init | |
15384 | # The final `:' finishes the AND list. | |
15385 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15386 | fi | |
15387 | ac_cr=`echo X | tr X '\015'` | |
15388 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15389 | # But we know of no other shell where ac_cr would be empty at this | |
15390 | # point, so we can use a bashism as a fallback. | |
15391 | if test "x$ac_cr" = x; then | |
15392 | eval ac_cr=\$\'\\r\' | |
15393 | fi | |
15394 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15395 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15396 | ac_cs_awk_cr='\r' | |
15397 | else | |
15398 | ac_cs_awk_cr=$ac_cr | |
15399 | fi | |
15400 | ||
15401 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15402 | _ACEOF | |
15403 | ||
15404 | # Create commands to substitute file output variables. | |
c6b750e1 | 15405 | { |
81ecdfbb RW |
15406 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15407 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15408 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15409 | echo "_ACAWK" && | |
15410 | echo "_ACEOF" | |
15411 | } >conf$$files.sh && | |
15412 | . ./conf$$files.sh || | |
15413 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15414 | rm -f conf$$files.sh | |
c6b750e1 | 15415 | |
81ecdfbb RW |
15416 | { |
15417 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15418 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15419 | echo "_ACEOF" | |
15420 | } >conf$$subs.sh || | |
15421 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15422 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15423 | ac_delim='%!_!# ' | |
15424 | for ac_last_try in false false false false false :; do | |
15425 | . ./conf$$subs.sh || | |
15426 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15427 | ||
15428 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15429 | if test $ac_delim_n = $ac_delim_num; then | |
15430 | break | |
15431 | elif $ac_last_try; then | |
15432 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15433 | else | |
15434 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15435 | fi | |
15436 | done | |
15437 | rm -f conf$$subs.sh | |
15438 | ||
15439 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15440 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15441 | _ACEOF |
81ecdfbb RW |
15442 | sed -n ' |
15443 | h | |
15444 | s/^/S["/; s/!.*/"]=/ | |
15445 | p | |
15446 | g | |
15447 | s/^[^!]*!// | |
15448 | :repl | |
15449 | t repl | |
15450 | s/'"$ac_delim"'$// | |
15451 | t delim | |
15452 | :nl | |
15453 | h | |
15454 | s/\(.\{148\}\).*/\1/ | |
15455 | t more1 | |
15456 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15457 | p | |
15458 | n | |
15459 | b repl | |
15460 | :more1 | |
15461 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15462 | p | |
15463 | g | |
15464 | s/.\{148\}// | |
15465 | t nl | |
15466 | :delim | |
15467 | h | |
15468 | s/\(.\{148\}\).*/\1/ | |
15469 | t more2 | |
15470 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15471 | p | |
15472 | b | |
15473 | :more2 | |
15474 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15475 | p | |
15476 | g | |
15477 | s/.\{148\}// | |
15478 | t delim | |
15479 | ' <conf$$subs.awk | sed ' | |
15480 | /^[^""]/{ | |
15481 | N | |
15482 | s/\n// | |
15483 | } | |
15484 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15485 | rm -f conf$$subs.awk | |
15486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15487 | _ACAWK | |
15488 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15489 | for (key in S) S_is_set[key] = 1 | |
15490 | FS = "\a" | |
15491 | \$ac_cs_awk_pipe_init | |
15492 | } | |
15493 | { | |
15494 | line = $ 0 | |
15495 | nfields = split(line, field, "@") | |
15496 | substed = 0 | |
15497 | len = length(field[1]) | |
15498 | for (i = 2; i < nfields; i++) { | |
15499 | key = field[i] | |
15500 | keylen = length(key) | |
15501 | if (S_is_set[key]) { | |
15502 | value = S[key] | |
15503 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15504 | len += length(value) + length(field[++i]) | |
15505 | substed = 1 | |
15506 | } else | |
15507 | len += 1 + keylen | |
15508 | } | |
15509 | if (nfields == 3 && !substed) { | |
15510 | key = field[2] | |
15511 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15512 | \$ac_cs_awk_read_file | |
15513 | next | |
15514 | } | |
15515 | } | |
15516 | print line | |
15517 | } | |
15518 | \$ac_cs_awk_pipe_fini | |
15519 | _ACAWK | |
15520 | _ACEOF | |
15521 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15522 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15523 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15524 | else | |
15525 | cat | |
15526 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15527 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15528 | _ACEOF | |
15529 | ||
15530 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15531 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15532 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15533 | # (actually we leave an empty line to preserve line numbers). | |
15534 | if test "x$srcdir" = x.; then | |
15535 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15536 | s/:*\$(srcdir):*/:/ | |
15537 | s/:*\${srcdir}:*/:/ | |
15538 | s/:*@srcdir@:*/:/ | |
15539 | s/^\([^=]*=[ ]*\):*/\1/ | |
15540 | s/:*$// | |
15541 | s/^[^=]*=[ ]*$// | |
15542 | }' | |
15543 | fi | |
c6b750e1 | 15544 | |
81ecdfbb RW |
15545 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15546 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15547 | |
c6b750e1 | 15548 | |
81ecdfbb RW |
15549 | eval set X " :F $CONFIG_FILES " |
15550 | shift | |
15551 | for ac_tag | |
15552 | do | |
15553 | case $ac_tag in | |
15554 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15555 | esac | |
15556 | case $ac_mode$ac_tag in | |
15557 | :[FHL]*:*);; | |
15558 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15559 | :[FH]-) ac_tag=-:-;; | |
15560 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15561 | esac | |
15562 | ac_save_IFS=$IFS | |
15563 | IFS=: | |
15564 | set x $ac_tag | |
15565 | IFS=$ac_save_IFS | |
15566 | shift | |
15567 | ac_file=$1 | |
15568 | shift | |
252b5132 | 15569 | |
81ecdfbb RW |
15570 | case $ac_mode in |
15571 | :L) ac_source=$1;; | |
15572 | :[FH]) | |
15573 | ac_file_inputs= | |
15574 | for ac_f | |
15575 | do | |
15576 | case $ac_f in | |
15577 | -) ac_f="$tmp/stdin";; | |
15578 | *) # Look for the file first in the build tree, then in the source tree | |
15579 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15580 | # because $ac_f cannot contain `:'. | |
15581 | test -f "$ac_f" || | |
15582 | case $ac_f in | |
15583 | [\\/$]*) false;; | |
15584 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15585 | esac || | |
15586 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15587 | esac | |
15588 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15589 | as_fn_append ac_file_inputs " '$ac_f'" | |
15590 | done | |
c6b750e1 | 15591 | |
81ecdfbb RW |
15592 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15593 | # use $as_me), people would be surprised to read: | |
15594 | # /* config.h. Generated by config.status. */ | |
15595 | configure_input='Generated from '` | |
15596 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15597 | `' by configure.' | |
15598 | if test x"$ac_file" != x-; then | |
15599 | configure_input="$ac_file. $configure_input" | |
15600 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15601 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15602 | fi |
81ecdfbb RW |
15603 | # Neutralize special characters interpreted by sed in replacement strings. |
15604 | case $configure_input in #( | |
15605 | *\&* | *\|* | *\\* ) | |
15606 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15607 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15608 | *) ac_sed_conf_input=$configure_input;; | |
15609 | esac | |
cac3d6c4 | 15610 | |
81ecdfbb RW |
15611 | case $ac_tag in |
15612 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15613 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15614 | esac | |
15615 | ;; | |
a0da8069 | 15616 | esac |
252b5132 | 15617 | |
81ecdfbb | 15618 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15619 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15620 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15621 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15622 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15623 | $as_echo X"$ac_file" | | |
15624 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15625 | s//\1/ | |
15626 | q | |
15627 | } | |
15628 | /^X\(\/\/\)[^/].*/{ | |
15629 | s//\1/ | |
15630 | q | |
15631 | } | |
15632 | /^X\(\/\/\)$/{ | |
15633 | s//\1/ | |
15634 | q | |
15635 | } | |
15636 | /^X\(\/\).*/{ | |
15637 | s//\1/ | |
15638 | q | |
15639 | } | |
15640 | s/.*/./; q'` | |
15641 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15642 | ac_builddir=. |
252b5132 | 15643 | |
81ecdfbb RW |
15644 | case "$ac_dir" in |
15645 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15646 | *) | |
15647 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15648 | # A ".." for each directory in $ac_dir_suffix. | |
15649 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15650 | case $ac_top_builddir_sub in | |
15651 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15652 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15653 | esac ;; | |
15654 | esac | |
15655 | ac_abs_top_builddir=$ac_pwd | |
15656 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15657 | # for backward compatibility: | |
15658 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15659 | |
15660 | case $srcdir in | |
81ecdfbb | 15661 | .) # We are building in place. |
c6b750e1 | 15662 | ac_srcdir=. |
81ecdfbb RW |
15663 | ac_top_srcdir=$ac_top_builddir_sub |
15664 | ac_abs_top_srcdir=$ac_pwd ;; | |
15665 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15666 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15667 | ac_top_srcdir=$srcdir |
15668 | ac_abs_top_srcdir=$srcdir ;; | |
15669 | *) # Relative name. | |
15670 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15671 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15672 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15673 | esac |
81ecdfbb | 15674 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15675 | |
252b5132 | 15676 | |
81ecdfbb RW |
15677 | case $ac_mode in |
15678 | :F) | |
15679 | # | |
15680 | # CONFIG_FILE | |
15681 | # | |
c6b750e1 DJ |
15682 | |
15683 | case $INSTALL in | |
15684 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15685 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15686 | esac |
81ecdfbb | 15687 | _ACEOF |
252b5132 | 15688 | |
81ecdfbb RW |
15689 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15690 | # If the template does not know about datarootdir, expand it. | |
15691 | # FIXME: This hack should be removed a few years after 2.60. | |
15692 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15693 | ac_sed_dataroot=' | |
15694 | /datarootdir/ { | |
15695 | p | |
15696 | q | |
15697 | } | |
15698 | /@datadir@/p | |
15699 | /@docdir@/p | |
15700 | /@infodir@/p | |
15701 | /@localedir@/p | |
15702 | /@mandir@/p' | |
15703 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15704 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15705 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15706 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15707 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15708 | _ACEOF |
81ecdfbb RW |
15709 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15710 | ac_datarootdir_hack=' | |
15711 | s&@datadir@&$datadir&g | |
15712 | s&@docdir@&$docdir&g | |
15713 | s&@infodir@&$infodir&g | |
15714 | s&@localedir@&$localedir&g | |
15715 | s&@mandir@&$mandir&g | |
15716 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15717 | esac | |
15718 | _ACEOF | |
15719 | ||
15720 | # Neutralize VPATH when `$srcdir' = `.'. | |
15721 | # Shell code in configure.ac might set extrasub. | |
15722 | # FIXME: do we really want to maintain this feature? | |
15723 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15724 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15725 | $extrasub |
15726 | _ACEOF | |
81ecdfbb | 15727 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15728 | :t |
15729 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15730 | s|@configure_input@|$ac_sed_conf_input|;t t |
15731 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15732 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15733 | s&@srcdir@&$ac_srcdir&;t t | |
15734 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15735 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15736 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15737 | s&@builddir@&$ac_builddir&;t t | |
15738 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15739 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15740 | s&@INSTALL@&$ac_INSTALL&;t t | |
15741 | $ac_datarootdir_hack | |
15742 | " | |
15743 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15744 | if $ac_cs_awk_getline; then | |
15745 | $AWK -f "$tmp/subs.awk" | |
15746 | else | |
15747 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15748 | fi >$tmp/out \ | |
15749 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15750 | ||
15751 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15752 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15753 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15755 | which seems to be undefined. Please make sure it is defined." >&5 | |
15756 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15757 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15758 | ||
15759 | rm -f "$tmp/stdin" | |
15760 | case $ac_file in | |
15761 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15762 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15763 | esac \ | |
15764 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15765 | ;; | |
c148b4cb | 15766 | |
c148b4cb | 15767 | |
c148b4cb | 15768 | |
81ecdfbb RW |
15769 | esac |
15770 | ||
06a51eac RW |
15771 | |
15772 | case $ac_file$ac_mode in | |
15773 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15774 | sed "$extrasub_host" | | |
15775 | sed "$extrasub_target" > mf$$ | |
15776 | mv -f mf$$ Makefile ;; | |
15777 | ||
15778 | esac | |
81ecdfbb RW |
15779 | done # for ac_tag |
15780 | ||
15781 | ||
15782 | as_fn_exit 0 | |
c6b750e1 | 15783 | _ACEOF |
c6b750e1 DJ |
15784 | ac_clean_files=$ac_clean_files_save |
15785 | ||
81ecdfbb RW |
15786 | test $ac_write_fail = 0 || |
15787 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15788 | ||
c6b750e1 DJ |
15789 | |
15790 | # configure is writing to config.log, and then calls config.status. | |
15791 | # config.status does its own redirection, appending to config.log. | |
15792 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15793 | # by configure, so config.status won't be able to write to it; its | |
15794 | # output is simply discarded. So we exec the FD to /dev/null, | |
15795 | # effectively closing config.log, so it can be properly (re)opened and | |
15796 | # appended to by config.status. When coming back to configure, we | |
15797 | # need to make the FD available again. | |
15798 | if test "$no_create" != yes; then | |
15799 | ac_cs_success=: | |
15800 | ac_config_status_args= | |
15801 | test "$silent" = yes && | |
15802 | ac_config_status_args="$ac_config_status_args --quiet" | |
15803 | exec 5>/dev/null | |
15804 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15805 | exec 5>>config.log | |
15806 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15807 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15808 | $ac_cs_success || as_fn_exit $? |
15809 | fi | |
15810 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15811 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15812 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15813 | fi |
c148b4cb | 15814 |