]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell [email protected] about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
82033c9b | 559 | host_shared |
81ecdfbb RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
b121d7d4 | 574 | READELF_FOR_TARGET |
81ecdfbb RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
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 |
730af8ee | 786 | enable_vtable_verify |
81ecdfbb RW |
787 | enable_serial_configure |
788 | with_build_time_tools | |
789 | enable_maintainer_mode | |
790 | enable_stage1_checking | |
791 | enable_werror | |
82033c9b | 792 | enable_host_shared |
81ecdfbb RW |
793 | ' |
794 | ac_precious_vars='build_alias | |
795 | host_alias | |
796 | target_alias | |
797 | CC | |
798 | CFLAGS | |
799 | LDFLAGS | |
800 | LIBS | |
801 | CPPFLAGS | |
802 | CXX | |
803 | CXXFLAGS | |
804 | CCC | |
4074d5f2 RW |
805 | build_configargs |
806 | host_configargs | |
807 | target_configargs | |
81ecdfbb RW |
808 | AR |
809 | AS | |
810 | DLLTOOL | |
811 | LD | |
812 | LIPO | |
813 | NM | |
814 | RANLIB | |
815 | STRIP | |
816 | WINDRES | |
817 | WINDMC | |
818 | OBJCOPY | |
819 | OBJDUMP | |
b121d7d4 | 820 | READELF |
81ecdfbb RW |
821 | CC_FOR_TARGET |
822 | CXX_FOR_TARGET | |
823 | GCC_FOR_TARGET | |
824 | GCJ_FOR_TARGET | |
825 | GFORTRAN_FOR_TARGET | |
e552509b | 826 | GOC_FOR_TARGET |
81ecdfbb RW |
827 | AR_FOR_TARGET |
828 | AS_FOR_TARGET | |
829 | DLLTOOL_FOR_TARGET | |
830 | LD_FOR_TARGET | |
831 | LIPO_FOR_TARGET | |
832 | NM_FOR_TARGET | |
833 | OBJDUMP_FOR_TARGET | |
834 | RANLIB_FOR_TARGET | |
b121d7d4 | 835 | READELF_FOR_TARGET |
81ecdfbb RW |
836 | STRIP_FOR_TARGET |
837 | WINDRES_FOR_TARGET | |
838 | WINDMC_FOR_TARGET' | |
839 | ||
a0da8069 NN |
840 | |
841 | # Initialize some variables set by options. | |
c6b750e1 DJ |
842 | ac_init_help= |
843 | ac_init_version=false | |
81ecdfbb RW |
844 | ac_unrecognized_opts= |
845 | ac_unrecognized_sep= | |
a0da8069 NN |
846 | # The variables have the same names as the options, with |
847 | # dashes changed to underlines. | |
c6b750e1 | 848 | cache_file=/dev/null |
a0da8069 | 849 | exec_prefix=NONE |
a0da8069 | 850 | no_create= |
a0da8069 NN |
851 | no_recursion= |
852 | prefix=NONE | |
853 | program_prefix=NONE | |
854 | program_suffix=NONE | |
855 | program_transform_name=s,x,x, | |
856 | silent= | |
857 | site= | |
858 | srcdir= | |
a0da8069 NN |
859 | verbose= |
860 | x_includes=NONE | |
861 | x_libraries=NONE | |
c6b750e1 DJ |
862 | |
863 | # Installation directory options. | |
864 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
865 | # and all the variables that are supposed to be based on exec_prefix | |
866 | # by default will actually change. | |
867 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 868 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
869 | bindir='${exec_prefix}/bin' |
870 | sbindir='${exec_prefix}/sbin' | |
871 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
872 | datarootdir='${prefix}/share' |
873 | datadir='${datarootdir}' | |
a0da8069 NN |
874 | sysconfdir='${prefix}/etc' |
875 | sharedstatedir='${prefix}/com' | |
876 | localstatedir='${prefix}/var' | |
a0da8069 NN |
877 | includedir='${prefix}/include' |
878 | oldincludedir='/usr/include' | |
81ecdfbb RW |
879 | docdir='${datarootdir}/doc/${PACKAGE}' |
880 | infodir='${datarootdir}/info' | |
881 | htmldir='${docdir}' | |
882 | dvidir='${docdir}' | |
883 | pdfdir='${docdir}' | |
884 | psdir='${docdir}' | |
885 | libdir='${exec_prefix}/lib' | |
886 | localedir='${datarootdir}/locale' | |
887 | mandir='${datarootdir}/man' | |
252b5132 | 888 | |
a0da8069 | 889 | ac_prev= |
81ecdfbb | 890 | ac_dashdash= |
a0da8069 NN |
891 | for ac_option |
892 | do | |
a0da8069 NN |
893 | # If the previous option needs an argument, assign it. |
894 | if test -n "$ac_prev"; then | |
81ecdfbb | 895 | eval $ac_prev=\$ac_option |
a0da8069 NN |
896 | ac_prev= |
897 | continue | |
898 | fi | |
252b5132 | 899 | |
81ecdfbb RW |
900 | case $ac_option in |
901 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
902 | *) ac_optarg=yes ;; | |
903 | esac | |
a0da8069 NN |
904 | |
905 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
906 | ||
81ecdfbb RW |
907 | case $ac_dashdash$ac_option in |
908 | --) | |
909 | ac_dashdash=yes ;; | |
a0da8069 NN |
910 | |
911 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
912 | ac_prev=bindir ;; | |
913 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 914 | bindir=$ac_optarg ;; |
a0da8069 NN |
915 | |
916 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 917 | ac_prev=build_alias ;; |
a0da8069 | 918 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 919 | build_alias=$ac_optarg ;; |
a0da8069 NN |
920 | |
921 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
922 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
923 | ac_prev=cache_file ;; | |
924 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
925 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
926 | cache_file=$ac_optarg ;; |
927 | ||
928 | --config-cache | -C) | |
929 | cache_file=config.cache ;; | |
a0da8069 | 930 | |
81ecdfbb | 931 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 932 | ac_prev=datadir ;; |
81ecdfbb | 933 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 934 | datadir=$ac_optarg ;; |
a0da8069 | 935 | |
81ecdfbb RW |
936 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
937 | | --dataroo | --dataro | --datar) | |
938 | ac_prev=datarootdir ;; | |
939 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
940 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
941 | datarootdir=$ac_optarg ;; | |
942 | ||
a0da8069 | 943 | -disable-* | --disable-*) |
81ecdfbb | 944 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 945 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
946 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
947 | as_fn_error "invalid feature name: $ac_useropt" | |
948 | ac_useropt_orig=$ac_useropt | |
949 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
950 | case $ac_user_opts in | |
951 | *" | |
952 | "enable_$ac_useropt" | |
953 | "*) ;; | |
954 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
955 | ac_unrecognized_sep=', ';; | |
956 | esac | |
957 | eval enable_$ac_useropt=no ;; | |
958 | ||
959 | -docdir | --docdir | --docdi | --doc | --do) | |
960 | ac_prev=docdir ;; | |
961 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
962 | docdir=$ac_optarg ;; | |
963 | ||
964 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
965 | ac_prev=dvidir ;; | |
966 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
967 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
968 | |
969 | -enable-* | --enable-*) | |
81ecdfbb | 970 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 971 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
972 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
973 | as_fn_error "invalid feature name: $ac_useropt" | |
974 | ac_useropt_orig=$ac_useropt | |
975 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
976 | case $ac_user_opts in | |
977 | *" | |
978 | "enable_$ac_useropt" | |
979 | "*) ;; | |
980 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
981 | ac_unrecognized_sep=', ';; | |
a0da8069 | 982 | esac |
81ecdfbb | 983 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
984 | |
985 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
986 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
987 | | --exec | --exe | --ex) | |
988 | ac_prev=exec_prefix ;; | |
989 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
990 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
991 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 992 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
993 | |
994 | -gas | --gas | --ga | --g) | |
995 | # Obsolete; use --with-gas. | |
996 | with_gas=yes ;; | |
997 | ||
c6b750e1 DJ |
998 | -help | --help | --hel | --he | -h) |
999 | ac_init_help=long ;; | |
1000 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1001 | ac_init_help=recursive ;; | |
1002 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1003 | ac_init_help=short ;; | |
a0da8069 NN |
1004 | |
1005 | -host | --host | --hos | --ho) | |
c6b750e1 | 1006 | ac_prev=host_alias ;; |
a0da8069 | 1007 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1008 | host_alias=$ac_optarg ;; |
a0da8069 | 1009 | |
81ecdfbb RW |
1010 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1011 | ac_prev=htmldir ;; | |
1012 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1013 | | --ht=*) | |
1014 | htmldir=$ac_optarg ;; | |
1015 | ||
a0da8069 NN |
1016 | -includedir | --includedir | --includedi | --included | --include \ |
1017 | | --includ | --inclu | --incl | --inc) | |
1018 | ac_prev=includedir ;; | |
1019 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1020 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1021 | includedir=$ac_optarg ;; |
a0da8069 NN |
1022 | |
1023 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1024 | ac_prev=infodir ;; | |
1025 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1026 | infodir=$ac_optarg ;; |
a0da8069 NN |
1027 | |
1028 | -libdir | --libdir | --libdi | --libd) | |
1029 | ac_prev=libdir ;; | |
1030 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1031 | libdir=$ac_optarg ;; |
a0da8069 NN |
1032 | |
1033 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1034 | | --libexe | --libex | --libe) | |
1035 | ac_prev=libexecdir ;; | |
1036 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1037 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1038 | libexecdir=$ac_optarg ;; |
a0da8069 | 1039 | |
81ecdfbb RW |
1040 | -localedir | --localedir | --localedi | --localed | --locale) |
1041 | ac_prev=localedir ;; | |
1042 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1043 | localedir=$ac_optarg ;; | |
1044 | ||
a0da8069 | 1045 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1046 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1047 | ac_prev=localstatedir ;; |
1048 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1049 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1050 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1051 | |
1052 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1053 | ac_prev=mandir ;; | |
1054 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1055 | mandir=$ac_optarg ;; |
a0da8069 NN |
1056 | |
1057 | -nfp | --nfp | --nf) | |
1058 | # Obsolete; use --without-fp. | |
1059 | with_fp=no ;; | |
1060 | ||
1061 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1062 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1063 | no_create=yes ;; |
1064 | ||
1065 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1066 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1067 | no_recursion=yes ;; | |
1068 | ||
1069 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1070 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1071 | | --oldin | --oldi | --old | --ol | --o) | |
1072 | ac_prev=oldincludedir ;; | |
1073 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1074 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1075 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1076 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1077 | |
1078 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1079 | ac_prev=prefix ;; | |
1080 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1081 | prefix=$ac_optarg ;; |
a0da8069 NN |
1082 | |
1083 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1084 | | --program-pre | --program-pr | --program-p) | |
1085 | ac_prev=program_prefix ;; | |
1086 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1087 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1088 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1089 | |
1090 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1091 | | --program-suf | --program-su | --program-s) | |
1092 | ac_prev=program_suffix ;; | |
1093 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1094 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1095 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1096 | |
1097 | -program-transform-name | --program-transform-name \ | |
1098 | | --program-transform-nam | --program-transform-na \ | |
1099 | | --program-transform-n | --program-transform- \ | |
1100 | | --program-transform | --program-transfor \ | |
1101 | | --program-transfo | --program-transf \ | |
1102 | | --program-trans | --program-tran \ | |
1103 | | --progr-tra | --program-tr | --program-t) | |
1104 | ac_prev=program_transform_name ;; | |
1105 | -program-transform-name=* | --program-transform-name=* \ | |
1106 | | --program-transform-nam=* | --program-transform-na=* \ | |
1107 | | --program-transform-n=* | --program-transform-=* \ | |
1108 | | --program-transform=* | --program-transfor=* \ | |
1109 | | --program-transfo=* | --program-transf=* \ | |
1110 | | --program-trans=* | --program-tran=* \ | |
1111 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1112 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1113 | |
81ecdfbb RW |
1114 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1115 | ac_prev=pdfdir ;; | |
1116 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1117 | pdfdir=$ac_optarg ;; | |
1118 | ||
1119 | -psdir | --psdir | --psdi | --psd | --ps) | |
1120 | ac_prev=psdir ;; | |
1121 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1122 | psdir=$ac_optarg ;; | |
1123 | ||
a0da8069 NN |
1124 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1125 | | -silent | --silent | --silen | --sile | --sil) | |
1126 | silent=yes ;; | |
1127 | ||
1128 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1129 | ac_prev=sbindir ;; | |
1130 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1131 | | --sbi=* | --sb=*) | |
c6b750e1 | 1132 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1133 | |
1134 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1135 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1136 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1137 | | --sha | --sh) | |
1138 | ac_prev=sharedstatedir ;; | |
1139 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1140 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1141 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1142 | | --sha=* | --sh=*) | |
c6b750e1 | 1143 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1144 | |
1145 | -site | --site | --sit) | |
1146 | ac_prev=site ;; | |
1147 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1148 | site=$ac_optarg ;; |
a0da8069 NN |
1149 | |
1150 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1151 | ac_prev=srcdir ;; | |
1152 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1153 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1154 | |
1155 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1156 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1157 | ac_prev=sysconfdir ;; | |
1158 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1159 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1160 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1161 | |
1162 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1163 | ac_prev=target_alias ;; |
a0da8069 | 1164 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1165 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1166 | |
1167 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1168 | verbose=yes ;; | |
1169 | ||
c6b750e1 DJ |
1170 | -version | --version | --versio | --versi | --vers | -V) |
1171 | ac_init_version=: ;; | |
a0da8069 NN |
1172 | |
1173 | -with-* | --with-*) | |
81ecdfbb | 1174 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1175 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1176 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1177 | as_fn_error "invalid package name: $ac_useropt" | |
1178 | ac_useropt_orig=$ac_useropt | |
1179 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1180 | case $ac_user_opts in | |
1181 | *" | |
1182 | "with_$ac_useropt" | |
1183 | "*) ;; | |
1184 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1185 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1186 | esac |
81ecdfbb | 1187 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1188 | |
1189 | -without-* | --without-*) | |
81ecdfbb | 1190 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1191 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1192 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1193 | as_fn_error "invalid package name: $ac_useropt" | |
1194 | ac_useropt_orig=$ac_useropt | |
1195 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1196 | case $ac_user_opts in | |
1197 | *" | |
1198 | "with_$ac_useropt" | |
1199 | "*) ;; | |
1200 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1201 | ac_unrecognized_sep=', ';; | |
1202 | esac | |
1203 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1204 | |
1205 | --x) | |
1206 | # Obsolete; use --with-x. | |
1207 | with_x=yes ;; | |
1208 | ||
1209 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1210 | | --x-incl | --x-inc | --x-in | --x-i) | |
1211 | ac_prev=x_includes ;; | |
1212 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1213 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1214 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1215 | |
1216 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1217 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1218 | ac_prev=x_libraries ;; | |
1219 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1220 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1221 | x_libraries=$ac_optarg ;; |
a0da8069 | 1222 | |
81ecdfbb RW |
1223 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1224 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1225 | ;; |
1226 | ||
c6b750e1 DJ |
1227 | *=*) |
1228 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1229 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1230 | case $ac_envvar in #( |
1231 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1232 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1233 | esac | |
1234 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1235 | export $ac_envvar ;; |
1236 | ||
a0da8069 | 1237 | *) |
c6b750e1 | 1238 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1239 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1240 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1241 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1242 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1243 | ;; |
1244 | ||
1245 | esac | |
1246 | done | |
1247 | ||
1248 | if test -n "$ac_prev"; then | |
c6b750e1 | 1249 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1250 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1251 | fi |
a0da8069 | 1252 | |
81ecdfbb RW |
1253 | if test -n "$ac_unrecognized_opts"; then |
1254 | case $enable_option_checking in | |
1255 | no) ;; | |
1256 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1257 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1258 | esac |
81ecdfbb | 1259 | fi |
a0da8069 | 1260 | |
81ecdfbb RW |
1261 | # Check all directory arguments for consistency. |
1262 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1263 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1264 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1265 | libdir localedir mandir | |
a0da8069 | 1266 | do |
81ecdfbb RW |
1267 | eval ac_val=\$$ac_var |
1268 | # Remove trailing slashes. | |
1269 | case $ac_val in | |
1270 | */ ) | |
1271 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1272 | eval $ac_var=\$ac_val;; | |
1273 | esac | |
1274 | # Be sure to have absolute directory names. | |
c6b750e1 | 1275 | case $ac_val in |
81ecdfbb RW |
1276 | [\\/$]* | ?:[\\/]* ) continue;; |
1277 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1278 | esac |
81ecdfbb | 1279 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1280 | done |
1281 | ||
c6b750e1 DJ |
1282 | # There might be people who depend on the old broken behavior: `$host' |
1283 | # used to hold the argument of --host etc. | |
1284 | # FIXME: To remove some day. | |
1285 | build=$build_alias | |
1286 | host=$host_alias | |
1287 | target=$target_alias | |
376a0e54 | 1288 | |
c6b750e1 DJ |
1289 | # FIXME: To remove some day. |
1290 | if test "x$host_alias" != x; then | |
1291 | if test "x$build_alias" = x; then | |
1292 | cross_compiling=maybe | |
81ecdfbb | 1293 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1294 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1295 | elif test "x$build_alias" != "x$host_alias"; then | |
1296 | cross_compiling=yes | |
1297 | fi | |
1298 | fi | |
1299 | ||
1300 | ac_tool_prefix= | |
1301 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1302 | ||
1303 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1304 | |
a0da8069 | 1305 | |
81ecdfbb RW |
1306 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1307 | ac_ls_di=`ls -di .` && | |
1308 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1309 | as_fn_error "working directory cannot be determined" | |
1310 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1311 | as_fn_error "pwd does not report name of working directory" | |
1312 | ||
1313 | ||
a0da8069 NN |
1314 | # Find the source files, if location was not specified. |
1315 | if test -z "$srcdir"; then | |
1316 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1317 | # Try the directory containing this script, then the parent directory. |
1318 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1319 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1320 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1321 | X"$as_myself" : 'X\(//\)$' \| \ | |
1322 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1323 | $as_echo X"$as_myself" | | |
1324 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1325 | s//\1/ | |
1326 | q | |
1327 | } | |
1328 | /^X\(\/\/\)[^/].*/{ | |
1329 | s//\1/ | |
1330 | q | |
1331 | } | |
1332 | /^X\(\/\/\)$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\).*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | s/.*/./; q'` | |
a0da8069 | 1341 | srcdir=$ac_confdir |
81ecdfbb | 1342 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1343 | srcdir=.. |
1344 | fi | |
1345 | else | |
1346 | ac_srcdir_defaulted=no | |
1347 | fi | |
81ecdfbb RW |
1348 | if test ! -r "$srcdir/$ac_unique_file"; then |
1349 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1350 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1351 | fi | |
1352 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1353 | ac_abs_confdir=`( | |
1354 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1355 | pwd)` | |
1356 | # When building in place, set srcdir=. | |
1357 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1358 | srcdir=. | |
1359 | fi | |
1360 | # Remove unnecessary trailing slashes from srcdir. | |
1361 | # Double slashes in file names in object file debugging info | |
1362 | # mess up M-x gdb in Emacs. | |
1363 | case $srcdir in | |
1364 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1365 | esac | |
6d0cd39e AM |
1366 | case $srcdir in |
1367 | *" "*) | |
1368 | as_fn_error "path to source, $srcdir, contains spaces" | |
1369 | ;; | |
1370 | esac | |
9cc8ae67 PB |
1371 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1372 | ||
81ecdfbb RW |
1373 | for ac_var in $ac_precious_vars; do |
1374 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1375 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1376 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1377 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1378 | done | |
c6b750e1 DJ |
1379 | |
1380 | # | |
1381 | # Report the --help message. | |
1382 | # | |
1383 | if test "$ac_init_help" = "long"; then | |
1384 | # Omit some internal or obsolete options to make the list less imposing. | |
1385 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1386 | cat <<_ACEOF | |
1387 | \`configure' configures this package to adapt to many kinds of systems. | |
1388 | ||
1389 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1390 | ||
1391 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1392 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1393 | ||
1394 | Defaults for the options are specified in brackets. | |
1395 | ||
1396 | Configuration: | |
1397 | -h, --help display this help and exit | |
1398 | --help=short display options specific to this package | |
1399 | --help=recursive display the short help of all the included packages | |
1400 | -V, --version display version information and exit | |
1401 | -q, --quiet, --silent do not print \`checking...' messages | |
1402 | --cache-file=FILE cache test results in FILE [disabled] | |
1403 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1404 | -n, --no-create do not create output files | |
1405 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1406 | ||
c6b750e1 DJ |
1407 | Installation directories: |
1408 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1409 | [$ac_default_prefix] |
c6b750e1 | 1410 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1411 | [PREFIX] |
c6b750e1 DJ |
1412 | |
1413 | By default, \`make install' will install all the files in | |
1414 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1415 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1416 | for instance \`--prefix=\$HOME'. | |
1417 | ||
1418 | For better control, use the options below. | |
1419 | ||
1420 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1421 | --bindir=DIR user executables [EPREFIX/bin] |
1422 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1423 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1424 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1425 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1426 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1427 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1428 | --includedir=DIR C header files [PREFIX/include] | |
1429 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1430 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1431 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1432 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1433 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1434 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1435 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1436 | --htmldir=DIR html documentation [DOCDIR] | |
1437 | --dvidir=DIR dvi documentation [DOCDIR] | |
1438 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1439 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1440 | _ACEOF |
1441 | ||
1442 | cat <<\_ACEOF | |
1443 | ||
1444 | Program names: | |
1445 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1446 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1447 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1448 | ||
1449 | System types: | |
1450 | --build=BUILD configure for building on BUILD [guessed] | |
1451 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1452 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1453 | _ACEOF | |
a0da8069 | 1454 | fi |
a0da8069 | 1455 | |
c6b750e1 DJ |
1456 | if test -n "$ac_init_help"; then |
1457 | ||
1458 | cat <<\_ACEOF | |
1459 | ||
1460 | Optional Features: | |
81ecdfbb | 1461 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1462 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1463 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1464 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1465 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1466 | --disable-libquadmath do not build libquadmath directory |
1467 | --disable-libquadmath-support | |
1468 | disable libquadmath support for Fortran | |
521ec477 DD |
1469 | --enable-libada build libada directory |
1470 | --enable-libssp build libssp directory | |
f66a9a70 | 1471 | --disable-libstdcxx do not build libstdc++-v3 directory |
ffdd6afc ILT |
1472 | --enable-static-libjava[=ARG] |
1473 | build static libjava [default=no] | |
1474 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e L |
1475 | --disable-isl-version-check |
1476 | disable check for ISL version | |
e552509b ILT |
1477 | --disable-cloog-version-check |
1478 | disable check for CLooG version | |
700d40ca | 1479 | --enable-lto enable link time optimization support |
7837304f AS |
1480 | --enable-stage1-languages[=all] |
1481 | choose additional languages to build during stage1. | |
1482 | Mostly useful for compiler development | |
1483 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1484 | Objective-C runtime | |
730af8ee | 1485 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1486 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1487 | force sequential configuration of sub-packages for |
1488 | the host, target or build machine, or all | |
1489 | sub-packages | |
1490 | --enable-maintainer-mode | |
1491 | enable make rules and dependencies not useful (and | |
1492 | sometimes confusing) to the casual installer | |
1493 | --enable-stage1-checking[=all] | |
1494 | choose additional checking for stage1 of the | |
1495 | compiler | |
c6b750e1 | 1496 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1497 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1498 | |
1499 | Optional Packages: | |
1500 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1501 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1502 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1503 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1504 | Equivalent to --with-mpc-include=PATH/include plus | |
1505 | --with-mpc-lib=PATH/lib | |
1506 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1507 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1508 | --with-mpfr-dir=PATH this option has been REMOVED |
1509 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1510 | Equivalent to --with-mpfr-include=PATH/include plus |
1511 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1512 | --with-mpfr-include=PATH |
521ec477 DD |
1513 | specify directory for installed MPFR include files |
1514 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1515 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1516 | --with-gmp=PATH specify prefix directory for the installed GMP |
1517 | package. Equivalent to | |
1518 | --with-gmp-include=PATH/include plus | |
1519 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1520 | --with-gmp-include=PATH specify directory for installed GMP include files |
1521 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1522 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1523 | linking with PPL | |
b3676d82 | 1524 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1525 | --with-stage1-ldflags=FLAGS |
1526 | linker flags for stage1 | |
7837304f AS |
1527 | --with-boot-libs=LIBS libraries for stage2 and later |
1528 | --with-boot-ldflags=FLAGS | |
1529 | linker flags for stage2 and later | |
8e71395b L |
1530 | --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL |
1531 | package. Equivalent to | |
1532 | --with-cloog-include=PATH/include plus | |
1533 | --with-cloog-lib=PATH/lib | |
7ec59b9e | 1534 | --with-isl=PATH Specify prefix directory for the installed ISL |
7837304f | 1535 | package. Equivalent to |
7ec59b9e L |
1536 | --with-isl-include=PATH/include plus |
1537 | --with-isl-lib=PATH/lib | |
1538 | --with-isl-include=PATH Specify directory for installed ISL include files | |
1539 | --with-isl-lib=PATH Specify the directory for the installed ISL library | |
e552509b ILT |
1540 | --with-cloog-include=PATH |
1541 | Specify directory for installed CLooG include files | |
1542 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1543 | library | |
521ec477 | 1544 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1545 | use sysroot as the system root during the build |
8a6ee3ab | 1546 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1547 | map A to B, C to D ... in debug information |
1548 | --with-build-config='NAME NAME2...' | |
1549 | use config/NAME.mk build configuration | |
521ec477 | 1550 | --with-build-time-tools=PATH |
c6b750e1 | 1551 | use given path to find target tools during the build |
c6b750e1 DJ |
1552 | |
1553 | Some influential environment variables: | |
1554 | CC C compiler command | |
1555 | CFLAGS C compiler flags | |
1556 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1557 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1558 | LIBS libraries to pass to the linker, e.g. -l<library> |
1559 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1560 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1561 | CXX C++ compiler command |
1562 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1563 | build_configargs |
1564 | additional configure arguments for build directories | |
1565 | host_configargs | |
1566 | additional configure arguments for host directories | |
1567 | target_configargs | |
1568 | additional configure arguments for target directories | |
9a819804 AO |
1569 | AR AR for the host |
1570 | AS AS for the host | |
1571 | DLLTOOL DLLTOOL for the host | |
1572 | LD LD for the host | |
1573 | LIPO LIPO for the host | |
1574 | NM NM for the host | |
1575 | RANLIB RANLIB for the host | |
1576 | STRIP STRIP for the host | |
1577 | WINDRES WINDRES for the host | |
0c24b341 | 1578 | WINDMC WINDMC for the host |
9a819804 AO |
1579 | OBJCOPY OBJCOPY for the host |
1580 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1581 | READELF READELF for the host |
9a819804 AO |
1582 | CC_FOR_TARGET |
1583 | CC for the target | |
1584 | CXX_FOR_TARGET | |
1585 | CXX for the target | |
1586 | GCC_FOR_TARGET | |
1587 | GCC for the target | |
1588 | GCJ_FOR_TARGET | |
1589 | GCJ for the target | |
1590 | GFORTRAN_FOR_TARGET | |
1591 | GFORTRAN for the target | |
e552509b ILT |
1592 | GOC_FOR_TARGET |
1593 | GOC for the target | |
9a819804 AO |
1594 | AR_FOR_TARGET |
1595 | AR for the target | |
1596 | AS_FOR_TARGET | |
1597 | AS for the target | |
1598 | DLLTOOL_FOR_TARGET | |
1599 | DLLTOOL for the target | |
1600 | LD_FOR_TARGET | |
1601 | LD for the target | |
1602 | LIPO_FOR_TARGET | |
1603 | LIPO for the target | |
1604 | NM_FOR_TARGET | |
1605 | NM for the target | |
1606 | OBJDUMP_FOR_TARGET | |
1607 | OBJDUMP for the target | |
1608 | RANLIB_FOR_TARGET | |
1609 | RANLIB for the target | |
b121d7d4 DD |
1610 | READELF_FOR_TARGET |
1611 | READELF for the target | |
9a819804 AO |
1612 | STRIP_FOR_TARGET |
1613 | STRIP for the target | |
1614 | WINDRES_FOR_TARGET | |
1615 | WINDRES for the target | |
0c24b341 NC |
1616 | WINDMC_FOR_TARGET |
1617 | WINDMC for the target | |
c6b750e1 DJ |
1618 | |
1619 | Use these variables to override the choices made by `configure' or to help | |
1620 | it to find libraries and programs with nonstandard names/locations. | |
1621 | ||
81ecdfbb | 1622 | Report bugs to the package provider. |
c6b750e1 | 1623 | _ACEOF |
81ecdfbb | 1624 | ac_status=$? |
c6b750e1 DJ |
1625 | fi |
1626 | ||
1627 | if test "$ac_init_help" = "recursive"; then | |
1628 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1629 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1630 | test -d "$ac_dir" || |
1631 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1632 | continue | |
c6b750e1 DJ |
1633 | ac_builddir=. |
1634 | ||
81ecdfbb RW |
1635 | case "$ac_dir" in |
1636 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1637 | *) | |
1638 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1639 | # A ".." for each directory in $ac_dir_suffix. | |
1640 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1641 | case $ac_top_builddir_sub in | |
1642 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1643 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1644 | esac ;; | |
1645 | esac | |
1646 | ac_abs_top_builddir=$ac_pwd | |
1647 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1648 | # for backward compatibility: | |
1649 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1650 | |
1651 | case $srcdir in | |
81ecdfbb | 1652 | .) # We are building in place. |
c6b750e1 | 1653 | ac_srcdir=. |
81ecdfbb RW |
1654 | ac_top_srcdir=$ac_top_builddir_sub |
1655 | ac_abs_top_srcdir=$ac_pwd ;; | |
1656 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1657 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1658 | ac_top_srcdir=$srcdir |
1659 | ac_abs_top_srcdir=$srcdir ;; | |
1660 | *) # Relative name. | |
1661 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1662 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1663 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1664 | esac |
81ecdfbb RW |
1665 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1666 | ||
1667 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1668 | # Check for guested configure. | |
1669 | if test -f "$ac_srcdir/configure.gnu"; then | |
1670 | echo && | |
1671 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1672 | elif test -f "$ac_srcdir/configure"; then | |
1673 | echo && | |
1674 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1675 | else |
81ecdfbb RW |
1676 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1677 | fi || ac_status=$? | |
1678 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1679 | done |
1680 | fi | |
1681 | ||
81ecdfbb | 1682 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1683 | if $ac_init_version; then |
1684 | cat <<\_ACEOF | |
81ecdfbb RW |
1685 | configure |
1686 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1687 | |
81ecdfbb | 1688 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1689 | This configure script is free software; the Free Software Foundation |
1690 | gives unlimited permission to copy, distribute and modify it. | |
1691 | _ACEOF | |
81ecdfbb | 1692 | exit |
c6b750e1 | 1693 | fi |
81ecdfbb RW |
1694 | |
1695 | ## ------------------------ ## | |
1696 | ## Autoconf initialization. ## | |
1697 | ## ------------------------ ## | |
1698 | ||
1699 | # ac_fn_c_try_compile LINENO | |
1700 | # -------------------------- | |
1701 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1702 | ac_fn_c_try_compile () | |
1703 | { | |
1704 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1705 | rm -f conftest.$ac_objext | |
1706 | if { { ac_try="$ac_compile" | |
1707 | case "(($ac_try" in | |
1708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1709 | *) ac_try_echo=$ac_try;; | |
1710 | esac | |
1711 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1712 | $as_echo "$ac_try_echo"; } >&5 | |
1713 | (eval "$ac_compile") 2>conftest.err | |
1714 | ac_status=$? | |
1715 | if test -s conftest.err; then | |
1716 | grep -v '^ *+' conftest.err >conftest.er1 | |
1717 | cat conftest.er1 >&5 | |
1718 | mv -f conftest.er1 conftest.err | |
1719 | fi | |
1720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1721 | test $ac_status = 0; } && { | |
1722 | test -z "$ac_c_werror_flag" || | |
1723 | test ! -s conftest.err | |
1724 | } && test -s conftest.$ac_objext; then : | |
1725 | ac_retval=0 | |
1726 | else | |
1727 | $as_echo "$as_me: failed program was:" >&5 | |
1728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1729 | ||
1730 | ac_retval=1 | |
1731 | fi | |
1732 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1733 | return $ac_retval | |
1734 | ||
1735 | } # ac_fn_c_try_compile | |
1736 | ||
1737 | # ac_fn_cxx_try_compile LINENO | |
1738 | # ---------------------------- | |
1739 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1740 | ac_fn_cxx_try_compile () | |
1741 | { | |
1742 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1743 | rm -f conftest.$ac_objext | |
1744 | if { { ac_try="$ac_compile" | |
1745 | case "(($ac_try" in | |
1746 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1747 | *) ac_try_echo=$ac_try;; | |
1748 | esac | |
1749 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1750 | $as_echo "$ac_try_echo"; } >&5 | |
1751 | (eval "$ac_compile") 2>conftest.err | |
1752 | ac_status=$? | |
1753 | if test -s conftest.err; then | |
1754 | grep -v '^ *+' conftest.err >conftest.er1 | |
1755 | cat conftest.er1 >&5 | |
1756 | mv -f conftest.er1 conftest.err | |
1757 | fi | |
1758 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1759 | test $ac_status = 0; } && { | |
1760 | test -z "$ac_cxx_werror_flag" || | |
1761 | test ! -s conftest.err | |
1762 | } && test -s conftest.$ac_objext; then : | |
1763 | ac_retval=0 | |
1764 | else | |
1765 | $as_echo "$as_me: failed program was:" >&5 | |
1766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1767 | ||
1768 | ac_retval=1 | |
1769 | fi | |
1770 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1771 | return $ac_retval | |
1772 | ||
1773 | } # ac_fn_cxx_try_compile | |
1774 | ||
b3676d82 EB |
1775 | # ac_fn_cxx_try_link LINENO |
1776 | # ------------------------- | |
1777 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1778 | ac_fn_cxx_try_link () | |
1779 | { | |
1780 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1782 | if { { ac_try="$ac_link" | |
1783 | case "(($ac_try" in | |
1784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1785 | *) ac_try_echo=$ac_try;; | |
1786 | esac | |
1787 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1788 | $as_echo "$ac_try_echo"; } >&5 | |
1789 | (eval "$ac_link") 2>conftest.err | |
1790 | ac_status=$? | |
1791 | if test -s conftest.err; then | |
1792 | grep -v '^ *+' conftest.err >conftest.er1 | |
1793 | cat conftest.er1 >&5 | |
1794 | mv -f conftest.er1 conftest.err | |
1795 | fi | |
1796 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1797 | test $ac_status = 0; } && { | |
1798 | test -z "$ac_cxx_werror_flag" || | |
1799 | test ! -s conftest.err | |
1800 | } && test -s conftest$ac_exeext && { | |
1801 | test "$cross_compiling" = yes || | |
1802 | $as_test_x conftest$ac_exeext | |
1803 | }; then : | |
1804 | ac_retval=0 | |
1805 | else | |
1806 | $as_echo "$as_me: failed program was:" >&5 | |
1807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1808 | ||
1809 | ac_retval=1 | |
1810 | fi | |
1811 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1812 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1813 | # interfere with the next link command; also delete a directory that is | |
1814 | # left behind by Apple's compiler. We do this before executing the actions. | |
1815 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1816 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1817 | return $ac_retval | |
1818 | ||
1819 | } # ac_fn_cxx_try_link | |
1820 | ||
81ecdfbb RW |
1821 | # ac_fn_c_try_link LINENO |
1822 | # ----------------------- | |
1823 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1824 | ac_fn_c_try_link () | |
1825 | { | |
1826 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1828 | if { { ac_try="$ac_link" | |
1829 | case "(($ac_try" in | |
1830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1831 | *) ac_try_echo=$ac_try;; | |
1832 | esac | |
1833 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1834 | $as_echo "$ac_try_echo"; } >&5 | |
1835 | (eval "$ac_link") 2>conftest.err | |
1836 | ac_status=$? | |
1837 | if test -s conftest.err; then | |
1838 | grep -v '^ *+' conftest.err >conftest.er1 | |
1839 | cat conftest.er1 >&5 | |
1840 | mv -f conftest.er1 conftest.err | |
1841 | fi | |
1842 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1843 | test $ac_status = 0; } && { | |
1844 | test -z "$ac_c_werror_flag" || | |
1845 | test ! -s conftest.err | |
1846 | } && test -s conftest$ac_exeext && { | |
1847 | test "$cross_compiling" = yes || | |
1848 | $as_test_x conftest$ac_exeext | |
1849 | }; then : | |
1850 | ac_retval=0 | |
1851 | else | |
1852 | $as_echo "$as_me: failed program was:" >&5 | |
1853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1854 | ||
1855 | ac_retval=1 | |
1856 | fi | |
1857 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1858 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1859 | # interfere with the next link command; also delete a directory that is | |
1860 | # left behind by Apple's compiler. We do this before executing the actions. | |
1861 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1862 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1863 | return $ac_retval | |
1864 | ||
1865 | } # ac_fn_c_try_link | |
7ec59b9e L |
1866 | |
1867 | # ac_fn_c_try_run LINENO | |
1868 | # ---------------------- | |
1869 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1870 | # that executables *can* be run. | |
1871 | ac_fn_c_try_run () | |
1872 | { | |
1873 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1874 | if { { ac_try="$ac_link" | |
1875 | case "(($ac_try" in | |
1876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1877 | *) ac_try_echo=$ac_try;; | |
1878 | esac | |
1879 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1880 | $as_echo "$ac_try_echo"; } >&5 | |
1881 | (eval "$ac_link") 2>&5 | |
1882 | ac_status=$? | |
1883 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1884 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1885 | { { case "(($ac_try" in | |
1886 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1887 | *) ac_try_echo=$ac_try;; | |
1888 | esac | |
1889 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1890 | $as_echo "$ac_try_echo"; } >&5 | |
1891 | (eval "$ac_try") 2>&5 | |
1892 | ac_status=$? | |
1893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1894 | test $ac_status = 0; }; }; then : | |
1895 | ac_retval=0 | |
1896 | else | |
1897 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1898 | $as_echo "$as_me: failed program was:" >&5 | |
1899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1900 | ||
1901 | ac_retval=$ac_status | |
1902 | fi | |
1903 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1904 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1905 | return $ac_retval | |
1906 | ||
1907 | } # ac_fn_c_try_run | |
81ecdfbb | 1908 | cat >config.log <<_ACEOF |
c6b750e1 DJ |
1909 | This file contains any messages produced by compilers while |
1910 | running configure, to aid debugging if configure makes a mistake. | |
1911 | ||
1912 | It was created by $as_me, which was | |
81ecdfbb | 1913 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1914 | |
1915 | $ $0 $@ | |
1916 | ||
1917 | _ACEOF | |
81ecdfbb | 1918 | exec 5>>config.log |
c6b750e1 DJ |
1919 | { |
1920 | cat <<_ASUNAME | |
1921 | ## --------- ## | |
1922 | ## Platform. ## | |
1923 | ## --------- ## | |
1924 | ||
1925 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1926 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1927 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1928 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1929 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1930 | ||
1931 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1932 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1933 | ||
1934 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1935 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1936 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1937 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1938 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1939 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1940 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1941 | ||
1942 | _ASUNAME | |
1943 | ||
1944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1945 | for as_dir in $PATH | |
1946 | do | |
1947 | IFS=$as_save_IFS | |
1948 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1949 | $as_echo "PATH: $as_dir" |
1950 | done | |
1951 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1952 | |
1953 | } >&5 | |
1954 | ||
1955 | cat >&5 <<_ACEOF | |
1956 | ||
1957 | ||
1958 | ## ----------- ## | |
1959 | ## Core tests. ## | |
1960 | ## ----------- ## | |
1961 | ||
1962 | _ACEOF | |
1963 | ||
1964 | ||
1965 | # Keep a trace of the command line. | |
1966 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1967 | # Strip out --silent because we don't want to record it for future runs. | |
1968 | # Also quote any args containing shell meta-characters. | |
1969 | # Make two passes to allow for proper duplicate-argument suppression. | |
1970 | ac_configure_args= | |
1971 | ac_configure_args0= | |
1972 | ac_configure_args1= | |
c6b750e1 DJ |
1973 | ac_must_keep_next=false |
1974 | for ac_pass in 1 2 | |
1975 | do | |
1976 | for ac_arg | |
1977 | do | |
1978 | case $ac_arg in | |
1979 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1980 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1981 | | -silent | --silent | --silen | --sile | --sil) | |
1982 | continue ;; | |
81ecdfbb RW |
1983 | *\'*) |
1984 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1985 | esac |
1986 | case $ac_pass in | |
81ecdfbb | 1987 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1988 | 2) |
81ecdfbb | 1989 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1990 | if test $ac_must_keep_next = true; then |
1991 | ac_must_keep_next=false # Got value, back to normal. | |
1992 | else | |
1993 | case $ac_arg in | |
1994 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1995 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1996 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1997 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1998 | case "$ac_configure_args0 " in | |
1999 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2000 | esac | |
2001 | ;; | |
2002 | -* ) ac_must_keep_next=true ;; | |
2003 | esac | |
2004 | fi | |
81ecdfbb | 2005 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
2006 | ;; |
2007 | esac | |
2008 | done | |
2009 | done | |
81ecdfbb RW |
2010 | { ac_configure_args0=; unset ac_configure_args0;} |
2011 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
2012 | |
2013 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2014 | # config.log. We remove comments because anyway the quotes in there | |
2015 | # would cause problems or look ugly. | |
81ecdfbb RW |
2016 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
2017 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
2018 | trap 'exit_status=$? |
2019 | # Save into config.log some information that might help in debugging. | |
2020 | { | |
2021 | echo | |
2022 | ||
2023 | cat <<\_ASBOX | |
2024 | ## ---------------- ## | |
2025 | ## Cache variables. ## | |
2026 | ## ---------------- ## | |
2027 | _ASBOX | |
2028 | echo | |
2029 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2030 | ( |
2031 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2032 | eval ac_val=\$$ac_var | |
2033 | case $ac_val in #( | |
2034 | *${as_nl}*) | |
2035 | case $ac_var in #( | |
2036 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2037 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2038 | esac | |
2039 | case $ac_var in #( | |
2040 | _ | IFS | as_nl) ;; #( | |
2041 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2042 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2043 | esac ;; | |
2044 | esac | |
2045 | done | |
c6b750e1 | 2046 | (set) 2>&1 | |
81ecdfbb RW |
2047 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2048 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2049 | sed -n \ |
81ecdfbb RW |
2050 | "s/'\''/'\''\\\\'\'''\''/g; |
2051 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2052 | ;; #( | |
c6b750e1 | 2053 | *) |
81ecdfbb | 2054 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2055 | ;; |
81ecdfbb RW |
2056 | esac | |
2057 | sort | |
2058 | ) | |
c6b750e1 DJ |
2059 | echo |
2060 | ||
2061 | cat <<\_ASBOX | |
2062 | ## ----------------- ## | |
2063 | ## Output variables. ## | |
2064 | ## ----------------- ## | |
2065 | _ASBOX | |
2066 | echo | |
2067 | for ac_var in $ac_subst_vars | |
2068 | do | |
81ecdfbb RW |
2069 | eval ac_val=\$$ac_var |
2070 | case $ac_val in | |
2071 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2072 | esac | |
2073 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2074 | done | sort |
2075 | echo | |
2076 | ||
2077 | if test -n "$ac_subst_files"; then | |
2078 | cat <<\_ASBOX | |
81ecdfbb RW |
2079 | ## ------------------- ## |
2080 | ## File substitutions. ## | |
2081 | ## ------------------- ## | |
c6b750e1 DJ |
2082 | _ASBOX |
2083 | echo | |
2084 | for ac_var in $ac_subst_files | |
2085 | do | |
81ecdfbb RW |
2086 | eval ac_val=\$$ac_var |
2087 | case $ac_val in | |
2088 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2089 | esac | |
2090 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2091 | done | sort |
2092 | echo | |
2093 | fi | |
2094 | ||
2095 | if test -s confdefs.h; then | |
2096 | cat <<\_ASBOX | |
2097 | ## ----------- ## | |
2098 | ## confdefs.h. ## | |
2099 | ## ----------- ## | |
2100 | _ASBOX | |
2101 | echo | |
81ecdfbb | 2102 | cat confdefs.h |
c6b750e1 DJ |
2103 | echo |
2104 | fi | |
2105 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2106 | $as_echo "$as_me: caught signal $ac_signal" |
2107 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2108 | } >&5 |
81ecdfbb RW |
2109 | rm -f core *.core core.conftest.* && |
2110 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2111 | exit $exit_status |
81ecdfbb | 2112 | ' 0 |
c6b750e1 | 2113 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2114 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2115 | done |
2116 | ac_signal=0 | |
2117 | ||
2118 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2119 | rm -f -r conftest* confdefs.h |
2120 | ||
2121 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2122 | |
2123 | # Predefined preprocessor variables. | |
2124 | ||
2125 | cat >>confdefs.h <<_ACEOF | |
2126 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2127 | _ACEOF | |
2128 | ||
c6b750e1 DJ |
2129 | cat >>confdefs.h <<_ACEOF |
2130 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2131 | _ACEOF | |
2132 | ||
c6b750e1 DJ |
2133 | cat >>confdefs.h <<_ACEOF |
2134 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2135 | _ACEOF | |
2136 | ||
c6b750e1 DJ |
2137 | cat >>confdefs.h <<_ACEOF |
2138 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2139 | _ACEOF | |
2140 | ||
c6b750e1 DJ |
2141 | cat >>confdefs.h <<_ACEOF |
2142 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2143 | _ACEOF | |
2144 | ||
81ecdfbb RW |
2145 | cat >>confdefs.h <<_ACEOF |
2146 | #define PACKAGE_URL "$PACKAGE_URL" | |
2147 | _ACEOF | |
2148 | ||
c6b750e1 DJ |
2149 | |
2150 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2151 | # Prefer an explicitly selected file to automatically selected ones. |
2152 | ac_site_file1=NONE | |
2153 | ac_site_file2=NONE | |
2154 | if test -n "$CONFIG_SITE"; then | |
2155 | ac_site_file1=$CONFIG_SITE | |
2156 | elif test "x$prefix" != xNONE; then | |
2157 | ac_site_file1=$prefix/share/config.site | |
2158 | ac_site_file2=$prefix/etc/config.site | |
2159 | else | |
2160 | ac_site_file1=$ac_default_prefix/share/config.site | |
2161 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2162 | fi |
81ecdfbb RW |
2163 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2164 | do | |
2165 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2166 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2167 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2168 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2169 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2170 | . "$ac_site_file" |
2171 | fi | |
2172 | done | |
2173 | ||
2174 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2175 | # Some versions of bash will fail to source /dev/null (special |
2176 | # files actually), so we avoid doing that. | |
2177 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2179 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2180 | case $cache_file in |
81ecdfbb RW |
2181 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2182 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2183 | esac |
2184 | fi | |
a0da8069 | 2185 | else |
81ecdfbb RW |
2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2187 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2188 | >$cache_file |
2189 | fi | |
2190 | ||
2191 | # Check that the precious variables saved in the cache have kept the same | |
2192 | # value. | |
2193 | ac_cache_corrupted=false | |
81ecdfbb | 2194 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2195 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2196 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2197 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2198 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2199 | case $ac_old_set,$ac_new_set in |
2200 | set,) | |
81ecdfbb RW |
2201 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2202 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2203 | ac_cache_corrupted=: ;; |
2204 | ,set) | |
81ecdfbb RW |
2205 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2206 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2207 | ac_cache_corrupted=: ;; |
2208 | ,);; | |
2209 | *) | |
2210 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2211 | # differences in whitespace do not lead to failure. |
2212 | ac_old_val_w=`echo x $ac_old_val` | |
2213 | ac_new_val_w=`echo x $ac_new_val` | |
2214 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2216 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2217 | ac_cache_corrupted=: | |
2218 | else | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2220 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2221 | eval $ac_var=\$ac_old_val | |
2222 | fi | |
2223 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2224 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2225 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2226 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2227 | fi;; |
2228 | esac | |
2229 | # Pass precious variables to config.status. | |
2230 | if test "$ac_new_set" = set; then | |
2231 | case $ac_new_val in | |
81ecdfbb | 2232 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2233 | *) ac_arg=$ac_var=$ac_new_val ;; |
2234 | esac | |
2235 | case " $ac_configure_args " in | |
2236 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2237 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2238 | esac |
2239 | fi | |
2240 | done | |
2241 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2242 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2243 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2244 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2245 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2246 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2247 | fi |
81ecdfbb RW |
2248 | ## -------------------- ## |
2249 | ## Main body of script. ## | |
2250 | ## -------------------- ## | |
a0da8069 NN |
2251 | |
2252 | ac_ext=c | |
a0da8069 | 2253 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2257 | ||
2258 | ||
2259 | ||
2260 | ||
c6b750e1 DJ |
2261 | |
2262 | ||
34a0f3cf | 2263 | |
c6b750e1 | 2264 | |
5b553f7e RW |
2265 | |
2266 | progname=$0 | |
2267 | # if PWD already has a value, it is probably wrong. | |
2268 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2269 | ||
2270 | # Export original configure arguments for use by sub-configures. | |
2271 | # Quote arguments with shell meta charatcers. | |
2272 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2273 | set -- "$progname" "$@" | |
2274 | for ac_arg | |
2275 | do | |
2276 | case "$ac_arg" in | |
2277 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2278 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2279 | # if the argument is of the form -foo=baz, quote the baz part only | |
2280 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2281 | *) ;; | |
2282 | esac | |
2283 | # Add the quoted argument to the list. | |
2284 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2285 | done | |
2286 | if test "$silent" = yes; then | |
2287 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2288 | fi | |
2289 | # Remove the initial space we just introduced and, as these will be | |
2290 | # expanded by make, quote '$'. | |
2291 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2292 | ||
c6b750e1 DJ |
2293 | |
2294 | # Find the build, host, and target systems. | |
a0da8069 | 2295 | ac_aux_dir= |
81ecdfbb RW |
2296 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2297 | for ac_t in install-sh install.sh shtool; do | |
2298 | if test -f "$ac_dir/$ac_t"; then | |
2299 | ac_aux_dir=$ac_dir | |
2300 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2301 | break 2 | |
2302 | fi | |
2303 | done | |
a0da8069 NN |
2304 | done |
2305 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2306 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2307 | fi |
81ecdfbb RW |
2308 | |
2309 | # These three variables are undocumented and unsupported, | |
2310 | # and are intended to be withdrawn in a future Autoconf release. | |
2311 | # They can cause serious problems if a builder's source tree is in a directory | |
2312 | # whose full name contains unusual characters. | |
2313 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2314 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2315 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2316 | ||
a0da8069 | 2317 | |
c6b750e1 | 2318 | # Make sure we can run config.sub. |
81ecdfbb RW |
2319 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2320 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2321 | ||
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2323 | $as_echo_n "checking build system type... " >&6; } | |
2324 | if test "${ac_cv_build+set}" = set; then : | |
2325 | $as_echo_n "(cached) " >&6 | |
2326 | else | |
2327 | ac_build_alias=$build_alias | |
2328 | test "x$ac_build_alias" = x && | |
2329 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2330 | test "x$ac_build_alias" = x && | |
2331 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2332 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2333 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2334 | ||
2335 | fi | |
2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2337 | $as_echo "$ac_cv_build" >&6; } | |
2338 | case $ac_cv_build in | |
2339 | *-*-*) ;; | |
2340 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2341 | esac | |
c6b750e1 | 2342 | build=$ac_cv_build |
81ecdfbb RW |
2343 | ac_save_IFS=$IFS; IFS='-' |
2344 | set x $ac_cv_build | |
2345 | shift | |
2346 | build_cpu=$1 | |
2347 | build_vendor=$2 | |
2348 | shift; shift | |
2349 | # Remember, the first character of IFS is used to create $*, | |
2350 | # except with old shells: | |
2351 | build_os=$* | |
2352 | IFS=$ac_save_IFS | |
2353 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2354 | |
a0da8069 | 2355 | |
c6b750e1 DJ |
2356 | case ${build_alias} in |
2357 | "") build_noncanonical=${build} ;; | |
2358 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2359 | esac |
2360 | ||
2361 | ||
cac3d6c4 | 2362 | |
c6b750e1 DJ |
2363 | case ${host_alias} in |
2364 | "") host_noncanonical=${build_noncanonical} ;; | |
2365 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2366 | esac |
2367 | ||
cac3d6c4 | 2368 | |
c6b750e1 DJ |
2369 | |
2370 | case ${target_alias} in | |
2371 | "") target_noncanonical=${host_noncanonical} ;; | |
2372 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2373 | esac |
2374 | ||
cac3d6c4 | 2375 | |
c6b750e1 DJ |
2376 | |
2377 | ||
2378 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2379 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2380 | NONENONEs,x,x, && | |
c6b750e1 | 2381 | program_transform_name=s,y,y, |
cac3d6c4 | 2382 | |
81ecdfbb RW |
2383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2384 | $as_echo_n "checking host system type... " >&6; } | |
2385 | if test "${ac_cv_host+set}" = set; then : | |
2386 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2387 | else |
81ecdfbb RW |
2388 | if test "x$host_alias" = x; then |
2389 | ac_cv_host=$ac_cv_build | |
2390 | else | |
2391 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2392 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2393 | fi | |
c6b750e1 DJ |
2394 | |
2395 | fi | |
81ecdfbb RW |
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2397 | $as_echo "$ac_cv_host" >&6; } | |
2398 | case $ac_cv_host in | |
2399 | *-*-*) ;; | |
2400 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2401 | esac | |
c6b750e1 | 2402 | host=$ac_cv_host |
81ecdfbb RW |
2403 | ac_save_IFS=$IFS; IFS='-' |
2404 | set x $ac_cv_host | |
2405 | shift | |
2406 | host_cpu=$1 | |
2407 | host_vendor=$2 | |
2408 | shift; shift | |
2409 | # Remember, the first character of IFS is used to create $*, | |
2410 | # except with old shells: | |
2411 | host_os=$* | |
2412 | IFS=$ac_save_IFS | |
2413 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2414 | |
2415 | ||
81ecdfbb RW |
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2417 | $as_echo_n "checking target system type... " >&6; } | |
2418 | if test "${ac_cv_target+set}" = set; then : | |
2419 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2420 | else |
81ecdfbb RW |
2421 | if test "x$target_alias" = x; then |
2422 | ac_cv_target=$ac_cv_host | |
2423 | else | |
2424 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2425 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2426 | fi | |
c6b750e1 | 2427 | |
cac3d6c4 | 2428 | fi |
81ecdfbb RW |
2429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2430 | $as_echo "$ac_cv_target" >&6; } | |
2431 | case $ac_cv_target in | |
2432 | *-*-*) ;; | |
2433 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2434 | esac | |
c6b750e1 | 2435 | target=$ac_cv_target |
81ecdfbb RW |
2436 | ac_save_IFS=$IFS; IFS='-' |
2437 | set x $ac_cv_target | |
2438 | shift | |
2439 | target_cpu=$1 | |
2440 | target_vendor=$2 | |
2441 | shift; shift | |
2442 | # Remember, the first character of IFS is used to create $*, | |
2443 | # except with old shells: | |
2444 | target_os=$* | |
2445 | IFS=$ac_save_IFS | |
2446 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2447 | |
2448 | ||
2449 | # The aliases save the names the user supplied, while $host etc. | |
2450 | # will get canonicalized. | |
2451 | test -n "$target_alias" && | |
2452 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2453 | NONENONEs,x,x, && | |
2454 | program_prefix=${target_alias}- | |
81ecdfbb | 2455 | |
a0da8069 | 2456 | test "$program_prefix" != NONE && |
81ecdfbb | 2457 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2458 | # Use a double $ so make ignores it. |
2459 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2460 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2461 | # Double any \ or $. | |
c6b750e1 | 2462 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2463 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2464 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2465 | |
a0da8069 NN |
2466 | |
2467 | ||
e5c3f801 NN |
2468 | # Get 'install' or 'install-sh' and its variants. |
2469 | # Find a good install program. We prefer a C program (faster), | |
2470 | # so one script is as good as another. But avoid the broken or | |
2471 | # incompatible versions: | |
2472 | # SysV /etc/install, /usr/sbin/install | |
2473 | # SunOS /usr/etc/install | |
2474 | # IRIX /sbin/install | |
2475 | # AIX /bin/install | |
c6b750e1 | 2476 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2477 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2478 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2479 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2480 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2481 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2482 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2484 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2485 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2486 | if test "${ac_cv_path_install+set}" = set; then : |
2487 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2488 | else |
2489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2490 | for as_dir in $PATH | |
2491 | do | |
2492 | IFS=$as_save_IFS | |
2493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2494 | # Account for people who put trailing slashes in PATH elements. |
2495 | case $as_dir/ in #(( | |
2496 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2497 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2498 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2499 | /usr/ucb/* ) ;; |
2500 | *) | |
2501 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2502 | # Don't use installbsd from OSF since it installs stuff as root | |
2503 | # by default. | |
2504 | for ac_prog in ginstall scoinst install; do | |
2505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2506 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2507 | if test $ac_prog = install && |
c6b750e1 | 2508 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2509 | # AIX install. It has an incompatible calling convention. |
2510 | : | |
c6b750e1 DJ |
2511 | elif test $ac_prog = install && |
2512 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2513 | # program-specific install script used by HP pwplus--don't use. | |
2514 | : | |
e5c3f801 | 2515 | else |
58c85be7 RW |
2516 | rm -rf conftest.one conftest.two conftest.dir |
2517 | echo one > conftest.one | |
2518 | echo two > conftest.two | |
2519 | mkdir conftest.dir | |
2520 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2521 | test -s conftest.one && test -s conftest.two && | |
2522 | test -s conftest.dir/conftest.one && | |
2523 | test -s conftest.dir/conftest.two | |
2524 | then | |
2525 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2526 | break 3 | |
2527 | fi | |
e5c3f801 NN |
2528 | fi |
2529 | fi | |
2530 | done | |
c6b750e1 DJ |
2531 | done |
2532 | ;; | |
2533 | esac | |
81ecdfbb RW |
2534 | |
2535 | done | |
2536 | IFS=$as_save_IFS | |
c6b750e1 | 2537 | |
58c85be7 | 2538 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2539 | |
2540 | fi | |
2541 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2542 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2543 | else |
58c85be7 RW |
2544 | # As a last resort, use the slow shell script. Don't cache a |
2545 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2546 | # break other packages using the cache if that directory is |
58c85be7 | 2547 | # removed, or if the value is a relative name. |
c6b750e1 | 2548 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2549 | fi |
2550 | fi | |
81ecdfbb RW |
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2552 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2553 | |
2554 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2555 | # It thinks the first close brace ends the variable substitution. | |
2556 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2557 | ||
c6b750e1 | 2558 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2559 | |
2560 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2561 | ||
81ecdfbb RW |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2563 | $as_echo_n "checking whether ln works... " >&6; } | |
2564 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2565 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2566 | else |
2567 | rm -f conftestdata_t | |
2568 | echo >conftestdata_f | |
2569 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2570 | then | |
2571 | acx_cv_prog_LN=ln | |
2572 | else | |
2573 | acx_cv_prog_LN=no | |
2574 | fi | |
2575 | rm -f conftestdata_f conftestdata_t | |
2576 | ||
2577 | fi | |
2578 | if test $acx_cv_prog_LN = no; then | |
2579 | LN="cp" | |
81ecdfbb RW |
2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2581 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2582 | else |
2583 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2585 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2586 | fi |
2587 | ||
81ecdfbb RW |
2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2589 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2590 | LN_S=$as_ln_s |
2591 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2593 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2594 | else |
81ecdfbb RW |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2596 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2597 | fi |
2598 | ||
8e957354 PB |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2600 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2601 | if test "${ac_cv_path_SED+set}" = set; then : | |
2602 | $as_echo_n "(cached) " >&6 | |
2603 | else | |
2604 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2605 | for ac_i in 1 2 3 4 5 6 7; do | |
2606 | ac_script="$ac_script$as_nl$ac_script" | |
2607 | done | |
2608 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2609 | { ac_script=; unset ac_script;} | |
2610 | if test -z "$SED"; then | |
2611 | ac_path_SED_found=false | |
2612 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2614 | for as_dir in $PATH | |
2615 | do | |
2616 | IFS=$as_save_IFS | |
2617 | test -z "$as_dir" && as_dir=. | |
2618 | for ac_prog in sed gsed; do | |
2619 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2620 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2621 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2622 | # Check for GNU ac_path_SED and select it if it is found. | |
2623 | # Check for GNU $ac_path_SED | |
2624 | case `"$ac_path_SED" --version 2>&1` in | |
2625 | *GNU*) | |
2626 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2627 | *) | |
2628 | ac_count=0 | |
2629 | $as_echo_n 0123456789 >"conftest.in" | |
2630 | while : | |
2631 | do | |
2632 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2633 | mv "conftest.tmp" "conftest.in" | |
2634 | cp "conftest.in" "conftest.nl" | |
2635 | $as_echo '' >> "conftest.nl" | |
2636 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2637 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2638 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2639 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2640 | # Best one so far, save it but keep looking for a better one | |
2641 | ac_cv_path_SED="$ac_path_SED" | |
2642 | ac_path_SED_max=$ac_count | |
2643 | fi | |
2644 | # 10*(2^10) chars as input seems more than enough | |
2645 | test $ac_count -gt 10 && break | |
2646 | done | |
2647 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2648 | esac | |
2649 | ||
2650 | $ac_path_SED_found && break 3 | |
2651 | done | |
2652 | done | |
2653 | done | |
2654 | IFS=$as_save_IFS | |
2655 | if test -z "$ac_cv_path_SED"; then | |
2656 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2657 | fi | |
2658 | else | |
2659 | ac_cv_path_SED=$SED | |
2660 | fi | |
2661 | ||
2662 | fi | |
2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2664 | $as_echo "$ac_cv_path_SED" >&6; } | |
2665 | SED="$ac_cv_path_SED" | |
2666 | rm -f conftest.sed | |
2667 | ||
2668 | for ac_prog in gawk mawk nawk awk | |
2669 | do | |
2670 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2671 | set dummy $ac_prog; ac_word=$2 | |
2672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2673 | $as_echo_n "checking for $ac_word... " >&6; } | |
2674 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2675 | $as_echo_n "(cached) " >&6 | |
2676 | else | |
2677 | if test -n "$AWK"; then | |
2678 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2679 | else | |
2680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2681 | for as_dir in $PATH | |
2682 | do | |
2683 | IFS=$as_save_IFS | |
2684 | test -z "$as_dir" && as_dir=. | |
2685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2686 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2687 | ac_cv_prog_AWK="$ac_prog" | |
2688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2689 | break 2 | |
2690 | fi | |
2691 | done | |
2692 | done | |
2693 | IFS=$as_save_IFS | |
2694 | ||
2695 | fi | |
2696 | fi | |
2697 | AWK=$ac_cv_prog_AWK | |
2698 | if test -n "$AWK"; then | |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2700 | $as_echo "$AWK" >&6; } | |
2701 | else | |
2702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2703 | $as_echo "no" >&6; } | |
2704 | fi | |
2705 | ||
2706 | ||
2707 | test -n "$AWK" && break | |
2708 | done | |
2709 | ||
e5c3f801 | 2710 | |
0fdbe983 DJ |
2711 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2712 | ||
2713 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2714 | # a relative path. | |
2715 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2716 | INSTALL="${srcpwd}/install-sh -c" | |
2717 | fi | |
2718 | ||
a0da8069 NN |
2719 | # Set srcdir to "." if that's what it is. |
2720 | # This is important for multilib support. | |
2721 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2722 | if test "${pwd}" = "${srcpwd}" ; then |
2723 | srcdir=. | |
252b5132 RH |
2724 | fi |
2725 | ||
a0da8069 | 2726 | topsrcdir=$srcpwd |
252b5132 | 2727 | |
a0da8069 | 2728 | extra_host_args= |
afefada0 | 2729 | |
a0da8069 NN |
2730 | ### To add a new directory to the tree, first choose whether it is a target |
2731 | ### or a host dependent tool. Then put it into the appropriate list | |
2732 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2733 | |
c6b750e1 | 2734 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2735 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2736 | |
c6b750e1 DJ |
2737 | # Dependency sorting is only needed when *configuration* must be done in |
2738 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2739 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2740 | |
a0da8069 NN |
2741 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2742 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2743 | |
6a9cf61e PB |
2744 | # these library is used by various programs built for the build |
2745 | # environment | |
2746 | # | |
2747 | build_libs="build-libiberty" | |
2748 | ||
2749 | # these tools are built for the build environment | |
a90ef4bf | 2750 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2751 | |
a0da8069 NN |
2752 | # these libraries are used by various programs built for the host environment |
2753 | # | |
2bf680c4 | 2754 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv" |
a0da8069 | 2755 | |
a0da8069 NN |
2756 | # these tools are built for the host environment |
2757 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2758 | # know that we are building the simulator. | |
2759 | # binutils, gas and ld appear in that order because it makes sense to run | |
2760 | # "make check" in that particular order. | |
e6de499b | 2761 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2762 | 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 |
2763 | |
2764 | # libgcj represents the runtime libraries only used by gcj. | |
2765 | libgcj="target-libffi \ | |
a0da8069 | 2766 | target-zlib \ |
a0da8069 NN |
2767 | target-libjava" |
2768 | ||
2769 | # these libraries are built for the target environment, and are built after | |
2770 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2771 | # Note that libiberty is not a target library. |
b1299c4e | 2772 | target_libraries="target-libgcc \ |
2bf680c4 | 2773 | target-libbacktrace \ |
a0da8069 NN |
2774 | target-libgloss \ |
2775 | target-newlib \ | |
cff87f51 | 2776 | target-libgomp \ |
522e3d71 | 2777 | target-libcilkrts \ |
7ec59b9e | 2778 | target-libatomic \ |
d32e2926 | 2779 | target-libitm \ |
b9459e83 | 2780 | target-libstdc++-v3 \ |
5286fdef | 2781 | target-libsanitizer \ |
95e43135 | 2782 | target-libvtv \ |
bb780410 | 2783 | target-libssp \ |
e552509b | 2784 | target-libquadmath \ |
4b1cb4fe | 2785 | target-libgfortran \ |
4f0ef2d8 | 2786 | target-boehm-gc \ |
83326456 | 2787 | ${libgcj} \ |
a2592b1b | 2788 | target-libobjc \ |
e552509b ILT |
2789 | target-libada \ |
2790 | target-libgo" | |
a0da8069 | 2791 | |
9c14acb8 NN |
2792 | # these tools are built using the target libraries, and are intended to |
2793 | # run only in the target environment | |
a0da8069 | 2794 | # |
9c14acb8 | 2795 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2796 | # list belongs in this list. |
a0da8069 | 2797 | # |
a90ef4bf | 2798 | target_tools="target-rda" |
252b5132 | 2799 | |
a0da8069 | 2800 | ################################################################################ |
252b5132 | 2801 | |
a0da8069 NN |
2802 | ## All tools belong in one of the four categories, and are assigned above |
2803 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2804 | ## is important because configure will choke if they ever get through. | |
2805 | ## ${configdirs} is directories we build using the host tools. | |
2806 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2807 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2808 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2809 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2810 | |
9cc8ae67 PB |
2811 | |
2812 | ||
a0da8069 | 2813 | ################################################################################ |
252b5132 | 2814 | |
a0da8069 | 2815 | srcname="gnu development package" |
252b5132 | 2816 | |
a0da8069 NN |
2817 | # This gets set non-empty for some net releases of packages. |
2818 | appdirs="" | |
252b5132 | 2819 | |
a0da8069 NN |
2820 | # Define is_cross_compiler to save on calls to 'test'. |
2821 | is_cross_compiler= | |
2822 | if test x"${host}" = x"${target}" ; then | |
2823 | is_cross_compiler=no | |
252b5132 | 2824 | else |
a0da8069 | 2825 | is_cross_compiler=yes |
c6b750e1 | 2826 | fi |
252b5132 | 2827 | |
9175bfc0 | 2828 | # Find the build and target subdir names. |
dd12c3a8 | 2829 | |
66a79c16 DJ |
2830 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2831 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2832 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2833 | # However, they still use the build modules, because the corresponding | |
2834 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2835 | # finishes. So: | |
2836 | # - build_subdir is where we find build modules, and never changes. | |
2837 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2838 | ||
2839 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2840 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2841 | |
81ecdfbb RW |
2842 | # Check whether --with-build-libsubdir was given. |
2843 | if test "${with_build_libsubdir+set}" = set; then : | |
2844 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2845 | else |
2846 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2847 | fi |
2848 | ||
b00612cc PB |
2849 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2850 | if ( test $srcdir = . && test -d gcc ) \ | |
2851 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2852 | host_subdir="host-${host_noncanonical}" | |
2853 | else | |
2854 | host_subdir=. | |
2855 | fi | |
dd12c3a8 NN |
2856 | # No prefix. |
2857 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2858 | |
2fd0b40b RW |
2859 | # Be sure to cover against remnants of an in-tree build. |
2860 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2861 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2862 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2863 | fi | |
252b5132 | 2864 | |
a0da8069 NN |
2865 | # Skipdirs are removed silently. |
2866 | skipdirs= | |
2867 | # Noconfigdirs are removed loudly. | |
2868 | noconfigdirs="" | |
252b5132 | 2869 | |
a0da8069 NN |
2870 | use_gnu_ld= |
2871 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2872 | if test x$with_gnu_ld = xno ; then | |
2873 | use_gnu_ld=no | |
93f9b408 | 2874 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2875 | fi |
2876 | ||
a0da8069 NN |
2877 | use_gnu_as= |
2878 | # Make sure we don't let GNU as be added if we didn't want it. | |
2879 | if test x$with_gnu_as = xno ; then | |
2880 | use_gnu_as=no | |
2881 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2882 | fi |
2883 | ||
700d40ca ILT |
2884 | use_included_zlib= |
2885 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2886 | if test x$with_system_zlib = xyes ; then | |
2887 | use_included_zlib=no | |
2888 | noconfigdirs="$noconfigdirs zlib" | |
2889 | fi | |
2890 | ||
c6b750e1 | 2891 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2892 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2893 | |
a0da8069 NN |
2894 | case ${with_x} in |
2895 | yes | "") ;; # the default value for this tree is that X11 is available | |
2896 | no) | |
675c6968 | 2897 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2898 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2899 | enable_gdbtk=no |
a0da8069 NN |
2900 | ;; |
2901 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2902 | esac | |
252b5132 | 2903 | |
0377a422 | 2904 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2905 | # Remove these if host=target. |
2906 | cross_only="target-libgloss target-newlib target-opcodes" | |
2907 | ||
2908 | case $is_cross_compiler in | |
2909 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2910 | esac |
252b5132 | 2911 | |
a0da8069 NN |
2912 | # If both --with-headers and --with-libs are specified, default to |
2913 | # --without-newlib. | |
32be62b5 RS |
2914 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2915 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2916 | if test x"${with_newlib}" = x ; then |
2917 | with_newlib=no | |
2918 | fi | |
252b5132 RH |
2919 | fi |
2920 | ||
a0da8069 NN |
2921 | # Recognize --with-newlib/--without-newlib. |
2922 | case ${with_newlib} in | |
2923 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2924 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2925 | esac | |
252b5132 | 2926 | |
c7791212 NC |
2927 | # Handle --enable-gold, --enable-ld. |
2928 | # --disable-gold [--enable-ld] | |
2929 | # Build only ld. Default option. | |
d3b50760 L |
2930 | # --enable-gold [--enable-ld] |
2931 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2932 | # as "ld.bfd" and "ld". | |
2933 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2934 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2935 | # install ld as "ld.bfd". | |
2936 | # --enable-gold[=default] --disable-ld | |
2937 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2938 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2939 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2940 | # and ld.bfd). | |
c7791212 NC |
2941 | # In other words, ld is default |
2942 | # --enable-gold=default --enable-ld=default | |
2943 | # Error. | |
2944 | ||
2945 | default_ld= | |
81ecdfbb RW |
2946 | # Check whether --enable-gold was given. |
2947 | if test "${enable_gold+set}" = set; then : | |
2948 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2949 | else |
2950 | ENABLE_GOLD=no | |
81ecdfbb RW |
2951 | fi |
2952 | ||
c7791212 NC |
2953 | case "${ENABLE_GOLD}" in |
2954 | yes|default) | |
e6de499b NC |
2955 | # Check for ELF target. |
2956 | is_elf=no | |
2957 | case "${target}" in | |
2958 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2959 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2960 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2bda3143 | 2961 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2962 | case "${target}" in |
2963 | *-*-linux*aout* | *-*-linux*oldld*) | |
2964 | ;; | |
2965 | *) | |
2966 | is_elf=yes | |
2967 | ;; | |
2968 | esac | |
2969 | esac | |
2970 | ||
2971 | if test "$is_elf" = "yes"; then | |
2972 | # Check for target supported by gold. | |
93f9b408 | 2973 | case "${target}" in |
5c0b3823 | 2974 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*) |
c7791212 NC |
2975 | configdirs="$configdirs gold" |
2976 | if test x${ENABLE_GOLD} = xdefault; then | |
2977 | default_ld=gold | |
2978 | fi | |
e6de499b | 2979 | ENABLE_GOLD=yes |
93f9b408 ILT |
2980 | ;; |
2981 | esac | |
e6de499b NC |
2982 | fi |
2983 | ;; | |
2984 | no) | |
2985 | ;; | |
2986 | *) | |
2987 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2988 | ;; | |
c7791212 NC |
2989 | esac |
2990 | ||
2991 | # Check whether --enable-ld was given. | |
2992 | if test "${enable_ld+set}" = set; then : | |
2993 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2994 | else | |
2995 | ENABLE_LD=yes | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | case "${ENABLE_LD}" in | |
3000 | default) | |
d3b50760 | 3001 | if test x${default_ld} != x; then |
c7791212 NC |
3002 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3003 | fi | |
3004 | ;; | |
3005 | yes) | |
3006 | ;; | |
3007 | no) | |
3008 | if test x${ENABLE_GOLD} != xyes; then | |
3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3010 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3011 | fi | |
3012 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3013 | ;; | |
3014 | *) | |
3015 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3016 | ;; | |
3017 | esac | |
93f9b408 | 3018 | |
a0da8069 | 3019 | # Configure extra directories which are host specific |
252b5132 | 3020 | |
a0da8069 NN |
3021 | case "${host}" in |
3022 | *-cygwin*) | |
3023 | configdirs="$configdirs libtermcap" ;; | |
3024 | esac | |
252b5132 | 3025 | |
59f7ec45 HPN |
3026 | # A target can indicate whether a language isn't supported for some reason. |
3027 | # Only spaces may be used in this macro; not newlines or tabs. | |
3028 | unsupported_languages= | |
3029 | ||
c6b750e1 | 3030 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3031 | # target this usually means that a port of the program doesn't |
3032 | # exist yet. | |
252b5132 | 3033 | |
a0da8069 | 3034 | case "${host}" in |
3516a403 | 3035 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3036 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3037 | ;; |
a0da8069 | 3038 | esac |
252b5132 | 3039 | |
4b1cb4fe | 3040 | |
89a1e9c3 PB |
3041 | # Check whether --enable-libquadmath was given. |
3042 | if test "${enable_libquadmath+set}" = set; then : | |
3043 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3044 | else | |
3045 | ENABLE_LIBQUADMATH=yes | |
3046 | fi | |
3047 | ||
3048 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3049 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3050 | fi | |
3051 | ||
3052 | ||
3053 | # Check whether --enable-libquadmath-support was given. | |
3054 | if test "${enable_libquadmath_support+set}" = set; then : | |
3055 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3056 | else | |
3057 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3058 | fi | |
3059 | ||
3060 | enable_libquadmath_support= | |
3061 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3062 | enable_libquadmath_support=no | |
3063 | fi | |
3064 | ||
3065 | ||
81ecdfbb RW |
3066 | # Check whether --enable-libada was given. |
3067 | if test "${enable_libada+set}" = set; then : | |
3068 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3069 | else |
3070 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3071 | fi |
3072 | ||
a2592b1b | 3073 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3074 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3075 | fi |
3076 | ||
81ecdfbb RW |
3077 | # Check whether --enable-libssp was given. |
3078 | if test "${enable_libssp+set}" = set; then : | |
3079 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3080 | else |
3081 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3082 | fi |
3083 | ||
5f128533 | 3084 | |
f66a9a70 L |
3085 | # Check whether --enable-libstdcxx was given. |
3086 | if test "${enable_libstdcxx+set}" = set; then : | |
3087 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3088 | else | |
3089 | ENABLE_LIBSTDCXX=default | |
3090 | fi | |
3091 | ||
3092 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
3093 | noconfigdirs="$noconfigdirs libstdc++-v3" | |
3094 | fi | |
3095 | ||
a0da8069 NN |
3096 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3097 | # front-end isn't enabled, we still get libgcj disabled. | |
3098 | libgcj_saved=$libgcj | |
3099 | case $enable_libgcj in | |
3100 | yes) | |
3101 | # If we reset it here, it won't get added to noconfigdirs in the | |
3102 | # target-specific build rules, so it will be forcibly enabled | |
3103 | # (unless the Java language itself isn't enabled). | |
3104 | libgcj= | |
3105 | ;; | |
3106 | no) | |
3107 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3108 | # Don't disable libffi, though, other languages use it. |
3109 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3110 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3111 | # built. | |
3112 | libgcj_saved= | |
a0da8069 NN |
3113 | ;; |
3114 | esac | |
252b5132 | 3115 | |
ffdd6afc ILT |
3116 | # Check whether --enable-static-libjava was given. |
3117 | if test "${enable_static_libjava+set}" = set; then : | |
3118 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3119 | else | |
3120 | ENABLE_STATIC_LIBJAVA=no | |
3121 | fi | |
3122 | ||
3123 | enable_static_libjava= | |
3124 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3125 | enable_static_libjava=yes | |
3126 | fi | |
3127 | ||
3128 | if test x$enable_static_libjava != xyes ; then | |
3129 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3130 | fi | |
3131 | ||
4b1cb4fe | 3132 | |
a6df5a19 PB |
3133 | # Disable libgomp on non POSIX hosted systems. |
3134 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3135 | # Enable libgomp by default on hosted POSIX systems. |
3136 | case "${target}" in | |
29383458 | 3137 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3138 | ;; |
5b806d27 | 3139 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3140 | ;; |
2479f722 | 3141 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3142 | ;; |
3143 | *-*-darwin* | *-*-aix*) | |
3144 | ;; | |
3145 | *) | |
3146 | noconfigdirs="$noconfigdirs target-libgomp" | |
3147 | ;; | |
3148 | esac | |
a6df5a19 | 3149 | fi |
b3ded179 | 3150 | |
7ec59b9e L |
3151 | # Disable libatomic on unsupported systems. |
3152 | if test -d ${srcdir}/libatomic; then | |
3153 | if test x$enable_libatomic = x; then | |
3154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3155 | $as_echo_n "checking for libatomic support... " >&6; } | |
3156 | if (srcdir=${srcdir}/libatomic; \ | |
3157 | . ${srcdir}/configure.tgt; \ | |
3158 | test -n "$UNSUPPORTED") | |
3159 | then | |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3161 | $as_echo "no" >&6; } | |
3162 | noconfigdirs="$noconfigdirs target-libatomic" | |
3163 | else | |
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3165 | $as_echo "yes" >&6; } | |
3166 | fi | |
3167 | fi | |
3168 | fi | |
3169 | ||
522e3d71 | 3170 | # Disable libcilkrts on unsupported systems. |
3171 | if test -d ${srcdir}/libcilkrts; then | |
3172 | if test x$enable_libcilkrts = x; then | |
3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3174 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3175 | if (srcdir=${srcdir}/libcilkrts; \ | |
3176 | . ${srcdir}/configure.tgt; \ | |
3177 | test -n "$UNSUPPORTED") | |
3178 | then | |
3179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3180 | $as_echo "no" >&6; } | |
3181 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3182 | else | |
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3184 | $as_echo "yes" >&6; } | |
3185 | fi | |
3186 | fi | |
3187 | fi | |
3188 | ||
d32e2926 RH |
3189 | # Disable libitm on unsupported systems. |
3190 | if test -d ${srcdir}/libitm; then | |
3191 | if test x$enable_libitm = x; then | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3193 | $as_echo_n "checking for libitm support... " >&6; } | |
3194 | if (srcdir=${srcdir}/libitm; \ | |
3195 | . ${srcdir}/configure.tgt; \ | |
3196 | test -n "$UNSUPPORTED") | |
3197 | then | |
3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3199 | $as_echo "no" >&6; } | |
3200 | noconfigdirs="$noconfigdirs target-libitm" | |
3201 | else | |
3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3203 | $as_echo "yes" >&6; } | |
3204 | fi | |
3205 | fi | |
3206 | fi | |
3207 | ||
5286fdef L |
3208 | # Disable libsanitizer on unsupported systems. |
3209 | if test -d ${srcdir}/libsanitizer; then | |
3210 | if test x$enable_libsanitizer = x; then | |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3212 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3213 | if (srcdir=${srcdir}/libsanitizer; \ | |
3214 | . ${srcdir}/configure.tgt; \ | |
3215 | test -n "$UNSUPPORTED") | |
3216 | then | |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3218 | $as_echo "no" >&6; } | |
3219 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3220 | else | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3222 | $as_echo "yes" >&6; } | |
3223 | fi | |
3224 | fi | |
3225 | fi | |
3226 | ||
95e43135 JBG |
3227 | # Disable libvtv on unsupported systems. |
3228 | if test -d ${srcdir}/libvtv; then | |
3229 | if test x$enable_libvtv = x; then | |
3230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3231 | $as_echo_n "checking for libvtv support... " >&6; } | |
3232 | if (srcdir=${srcdir}/libvtv; \ | |
3233 | . ${srcdir}/configure.tgt; \ | |
3234 | test "$VTV_SUPPORTED" != "yes") | |
3235 | then | |
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3237 | $as_echo "no" >&6; } | |
3238 | noconfigdirs="$noconfigdirs target-libvtv" | |
3239 | else | |
3240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3241 | $as_echo "yes" >&6; } | |
3242 | fi | |
3243 | fi | |
3244 | fi | |
3245 | ||
1488e230 DE |
3246 | # Disable libquadmath for some systems. |
3247 | case "${target}" in | |
5286fdef L |
3248 | avr-*-*) |
3249 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3250 | ;; | |
1488e230 DE |
3251 | # libquadmath is unused on AIX and libquadmath build process use of |
3252 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3253 | powerpc-*-aix* | rs6000-*-aix*) | |
3254 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3255 | ;; | |
3256 | esac | |
3257 | ||
065a5627 JM |
3258 | # Disable libssp for some systems. |
3259 | case "${target}" in | |
3260 | avr-*-*) | |
c5f5c3c2 | 3261 | # No hosted I/O support. |
065a5627 JM |
3262 | noconfigdirs="$noconfigdirs target-libssp" |
3263 | ;; | |
3264 | powerpc-*-aix* | rs6000-*-aix*) | |
3265 | noconfigdirs="$noconfigdirs target-libssp" | |
3266 | ;; | |
99c513f6 | 3267 | rl78-*-*) |
202e2356 NC |
3268 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3269 | # doesn't fault for those - instead, it gives a build-time error | |
3270 | # for explicit misaligned loads. | |
99c513f6 DD |
3271 | noconfigdirs="$noconfigdirs target-libssp" |
3272 | ;; | |
065a5627 JM |
3273 | esac |
3274 | ||
065a5627 | 3275 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3276 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3277 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3278 | case "${target}" in | |
3279 | *-*-vxworks*) | |
3280 | # VxWorks uses the Dinkumware C++ library. | |
3281 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3282 | ;; | |
3283 | arm*-wince-pe*) | |
3284 | # the C++ libraries don't build on top of CE's C libraries | |
3285 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3286 | ;; | |
3287 | avr-*-*) | |
3288 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3289 | ;; | |
3290 | esac | |
3291 | fi | |
065a5627 JM |
3292 | |
3293 | # Disable Fortran for some systems. | |
3294 | case "${target}" in | |
3295 | mmix-*-*) | |
3296 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3297 | unsupported_languages="$unsupported_languages fortran" | |
3298 | ;; | |
3299 | esac | |
3300 | ||
0827f9a6 | 3301 | # Disable Java if libffi is not supported. |
9863d716 | 3302 | case "${target}" in |
e7d5abf1 JBG |
3303 | aarch64-*-*) |
3304 | ;; | |
0827f9a6 JM |
3305 | alpha*-*-*) |
3306 | ;; | |
3307 | arm*-*-*) | |
3308 | ;; | |
3309 | cris-*-*) | |
3310 | ;; | |
3311 | frv-*-*) | |
3312 | ;; | |
3313 | hppa*-*-linux*) | |
3314 | ;; | |
3315 | hppa*-*-hpux*) | |
3316 | ;; | |
3317 | i?86-*-*) | |
3318 | ;; | |
3319 | ia64*-*-*) | |
3320 | ;; | |
3321 | m32r*-*-*) | |
3322 | ;; | |
3323 | m68k-*-*) | |
3324 | ;; | |
2479f722 | 3325 | mips*-*-rtems*) |
0827f9a6 JM |
3326 | ;; |
3327 | mips*-*-linux*) | |
3328 | ;; | |
3329 | powerpc*-*-linux*) | |
3330 | ;; | |
3331 | powerpc-*-darwin*) | |
3332 | ;; | |
3333 | powerpc-*-aix* | rs6000-*-aix*) | |
3334 | ;; | |
3335 | powerpc-*-freebsd*) | |
3336 | ;; | |
3337 | powerpc64-*-freebsd*) | |
3338 | ;; | |
3339 | powerpc*-*-rtems*) | |
9863d716 | 3340 | ;; |
0827f9a6 JM |
3341 | s390-*-* | s390x-*-*) |
3342 | ;; | |
3343 | sh-*-* | sh[34]*-*-*) | |
3344 | ;; | |
3345 | sh64-*-* | sh5*-*-*) | |
3346 | ;; | |
3347 | sparc*-*-*) | |
3348 | ;; | |
3349 | x86_64-*-*) | |
3350 | ;; | |
3351 | *-*-*) | |
3352 | unsupported_languages="$unsupported_languages java" | |
3353 | ;; | |
3354 | esac | |
3355 | ||
3356 | # Disable Java, libgcj or related libraries for some systems. | |
3357 | case "${target}" in | |
9863d716 JM |
3358 | powerpc-*-darwin*) |
3359 | ;; | |
3360 | i[3456789]86-*-darwin*) | |
3361 | ;; | |
3362 | x86_64-*-darwin[912]*) | |
3363 | ;; | |
3364 | *-*-darwin*) | |
3365 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3366 | ;; | |
9863d716 JM |
3367 | *-*-netware*) |
3368 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3369 | ;; | |
3370 | *-*-rtems*) | |
3371 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3372 | ;; | |
3373 | *-*-tpf*) | |
3374 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3375 | ;; | |
3376 | *-*-uclinux*) | |
3377 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3378 | ;; | |
3379 | *-*-vxworks*) | |
3380 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3381 | ;; | |
9863d716 JM |
3382 | alpha*-*-*vms*) |
3383 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3384 | ;; | |
0827f9a6 | 3385 | arm-wince-pe) |
9863d716 JM |
3386 | noconfigdirs="$noconfigdirs ${libgcj}" |
3387 | ;; | |
9863d716 JM |
3388 | arm*-*-symbianelf*) |
3389 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3390 | ;; | |
9863d716 | 3391 | bfin-*-*) |
9863d716 JM |
3392 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3393 | ;; | |
9863d716 JM |
3394 | cris-*-* | crisv32-*-*) |
3395 | unsupported_languages="$unsupported_languages java" | |
3396 | case "${target}" in | |
3397 | *-*-linux*) | |
3398 | ;; | |
3399 | *) # See PR46792 regarding target-libffi. | |
3400 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3401 | esac | |
3402 | ;; | |
9863d716 JM |
3403 | hppa*64*-*-linux*) |
3404 | # In this case, it's because the hppa64-linux target is for | |
3405 | # the kernel only at this point and has no libc, and thus no | |
3406 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3407 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3408 | ;; |
82ae827f | 3409 | hppa*64*-*-hpux*) |
9863d716 JM |
3410 | noconfigdirs="$noconfigdirs ${libgcj}" |
3411 | ;; | |
3412 | hppa*-hp-hpux11*) | |
3413 | ;; | |
82ae827f | 3414 | hppa*-*-hpux*) |
9863d716 JM |
3415 | # According to Alexandre Oliva <[email protected]>, libjava won't |
3416 | # build on HP-UX 10.20. | |
3417 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3418 | ;; | |
9863d716 JM |
3419 | ia64*-*-*vms*) |
3420 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3421 | ;; | |
9863d716 JM |
3422 | i[3456789]86-w64-mingw*) |
3423 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3424 | ;; | |
3425 | i[3456789]86-*-mingw*) | |
3426 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3427 | ;; | |
3428 | x86_64-*-mingw*) | |
3429 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3430 | ;; | |
9863d716 JM |
3431 | mmix-*-*) |
3432 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3433 | ;; |
3434 | powerpc-*-aix*) | |
3435 | # copied from rs6000-*-* entry | |
3436 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3437 | ;; | |
9863d716 JM |
3438 | rs6000-*-aix*) |
3439 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3440 | ;; | |
9863d716 JM |
3441 | *-*-lynxos*) |
3442 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3443 | ;; | |
9863d716 JM |
3444 | esac |
3445 | ||
a413f71a ILT |
3446 | # Disable libgo for some systems where it is known to not work. |
3447 | # For testing, you can easily override this with --enable-libgo. | |
3448 | if test x$enable_libgo = x; then | |
3449 | case "${target}" in | |
3450 | *-*-darwin*) | |
3451 | # PR 46986 | |
3452 | noconfigdirs="$noconfigdirs target-libgo" | |
3453 | ;; | |
3454 | *-*-cygwin* | *-*-mingw*) | |
3455 | noconfigdirs="$noconfigdirs target-libgo" | |
3456 | ;; | |
3457 | *-*-aix*) | |
3458 | noconfigdirs="$noconfigdirs target-libgo" | |
3459 | ;; | |
3460 | esac | |
3461 | fi | |
3462 | ||
691bb5a1 DD |
3463 | # Default libgloss CPU subdirectory. |
3464 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3465 | |
ff46fb8f JM |
3466 | case "${target}" in |
3467 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3468 | libgloss_dir=wince | |
3469 | ;; | |
f1dd87fc YZ |
3470 | aarch64*-*-* ) |
3471 | libgloss_dir=aarch64 | |
3472 | ;; | |
ff46fb8f JM |
3473 | arm*-*-*) |
3474 | libgloss_dir=arm | |
3475 | ;; | |
3476 | cris-*-* | crisv32-*-*) | |
3477 | libgloss_dir=cris | |
3478 | ;; | |
3479 | hppa*-*-*) | |
3480 | libgloss_dir=pa | |
3481 | ;; | |
3482 | i[3456789]86-*-*) | |
3483 | libgloss_dir=i386 | |
3484 | ;; | |
3485 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3486 | libgloss_dir=m68hc11 | |
3487 | ;; | |
3488 | m68*-*-* | fido-*-*) | |
3489 | libgloss_dir=m68k | |
3490 | ;; | |
3491 | mips*-*-*) | |
3492 | libgloss_dir=mips | |
3493 | ;; | |
3494 | powerpc*-*-*) | |
3495 | libgloss_dir=rs6000 | |
3496 | ;; | |
3497 | sparc*-*-*) | |
3498 | libgloss_dir=sparc | |
3499 | ;; | |
3500 | esac | |
3501 | ||
c7e4b184 | 3502 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3503 | case "${target}" in |
c7e4b184 JM |
3504 | alpha*-dec-osf*) |
3505 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3506 | ;; | |
3507 | i[3456789]86-*-linux*) | |
3508 | # This section makes it possible to build newlib natively on linux. | |
3509 | # If we are using a cross compiler then don't configure newlib. | |
3510 | if test x${is_cross_compiler} != xno ; then | |
3511 | noconfigdirs="$noconfigdirs target-newlib" | |
3512 | fi | |
3513 | noconfigdirs="$noconfigdirs target-libgloss" | |
3514 | # If we are not using a cross compiler, do configure newlib. | |
3515 | # Note however, that newlib will only be configured in this situation | |
3516 | # if the --with-newlib option has been given, because otherwise | |
3517 | # 'target-newlib' will appear in skipdirs. | |
3518 | ;; | |
3519 | i[3456789]86-*-rdos*) | |
3520 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3521 | ;; | |
3522 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3523 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3524 | ;; | |
3525 | sparc-*-sunos4*) | |
3526 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3527 | ;; | |
3528 | *-*-aix*) | |
3529 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3530 | ;; | |
3531 | *-*-beos*) | |
3532 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3533 | ;; | |
a0da8069 | 3534 | *-*-chorusos) |
b2f14e4a | 3535 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3536 | ;; |
c7e4b184 JM |
3537 | *-*-dragonfly*) |
3538 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3539 | ;; | |
3540 | *-*-freebsd*) | |
3541 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3542 | ;; | |
3543 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3544 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3545 | ;; | |
3546 | *-*-lynxos*) | |
3547 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3548 | ;; | |
3549 | *-*-mingw*) | |
3550 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3551 | ;; | |
3552 | *-*-netbsd*) | |
3553 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3554 | ;; | |
3555 | *-*-netware*) | |
3556 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3557 | ;; | |
3558 | *-*-tpf*) | |
3559 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3560 | ;; | |
3561 | *-*-uclinux*) | |
3562 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3563 | ;; | |
3564 | *-*-vxworks*) | |
3565 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3566 | ;; | |
3567 | esac | |
3568 | ||
3569 | case "${target}" in | |
3570 | *-*-chorusos) | |
3571 | ;; | |
24741ab2 | 3572 | powerpc-*-darwin*) |
9d39db92 | 3573 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3574 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3575 | ;; |
85bd1942 TG |
3576 | i[3456789]86-*-darwin*) |
3577 | noconfigdirs="$noconfigdirs ld gprof" | |
3578 | noconfigdirs="$noconfigdirs sim target-rda" | |
3579 | ;; | |
e8a5fa9c | 3580 | x86_64-*-darwin[912]*) |
652dec25 TG |
3581 | noconfigdirs="$noconfigdirs ld gas gprof" |
3582 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3583 | ;; |
04d1ab34 | 3584 | *-*-darwin*) |
d320aacb | 3585 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3586 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3587 | ;; |
5b806d27 | 3588 | *-*-dragonfly*) |
5b806d27 | 3589 | ;; |
de0b4a87 | 3590 | *-*-freebsd*) |
4b1cb4fe DD |
3591 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3592 | && test -f /usr/local/include/gmp.h; then | |
3593 | with_gmp=/usr/local | |
3594 | fi | |
4b1cb4fe | 3595 | ;; |
f8a495c8 NC |
3596 | *-*-kaos*) |
3597 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3598 | noconfigdirs="$noconfigdirs target-libgloss" |
3599 | ;; | |
a0da8069 | 3600 | *-*-netbsd*) |
a0da8069 | 3601 | ;; |
2a3124ca | 3602 | *-*-netware*) |
a0da8069 NN |
3603 | ;; |
3604 | *-*-rtems*) | |
9863d716 | 3605 | noconfigdirs="$noconfigdirs target-libgloss" |
f8797b5a JB |
3606 | # this is not caught below because this stanza matches earlier |
3607 | case $target in | |
3608 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3609 | esac | |
a0da8069 | 3610 | ;; |
1587117a EC |
3611 | # The tpf target doesn't support gdb yet. |
3612 | *-*-tpf*) | |
c7e4b184 | 3613 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3614 | ;; |
c1968181 | 3615 | *-*-uclinux*) |
c7e4b184 | 3616 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3617 | ;; |
a0da8069 | 3618 | *-*-vxworks*) |
a0da8069 NN |
3619 | ;; |
3620 | alpha*-dec-osf*) | |
3621 | # ld works, but does not support shared libraries. | |
a0da8069 | 3622 | # gas doesn't generate exception information. |
c7e4b184 | 3623 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3624 | ;; |
3625 | alpha*-*-*vms*) | |
9863d716 | 3626 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3627 | ;; |
a0da8069 NN |
3628 | alpha*-*-*) |
3629 | # newlib is not 64 bit ready | |
9863d716 | 3630 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3631 | ;; |
a0da8069 | 3632 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3633 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3634 | ;; |
f4cfb980 | 3635 | arc-*-*|arceb-*-*) |
782cb41f | 3636 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3637 | ;; |
a0da8069 | 3638 | arm-*-pe*) |
9863d716 | 3639 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3640 | ;; |
a0da8069 | 3641 | arm-*-riscix*) |
b2f14e4a | 3642 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3643 | ;; |
8e71395b L |
3644 | avr-*-rtems*) |
3645 | ;; | |
3646 | avr-*-*) | |
3647 | if test x${with_avrlibc} != xno; then | |
3648 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3649 | fi | |
3650 | ;; | |
a0da8069 | 3651 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3652 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3653 | ;; |
b2f14e4a JM |
3654 | tic54x-*-*) |
3655 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3656 | ;; |
a0da8069 | 3657 | d10v-*-*) |
b2f14e4a | 3658 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3659 | ;; |
3660 | d30v-*-*) | |
b2f14e4a | 3661 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3662 | ;; |
3663 | fr30-*-elf*) | |
9863d716 | 3664 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3665 | ;; |
20135e4c | 3666 | moxie-*-*) |
20135e4c NC |
3667 | noconfigdirs="$noconfigdirs gprof" |
3668 | ;; | |
a0da8069 | 3669 | h8300*-*-*) |
9863d716 | 3670 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3671 | ;; |
3672 | h8500-*-*) | |
b2f14e4a | 3673 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3674 | ;; |
caeba88f | 3675 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3676 | ;; |
93cc359e | 3677 | hppa*64*-*-linux*) |
a0da8069 | 3678 | ;; |
f0ff0f90 | 3679 | hppa*-*-linux*) |
5dcac624 | 3680 | ;; |
a0da8069 | 3681 | hppa*-*-*elf* | \ |
a0da8069 NN |
3682 | hppa*-*-lites* | \ |
3683 | hppa*-*-openbsd* | \ | |
3684 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3685 | ;; |
3686 | hppa*-hp-hpux11*) | |
0377a422 | 3687 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3688 | ;; |
691bb5a1 | 3689 | hppa*-*-pro*) |
691bb5a1 | 3690 | ;; |
a0da8069 | 3691 | hppa*-*-*) |
9863d716 | 3692 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3693 | ;; |
b07c2aad | 3694 | i960-*-*) |
b2f14e4a | 3695 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3696 | ;; |
a0da8069 NN |
3697 | ia64*-*-elf*) |
3698 | # No gdb support yet. | |
0377a422 | 3699 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3700 | ;; |
3701 | ia64*-**-hpux*) | |
92c9a463 | 3702 | # No ld support yet. |
9863d716 | 3703 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3704 | ;; |
19e99079 | 3705 | ia64*-*-*vms*) |
7ec59b9e L |
3706 | # No ld support yet. |
3707 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3708 | ;; |
1f53ca9a | 3709 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3710 | ;; |
3711 | i[3456789]86-*-mingw*) | |
45055374 | 3712 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3713 | ;; |
a0da8069 NN |
3714 | *-*-cygwin*) |
3715 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3716 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3717 | # always build newlib if winsup directory is present. |
45055374 | 3718 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3719 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3720 | elif test -d "$srcdir/newlib"; then |
45055374 | 3721 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3722 | fi |
c6b750e1 | 3723 | ;; |
ec11bdc6 | 3724 | i[3456789]86-*-pe) |
782cb41f | 3725 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3726 | ;; |
ec11bdc6 | 3727 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3728 | # The linker does not yet know about weak symbols in COFF, |
3729 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3730 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3731 | ;; |
ec11bdc6 | 3732 | i[3456789]86-*-sco*) |
b2f14e4a | 3733 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3734 | ;; |
cff32a7c | 3735 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3736 | noconfigdirs="$noconfigdirs target-libgloss" |
3737 | ;; | |
ec11bdc6 | 3738 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3739 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3740 | ;; |
ec11bdc6 | 3741 | i[3456789]86-*-beos*) |
c7e4b184 | 3742 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3743 | ;; |
b59bea8a | 3744 | i[3456789]86-*-rdos*) |
c7e4b184 | 3745 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3746 | ;; |
a0da8069 | 3747 | mmix-*-*) |
9863d716 | 3748 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3749 | ;; |
4970f871 | 3750 | mt-*-*) |
cdb9b172 AH |
3751 | noconfigdirs="$noconfigdirs sim" |
3752 | ;; | |
a0da8069 NN |
3753 | powerpc-*-aix*) |
3754 | # copied from rs6000-*-* entry | |
c7e4b184 | 3755 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3756 | ;; |
93cc359e | 3757 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3758 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3759 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3760 | # always build newlib. |
3761 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3762 | ;; | |
3763 | # This is temporary until we can link against shared libraries | |
3764 | powerpcle-*-solaris*) | |
b2f14e4a | 3765 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3766 | ;; |
3767 | powerpc-*-beos*) | |
c7e4b184 | 3768 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3769 | ;; |
a0da8069 | 3770 | rs6000-*-lynxos*) |
c7e4b184 | 3771 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3772 | ;; |
3773 | rs6000-*-aix*) | |
c7e4b184 | 3774 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3775 | ;; |
3776 | rs6000-*-*) | |
9863d716 | 3777 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3778 | ;; |
3779 | m68k-apollo-*) | |
b2f14e4a | 3780 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3781 | ;; |
25a07265 | 3782 | microblaze*) |
9863d716 | 3783 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3784 | ;; |
d09bbf00 | 3785 | mips*-sde-elf* | mips*-mti-elf*) |
5bd8be13 RS |
3786 | if test x$with_newlib = xyes; then |
3787 | noconfigdirs="$noconfigdirs gprof" | |
3788 | fi | |
5bd8be13 | 3789 | ;; |
a0da8069 | 3790 | mips*-*-irix5*) |
b2f14e4a | 3791 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3792 | ;; |
3793 | mips*-*-irix6*) | |
9863d716 | 3794 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3795 | ;; |
a0da8069 | 3796 | mips*-*-bsd*) |
e8044f35 | 3797 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3798 | ;; |
a0da8069 | 3799 | mips*-*-linux*) |
a0da8069 | 3800 | ;; |
e8044f35 RS |
3801 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3802 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3803 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3804 | ;; | |
a0da8069 | 3805 | mips*-*-*) |
9863d716 | 3806 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3807 | ;; |
b25b5cef CJW |
3808 | nds32*-*-*) |
3809 | noconfigdirs="$noconfigdirs gdb" | |
3810 | ;; | |
cfbc1a6c JS |
3811 | or1k*-*-*) |
3812 | noconfigdirs="$noconfigdirs gdb" | |
3813 | ;; | |
dbf85af7 | 3814 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3815 | case "${target}" in |
3816 | sh*-*-elf) | |
9863d716 | 3817 | ;; |
e8a5fa9c | 3818 | *) |
9863d716 | 3819 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3820 | esac |
a0da8069 | 3821 | ;; |
a0da8069 | 3822 | sparc-*-sunos4*) |
c7e4b184 | 3823 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3824 | use_gnu_ld=no |
3825 | fi | |
3826 | ;; | |
619a3713 | 3827 | tic6x-*-*) |
40ae9136 | 3828 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3829 | ;; |
68d122bb | 3830 | tilepro*-*-* | tilegx*-*-*) |
eb4b2452 NC |
3831 | noconfigdirs="$noconfigdirs sim" |
3832 | ;; | |
a0da8069 | 3833 | v810-*-*) |
b2f14e4a | 3834 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3835 | ;; |
3836 | vax-*-*) | |
9863d716 | 3837 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3838 | ;; |
a0da8069 | 3839 | esac |
252b5132 | 3840 | |
a0da8069 NN |
3841 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3842 | # depends upon some newlib header files. | |
3843 | case "${noconfigdirs}" in | |
3844 | *target-libgloss*) ;; | |
3845 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3846 | esac | |
3847 | ||
a0da8069 | 3848 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3849 | host_makefile_frag=/dev/null |
3850 | if test -d ${srcdir}/config ; then | |
3851 | case "${host}" in | |
ec11bdc6 | 3852 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3853 | host_makefile_frag="config/mh-djgpp" |
3854 | ;; | |
3855 | *-cygwin*) | |
e33b51a6 | 3856 | |
81ecdfbb RW |
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3858 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3859 | echo a >cygwin-cat-check |
1f53ca9a | 3860 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3861 | rm cygwin-cat-check |
81ecdfbb RW |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3863 | $as_echo "yes" >&6; } | |
e33b51a6 | 3864 | else |
8ade07e9 | 3865 | rm cygwin-cat-check |
81ecdfbb RW |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3867 | $as_echo "no" >&6; } | |
3868 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3869 | Please either mount the build directory in binary mode or run the following |
3870 | commands before running any configure script: | |
3871 | set -o igncr | |
3872 | export SHELLOPTS | |
81ecdfbb | 3873 | " "$LINENO" 5 |
e33b51a6 | 3874 | fi |
e33b51a6 | 3875 | |
a0da8069 NN |
3876 | host_makefile_frag="config/mh-cygwin" |
3877 | ;; | |
8a1599ab | 3878 | *-mingw*) |
84e7906e | 3879 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3880 | ;; |
da888c87 | 3881 | hppa*-hp-hpux10*) |
da888c87 | 3882 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3883 | ;; |
3516a403 | 3884 | hppa*-hp-hpux*) |
da888c87 PB |
3885 | host_makefile_frag="config/mh-pa" |
3886 | ;; | |
3887 | hppa*-*) | |
3888 | host_makefile_frag="config/mh-pa" | |
3889 | ;; | |
e552509b ILT |
3890 | *-*-darwin*) |
3891 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3892 | ;; |
f6d183c0 PB |
3893 | powerpc-*-aix*) |
3894 | host_makefile_frag="config/mh-ppc-aix" | |
3895 | ;; | |
3896 | rs6000-*-aix*) | |
3897 | host_makefile_frag="config/mh-ppc-aix" | |
3898 | ;; | |
a0da8069 NN |
3899 | esac |
3900 | fi | |
3901 | ||
9e07f89d | 3902 | if test "${build}" != "${host}" ; then |
1576798e PB |
3903 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3904 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3905 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3906 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3907 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3908 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3909 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3910 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3911 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3912 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3913 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3914 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3915 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3916 | else | |
3917 | AR_FOR_BUILD="\$(AR)" | |
3918 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3919 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3920 | CXX_FOR_BUILD="\$(CXX)" |
3921 | GCJ_FOR_BUILD="\$(GCJ)" | |
3922 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3923 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3924 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3925 | LD_FOR_BUILD="\$(LD)" | |
3926 | NM_FOR_BUILD="\$(NM)" | |
3927 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3928 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3929 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3930 | fi |
3931 | ||
3932 | ac_ext=c | |
c6b750e1 DJ |
3933 | ac_cpp='$CPP $CPPFLAGS' |
3934 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3935 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3936 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3937 | if test -n "$ac_tool_prefix"; then | |
3938 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3939 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3941 | $as_echo_n "checking for $ac_word... " >&6; } | |
3942 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3943 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3944 | else |
3945 | if test -n "$CC"; then | |
3946 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3947 | else | |
3948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3949 | for as_dir in $PATH | |
3950 | do | |
3951 | IFS=$as_save_IFS | |
3952 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3953 | for ac_exec_ext in '' $ac_executable_extensions; do |
3954 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3955 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3957 | break 2 |
3958 | fi | |
3959 | done | |
81ecdfbb RW |
3960 | done |
3961 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3962 | |
3963 | fi | |
3964 | fi | |
3965 | CC=$ac_cv_prog_CC | |
3966 | if test -n "$CC"; then | |
81ecdfbb RW |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3968 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3969 | else |
81ecdfbb RW |
3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3971 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3972 | fi |
3973 | ||
81ecdfbb | 3974 | |
c6b750e1 DJ |
3975 | fi |
3976 | if test -z "$ac_cv_prog_CC"; then | |
3977 | ac_ct_CC=$CC | |
6a9cf61e | 3978 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3979 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3981 | $as_echo_n "checking for $ac_word... " >&6; } | |
3982 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3983 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3984 | else |
3985 | if test -n "$ac_ct_CC"; then | |
3986 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3987 | else | |
3988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3989 | for as_dir in $PATH | |
3990 | do | |
3991 | IFS=$as_save_IFS | |
3992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3993 | for ac_exec_ext in '' $ac_executable_extensions; do |
3994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3995 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3997 | break 2 |
3998 | fi | |
3999 | done | |
81ecdfbb RW |
4000 | done |
4001 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4002 | |
4003 | fi | |
4004 | fi | |
4005 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4006 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4008 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4009 | else |
81ecdfbb RW |
4010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4011 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4012 | fi |
4013 | ||
81ecdfbb RW |
4014 | if test "x$ac_ct_CC" = x; then |
4015 | CC="" | |
4016 | else | |
4017 | case $cross_compiling:$ac_tool_warned in | |
4018 | yes:) | |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4020 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4021 | ac_tool_warned=yes ;; | |
4022 | esac | |
4023 | CC=$ac_ct_CC | |
4024 | fi | |
c6b750e1 DJ |
4025 | else |
4026 | CC="$ac_cv_prog_CC" | |
4027 | fi | |
4028 | ||
4029 | if test -z "$CC"; then | |
81ecdfbb RW |
4030 | if test -n "$ac_tool_prefix"; then |
4031 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4032 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4034 | $as_echo_n "checking for $ac_word... " >&6; } | |
4035 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4036 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4037 | else |
4038 | if test -n "$CC"; then | |
4039 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4040 | else | |
c6b750e1 DJ |
4041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4042 | for as_dir in $PATH | |
4043 | do | |
4044 | IFS=$as_save_IFS | |
4045 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4046 | for ac_exec_ext in '' $ac_executable_extensions; do |
4047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4048 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4049 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4050 | break 2 |
4051 | fi | |
4052 | done | |
81ecdfbb RW |
4053 | done |
4054 | IFS=$as_save_IFS | |
c6b750e1 | 4055 | |
9e07f89d NN |
4056 | fi |
4057 | fi | |
c6b750e1 | 4058 | CC=$ac_cv_prog_CC |
9e07f89d | 4059 | if test -n "$CC"; then |
81ecdfbb RW |
4060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4061 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4062 | else |
81ecdfbb RW |
4063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4064 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4065 | fi |
4066 | ||
c6b750e1 | 4067 | |
81ecdfbb | 4068 | fi |
c6b750e1 | 4069 | fi |
9e07f89d NN |
4070 | if test -z "$CC"; then |
4071 | # Extract the first word of "cc", so it can be a program name with args. | |
4072 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4074 | $as_echo_n "checking for $ac_word... " >&6; } | |
4075 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4076 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4077 | else |
4078 | if test -n "$CC"; then | |
4079 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4080 | else | |
9e07f89d | 4081 | ac_prog_rejected=no |
c6b750e1 DJ |
4082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4083 | for as_dir in $PATH | |
4084 | do | |
4085 | IFS=$as_save_IFS | |
4086 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4087 | for ac_exec_ext in '' $ac_executable_extensions; do |
4088 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4089 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4090 | ac_prog_rejected=yes | |
4091 | continue | |
4092 | fi | |
4093 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4095 | break 2 |
4096 | fi | |
4097 | done | |
81ecdfbb RW |
4098 | done |
4099 | IFS=$as_save_IFS | |
c6b750e1 | 4100 | |
9e07f89d NN |
4101 | if test $ac_prog_rejected = yes; then |
4102 | # We found a bogon in the path, so make sure we never use it. | |
4103 | set dummy $ac_cv_prog_CC | |
4104 | shift | |
c6b750e1 | 4105 | if test $# != 0; then |
9e07f89d NN |
4106 | # We chose a different compiler from the bogus one. |
4107 | # However, it has the same basename, so the bogon will be chosen | |
4108 | # first if we set CC to just the basename; use the full file name. | |
4109 | shift | |
c6b750e1 | 4110 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4111 | fi |
4112 | fi | |
4113 | fi | |
4114 | fi | |
c6b750e1 | 4115 | CC=$ac_cv_prog_CC |
9e07f89d | 4116 | if test -n "$CC"; then |
81ecdfbb RW |
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4118 | $as_echo "$CC" >&6; } | |
9e07f89d | 4119 | else |
81ecdfbb RW |
4120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4121 | $as_echo "no" >&6; } | |
9e07f89d NN |
4122 | fi |
4123 | ||
81ecdfbb | 4124 | |
c6b750e1 DJ |
4125 | fi |
4126 | if test -z "$CC"; then | |
4127 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4128 | for ac_prog in cl.exe |
c6b750e1 DJ |
4129 | do |
4130 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4131 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4133 | $as_echo_n "checking for $ac_word... " >&6; } | |
4134 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4135 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4136 | else |
4137 | if test -n "$CC"; then | |
4138 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4139 | else | |
c6b750e1 DJ |
4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4141 | for as_dir in $PATH | |
4142 | do | |
4143 | IFS=$as_save_IFS | |
4144 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4145 | for ac_exec_ext in '' $ac_executable_extensions; do |
4146 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4147 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4149 | break 2 |
376a0e54 | 4150 | fi |
c6b750e1 | 4151 | done |
81ecdfbb RW |
4152 | done |
4153 | IFS=$as_save_IFS | |
cac3d6c4 | 4154 | |
c6b750e1 DJ |
4155 | fi |
4156 | fi | |
4157 | CC=$ac_cv_prog_CC | |
4158 | if test -n "$CC"; then | |
81ecdfbb RW |
4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4160 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4161 | else |
81ecdfbb RW |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4163 | $as_echo "no" >&6; } | |
9e07f89d | 4164 | fi |
cac3d6c4 | 4165 | |
81ecdfbb | 4166 | |
c6b750e1 DJ |
4167 | test -n "$CC" && break |
4168 | done | |
cac3d6c4 | 4169 | fi |
c6b750e1 DJ |
4170 | if test -z "$CC"; then |
4171 | ac_ct_CC=$CC | |
81ecdfbb | 4172 | for ac_prog in cl.exe |
c6b750e1 DJ |
4173 | do |
4174 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4175 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4177 | $as_echo_n "checking for $ac_word... " >&6; } | |
4178 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4179 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4180 | else |
c6b750e1 DJ |
4181 | if test -n "$ac_ct_CC"; then |
4182 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4183 | else |
c6b750e1 DJ |
4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4185 | for as_dir in $PATH | |
4186 | do | |
4187 | IFS=$as_save_IFS | |
4188 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4189 | for ac_exec_ext in '' $ac_executable_extensions; do |
4190 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4191 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4192 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4193 | break 2 |
4194 | fi | |
4195 | done | |
81ecdfbb RW |
4196 | done |
4197 | IFS=$as_save_IFS | |
c6b750e1 | 4198 | |
cac3d6c4 CM |
4199 | fi |
4200 | fi | |
c6b750e1 DJ |
4201 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4202 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4204 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4205 | else |
81ecdfbb RW |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4207 | $as_echo "no" >&6; } | |
cac3d6c4 | 4208 | fi |
376a0e54 | 4209 | |
81ecdfbb | 4210 | |
c6b750e1 DJ |
4211 | test -n "$ac_ct_CC" && break |
4212 | done | |
4213 | ||
81ecdfbb RW |
4214 | if test "x$ac_ct_CC" = x; then |
4215 | CC="" | |
4216 | else | |
4217 | case $cross_compiling:$ac_tool_warned in | |
4218 | yes:) | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4220 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4221 | ac_tool_warned=yes ;; | |
4222 | esac | |
4223 | CC=$ac_ct_CC | |
4224 | fi | |
c6b750e1 DJ |
4225 | fi |
4226 | ||
4227 | fi | |
4228 | ||
4229 | ||
81ecdfbb RW |
4230 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4231 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4232 | as_fn_error "no acceptable C compiler found in \$PATH | |
4233 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4234 | |
4235 | # Provide some information about the compiler. | |
81ecdfbb RW |
4236 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4237 | set X $ac_compile | |
4238 | ac_compiler=$2 | |
4239 | for ac_option in --version -v -V -qversion; do | |
4240 | { { ac_try="$ac_compiler $ac_option >&5" | |
4241 | case "(($ac_try" in | |
4242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4243 | *) ac_try_echo=$ac_try;; | |
4244 | esac | |
4245 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4246 | $as_echo "$ac_try_echo"; } >&5 | |
4247 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4248 | ac_status=$? |
81ecdfbb RW |
4249 | if test -s conftest.err; then |
4250 | sed '10a\ | |
4251 | ... rest of stderr output deleted ... | |
4252 | 10q' conftest.err >conftest.er1 | |
4253 | cat conftest.er1 >&5 | |
4254 | rm -f conftest.er1 conftest.err | |
4255 | fi | |
4256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4257 | test $ac_status = 0; } | |
4258 | done | |
c6b750e1 | 4259 | |
81ecdfbb | 4260 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4261 | /* end confdefs.h. */ |
4262 | ||
4263 | int | |
4264 | main () | |
4265 | { | |
4266 | ||
4267 | ; | |
4268 | return 0; | |
4269 | } | |
4270 | _ACEOF | |
4271 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4272 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4273 | # Try to create an executable without -o first, disregard a.out. |
4274 | # It will help us diagnose broken compilers, and finding out an intuition | |
4275 | # of exeext. | |
81ecdfbb RW |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4277 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4278 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4279 | ||
4280 | # The possible output files: | |
4281 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4282 | ||
4283 | ac_rmfiles= | |
4284 | for ac_file in $ac_files | |
4285 | do | |
4286 | case $ac_file in | |
4287 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4288 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4289 | esac | |
4290 | done | |
4291 | rm -f $ac_rmfiles | |
4292 | ||
4293 | if { { ac_try="$ac_link_default" | |
4294 | case "(($ac_try" in | |
4295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4296 | *) ac_try_echo=$ac_try;; | |
4297 | esac | |
4298 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4299 | $as_echo "$ac_try_echo"; } >&5 | |
4300 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4301 | ac_status=$? |
81ecdfbb RW |
4302 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4303 | test $ac_status = 0; }; then : | |
4304 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4305 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4306 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4307 | # so that the user can short-circuit this test for compilers unknown to | |
4308 | # Autoconf. | |
4309 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4310 | do |
4311 | test -f "$ac_file" || continue | |
4312 | case $ac_file in | |
81ecdfbb | 4313 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4314 | ;; |
4315 | [ab].out ) | |
4316 | # We found the default executable, but exeext='' is most | |
4317 | # certainly right. | |
4318 | break;; | |
4319 | *.* ) | |
81ecdfbb RW |
4320 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4321 | then :; else | |
4322 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4323 | fi | |
4324 | # We set ac_cv_exeext here because the later test for it is not | |
4325 | # safe: cross compilers may not add the suffix if given an `-o' | |
4326 | # argument, so we may need to know it at that point already. | |
4327 | # Even if this section looks crufty: it has the advantage of | |
4328 | # actually working. | |
c6b750e1 DJ |
4329 | break;; |
4330 | * ) | |
4331 | break;; | |
4332 | esac | |
4333 | done | |
81ecdfbb RW |
4334 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4335 | ||
c6b750e1 | 4336 | else |
81ecdfbb RW |
4337 | ac_file='' |
4338 | fi | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4340 | $as_echo "$ac_file" >&6; } | |
4341 | if test -z "$ac_file"; then : | |
4342 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4343 | sed 's/^/| /' conftest.$ac_ext >&5 |
4344 | ||
81ecdfbb RW |
4345 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4346 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4347 | { as_fn_set_status 77 | |
4348 | as_fn_error "C compiler cannot create executables | |
4349 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4350 | fi |
c6b750e1 | 4351 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4352 | |
81ecdfbb | 4353 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4354 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4356 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4357 | # If not cross compiling, check that we can run a simple program. |
4358 | if test "$cross_compiling" != yes; then | |
4359 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4360 | { { case "(($ac_try" in |
4361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4362 | *) ac_try_echo=$ac_try;; | |
4363 | esac | |
4364 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4365 | $as_echo "$ac_try_echo"; } >&5 | |
4366 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4367 | ac_status=$? |
81ecdfbb RW |
4368 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4369 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4370 | cross_compiling=no |
4371 | else | |
4372 | if test "$cross_compiling" = maybe; then | |
4373 | cross_compiling=yes | |
4374 | else | |
81ecdfbb RW |
4375 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4376 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4377 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4378 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4379 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4380 | fi |
4381 | fi | |
4382 | fi | |
81ecdfbb RW |
4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4384 | $as_echo "yes" >&6; } | |
c6b750e1 | 4385 | |
81ecdfbb | 4386 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4387 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4388 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4389 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4391 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4393 | $as_echo "$cross_compiling" >&6; } | |
4394 | ||
4395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4396 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4397 | if { { ac_try="$ac_link" | |
4398 | case "(($ac_try" in | |
4399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4400 | *) ac_try_echo=$ac_try;; | |
4401 | esac | |
4402 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4403 | $as_echo "$ac_try_echo"; } >&5 | |
4404 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4405 | ac_status=$? |
81ecdfbb RW |
4406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4407 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4408 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4409 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4410 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4411 | # `rm'. | |
4412 | for ac_file in conftest.exe conftest conftest.*; do | |
4413 | test -f "$ac_file" || continue | |
4414 | case $ac_file in | |
81ecdfbb | 4415 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4416 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4417 | break;; |
4418 | * ) break;; | |
4419 | esac | |
4420 | done | |
4421 | else | |
81ecdfbb RW |
4422 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4423 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4424 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4425 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4426 | fi |
c6b750e1 | 4427 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4429 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4430 | |
4431 | rm -f conftest.$ac_ext | |
4432 | EXEEXT=$ac_cv_exeext | |
4433 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4435 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4436 | if test "${ac_cv_objext+set}" = set; then : | |
4437 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4438 | else |
81ecdfbb | 4439 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4440 | /* end confdefs.h. */ |
4441 | ||
4442 | int | |
4443 | main () | |
4444 | { | |
4445 | ||
4446 | ; | |
4447 | return 0; | |
4448 | } | |
4449 | _ACEOF | |
4450 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4451 | if { { ac_try="$ac_compile" |
4452 | case "(($ac_try" in | |
4453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4454 | *) ac_try_echo=$ac_try;; | |
4455 | esac | |
4456 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4457 | $as_echo "$ac_try_echo"; } >&5 | |
4458 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4459 | ac_status=$? |
81ecdfbb RW |
4460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4461 | test $ac_status = 0; }; then : | |
4462 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4463 | test -f "$ac_file" || continue; | |
c6b750e1 | 4464 | case $ac_file in |
81ecdfbb | 4465 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4466 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4467 | break;; | |
4468 | esac | |
4469 | done | |
cac3d6c4 | 4470 | else |
81ecdfbb | 4471 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4472 | sed 's/^/| /' conftest.$ac_ext >&5 |
4473 | ||
81ecdfbb RW |
4474 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4476 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4477 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4478 | fi |
c6b750e1 DJ |
4479 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4480 | fi | |
81ecdfbb RW |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4482 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4483 | OBJEXT=$ac_cv_objext |
4484 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4486 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4487 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4488 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4489 | else |
81ecdfbb | 4490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4491 | /* end confdefs.h. */ |
4492 | ||
4493 | int | |
4494 | main () | |
4495 | { | |
4496 | #ifndef __GNUC__ | |
4497 | choke me | |
4498 | #endif | |
4499 | ||
4500 | ; | |
4501 | return 0; | |
4502 | } | |
4503 | _ACEOF | |
81ecdfbb | 4504 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4505 | ac_compiler_gnu=yes |
4506 | else | |
81ecdfbb | 4507 | ac_compiler_gnu=no |
c6b750e1 | 4508 | fi |
81ecdfbb | 4509 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4510 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4511 | ||
4512 | fi | |
81ecdfbb RW |
4513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4514 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4515 | if test $ac_compiler_gnu = yes; then | |
4516 | GCC=yes | |
4517 | else | |
4518 | GCC= | |
4519 | fi | |
c6b750e1 DJ |
4520 | ac_test_CFLAGS=${CFLAGS+set} |
4521 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4523 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4524 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4525 | $as_echo_n "(cached) " >&6 | |
4526 | else | |
4527 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4528 | ac_c_werror_flag=yes | |
4529 | ac_cv_prog_cc_g=no | |
4530 | CFLAGS="-g" | |
4531 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4532 | /* end confdefs.h. */ |
4533 | ||
4534 | int | |
4535 | main () | |
4536 | { | |
4537 | ||
4538 | ; | |
4539 | return 0; | |
4540 | } | |
4541 | _ACEOF | |
81ecdfbb | 4542 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4543 | ac_cv_prog_cc_g=yes |
4544 | else | |
81ecdfbb RW |
4545 | CFLAGS="" |
4546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4547 | /* end confdefs.h. */ | |
4548 | ||
4549 | int | |
4550 | main () | |
4551 | { | |
4552 | ||
4553 | ; | |
4554 | return 0; | |
4555 | } | |
4556 | _ACEOF | |
4557 | if ac_fn_c_try_compile "$LINENO"; then : | |
4558 | ||
4559 | else | |
4560 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4561 | CFLAGS="-g" | |
4562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4563 | /* end confdefs.h. */ | |
cac3d6c4 | 4564 | |
81ecdfbb RW |
4565 | int |
4566 | main () | |
4567 | { | |
4568 | ||
4569 | ; | |
4570 | return 0; | |
4571 | } | |
4572 | _ACEOF | |
4573 | if ac_fn_c_try_compile "$LINENO"; then : | |
4574 | ac_cv_prog_cc_g=yes | |
4575 | fi | |
4576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4577 | fi |
81ecdfbb | 4578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4579 | fi |
81ecdfbb RW |
4580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4581 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4582 | fi | |
4583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4584 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4585 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4586 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4587 | elif test $ac_cv_prog_cc_g = yes; then |
4588 | if test "$GCC" = yes; then | |
4589 | CFLAGS="-g -O2" | |
4590 | else | |
4591 | CFLAGS="-g" | |
4592 | fi | |
4593 | else | |
4594 | if test "$GCC" = yes; then | |
4595 | CFLAGS="-O2" | |
4596 | else | |
4597 | CFLAGS= | |
4598 | fi | |
4599 | fi | |
81ecdfbb RW |
4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4601 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4602 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4603 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4604 | else |
81ecdfbb | 4605 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4606 | ac_save_CC=$CC |
81ecdfbb | 4607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4608 | /* end confdefs.h. */ |
4609 | #include <stdarg.h> | |
4610 | #include <stdio.h> | |
4611 | #include <sys/types.h> | |
4612 | #include <sys/stat.h> | |
4613 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4614 | struct buf { int x; }; | |
4615 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4616 | static char *e (p, i) | |
4617 | char **p; | |
4618 | int i; | |
4619 | { | |
4620 | return p[i]; | |
4621 | } | |
4622 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4623 | { | |
4624 | char *s; | |
4625 | va_list v; | |
4626 | va_start (v,p); | |
4627 | s = g (p, va_arg (v,int)); | |
4628 | va_end (v); | |
4629 | return s; | |
4630 | } | |
4631 | ||
4632 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4633 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4634 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4635 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4636 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4637 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4638 | that's true only with -std. */ |
c6b750e1 DJ |
4639 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4640 | ||
81ecdfbb RW |
4641 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4642 | inside strings and character constants. */ | |
4643 | #define FOO(x) 'x' | |
4644 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4645 | ||
c6b750e1 DJ |
4646 | int test (int i, double x); |
4647 | struct s1 {int (*f) (int a);}; | |
4648 | struct s2 {int (*f) (double a);}; | |
4649 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4650 | int argc; | |
4651 | char **argv; | |
4652 | int | |
4653 | main () | |
4654 | { | |
4655 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4656 | ; | |
4657 | return 0; | |
4658 | } | |
4659 | _ACEOF | |
81ecdfbb RW |
4660 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4661 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4662 | do |
4663 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4664 | if ac_fn_c_try_compile "$LINENO"; then : |
4665 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4666 | fi |
81ecdfbb RW |
4667 | rm -f core conftest.err conftest.$ac_objext |
4668 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4669 | done |
81ecdfbb | 4670 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4671 | CC=$ac_save_CC |
4672 | ||
4673 | fi | |
81ecdfbb RW |
4674 | # AC_CACHE_VAL |
4675 | case "x$ac_cv_prog_cc_c89" in | |
4676 | x) | |
4677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4678 | $as_echo "none needed" >&6; } ;; | |
4679 | xno) | |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4681 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4682 | *) |
81ecdfbb RW |
4683 | CC="$CC $ac_cv_prog_cc_c89" |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4685 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4686 | esac |
81ecdfbb | 4687 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4688 | |
c6b750e1 DJ |
4689 | fi |
4690 | ||
c6b750e1 DJ |
4691 | ac_ext=c |
4692 | ac_cpp='$CPP $CPPFLAGS' | |
4693 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4694 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4695 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4696 | |
81ecdfbb | 4697 | ac_ext=cpp |
18f6b6ee PB |
4698 | ac_cpp='$CXXCPP $CPPFLAGS' |
4699 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4700 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4701 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4702 | if test -z "$CXX"; then |
4703 | if test -n "$CCC"; then | |
4704 | CXX=$CCC | |
4705 | else | |
4706 | if test -n "$ac_tool_prefix"; then | |
4707 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4708 | do |
4709 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4710 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4712 | $as_echo_n "checking for $ac_word... " >&6; } | |
4713 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4714 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4715 | else |
4716 | if test -n "$CXX"; then | |
4717 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4718 | else | |
4719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4720 | for as_dir in $PATH | |
4721 | do | |
4722 | IFS=$as_save_IFS | |
4723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4724 | for ac_exec_ext in '' $ac_executable_extensions; do |
4725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4726 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4728 | break 2 |
4729 | fi | |
4730 | done | |
81ecdfbb RW |
4731 | done |
4732 | IFS=$as_save_IFS | |
512b7dfb | 4733 | |
18f6b6ee PB |
4734 | fi |
4735 | fi | |
4736 | CXX=$ac_cv_prog_CXX | |
4737 | if test -n "$CXX"; then | |
81ecdfbb RW |
4738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4739 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4740 | else |
81ecdfbb RW |
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4742 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4743 | fi |
4744 | ||
81ecdfbb | 4745 | |
18f6b6ee PB |
4746 | test -n "$CXX" && break |
4747 | done | |
4748 | fi | |
4749 | if test -z "$CXX"; then | |
4750 | ac_ct_CXX=$CXX | |
81ecdfbb | 4751 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4752 | do |
4753 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4754 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4756 | $as_echo_n "checking for $ac_word... " >&6; } | |
4757 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4758 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4759 | else |
4760 | if test -n "$ac_ct_CXX"; then | |
4761 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4762 | else | |
4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4764 | for as_dir in $PATH | |
4765 | do | |
4766 | IFS=$as_save_IFS | |
4767 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4768 | for ac_exec_ext in '' $ac_executable_extensions; do |
4769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4770 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4772 | break 2 |
512b7dfb | 4773 | fi |
18f6b6ee | 4774 | done |
81ecdfbb RW |
4775 | done |
4776 | IFS=$as_save_IFS | |
512b7dfb | 4777 | |
18f6b6ee PB |
4778 | fi |
4779 | fi | |
4780 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4781 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4783 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4784 | else |
81ecdfbb RW |
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4786 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4787 | fi |
4788 | ||
81ecdfbb | 4789 | |
18f6b6ee PB |
4790 | test -n "$ac_ct_CXX" && break |
4791 | done | |
18f6b6ee | 4792 | |
81ecdfbb RW |
4793 | if test "x$ac_ct_CXX" = x; then |
4794 | CXX="g++" | |
4795 | else | |
4796 | case $cross_compiling:$ac_tool_warned in | |
4797 | yes:) | |
4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4799 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4800 | ac_tool_warned=yes ;; | |
4801 | esac | |
4802 | CXX=$ac_ct_CXX | |
4803 | fi | |
18f6b6ee PB |
4804 | fi |
4805 | ||
81ecdfbb RW |
4806 | fi |
4807 | fi | |
18f6b6ee | 4808 | # Provide some information about the compiler. |
81ecdfbb RW |
4809 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4810 | set X $ac_compile | |
4811 | ac_compiler=$2 | |
4812 | for ac_option in --version -v -V -qversion; do | |
4813 | { { ac_try="$ac_compiler $ac_option >&5" | |
4814 | case "(($ac_try" in | |
4815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4816 | *) ac_try_echo=$ac_try;; | |
4817 | esac | |
4818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4819 | $as_echo "$ac_try_echo"; } >&5 | |
4820 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4821 | ac_status=$? |
81ecdfbb RW |
4822 | if test -s conftest.err; then |
4823 | sed '10a\ | |
4824 | ... rest of stderr output deleted ... | |
4825 | 10q' conftest.err >conftest.er1 | |
4826 | cat conftest.er1 >&5 | |
4827 | rm -f conftest.er1 conftest.err | |
4828 | fi | |
4829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4830 | test $ac_status = 0; } | |
4831 | done | |
18f6b6ee | 4832 | |
81ecdfbb RW |
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4834 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4835 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4836 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4837 | else |
81ecdfbb | 4838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4839 | /* end confdefs.h. */ |
4840 | ||
4841 | int | |
4842 | main () | |
4843 | { | |
4844 | #ifndef __GNUC__ | |
4845 | choke me | |
4846 | #endif | |
4847 | ||
4848 | ; | |
4849 | return 0; | |
4850 | } | |
4851 | _ACEOF | |
81ecdfbb | 4852 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4853 | ac_compiler_gnu=yes |
4854 | else | |
81ecdfbb | 4855 | ac_compiler_gnu=no |
18f6b6ee | 4856 | fi |
81ecdfbb | 4857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4858 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4859 | ||
4860 | fi | |
81ecdfbb RW |
4861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4862 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4863 | if test $ac_compiler_gnu = yes; then | |
4864 | GXX=yes | |
4865 | else | |
4866 | GXX= | |
4867 | fi | |
18f6b6ee PB |
4868 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4869 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4871 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4872 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4873 | $as_echo_n "(cached) " >&6 | |
4874 | else | |
4875 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4876 | ac_cxx_werror_flag=yes | |
4877 | ac_cv_prog_cxx_g=no | |
4878 | CXXFLAGS="-g" | |
4879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4880 | /* end confdefs.h. */ |
4881 | ||
4882 | int | |
4883 | main () | |
4884 | { | |
4885 | ||
4886 | ; | |
4887 | return 0; | |
4888 | } | |
4889 | _ACEOF | |
81ecdfbb | 4890 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4891 | ac_cv_prog_cxx_g=yes |
4892 | else | |
81ecdfbb RW |
4893 | CXXFLAGS="" |
4894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4895 | /* end confdefs.h. */ |
81ecdfbb | 4896 | |
18f6b6ee PB |
4897 | int |
4898 | main () | |
4899 | { | |
81ecdfbb | 4900 | |
18f6b6ee PB |
4901 | ; |
4902 | return 0; | |
4903 | } | |
4904 | _ACEOF | |
81ecdfbb | 4905 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4906 | |
81ecdfbb RW |
4907 | else |
4908 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4909 | CXXFLAGS="-g" | |
4910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4911 | /* end confdefs.h. */ |
81ecdfbb | 4912 | |
18f6b6ee PB |
4913 | int |
4914 | main () | |
4915 | { | |
81ecdfbb | 4916 | |
18f6b6ee PB |
4917 | ; |
4918 | return 0; | |
4919 | } | |
4920 | _ACEOF | |
81ecdfbb RW |
4921 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4922 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4923 | fi |
81ecdfbb RW |
4924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4925 | fi | |
4926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4927 | fi | |
4928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4929 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4930 | fi | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4932 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4933 | if test "$ac_test_CXXFLAGS" = set; then | |
4934 | CXXFLAGS=$ac_save_CXXFLAGS | |
4935 | elif test $ac_cv_prog_cxx_g = yes; then | |
4936 | if test "$GXX" = yes; then | |
4937 | CXXFLAGS="-g -O2" | |
4938 | else | |
4939 | CXXFLAGS="-g" | |
4940 | fi | |
4941 | else | |
4942 | if test "$GXX" = yes; then | |
4943 | CXXFLAGS="-O2" | |
4944 | else | |
4945 | CXXFLAGS= | |
4946 | fi | |
18f6b6ee | 4947 | fi |
18f6b6ee PB |
4948 | ac_ext=c |
4949 | ac_cpp='$CPP $CPPFLAGS' | |
4950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4953 | ||
4954 | ||
4955 | # We must set the default linker to the linker used by gcc for the correct | |
4956 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4957 | # set the LD default to the ld used by gcc. | |
4958 | if test -z "$LD"; then | |
4959 | if test "$GCC" = yes; then | |
4960 | case $build in | |
4961 | *-*-mingw*) | |
4962 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4963 | *) | |
4964 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4965 | esac | |
4966 | case $gcc_prog_ld in | |
4967 | # Accept absolute paths. | |
4968 | [\\/]* | [A-Za-z]:[\\/]*) | |
4969 | LD="$gcc_prog_ld" ;; | |
4970 | esac | |
4971 | fi | |
512b7dfb PB |
4972 | fi |
4973 | ||
b3676d82 EB |
4974 | # Check whether -static-libstdc++ -static-libgcc is supported. |
4975 | have_static_libs=no | |
4976 | if test "$GCC" = yes; then | |
4977 | saved_LDFLAGS="$LDFLAGS" | |
4978 | ||
4979 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
4980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
4981 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
4982 | ac_ext=cpp | |
4983 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4984 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4985 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4986 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4987 | ||
4988 | ||
4989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4990 | /* end confdefs.h. */ | |
a882be68 EB |
4991 | |
4992 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
4993 | #error -static-libstdc++ not implemented | |
4994 | #endif | |
b3676d82 EB |
4995 | int main() {} |
4996 | _ACEOF | |
4997 | if ac_fn_cxx_try_link "$LINENO"; then : | |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4999 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5000 | else | |
5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5002 | $as_echo "no" >&6; } | |
5003 | fi | |
5004 | rm -f core conftest.err conftest.$ac_objext \ | |
5005 | conftest$ac_exeext conftest.$ac_ext | |
5006 | ac_ext=c | |
5007 | ac_cpp='$CPP $CPPFLAGS' | |
5008 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5009 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5010 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5011 | ||
5012 | ||
5013 | LDFLAGS="$saved_LDFLAGS" | |
5014 | fi | |
5015 | ||
512b7dfb PB |
5016 | |
5017 | ||
5018 | ||
c6b750e1 | 5019 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5020 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5021 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5023 | $as_echo_n "checking for $ac_word... " >&6; } | |
5024 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5025 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5026 | else |
512b7dfb PB |
5027 | if test -n "$GNATBIND"; then |
5028 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5029 | else |
c6b750e1 DJ |
5030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5031 | for as_dir in $PATH | |
5032 | do | |
5033 | IFS=$as_save_IFS | |
5034 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5035 | for ac_exec_ext in '' $ac_executable_extensions; do |
5036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5037 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5039 | break 2 |
5040 | fi | |
5041 | done | |
81ecdfbb RW |
5042 | done |
5043 | IFS=$as_save_IFS | |
c6b750e1 | 5044 | |
9e07f89d NN |
5045 | fi |
5046 | fi | |
512b7dfb PB |
5047 | GNATBIND=$ac_cv_prog_GNATBIND |
5048 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5050 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5051 | else |
81ecdfbb RW |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5053 | $as_echo "no" >&6; } | |
9e07f89d NN |
5054 | fi |
5055 | ||
81ecdfbb | 5056 | |
c6b750e1 | 5057 | fi |
512b7dfb PB |
5058 | if test -z "$ac_cv_prog_GNATBIND"; then |
5059 | ac_ct_GNATBIND=$GNATBIND | |
5060 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5061 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5063 | $as_echo_n "checking for $ac_word... " >&6; } | |
5064 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5065 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5066 | else |
512b7dfb PB |
5067 | if test -n "$ac_ct_GNATBIND"; then |
5068 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5069 | else |
c6b750e1 DJ |
5070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5071 | for as_dir in $PATH | |
5072 | do | |
5073 | IFS=$as_save_IFS | |
5074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5075 | for ac_exec_ext in '' $ac_executable_extensions; do |
5076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5077 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5079 | break 2 |
5080 | fi | |
5081 | done | |
81ecdfbb RW |
5082 | done |
5083 | IFS=$as_save_IFS | |
c6b750e1 | 5084 | |
9e07f89d NN |
5085 | fi |
5086 | fi | |
512b7dfb PB |
5087 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5088 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5090 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5091 | else |
81ecdfbb RW |
5092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5093 | $as_echo "no" >&6; } | |
9e07f89d NN |
5094 | fi |
5095 | ||
81ecdfbb RW |
5096 | if test "x$ac_ct_GNATBIND" = x; then |
5097 | GNATBIND="no" | |
5098 | else | |
5099 | case $cross_compiling:$ac_tool_warned in | |
5100 | yes:) | |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5102 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5103 | ac_tool_warned=yes ;; | |
5104 | esac | |
5105 | GNATBIND=$ac_ct_GNATBIND | |
5106 | fi | |
24ff9987 | 5107 | else |
512b7dfb | 5108 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5109 | fi |
5110 | ||
7df2cd5d | 5111 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5112 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5113 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5115 | $as_echo_n "checking for $ac_word... " >&6; } | |
5116 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5117 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5118 | else |
512b7dfb PB |
5119 | if test -n "$GNATMAKE"; then |
5120 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5121 | else |
5122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5123 | for as_dir in $PATH | |
5124 | do | |
5125 | IFS=$as_save_IFS | |
5126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5127 | for ac_exec_ext in '' $ac_executable_extensions; do |
5128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5129 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5131 | break 2 |
5132 | fi | |
5133 | done | |
81ecdfbb RW |
5134 | done |
5135 | IFS=$as_save_IFS | |
7df2cd5d PB |
5136 | |
5137 | fi | |
5138 | fi | |
512b7dfb PB |
5139 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5140 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5142 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5143 | else |
81ecdfbb RW |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5145 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5146 | fi |
5147 | ||
81ecdfbb | 5148 | |
7df2cd5d | 5149 | fi |
512b7dfb PB |
5150 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5151 | ac_ct_GNATMAKE=$GNATMAKE | |
5152 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5153 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5155 | $as_echo_n "checking for $ac_word... " >&6; } | |
5156 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5157 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5158 | else |
512b7dfb PB |
5159 | if test -n "$ac_ct_GNATMAKE"; then |
5160 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5161 | else |
5162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5163 | for as_dir in $PATH | |
5164 | do | |
5165 | IFS=$as_save_IFS | |
5166 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5167 | for ac_exec_ext in '' $ac_executable_extensions; do |
5168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5169 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5170 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5171 | break 2 |
5172 | fi | |
5173 | done | |
81ecdfbb RW |
5174 | done |
5175 | IFS=$as_save_IFS | |
7df2cd5d | 5176 | |
7df2cd5d PB |
5177 | fi |
5178 | fi | |
512b7dfb PB |
5179 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5180 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5182 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5183 | else |
81ecdfbb RW |
5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5185 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5186 | fi |
5187 | ||
81ecdfbb RW |
5188 | if test "x$ac_ct_GNATMAKE" = x; then |
5189 | GNATMAKE="no" | |
5190 | else | |
5191 | case $cross_compiling:$ac_tool_warned in | |
5192 | yes:) | |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5194 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5195 | ac_tool_warned=yes ;; | |
5196 | esac | |
5197 | GNATMAKE=$ac_ct_GNATMAKE | |
5198 | fi | |
7df2cd5d | 5199 | else |
512b7dfb | 5200 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5201 | fi |
5202 | ||
81ecdfbb RW |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5204 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5205 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5206 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5207 | else |
5208 | cat >conftest.adb <<EOF | |
5209 | procedure conftest is begin null; end conftest; | |
5210 | EOF | |
5211 | acx_cv_cc_gcc_supports_ada=no | |
5212 | # There is a bug in old released versions of GCC which causes the | |
5213 | # driver to exit successfully when the appropriate language module | |
5214 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5215 | # Therefore we must check for the error message as well as an | |
5216 | # unsuccessful exit. | |
b8908782 DD |
5217 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5218 | # given a .adb file, but produce no object file. So we must check | |
5219 | # if an object file was really produced to guard against this. | |
9e07f89d | 5220 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5221 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5222 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5223 | fi |
5224 | rm -f conftest.* | |
5225 | fi | |
81ecdfbb RW |
5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5227 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5228 | |
64b986c0 | 5229 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5230 | have_gnat=yes |
5231 | else | |
5232 | have_gnat=no | |
5233 | fi | |
5234 | ||
81ecdfbb RW |
5235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5236 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5237 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5238 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5239 | else |
5240 | echo abfoo >t1 | |
5241 | echo cdfoo >t2 | |
5242 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5243 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5244 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5245 | : | |
5246 | else | |
5247 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5248 | fi | |
5249 | fi | |
b8908782 DD |
5250 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5251 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5252 | : |
b8908782 DD |
5253 | else |
5254 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5255 | fi | |
5256 | fi | |
5257 | rm t1 t2 | |
5258 | ||
5259 | fi | |
81ecdfbb RW |
5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5261 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5262 | do_compare="$gcc_cv_prog_cmp_skip" |
5263 | ||
5264 | ||
9e07f89d | 5265 | |
ffdd6afc ILT |
5266 | # Check whether --enable-bootstrap was given. |
5267 | if test "${enable_bootstrap+set}" = set; then : | |
5268 | enableval=$enable_bootstrap; | |
5269 | else | |
5270 | enable_bootstrap=default | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5275 | if test -r $srcdir/gcc/configure; then | |
5276 | have_compiler=yes | |
5277 | else | |
5278 | have_compiler=no | |
5279 | fi | |
5280 | ||
5281 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5282 | *:*:*:no) ;; | |
5283 | ||
5284 | # Default behavior. Enable bootstrap if we have a compiler | |
5285 | # and we are in a native configuration. | |
5286 | yes:$build:$build:default) | |
5287 | enable_bootstrap=yes ;; | |
5288 | ||
5289 | *:*:*:default) | |
5290 | enable_bootstrap=no ;; | |
5291 | ||
5292 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5293 | yes:$build:$build:yes) | |
5294 | ;; | |
5295 | ||
5296 | # Other configurations, but we have a compiler. Assume the user knows | |
5297 | # what he's doing. | |
5298 | yes:*:*:yes) | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5300 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5301 | ;; | |
5302 | ||
5303 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5304 | no:*:*:yes) | |
5305 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5306 | ||
5307 | # Fail if wrong command line | |
5308 | *) | |
5309 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5310 | ;; | |
5311 | esac | |
5312 | ||
d5f2ee2e KG |
5313 | # Used for setting $lt_cv_objdir |
5314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5315 | $as_echo_n "checking for objdir... " >&6; } | |
5316 | if test "${lt_cv_objdir+set}" = set; then : | |
5317 | $as_echo_n "(cached) " >&6 | |
5318 | else | |
5319 | rm -f .libs 2>/dev/null | |
5320 | mkdir .libs 2>/dev/null | |
5321 | if test -d .libs; then | |
5322 | lt_cv_objdir=.libs | |
5323 | else | |
5324 | # MS-DOS does not allow filenames that begin with a dot. | |
5325 | lt_cv_objdir=_libs | |
5326 | fi | |
5327 | rmdir .libs 2>/dev/null | |
5328 | fi | |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5330 | $as_echo "$lt_cv_objdir" >&6; } | |
5331 | objdir=$lt_cv_objdir | |
5332 | ||
5333 | ||
5334 | ||
5335 | ||
5336 | ||
5337 | cat >>confdefs.h <<_ACEOF | |
5338 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5339 | _ACEOF | |
5340 | ||
5341 | ||
5342 | ||
e8a5fa9c | 5343 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5344 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5345 | gmpinc= |
4b900473 | 5346 | have_gmp=no |
e8a5fa9c RW |
5347 | |
5348 | # Specify a location for mpc | |
5349 | # check for this first so it ends up on the link line before mpfr. | |
5350 | ||
81ecdfbb RW |
5351 | # Check whether --with-mpc was given. |
5352 | if test "${with_mpc+set}" = set; then : | |
5353 | withval=$with_mpc; | |
5354 | fi | |
e8a5fa9c | 5355 | |
e8a5fa9c | 5356 | |
e552509b | 5357 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5358 | if test "${with_mpc_include+set}" = set; then : |
5359 | withval=$with_mpc_include; | |
5360 | fi | |
e8a5fa9c | 5361 | |
e8a5fa9c | 5362 | |
e552509b | 5363 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5364 | if test "${with_mpc_lib+set}" = set; then : |
5365 | withval=$with_mpc_lib; | |
5366 | fi | |
e8a5fa9c | 5367 | |
e8a5fa9c RW |
5368 | |
5369 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5370 | gmplibs="-L$with_mpc/lib $gmplibs" |
5371 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5372 | fi |
5373 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5374 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5375 | fi |
5376 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5377 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5378 | fi |
5379 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5380 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5381 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5382 | # Do not test the mpc version. Assume that it is sufficient, since |
5383 | # it is in the source tree, and the library has not been built yet | |
5384 | # but it would be included on the link line in the version check below | |
5385 | # hence making the test fail. | |
d9b76ff9 | 5386 | have_gmp=yes |
e8a5fa9c | 5387 | fi |
4b900473 | 5388 | |
11b04d1f DD |
5389 | # Specify a location for mpfr |
5390 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5391 | |
81ecdfbb RW |
5392 | # Check whether --with-mpfr-dir was given. |
5393 | if test "${with_mpfr_dir+set}" = set; then : | |
5394 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5395 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5396 | fi | |
5397 | ||
11b04d1f DD |
5398 | |
5399 | ||
81ecdfbb RW |
5400 | # Check whether --with-mpfr was given. |
5401 | if test "${with_mpfr+set}" = set; then : | |
5402 | withval=$with_mpfr; | |
5403 | fi | |
c6b750e1 | 5404 | |
11b04d1f | 5405 | |
e552509b | 5406 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5407 | if test "${with_mpfr_include+set}" = set; then : |
5408 | withval=$with_mpfr_include; | |
5409 | fi | |
c6b750e1 | 5410 | |
8a0d8a5c | 5411 | |
e552509b | 5412 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5413 | if test "${with_mpfr_lib+set}" = set; then : |
5414 | withval=$with_mpfr_lib; | |
5415 | fi | |
8a0d8a5c | 5416 | |
11b04d1f DD |
5417 | |
5418 | if test "x$with_mpfr" != x; then | |
5419 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5420 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5421 | fi |
8a0d8a5c | 5422 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5423 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5424 | fi |
5425 | if test "x$with_mpfr_lib" != x; then | |
5426 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5427 | fi | |
4b900473 | 5428 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5429 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5430 | if test -d ${srcdir}/mpfr/src; then | |
5431 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5432 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5433 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5434 | else | |
5435 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5436 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5437 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5438 | fi | |
4b900473 PB |
5439 | # Do not test the mpfr version. Assume that it is sufficient, since |
5440 | # it is in the source tree, and the library has not been built yet | |
5441 | # but it would be included on the link line in the version check below | |
5442 | # hence making the test fail. | |
5443 | have_gmp=yes | |
5444 | fi | |
11b04d1f | 5445 | |
4b1cb4fe | 5446 | # Specify a location for gmp |
c6b750e1 | 5447 | |
81ecdfbb RW |
5448 | # Check whether --with-gmp-dir was given. |
5449 | if test "${with_gmp_dir+set}" = set; then : | |
5450 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5451 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5452 | fi | |
5453 | ||
4b1cb4fe DD |
5454 | |
5455 | ||
81ecdfbb RW |
5456 | # Check whether --with-gmp was given. |
5457 | if test "${with_gmp+set}" = set; then : | |
5458 | withval=$with_gmp; | |
5459 | fi | |
c6b750e1 | 5460 | |
4b1cb4fe | 5461 | |
e552509b | 5462 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5463 | if test "${with_gmp_include+set}" = set; then : |
5464 | withval=$with_gmp_include; | |
5465 | fi | |
c6b750e1 | 5466 | |
8a0d8a5c | 5467 | |
e552509b | 5468 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5469 | if test "${with_gmp_lib+set}" = set; then : |
5470 | withval=$with_gmp_lib; | |
5471 | fi | |
8a0d8a5c PB |
5472 | |
5473 | ||
4b1cb4fe | 5474 | |
11b04d1f DD |
5475 | if test "x$with_gmp" != x; then |
5476 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5477 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5478 | fi |
8a0d8a5c PB |
5479 | if test "x$with_gmp_include" != x; then |
5480 | gmpinc="-I$with_gmp_include $gmpinc" | |
5481 | fi | |
5482 | if test "x$with_gmp_lib" != x; then | |
5483 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5484 | fi | |
4b900473 | 5485 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5486 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5487 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5488 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5489 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5490 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5491 | # Do not test the gmp version. Assume that it is sufficient, since |
5492 | # it is in the source tree, and the library has not been built yet | |
5493 | # but it would be included on the link line in the version check below | |
5494 | # hence making the test fail. | |
5495 | have_gmp=yes | |
5496 | fi | |
4b1cb4fe | 5497 | |
ceb92e78 | 5498 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5499 | have_gmp=yes |
5500 | saved_CFLAGS="$CFLAGS" | |
5501 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5502 | # Check for the recommended and required versions of GMP. |
5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5504 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5505 | |
5506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5507 | /* end confdefs.h. */ |
5508 | #include "gmp.h" | |
5509 | int | |
5510 | main () | |
5511 | { | |
5512 | ||
5513 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5514 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5515 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5516 | choke me |
5517 | #endif | |
5518 | ||
5519 | ; | |
5520 | return 0; | |
5521 | } | |
5522 | _ACEOF | |
5523 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5525 | /* end confdefs.h. */ |
a6b5846e | 5526 | #include <gmp.h> |
c6b750e1 DJ |
5527 | int |
5528 | main () | |
5529 | { | |
4b1cb4fe | 5530 | |
a6b5846e KG |
5531 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5532 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5533 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5534 | choke me |
5535 | #endif | |
c6b750e1 DJ |
5536 | |
5537 | ; | |
5538 | return 0; | |
5539 | } | |
5540 | _ACEOF | |
81ecdfbb RW |
5541 | if ac_fn_c_try_compile "$LINENO"; then : |
5542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5543 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5544 | else |
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5546 | $as_echo "buggy but acceptable" >&6; } | |
5547 | fi | |
5548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5549 | else |
81ecdfbb RW |
5550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5551 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5552 | fi |
81ecdfbb | 5553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5554 | |
e8a5fa9c | 5555 | # If we have GMP, check the MPFR version. |
4b900473 | 5556 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5557 | # Check for the recommended and required versions of MPFR. |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5559 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5561 | /* end confdefs.h. */ |
9b134994 | 5562 | #include <gmp.h> |
4b900473 | 5563 | #include <mpfr.h> |
c6b750e1 DJ |
5564 | int |
5565 | main () | |
5566 | { | |
9b134994 | 5567 | |
7ec59b9e | 5568 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5569 | choke me |
5570 | #endif | |
c6b750e1 DJ |
5571 | |
5572 | ; | |
5573 | return 0; | |
5574 | } | |
5575 | _ACEOF | |
81ecdfbb RW |
5576 | if ac_fn_c_try_compile "$LINENO"; then : |
5577 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5578 | /* end confdefs.h. */ |
4b1cb4fe | 5579 | #include <gmp.h> |
4b900473 | 5580 | #include <mpfr.h> |
c6b750e1 DJ |
5581 | int |
5582 | main () | |
5583 | { | |
9dbaa842 | 5584 | |
a6b5846e | 5585 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5586 | choke me |
5587 | #endif | |
e8a5fa9c RW |
5588 | |
5589 | ; | |
5590 | return 0; | |
5591 | } | |
5592 | _ACEOF | |
81ecdfbb RW |
5593 | if ac_fn_c_try_compile "$LINENO"; then : |
5594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5595 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5596 | else |
81ecdfbb RW |
5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5598 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5599 | fi |
81ecdfbb | 5600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5601 | else |
81ecdfbb RW |
5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5603 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5604 | fi |
81ecdfbb | 5605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5606 | fi |
5607 | ||
5608 | # Check for the MPC header version. | |
d9b76ff9 | 5609 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5610 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5612 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5614 | /* end confdefs.h. */ |
5615 | #include <mpc.h> | |
5616 | int | |
5617 | main () | |
5618 | { | |
5619 | ||
a6b5846e KG |
5620 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5621 | choke me | |
5622 | #endif | |
5623 | ||
5624 | ; | |
5625 | return 0; | |
5626 | } | |
5627 | _ACEOF | |
5628 | if ac_fn_c_try_compile "$LINENO"; then : | |
5629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5630 | /* end confdefs.h. */ | |
5631 | #include <mpc.h> | |
5632 | int | |
5633 | main () | |
5634 | { | |
5635 | ||
5636 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5637 | choke me |
5638 | #endif | |
5639 | ||
5640 | ; | |
5641 | return 0; | |
5642 | } | |
5643 | _ACEOF | |
81ecdfbb RW |
5644 | if ac_fn_c_try_compile "$LINENO"; then : |
5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5646 | $as_echo "yes" >&6; } |
a6b5846e KG |
5647 | else |
5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5649 | $as_echo "buggy but acceptable" >&6; } | |
5650 | fi | |
5651 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5652 | else |
81ecdfbb | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5654 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5655 | fi |
81ecdfbb | 5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5657 | fi |
5658 | ||
5659 | # Now check the MPFR library. | |
5660 | if test x"$have_gmp" = xyes; then | |
5661 | saved_LIBS="$LIBS" | |
5662 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5664 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5666 | /* end confdefs.h. */ |
d9b76ff9 | 5667 | #include <mpc.h> |
e8a5fa9c RW |
5668 | int |
5669 | main () | |
5670 | { | |
5671 | ||
5672 | mpfr_t n; | |
5673 | mpfr_t x; | |
d9b76ff9 | 5674 | mpc_t c; |
e8a5fa9c RW |
5675 | int t; |
5676 | mpfr_init (n); | |
5677 | mpfr_init (x); | |
5678 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5679 | mpfr_erfc (n, x, GMP_RNDN); | |
5680 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5681 | mpfr_clear(n); |
5682 | mpfr_clear(x); | |
5683 | mpc_init2 (c, 53); | |
5684 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5685 | mpc_cosh (c, c, MPC_RNDNN); | |
5686 | mpc_pow (c, c, c, MPC_RNDNN); | |
5687 | mpc_acosh (c, c, MPC_RNDNN); | |
5688 | mpc_clear (c); | |
c6b750e1 DJ |
5689 | |
5690 | ; | |
5691 | return 0; | |
5692 | } | |
5693 | _ACEOF | |
81ecdfbb RW |
5694 | if ac_fn_c_try_link "$LINENO"; then : |
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5696 | $as_echo "yes" >&6; } | |
c6b750e1 | 5697 | else |
81ecdfbb RW |
5698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5699 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5700 | fi |
81ecdfbb RW |
5701 | rm -f core conftest.err conftest.$ac_objext \ |
5702 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5703 | LIBS="$saved_LIBS" |
5704 | fi | |
5705 | ||
4b900473 | 5706 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5707 | |
a6b5846e KG |
5708 | # The library versions listed in the error message below should match |
5709 | # the HARD-minimums enforced above. | |
4b900473 | 5710 | if test x$have_gmp != xyes; then |
7ec59b9e | 5711 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5712 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5713 | their locations. Source code for these libraries can be found at | |
5714 | their respective hosting sites as well as at | |
5715 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5716 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5717 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5718 | make sure that you have installed both the libraries and the header | |
5719 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5720 | fi |
9dbaa842 DD |
5721 | fi |
5722 | ||
e8a5fa9c RW |
5723 | # Flags needed for both GMP, MPFR and/or MPC. |
5724 | ||
5725 | ||
5726 | ||
4b1cb4fe DD |
5727 | |
5728 | ||
5729 | ||
7ec59b9e | 5730 | |
29383458 JM |
5731 | # Allow host libstdc++ to be specified for static linking with PPL. |
5732 | ||
81ecdfbb RW |
5733 | # Check whether --with-host-libstdcxx was given. |
5734 | if test "${with_host_libstdcxx+set}" = set; then : | |
5735 | withval=$with_host_libstdcxx; | |
5736 | fi | |
29383458 | 5737 | |
29383458 JM |
5738 | |
5739 | case $with_host_libstdcxx in | |
5740 | no|yes) | |
81ecdfbb | 5741 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5742 | ;; |
5743 | esac | |
e28c595f | 5744 | |
b3676d82 | 5745 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5746 | |
b3676d82 EB |
5747 | # Check whether --with-stage1-libs was given. |
5748 | if test "${with_stage1_libs+set}" = set; then : | |
5749 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5750 | stage1_libs= | |
e8a5fa9c | 5751 | else |
b3676d82 | 5752 | stage1_libs=$withval |
e8a5fa9c RW |
5753 | fi |
5754 | else | |
b3676d82 | 5755 | stage1_libs=$with_host_libstdcxx |
81ecdfbb RW |
5756 | fi |
5757 | ||
e8a5fa9c RW |
5758 | |
5759 | ||
b3676d82 | 5760 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5761 | |
b3676d82 EB |
5762 | # Check whether --with-stage1-ldflags was given. |
5763 | if test "${with_stage1_ldflags+set}" = set; then : | |
5764 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5765 | stage1_ldflags= | |
e8a5fa9c | 5766 | else |
b3676d82 | 5767 | stage1_ldflags=$withval |
e8a5fa9c RW |
5768 | fi |
5769 | else | |
b3676d82 EB |
5770 | stage1_ldflags= |
5771 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5772 | # if supported. But if the user explicitly specified the libraries to use, | |
5773 | # trust that they are doing what they want. | |
5774 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5775 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5776 | fi | |
81ecdfbb RW |
5777 | fi |
5778 | ||
e8a5fa9c RW |
5779 | |
5780 | ||
e8a5fa9c RW |
5781 | # Libraries to use for stage2 and later builds. This defaults to the |
5782 | # argument passed to --with-host-libstdcxx. | |
5783 | ||
81ecdfbb RW |
5784 | # Check whether --with-boot-libs was given. |
5785 | if test "${with_boot_libs+set}" = set; then : | |
5786 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5787 | poststage1_libs= |
5788 | else | |
5789 | poststage1_libs=$withval | |
5790 | fi | |
5791 | else | |
5792 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5793 | fi |
5794 | ||
e8a5fa9c RW |
5795 | |
5796 | ||
143754cd NC |
5797 | # Linker flags to use for stage2 and later builds. |
5798 | ||
5799 | # Check whether --with-boot-ldflags was given. | |
5800 | if test "${with_boot_ldflags+set}" = set; then : | |
5801 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5802 | poststage1_ldflags= | |
5803 | else | |
5804 | poststage1_ldflags=$withval | |
5805 | fi | |
5806 | else | |
5807 | poststage1_ldflags= | |
4f11b223 ILT |
5808 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5809 | # statically. But if the user explicitly specified the libraries to | |
5810 | # use, trust that they are doing what they want. | |
5811 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5812 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5813 | fi | |
5814 | fi | |
5815 | ||
5816 | ||
5817 | ||
8e71395b L |
5818 | # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL. |
5819 | # Basic setup is inlined here, actual checks are in config/cloog.m4 and | |
5820 | # config/isl.m4 | |
5821 | ||
5822 | ||
5823 | # Check whether --with-cloog was given. | |
5824 | if test "${with_cloog+set}" = set; then : | |
5825 | withval=$with_cloog; | |
5826 | fi | |
e28c595f JM |
5827 | |
5828 | ||
7ec59b9e L |
5829 | # Check whether --with-isl was given. |
5830 | if test "${with_isl+set}" = set; then : | |
5831 | withval=$with_isl; | |
81ecdfbb | 5832 | fi |
e28c595f | 5833 | |
e28c595f | 5834 | |
8e71395b L |
5835 | # Treat either --without-cloog or --without-isl as a request to disable |
5836 | # GRAPHITE support and skip all following checks. | |
5837 | if test "x$with_isl" != "xno" && | |
5838 | test "x$with_cloog" != "xno"; then | |
5839 | # Check for ISL | |
5840 | ||
5841 | ||
7ec59b9e L |
5842 | # Check whether --with-isl-include was given. |
5843 | if test "${with_isl_include+set}" = set; then : | |
5844 | withval=$with_isl_include; | |
81ecdfbb RW |
5845 | fi |
5846 | ||
e28c595f | 5847 | |
7ec59b9e L |
5848 | # Check whether --with-isl-lib was given. |
5849 | if test "${with_isl_lib+set}" = set; then : | |
5850 | withval=$with_isl_lib; | |
81ecdfbb | 5851 | fi |
e28c595f | 5852 | |
e28c595f | 5853 | |
7ec59b9e L |
5854 | # Check whether --enable-isl-version-check was given. |
5855 | if test "${enable_isl_version_check+set}" = set; then : | |
5856 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5857 | else | |
5858 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5859 | fi |
5860 | ||
5861 | ||
7ec59b9e L |
5862 | # Initialize isllibs and islinc. |
5863 | case $with_isl in | |
5864 | no) | |
5865 | isllibs= | |
5866 | islinc= | |
5867 | ;; | |
5868 | "" | yes) | |
5869 | ;; | |
5870 | *) | |
5871 | isllibs="-L$with_isl/lib" | |
5872 | islinc="-I$with_isl/include" | |
5873 | ;; | |
5874 | esac | |
5875 | if test "x${with_isl_include}" != x ; then | |
5876 | islinc="-I$with_isl_include" | |
5877 | fi | |
5878 | if test "x${with_isl_lib}" != x; then | |
5879 | isllibs="-L$with_isl_lib" | |
5880 | fi | |
5881 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
5882 | && test -d ${srcdir}/isl; then | |
5883 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
5884 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
5885 | ENABLE_ISL_CHECK=no | |
3dae1673 JBG |
5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5 |
5887 | $as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;} | |
7ec59b9e | 5888 | fi |
b123da99 | 5889 | |
b123da99 | 5890 | |
e28c595f | 5891 | |
7ec59b9e L |
5892 | if test "${ENABLE_ISL_CHECK}" = yes ; then |
5893 | _isl_saved_CFLAGS=$CFLAGS | |
5894 | _isl_saved_LDFLAGS=$LDFLAGS | |
5895 | _isl_saved_LIBS=$LIBS | |
5896 | ||
5897 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5898 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5899 | LIBS="${_isl_saved_LIBS} -lisl" | |
7ec59b9e L |
5900 | |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5 | |
5902 | $as_echo_n "checking for version 0.10 of ISL... " >&6; } | |
3dae1673 | 5903 | if test "$cross_compiling" = yes; then : |
7ec59b9e L |
5904 | gcc_cv_isl=yes |
5905 | else | |
5906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b123da99 | 5907 | /* end confdefs.h. */ |
7ec59b9e L |
5908 | #include <isl/version.h> |
5909 | #include <string.h> | |
b123da99 SP |
5910 | int |
5911 | main () | |
5912 | { | |
7ec59b9e L |
5913 | if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0) |
5914 | return 1; | |
5915 | ||
b123da99 SP |
5916 | ; |
5917 | return 0; | |
5918 | } | |
5919 | _ACEOF | |
7ec59b9e L |
5920 | if ac_fn_c_try_run "$LINENO"; then : |
5921 | gcc_cv_isl=yes | |
e28c595f | 5922 | else |
7ec59b9e | 5923 | gcc_cv_isl=no |
b123da99 | 5924 | fi |
7ec59b9e L |
5925 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
5926 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
b123da99 | 5927 | fi |
7ec59b9e | 5928 | |
3dae1673 JBG |
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
5930 | $as_echo "$gcc_cv_isl" >&6; } | |
5931 | ||
5932 | CFLAGS=$_isl_saved_CFLAGS | |
5933 | LDFLAGS=$_isl_saved_LDFLAGS | |
5934 | LIBS=$_isl_saved_LIBS | |
5935 | fi | |
5936 | ||
5937 | ||
5938 | if test "${gcc_cv_isl}" = no ; then | |
5939 | ||
5940 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5941 | _isl_saved_CFLAGS=$CFLAGS | |
5942 | _isl_saved_LDFLAGS=$LDFLAGS | |
5943 | _isl_saved_LIBS=$LIBS | |
5944 | ||
5945 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5946 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5947 | LIBS="${_isl_saved_LIBS} -lisl" | |
3dae1673 JBG |
5948 | |
5949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5 | |
5950 | $as_echo_n "checking for version 0.11 of ISL... " >&6; } | |
5951 | if test "$cross_compiling" = yes; then : | |
5952 | gcc_cv_isl=yes | |
5953 | else | |
5954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5955 | /* end confdefs.h. */ | |
5956 | #include <isl/version.h> | |
5957 | #include <string.h> | |
5958 | int | |
5959 | main () | |
5960 | { | |
5961 | if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0) | |
5962 | return 1; | |
5963 | ||
5964 | ; | |
5965 | return 0; | |
5966 | } | |
5967 | _ACEOF | |
5968 | if ac_fn_c_try_run "$LINENO"; then : | |
5969 | gcc_cv_isl=yes | |
5970 | else | |
5971 | gcc_cv_isl=no | |
5972 | fi | |
5973 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5974 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
81ecdfbb | 5975 | fi |
3dae1673 JBG |
5976 | |
5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
7ec59b9e | 5978 | $as_echo "$gcc_cv_isl" >&6; } |
81ecdfbb | 5979 | |
7ec59b9e L |
5980 | CFLAGS=$_isl_saved_CFLAGS |
5981 | LDFLAGS=$_isl_saved_LDFLAGS | |
5982 | LIBS=$_isl_saved_LIBS | |
b123da99 | 5983 | fi |
e28c595f | 5984 | |
b123da99 | 5985 | |
b3fc79f8 JBG |
5986 | if test "${gcc_cv_isl}" = no ; then |
5987 | ||
5988 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
5989 | _isl_saved_CFLAGS=$CFLAGS | |
5990 | _isl_saved_LDFLAGS=$LDFLAGS | |
5991 | _isl_saved_LIBS=$LIBS | |
5992 | ||
5993 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
5994 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}" | |
5995 | LIBS="${_isl_saved_LIBS} -lisl" | |
5996 | ||
5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5 | |
5998 | $as_echo_n "checking for version 0.12 of ISL... " >&6; } | |
5999 | if test "$cross_compiling" = yes; then : | |
6000 | gcc_cv_isl=yes | |
6001 | else | |
6002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6003 | /* end confdefs.h. */ | |
6004 | #include <isl/version.h> | |
6005 | #include <string.h> | |
6006 | int | |
6007 | main () | |
6008 | { | |
6009 | if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0) | |
6010 | return 1; | |
6011 | ||
6012 | ; | |
6013 | return 0; | |
6014 | } | |
6015 | _ACEOF | |
6016 | if ac_fn_c_try_run "$LINENO"; then : | |
6017 | gcc_cv_isl=yes | |
6018 | else | |
6019 | gcc_cv_isl=no | |
6020 | fi | |
6021 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
6022 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
6023 | fi | |
6024 | ||
6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 | |
6026 | $as_echo "$gcc_cv_isl" >&6; } | |
6027 | ||
6028 | CFLAGS=$_isl_saved_CFLAGS | |
6029 | LDFLAGS=$_isl_saved_LDFLAGS | |
6030 | LIBS=$_isl_saved_LIBS | |
6031 | fi | |
6032 | ||
6033 | ||
6034 | fi | |
3dae1673 | 6035 | fi |
e28c595f | 6036 | |
e28c595f | 6037 | |
7ec59b9e L |
6038 | |
6039 | ||
7ec59b9e L |
6040 | if test "x${with_isl}" = xno; then |
6041 | graphite_requested=no | |
6042 | elif test "x${with_isl}" != x \ | |
6043 | || test "x${with_isl_include}" != x \ | |
6044 | || test "x${with_isl_lib}" != x ; then | |
6045 | graphite_requested=yes | |
6046 | else | |
6047 | graphite_requested=no | |
b123da99 | 6048 | fi |
e28c595f | 6049 | |
e28c595f JM |
6050 | |
6051 | ||
7ec59b9e L |
6052 | if test "${gcc_cv_isl}" = no ; then |
6053 | isllibs= | |
6054 | islinc= | |
6055 | fi | |
e28c595f | 6056 | |
7ec59b9e L |
6057 | if test "${graphite_requested}" = yes \ |
6058 | && test "x${isllibs}" = x \ | |
6059 | && test "x${islinc}" = x ; then | |
e28c595f | 6060 | |
7ec59b9e L |
6061 | as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5 |
6062 | fi | |
e552509b | 6063 | |
e28c595f JM |
6064 | |
6065 | ||
8e71395b L |
6066 | if test "x$gcc_cv_isl" != "xno"; then |
6067 | # Check for CLOOG | |
81ecdfbb | 6068 | |
e28c595f | 6069 | |
e552509b | 6070 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
6071 | if test "${with_cloog_include+set}" = set; then : |
6072 | withval=$with_cloog_include; | |
6073 | fi | |
e28c595f | 6074 | |
e28c595f | 6075 | |
e552509b | 6076 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
6077 | if test "${with_cloog_lib+set}" = set; then : |
6078 | withval=$with_cloog_lib; | |
6079 | fi | |
e28c595f | 6080 | |
e28c595f | 6081 | |
e552509b ILT |
6082 | # Check whether --enable-cloog-version-check was given. |
6083 | if test "${enable_cloog_version_check+set}" = set; then : | |
6084 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
6085 | else | |
6086 | ENABLE_CLOOG_CHECK=yes | |
6087 | fi | |
6088 | ||
6089 | ||
6090 | # Initialize clooglibs and clooginc. | |
6091 | case $with_cloog in | |
6092 | no) | |
6093 | clooglibs= | |
6094 | clooginc= | |
6095 | ;; | |
6096 | "" | yes) | |
6097 | ;; | |
6098 | *) | |
6099 | clooglibs="-L$with_cloog/lib" | |
6100 | clooginc="-I$with_cloog/include" | |
6101 | ;; | |
6102 | esac | |
6103 | if test "x${with_cloog_include}" != x ; then | |
6104 | clooginc="-I$with_cloog_include" | |
6105 | fi | |
6106 | if test "x${with_cloog_lib}" != x; then | |
6107 | clooglibs="-L$with_cloog_lib" | |
6108 | fi | |
3dae1673 | 6109 | if test "x${clooginc}" = x && test "x${clooglibs}" = x \ |
7ec59b9e L |
6110 | && test -d ${srcdir}/cloog; then |
6111 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
6112 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include ' | |
3dae1673 JBG |
6113 | ENABLE_CLOOG_CHECK=no |
6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5 | |
6115 | $as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;} | |
8d8eef9a RW |
6116 | fi |
6117 | ||
7ec59b9e | 6118 | clooginc="-DCLOOG_INT_GMP ${clooginc}" |
8e71395b | 6119 | clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl" |
e28c595f | 6120 | |
e552509b ILT |
6121 | |
6122 | ||
6123 | ||
6124 | ||
6125 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6126 | _cloog_saved_CFLAGS=$CFLAGS | |
6127 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6128 | ||
7ec59b9e L |
6129 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" |
6130 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
e552509b | 6131 | |
7ec59b9e L |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5 |
6133 | $as_echo_n "checking for version 0.17.0 of CLooG... " >&6; } | |
3dae1673 | 6134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e552509b | 6135 | /* end confdefs.h. */ |
7ec59b9e | 6136 | #include "cloog/version.h" |
e552509b ILT |
6137 | int |
6138 | main () | |
6139 | { | |
6140 | #if CLOOG_VERSION_MAJOR != 0 \ | |
7ec59b9e L |
6141 | || CLOOG_VERSION_MINOR != 17 \ |
6142 | || CLOOG_VERSION_REVISION < 0 | |
e552509b ILT |
6143 | choke me |
6144 | #endif | |
6145 | ; | |
6146 | return 0; | |
6147 | } | |
6148 | _ACEOF | |
6149 | if ac_fn_c_try_compile "$LINENO"; then : | |
7ec59b9e | 6150 | gcc_cv_cloog=yes |
e552509b | 6151 | else |
7ec59b9e | 6152 | gcc_cv_cloog=no |
e552509b ILT |
6153 | fi |
6154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3dae1673 JBG |
6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 |
6156 | $as_echo "$gcc_cv_cloog" >&6; } | |
6157 | ||
6158 | CFLAGS=$_cloog_saved_CFLAGS | |
6159 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6160 | fi | |
6161 | ||
6162 | ||
6163 | if test "${gcc_cv_cloog}" = no ; then | |
6164 | ||
6165 | ||
6166 | ||
6167 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
6168 | _cloog_saved_CFLAGS=$CFLAGS | |
6169 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6170 | ||
6171 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}" | |
6172 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}" | |
6173 | ||
6174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5 | |
6175 | $as_echo_n "checking for version 0.18.0 of CLooG... " >&6; } | |
6176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6177 | /* end confdefs.h. */ | |
6178 | #include "cloog/version.h" | |
6179 | int | |
6180 | main () | |
6181 | { | |
6182 | #if CLOOG_VERSION_MAJOR != 0 \ | |
6183 | || CLOOG_VERSION_MINOR != 18 \ | |
6184 | || CLOOG_VERSION_REVISION < 0 | |
6185 | choke me | |
6186 | #endif | |
6187 | ; | |
6188 | return 0; | |
6189 | } | |
6190 | _ACEOF | |
6191 | if ac_fn_c_try_compile "$LINENO"; then : | |
6192 | gcc_cv_cloog=yes | |
6193 | else | |
6194 | gcc_cv_cloog=no | |
e552509b | 6195 | fi |
3dae1673 JBG |
6196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5 | |
7ec59b9e | 6198 | $as_echo "$gcc_cv_cloog" >&6; } |
e552509b ILT |
6199 | |
6200 | CFLAGS=$_cloog_saved_CFLAGS | |
6201 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6202 | fi | |
6203 | ||
6204 | ||
3dae1673 | 6205 | fi |
e552509b | 6206 | |
e28c595f | 6207 | |
e28c595f JM |
6208 | |
6209 | ||
6210 | ||
8d8eef9a RW |
6211 | if test "x${with_cloog}" = xno; then |
6212 | graphite_requested=no | |
6213 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
6214 | || test "x${with_cloog_include}" != x \ |
6215 | || test "x${with_cloog_lib}" != x ; then | |
6216 | graphite_requested=yes | |
6217 | else | |
6218 | graphite_requested=no | |
6219 | fi | |
6220 | ||
6221 | ||
6222 | ||
7ec59b9e | 6223 | if test "${gcc_cv_cloog}" = no ; then |
e552509b ILT |
6224 | clooglibs= |
6225 | clooginc= | |
6226 | fi | |
6227 | ||
6228 | if test "${graphite_requested}" = yes \ | |
6229 | && test "x${clooglibs}" = x \ | |
6230 | && test "x${clooginc}" = x ; then | |
6231 | ||
8e71395b | 6232 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6233 | fi |
6234 | ||
6235 | ||
8e71395b | 6236 | fi |
e552509b ILT |
6237 | fi |
6238 | ||
7ec59b9e L |
6239 | # If either the ISL or the CLooG check failed, disable builds of in-tree |
6240 | # variants of both | |
8e71395b L |
6241 | if test "x$with_isl" = xno || |
6242 | test "x$with_cloog" = xno || | |
6243 | test "x$gcc_cv_cloog" = xno || | |
6244 | test "x$gcc_cv_isl" = xno; then | |
7ec59b9e | 6245 | noconfigdirs="$noconfigdirs cloog isl" |
8e71395b L |
6246 | islinc= |
6247 | clooginc= | |
6248 | clooglibs= | |
7ec59b9e L |
6249 | fi |
6250 | ||
8e71395b L |
6251 | |
6252 | ||
6253 | ||
6254 | ||
6255 | ||
700d40ca ILT |
6256 | # Check for LTO support. |
6257 | # Check whether --enable-lto was given. | |
6258 | if test "${enable_lto+set}" = set; then : | |
6259 | enableval=$enable_lto; enable_lto=$enableval | |
6260 | else | |
6261 | enable_lto=yes; default_enable_lto=yes | |
6262 | fi | |
6263 | ||
6264 | ||
143754cd | 6265 | |
e49e5c92 DK |
6266 | |
6267 | ||
6268 | target_elf=no | |
6269 | case $target in | |
6270 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6271 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
a009f2e7 | 6272 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6273 | target_elf=no |
6274 | ;; | |
6275 | *) | |
6276 | target_elf=yes | |
6277 | ;; | |
6278 | esac | |
6279 | ||
6280 | if test $target_elf = yes; then : | |
74cea91b DK |
6281 | # ELF platforms build the lto-plugin always. |
6282 | build_lto_plugin=yes | |
e49e5c92 | 6283 | |
e49e5c92 DK |
6284 | else |
6285 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6286 | case $target in |
899b04ef | 6287 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6288 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6289 | *) enable_lto=no ;; |
6290 | esac | |
e49e5c92 | 6291 | else |
29821356 RW |
6292 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6293 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6294 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6295 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6296 | # -flto it won't be needed until after installation anyway. | |
6297 | case $target in | |
a8eb3f0a | 6298 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6299 | *) if test x"$enable_lto" = x"yes"; then |
6300 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6301 | fi | |
6302 | ;; | |
6303 | esac | |
6304 | fi | |
a8eb3f0a | 6305 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6306 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6307 | case $target in |
74cea91b | 6308 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6309 | *) ;; |
6310 | esac | |
74cea91b | 6311 | |
e49e5c92 DK |
6312 | fi |
6313 | ||
700d40ca | 6314 | |
e28c595f | 6315 | |
7ec59b9e | 6316 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6317 | stage1_languages=,c, |
1d39f329 | 6318 | |
e8a5fa9c | 6319 | # Target libraries that we bootstrap. |
2aa2364a | 6320 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6321 | |
9e07f89d NN |
6322 | # Figure out what language subdirectories are present. |
6323 | # Look if the user specified --enable-languages="..."; if not, use | |
6324 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6325 | # go away some day. | |
6326 | # NB: embedded tabs in this IF block -- do not untabify | |
6327 | if test -d ${srcdir}/gcc; then | |
6328 | if test x"${enable_languages+set}" != xset; then | |
6329 | if test x"${LANGUAGES+set}" = xset; then | |
6330 | enable_languages="${LANGUAGES}" | |
6331 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6332 | else | |
6333 | enable_languages=all | |
6334 | fi | |
6335 | else | |
6336 | if test x"${enable_languages}" = x || | |
6337 | test x"${enable_languages}" = xyes; | |
6338 | then | |
6339 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6340 | exit 1 | |
6341 | fi | |
6342 | fi | |
6343 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6344 | ||
096f7d00 DE |
6345 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6346 | # and make the substitution. | |
6347 | case ,${enable_languages}, in | |
6348 | *,f95,*) | |
6349 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6350 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6351 | ;; | |
6352 | esac | |
6353 | ||
7ec59b9e L |
6354 | # If bootstrapping, C++ must be enabled. |
6355 | case ",$enable_languages,:$enable_bootstrap" in | |
6356 | *,c++,*:*) ;; | |
6357 | *:yes) | |
ffdd6afc ILT |
6358 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6359 | enable_languages="${enable_languages},c++" | |
6360 | else | |
7ec59b9e | 6361 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6362 | fi |
6363 | ;; | |
6364 | esac | |
6365 | ||
9e07f89d NN |
6366 | # First scan to see if an enabled language requires some other language. |
6367 | # We assume that a given config-lang.in will list all the language | |
6368 | # front ends it requires, even if some are required indirectly. | |
6369 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6370 | case ${lang_frag} in | |
6371 | ..) ;; | |
6372 | # The odd quoting in the next line works around | |
6373 | # an apparent bug in bash 1.12 on linux. | |
6374 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6375 | *) | |
e552509b ILT |
6376 | # From the config-lang.in, get $language, $lang_requires, and |
6377 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6378 | language= |
6379 | lang_requires= | |
e552509b | 6380 | lang_requires_boot_languages= |
9e07f89d | 6381 | . ${lang_frag} |
e552509b | 6382 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6383 | case ,${enable_languages}, in |
6384 | *,$other,*) ;; | |
6385 | *,all,*) ;; | |
6386 | *,$language,*) | |
6387 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6388 | enable_languages="${enable_languages},${other}" | |
6389 | ;; | |
6390 | esac | |
6391 | done | |
e552509b ILT |
6392 | for other in ${lang_requires_boot_languages} ; do |
6393 | if test "$other" != "c"; then | |
6394 | case ,${enable_stage1_languages}, in | |
6395 | *,$other,*) ;; | |
6396 | *,all,*) ;; | |
6397 | *) | |
6398 | case ,${enable_languages}, in | |
6399 | *,$language,*) | |
6400 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6401 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6402 | ;; | |
6403 | esac | |
6404 | ;; | |
6405 | esac | |
6406 | fi | |
6407 | done | |
9e07f89d NN |
6408 | ;; |
6409 | esac | |
6410 | done | |
6411 | ||
9b134994 | 6412 | new_enable_languages=,c, |
700d40ca ILT |
6413 | |
6414 | # If LTO is enabled, add the LTO front end. | |
6415 | extra_host_libiberty_configure_flags= | |
6416 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6417 | case ,${enable_languages}, in |
6418 | *,lto,*) ;; | |
6419 | *) enable_languages="${enable_languages},lto" ;; | |
6420 | esac | |
a8eb3f0a | 6421 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6422 | configdirs="$configdirs lto-plugin" |
6423 | extra_host_libiberty_configure_flags=--enable-shared | |
6424 | fi | |
6425 | fi | |
6426 | ||
6427 | ||
9e07f89d | 6428 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6429 | potential_languages=,c, |
9e07f89d | 6430 | |
9e1a94f4 ILT |
6431 | enabled_target_libs= |
6432 | disabled_target_libs= | |
6433 | ||
9e07f89d NN |
6434 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6435 | case ${lang_frag} in | |
6436 | ..) ;; | |
6437 | # The odd quoting in the next line works around | |
6438 | # an apparent bug in bash 1.12 on linux. | |
6439 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6440 | *) | |
c6b750e1 | 6441 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6442 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6443 | language= |
6444 | target_libs= | |
6445 | lang_dirs= | |
64ce424c | 6446 | subdir_requires= |
9b134994 PB |
6447 | boot_language=no |
6448 | build_by_default=yes | |
9e07f89d | 6449 | . ${lang_frag} |
9b134994 PB |
6450 | if test x${language} = x; then |
6451 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6452 | exit 1 | |
6453 | fi | |
6454 | ||
ffdd6afc | 6455 | if test "$language" = "c++"; then |
7ec59b9e | 6456 | boot_language=yes |
e8a5fa9c RW |
6457 | fi |
6458 | ||
8e71395b | 6459 | add_this_lang=no |
9b134994 PB |
6460 | case ,${enable_languages}, in |
6461 | *,${language},*) | |
7ec59b9e L |
6462 | # Language was explicitly selected; include it |
6463 | # unless it is C, which is enabled by default. | |
6464 | if test "$language" != "c"; then | |
6465 | add_this_lang=yes | |
6466 | fi | |
9e07f89d | 6467 | ;; |
9b134994 PB |
6468 | *,all,*) |
6469 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6470 | if test "$language" != "c"; then |
6471 | add_this_lang=${build_by_default} | |
6472 | fi | |
9e07f89d NN |
6473 | ;; |
6474 | esac | |
4b1cb4fe | 6475 | |
64ce424c | 6476 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6477 | for i in $subdir_requires; do |
3d3adb43 | 6478 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6479 | case ,${enable_languages}, in |
6480 | *,${language},*) | |
6481 | # Specifically requested language; tell them. | |
81ecdfbb | 6482 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6483 | ;; |
6484 | *) | |
6485 | # Silently disable. | |
9b134994 | 6486 | add_this_lang=unsupported |
64ce424c PB |
6487 | ;; |
6488 | esac | |
6489 | done | |
6490 | ||
9b134994 PB |
6491 | # Disable Ada if no preexisting GNAT is available. |
6492 | case ,${enable_languages},:${language}:${have_gnat} in | |
6493 | *,${language},*:ada:no) | |
6494 | # Specifically requested language; tell them. | |
81ecdfbb | 6495 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6496 | ;; |
6497 | *:ada:no) | |
6498 | # Silently disable. | |
6499 | add_this_lang=unsupported | |
6500 | ;; | |
6501 | esac | |
6502 | ||
59f7ec45 HPN |
6503 | # Disable a language that is unsupported by the target. |
6504 | case " $unsupported_languages " in | |
6505 | *" $language "*) | |
9b134994 | 6506 | add_this_lang=unsupported |
59f7ec45 HPN |
6507 | ;; |
6508 | esac | |
6509 | ||
4b1cb4fe | 6510 | case $add_this_lang in |
9b134994 | 6511 | unsupported) |
9e07f89d | 6512 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6513 | disabled_target_libs="$disabled_target_libs $target_libs" |
6514 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6515 | ;; |
9b134994 PB |
6516 | no) |
6517 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6518 | disabled_target_libs="$disabled_target_libs $target_libs" |
6519 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6520 | potential_languages="${potential_languages}${language}," |
6521 | ;; | |
6522 | yes) | |
6523 | new_enable_languages="${new_enable_languages}${language}," | |
6524 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6525 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6526 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6527 | case "${boot_language}:,$enable_stage1_languages," in |
6528 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6529 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6530 | case ",$stage1_languages," in |
6531 | *,$language,* | ,yes, | ,all,) ;; | |
6532 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6533 | esac | |
e8a5fa9c RW |
6534 | # We need to bootstrap any supporting libraries. |
6535 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6536 | ;; |
6537 | esac | |
6538 | ;; | |
9e07f89d NN |
6539 | esac |
6540 | ;; | |
6541 | esac | |
6542 | done | |
6543 | ||
9e1a94f4 ILT |
6544 | # Add target libraries which are only needed for disabled languages |
6545 | # to noconfigdirs. | |
6546 | if test -n "$disabled_target_libs"; then | |
6547 | for dir in $disabled_target_libs; do | |
6548 | case " $enabled_target_libs " in | |
6549 | *" ${dir} "*) ;; | |
6550 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6551 | esac | |
6552 | done | |
6553 | fi | |
6554 | ||
81ecdfbb RW |
6555 | # Check whether --enable-stage1-languages was given. |
6556 | if test "${enable_stage1_languages+set}" = set; then : | |
6557 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6558 | ,no,|,,) |
6559 | # Set it to something that will have no effect in the loop below | |
6560 | enable_stage1_languages=c ;; | |
6561 | ,yes,) | |
6562 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6563 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6564 | *,all,*) | |
6565 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6566 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6567 | esac | |
6568 | ||
6569 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6570 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6571 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6572 | case $potential_languages in | |
6573 | *,$i,*) | |
6574 | case $stage1_languages in | |
6575 | *,$i,*) ;; | |
6576 | *) stage1_languages="$stage1_languages$i," ;; | |
6577 | esac ;; | |
6578 | *) | |
6579 | case $missing_languages in | |
6580 | *,$i,*) ;; | |
6581 | *) missing_languages="$missing_languages$i," ;; | |
6582 | esac ;; | |
6583 | esac | |
6584 | done | |
81ecdfbb RW |
6585 | fi |
6586 | ||
9b134994 PB |
6587 | |
6588 | # Remove leading/trailing commas that were added for simplicity | |
6589 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6590 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6591 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6592 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6593 | ||
9e07f89d | 6594 | if test "x$missing_languages" != x; then |
81ecdfbb | 6595 | as_fn_error " |
27258dd4 | 6596 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6597 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6598 | fi |
9e07f89d NN |
6599 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6600 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6601 | enable_languages="$new_enable_languages" |
9e07f89d | 6602 | fi |
9b134994 | 6603 | |
c6b750e1 | 6604 | |
81ec575a | 6605 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6606 | fi |
6607 | ||
a6df5a19 PB |
6608 | # Handle --disable-<component> generically. |
6609 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6610 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6611 | varname=`echo $dirname | sed -e s/+/_/g` |
6612 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6613 | noconfigdirs="$noconfigdirs $dir" |
6614 | fi | |
6615 | done | |
6616 | ||
4f0ef2d8 | 6617 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6618 | # Check whether --enable-objc-gc was given. |
6619 | if test "${enable_objc_gc+set}" = set; then : | |
6620 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6621 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6622 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6623 | ;; |
6624 | esac | |
81ecdfbb RW |
6625 | fi |
6626 | ||
4f0ef2d8 CD |
6627 | |
6628 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6629 | case ,${enable_languages},:${enable_objc_gc} in |
6630 | *,objc,*:yes) | |
4f0ef2d8 CD |
6631 | # Keep target-boehm-gc if requested for Objective-C. |
6632 | ;; | |
4f0ef2d8 | 6633 | *) |
d42c4017 DA |
6634 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6635 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6636 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6637 | fi | |
4f0ef2d8 CD |
6638 | ;; |
6639 | esac | |
6640 | ||
95e43135 | 6641 | # Disable libitm, libsanitizer, libvtv if we're not building C++ |
7ec59b9e L |
6642 | case ,${enable_languages}, in |
6643 | *,c++,*) ;; | |
6644 | *) | |
9aaf2a7e | 6645 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6646 | ;; |
6647 | esac | |
6648 | ||
caeba88f AL |
6649 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6650 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6651 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6652 | ||
6653 | notsupp="" | |
6654 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6655 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6656 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6657 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6658 | if test -r $srcdir/$dirname/configure ; then | |
6659 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6660 | true | |
6661 | else | |
6662 | notsupp="$notsupp $dir" | |
6663 | fi | |
6664 | fi | |
6665 | fi | |
caeba88f AL |
6666 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6667 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6668 | if test -r $srcdir/$dirname/configure ; then | |
6669 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6670 | true | |
6671 | else | |
6672 | notsupp="$notsupp $dir" | |
6673 | fi | |
6674 | fi | |
6675 | fi | |
9e07f89d NN |
6676 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6677 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6678 | if test -r $srcdir/$dirname/configure ; then | |
6679 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6680 | true | |
6681 | else | |
6682 | notsupp="$notsupp $dir" | |
6683 | fi | |
6684 | fi | |
6685 | fi | |
6686 | done | |
6687 | ||
9e07f89d NN |
6688 | # Quietly strip out all directories which aren't configurable in this tree. |
6689 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6690 | # is now the case. | |
6a9cf61e PB |
6691 | build_configdirs_all="$build_configdirs" |
6692 | build_configdirs= | |
6693 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6694 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6695 | if test -f ${srcdir}/$j/configure ; then |
6696 | build_configdirs="${build_configdirs} $i" | |
6697 | fi | |
6698 | done | |
6699 | ||
9e07f89d NN |
6700 | configdirs_all="$configdirs" |
6701 | configdirs= | |
6702 | for i in ${configdirs_all} ; do | |
6703 | if test -f ${srcdir}/$i/configure ; then | |
6704 | configdirs="${configdirs} $i" | |
6705 | fi | |
6706 | done | |
6a9cf61e | 6707 | |
9e07f89d NN |
6708 | target_configdirs_all="$target_configdirs" |
6709 | target_configdirs= | |
6710 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6711 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6712 | if test -f ${srcdir}/$j/configure ; then |
6713 | target_configdirs="${target_configdirs} $i" | |
6714 | fi | |
6715 | done | |
6716 | ||
6717 | # Produce a warning message for the subdirs we can't configure. | |
6718 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6719 | # FSF releases, it's important to let people know when their machine isn't | |
6720 | # supported by the one or two programs in a package. | |
6721 | ||
6722 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6723 | # If $appdirs is non-empty, at least one of those directories must still | |
6724 | # be configured, or we error out. (E.g., if the gas release supports a | |
6725 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6726 | # pretend that all is well.) | |
6727 | if test -n "$appdirs" ; then | |
6728 | for dir in $appdirs ; do | |
6729 | if test -r $dir/Makefile.in ; then | |
6730 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6731 | appdirs="" | |
6732 | break | |
6733 | fi | |
6a9cf61e | 6734 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6735 | appdirs="" |
6736 | break | |
6737 | fi | |
6738 | fi | |
6739 | done | |
6740 | if test -n "$appdirs" ; then | |
6741 | echo "*** This configuration is not supported by this package." 1>&2 | |
6742 | exit 1 | |
6743 | fi | |
6744 | fi | |
6745 | # Okay, some application will build, or we don't care to check. Still | |
6746 | # notify of subdirs not getting built. | |
6747 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6748 | echo " ${notsupp}" 1>&2 | |
6749 | echo " (Any other directories should still work fine.)" 1>&2 | |
6750 | fi | |
6751 | ||
6752 | case "$host" in | |
6753 | *msdosdjgpp*) | |
6754 | enable_gdbtk=no ;; | |
6755 | esac | |
6756 | ||
18f6b6ee PB |
6757 | # To find our prefix, in gcc_cv_tool_prefix. |
6758 | ||
6759 | # The user is always right. | |
6760 | if test "${PATH_SEPARATOR+set}" != set; then | |
6761 | echo "#! /bin/sh" >conf$$.sh | |
6762 | echo "exit 0" >>conf$$.sh | |
6763 | chmod +x conf$$.sh | |
6764 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6765 | PATH_SEPARATOR=';' | |
6766 | else | |
6767 | PATH_SEPARATOR=: | |
6768 | fi | |
6769 | rm -f conf$$.sh | |
6770 | fi | |
6771 | ||
6772 | ||
6773 | ||
6774 | if test "x$exec_prefix" = xNONE; then | |
6775 | if test "x$prefix" = xNONE; then | |
6776 | gcc_cv_tool_prefix=$ac_default_prefix | |
6777 | else | |
6778 | gcc_cv_tool_prefix=$prefix | |
6779 | fi | |
6780 | else | |
6781 | gcc_cv_tool_prefix=$exec_prefix | |
6782 | fi | |
6783 | ||
6784 | # If there is no compiler in the tree, use the PATH only. In any | |
6785 | # case, if there is no compiler in the tree nobody should use | |
6786 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6787 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6788 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6789 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6790 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6791 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6792 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6793 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6794 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6795 | else | |
6796 | gcc_cv_tool_dirs= | |
6797 | fi | |
6798 | ||
6799 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6800 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6801 | fi | |
6802 | ||
6803 | ||
6804 | ||
9e07f89d NN |
6805 | copy_dirs= |
6806 | ||
c6b750e1 | 6807 | |
81ecdfbb RW |
6808 | # Check whether --with-build-sysroot was given. |
6809 | if test "${with_build_sysroot+set}" = set; then : | |
6810 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6811 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6812 | fi | |
6813 | else | |
6814 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6815 | fi |
a19b6204 MM |
6816 | |
6817 | ||
8a6ee3ab | 6818 | |
81ecdfbb RW |
6819 | |
6820 | # Check whether --with-debug-prefix-map was given. | |
6821 | if test "${with_debug_prefix_map+set}" = set; then : | |
6822 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6823 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6824 | for debug_map in $withval; do | |
6825 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6826 | done | |
6827 | fi | |
6828 | else | |
6829 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6830 | fi |
6831 | ||
8a6ee3ab JM |
6832 | |
6833 | ||
7f6ef0c0 PB |
6834 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6835 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6836 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6837 | # We want to ensure that TARGET libraries (which we know are built with | |
6838 | # gcc) are built with "-O2 -g", so include those options when setting | |
6839 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6840 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6841 | CFLAGS_FOR_TARGET=$CFLAGS | |
6842 | case " $CFLAGS " in | |
6843 | *" -O2 "*) ;; | |
68f107fa | 6844 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6845 | esac |
6846 | case " $CFLAGS " in | |
6847 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6848 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6849 | esac |
6850 | fi | |
6851 | ||
6852 | ||
6853 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6854 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6855 | case " $CXXFLAGS " in | |
6856 | *" -O2 "*) ;; | |
68f107fa | 6857 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6858 | esac |
6859 | case " $CXXFLAGS " in | |
6860 | *" -g "* | *" -g3 "*) ;; | |
68f107fa | 6861 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; |
7f6ef0c0 PB |
6862 | esac |
6863 | fi | |
6864 | ||
6865 | ||
91c1f14c DK |
6866 | |
6867 | ||
9e07f89d NN |
6868 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6869 | # the named directory are copied to $(tooldir)/sys-include. | |
6870 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6871 | if test x${is_cross_compiler} = xno ; then | |
6872 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6873 | exit 1 | |
6874 | fi | |
6875 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6876 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6877 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6878 | fi |
6879 | fi | |
6880 | ||
6881 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6882 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6883 | # are permitted. | |
6884 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6885 | if test x${is_cross_compiler} = xno ; then | |
6886 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6887 | exit 1 | |
6888 | fi | |
6889 | if test x"${with_libs}" != xyes ; then | |
6890 | # Copy the libraries in reverse order, so that files in the first named | |
6891 | # library override files in subsequent libraries. | |
18f6b6ee | 6892 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6893 | for l in ${with_libs}; do |
c6b750e1 | 6894 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6895 | done |
6896 | fi | |
6897 | fi | |
6898 | ||
700d40ca | 6899 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6900 | # |
6901 | # This is done by determining whether or not the appropriate directory | |
6902 | # is available, and by checking whether or not specific configurations | |
6903 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6904 | # |
6905 | # The command line options always override the explicit settings in | |
2429c060 PB |
6906 | # configure.in, and the settings in configure.in override this magic. |
6907 | # | |
c6b750e1 | 6908 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6909 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6910 | # --without-gnu-ld options for the configure script. Similarly, if |
6911 | # the default is to use the included zlib and you don't want to do that, | |
6912 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6913 | |
6914 | if test x${use_gnu_as} = x && | |
6915 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6916 | with_gnu_as=yes | |
6917 | extra_host_args="$extra_host_args --with-gnu-as" | |
6918 | fi | |
6919 | ||
6920 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6921 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6922 | with_gnu_ld=yes |
6923 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6924 | fi | |
6925 | ||
700d40ca ILT |
6926 | if test x${use_included_zlib} = x && |
6927 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6928 | : | |
6929 | else | |
6930 | with_system_zlib=yes | |
6931 | extra_host_args="$extra_host_args --with-system-zlib" | |
6932 | fi | |
6933 | ||
2429c060 PB |
6934 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6935 | # can detect this case. | |
6936 | ||
6937 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6938 | with_newlib=yes | |
6939 | extra_host_args="$extra_host_args --with-newlib" | |
6940 | fi | |
6941 | ||
9e07f89d NN |
6942 | # Handle ${copy_dirs} |
6943 | set fnord ${copy_dirs} | |
6944 | shift | |
6945 | while test $# != 0 ; do | |
6946 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6947 | : | |
6948 | else | |
6949 | echo Copying $1 to $2 | |
6950 | ||
6951 | # Use the install script to create the directory and all required | |
6952 | # parent directories. | |
6953 | if test -d $2 ; then | |
6954 | : | |
6955 | else | |
6956 | echo >config.temp | |
6957 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6958 | fi | |
6959 | ||
6960 | # Copy the directory, assuming we have tar. | |
6961 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6962 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6963 | ||
6964 | # It is the responsibility of the user to correctly adjust all | |
6965 | # symlinks. If somebody can figure out how to handle them correctly | |
6966 | # here, feel free to add the code. | |
6967 | ||
6968 | echo $1 > $2/COPIED | |
6969 | fi | |
6970 | shift; shift | |
6971 | done | |
6972 | ||
2429c060 PB |
6973 | # Determine a target-dependent exec_prefix that the installed |
6974 | # gcc will search in. Keep this list sorted by triplet, with | |
6975 | # the *-*-osname triplets last. | |
6976 | md_exec_prefix= | |
6977 | case "${target}" in | |
521ec477 | 6978 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6979 | md_exec_prefix=/dev/env/DJDIR/bin |
6980 | ;; | |
2429c060 | 6981 | *-*-hpux* | \ |
2429c060 | 6982 | *-*-nto-qnx* | \ |
1f111696 | 6983 | *-*-solaris2*) |
2429c060 PB |
6984 | md_exec_prefix=/usr/ccs/bin |
6985 | ;; | |
6986 | esac | |
6987 | ||
a0da8069 NN |
6988 | extra_arflags_for_target= |
6989 | extra_nmflags_for_target= | |
6990 | extra_ranlibflags_for_target= | |
6991 | target_makefile_frag=/dev/null | |
6992 | case "${target}" in | |
77d7106f AM |
6993 | spu-*-*) |
6994 | target_makefile_frag="config/mt-spu" | |
6995 | ;; | |
d09bbf00 | 6996 | mips*-sde-elf* | mips*-mti-elf*) |
429acdec RS |
6997 | target_makefile_frag="config/mt-sde" |
6998 | ;; | |
f3b1e08e RS |
6999 | mipsisa*-*-elfoabi*) |
7000 | target_makefile_frag="config/mt-mips-elfoabi" | |
7001 | ;; | |
e7c8859c RS |
7002 | mips*-*-*linux* | mips*-*-gnu*) |
7003 | target_makefile_frag="config/mt-mips-gnu" | |
7004 | ;; | |
d9e042ac SL |
7005 | nios2-*-elf*) |
7006 | target_makefile_frag="config/mt-nios2-elf" | |
7007 | ;; | |
29383458 | 7008 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 7009 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
7010 | ;; |
7011 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 7012 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
7013 | # commands to handle both 32-bit and 64-bit objects. These flags are |
7014 | # harmless if we're using GNU nm or ar. | |
7015 | extra_arflags_for_target=" -X32_64" | |
7016 | extra_nmflags_for_target=" -B -X32_64" | |
7017 | ;; | |
a0da8069 NN |
7018 | esac |
7019 | ||
7020 | alphaieee_frag=/dev/null | |
7021 | case $target in | |
7022 | alpha*-*-*) | |
7023 | # This just makes sure to use the -mieee option to build target libs. | |
7024 | # This should probably be set individually by each library. | |
7025 | alphaieee_frag="config/mt-alphaieee" | |
7026 | ;; | |
7027 | esac | |
7028 | ||
7029 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
7030 | # the target libraries, similarly if it is not specified, use -Os | |
7031 | # on selected platforms. | |
7032 | ospace_frag=/dev/null | |
7033 | case "${enable_target_optspace}:${target}" in | |
7034 | yes:*) | |
7035 | ospace_frag="config/mt-ospace" | |
7036 | ;; | |
7037 | :d30v-*) | |
7038 | ospace_frag="config/mt-d30v" | |
7039 | ;; | |
7040 | :m32r-* | :d10v-* | :fr30-*) | |
7041 | ospace_frag="config/mt-ospace" | |
7042 | ;; | |
7043 | no:* | :*) | |
7044 | ;; | |
7045 | *) | |
7046 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7047 | ;; | |
7048 | esac | |
7049 | ||
a0da8069 NN |
7050 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7051 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7052 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7053 | build_tooldir=${tooldir} |
7054 | ||
a0da8069 NN |
7055 | # Create a .gdbinit file which runs the one in srcdir |
7056 | # and tells GDB to look there for source files. | |
7057 | ||
7058 | if test -r ${srcdir}/.gdbinit ; then | |
7059 | case ${srcdir} in | |
7060 | .) ;; | |
7061 | *) cat > ./.gdbinit <<EOF | |
7062 | # ${NO_EDIT} | |
7063 | dir ${srcdir} | |
7064 | dir . | |
7065 | source ${srcdir}/.gdbinit | |
7066 | EOF | |
7067 | ;; | |
7068 | esac | |
7069 | fi | |
7070 | ||
a0da8069 NN |
7071 | # Make sure that the compiler is able to generate an executable. If it |
7072 | # can't, we are probably in trouble. We don't care whether we can run the | |
7073 | # executable--we might be using a cross compiler--we only care whether it | |
7074 | # can be created. At this point the main configure script has set CC. | |
7075 | we_are_ok=no | |
7076 | echo "int main () { return 0; }" > conftest.c | |
7077 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7078 | if test $? = 0 ; then | |
7079 | if test -s conftest || test -s conftest.exe ; then | |
7080 | we_are_ok=yes | |
7081 | fi | |
c6b750e1 | 7082 | fi |
a0da8069 NN |
7083 | case $we_are_ok in |
7084 | no) | |
7085 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7086 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7087 | rm -f conftest* | |
7088 | exit 1 | |
7089 | ;; | |
7090 | esac | |
7091 | rm -f conftest* | |
7092 | ||
3bbd2f8f | 7093 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7094 | case "${host}" in |
7095 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7096 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7097 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7098 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7099 | esac | |
7100 | ||
3bbd2f8f | 7101 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7102 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7103 | # built executables to PATH. | |
3bbd2f8f AL |
7104 | if test "$RPATH_ENVVAR" = PATH; then |
7105 | GCC_SHLIB_SUBDIR=/shlib | |
7106 | else | |
7107 | GCC_SHLIB_SUBDIR= | |
7108 | fi | |
7109 | ||
730af8ee | 7110 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7111 | case $enable_bootstrap in | |
7112 | yes) | |
7113 | bootstrap_suffix=bootstrap | |
7114 | BUILD_CONFIG=bootstrap-debug | |
7115 | ;; | |
7116 | no) | |
7117 | bootstrap_suffix=no-bootstrap | |
7118 | BUILD_CONFIG= | |
7119 | ;; | |
7120 | esac | |
7121 | ||
7122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7123 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7124 | ||
7125 | ||
7126 | # Check whether --with-build-config was given. | |
7127 | if test "${with_build_config+set}" = set; then : | |
7128 | withval=$with_build_config; case $with_build_config in | |
7129 | yes) with_build_config= ;; | |
7130 | no) with_build_config= BUILD_CONFIG= ;; | |
7131 | esac | |
7132 | fi | |
7133 | ||
7134 | ||
7135 | if test "x${with_build_config}" != x; then | |
7136 | BUILD_CONFIG=$with_build_config | |
7137 | else | |
7138 | case $BUILD_CONFIG in | |
7139 | bootstrap-debug) | |
7140 | if echo "int f (void) { return 0; }" > conftest.c && | |
7141 | ${CC} -c conftest.c && | |
7142 | mv conftest.o conftest.o.g0 && | |
7143 | ${CC} -c -g conftest.c && | |
7144 | mv conftest.o conftest.o.g && | |
7145 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7146 | : | |
7147 | else | |
7148 | BUILD_CONFIG= | |
7149 | fi | |
7150 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7151 | ;; | |
7152 | esac | |
7153 | fi | |
7154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7155 | $as_echo "$BUILD_CONFIG" >&6; } | |
7156 | ||
7157 | ||
7158 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7160 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7161 | # Check whether --enable-vtable-verify was given. | |
7162 | if test "${enable_vtable_verify+set}" = set; then : | |
7163 | enableval=$enable_vtable_verify; case "$enableval" in | |
7164 | yes) enable_vtable_verify=yes ;; | |
7165 | no) enable_vtable_verify=no ;; | |
7166 | *) enable_vtable_verify=no;; | |
7167 | esac | |
7168 | else | |
7169 | enable_vtable_verify=no | |
7170 | fi | |
7171 | ||
7172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7173 | $as_echo "$enable_vtable_verify" >&6; } | |
7174 | ||
a0da8069 NN |
7175 | # Record target_configdirs and the configure arguments for target and |
7176 | # build configuration in Makefile. | |
7177 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7178 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7179 | bootstrap_fixincludes=no |
a0da8069 | 7180 | |
2aa2364a JR |
7181 | # If we are building libgomp, bootstrap it. |
7182 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7183 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7184 | fi | |
7185 | ||
730af8ee | 7186 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7187 | # or bootstrap-ubsan, bootstrap it. | |
7188 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7189 | case "$BUILD_CONFIG" in | |
7190 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7191 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7192 | bootstrap_fixincludes=yes |
730af8ee | 7193 | ;; |
7194 | esac | |
5eb08693 L |
7195 | fi |
7196 | ||
730af8ee | 7197 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7198 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7199 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7200 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7201 | fi | |
7202 | ||
a0da8069 NN |
7203 | # Determine whether gdb needs tk/tcl or not. |
7204 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7205 | # and in that case we want gdb to be built without tk. Ugh! | |
7206 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7207 | # so we should be able to put the 'maybe's in unconditionally and | |
7208 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7209 | # 100% sure that that's safe though. | |
c180f501 | 7210 | |
675c6968 | 7211 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7212 | case "$enable_gdbtk" in |
7213 | no) | |
7214 | GDB_TK="" ;; | |
c180f501 AC |
7215 | yes) |
7216 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7217 | *) |
c180f501 AC |
7218 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7219 | # distro. Eventually someone will fix this and move Insight, nee | |
7220 | # gdbtk to a separate directory. | |
7221 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7222 | GDB_TK="${gdb_tk}" | |
7223 | else | |
7224 | GDB_TK="" | |
7225 | fi | |
7226 | ;; | |
a0da8069 | 7227 | esac |
907be67c DJ |
7228 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7229 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7230 | |
6bd3dfaa | 7231 | # Strip out unwanted targets. |
dd12c3a8 NN |
7232 | |
7233 | # While at that, we remove Makefiles if we were started for recursive | |
7234 | # configuration, so that the top-level Makefile reconfigures them, | |
7235 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7236 | |
06a51eac RW |
7237 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7238 | # but now we're fixing up the Makefile ourselves with the additional | |
7239 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7240 | # extrasub-{build,host,target} not because there is any reason to split | |
7241 | # the substitutions up that way, but only to remain below the limit of | |
7242 | # 99 commands in a script, for HP-UX sed. | |
7243 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7244 | |
16b1ad29 RW |
7245 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7246 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7247 | yes:yes:*\ gold\ *:*) | |
7248 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7249 | ;; | |
7250 | esac | |
7251 | ||
06a51eac | 7252 | extrasub_build= |
6a9cf61e | 7253 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7254 | if test -z "${no_recursion}" \ |
7255 | && test -f ${build_subdir}/${module}/Makefile; then | |
7256 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7257 | rm -f ${build_subdir}/${module}/Makefile | |
7258 | fi | |
06a51eac | 7259 | extrasub_build="$extrasub_build |
498d4a71 CF |
7260 | /^@if build-$module\$/d |
7261 | /^@endif build-$module\$/d | |
7262 | /^@if build-$module-$bootstrap_suffix\$/d | |
7263 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7264 | done | |
06a51eac | 7265 | extrasub_host= |
498d4a71 | 7266 | for module in ${configdirs} ; do |
80911fe1 | 7267 | if test -z "${no_recursion}"; then |
8cf39b1b | 7268 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7269 | if test -f ${file}; then |
7270 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7271 | rm -f ${file} | |
7272 | fi | |
7273 | done | |
498d4a71 | 7274 | fi |
201f096f | 7275 | case ${module},${bootstrap_fixincludes} in |
7276 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7277 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7278 | esac | |
06a51eac | 7279 | extrasub_host="$extrasub_host |
498d4a71 CF |
7280 | /^@if $module\$/d |
7281 | /^@endif $module\$/d | |
201f096f | 7282 | /^@if $module-$host_bootstrap_suffix\$/d |
7283 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7284 | done |
06a51eac | 7285 | extrasub_target= |
498d4a71 CF |
7286 | for module in ${target_configdirs} ; do |
7287 | if test -z "${no_recursion}" \ | |
7288 | && test -f ${target_subdir}/${module}/Makefile; then | |
7289 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7290 | rm -f ${target_subdir}/${module}/Makefile | |
7291 | fi | |
e8a5fa9c RW |
7292 | |
7293 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7294 | case $bootstrap_target_libs in | |
7295 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7296 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7297 | esac | |
7298 | ||
06a51eac | 7299 | extrasub_target="$extrasub_target |
498d4a71 CF |
7300 | /^@if target-$module\$/d |
7301 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7302 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7303 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7304 | done |
7305 | ||
06a51eac RW |
7306 | # Do the final fixup along with target modules. |
7307 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7308 | /^@if /,/^@endif /d" |
a0da8069 NN |
7309 | |
7310 | # Create the serialization dependencies. This uses a temporary file. | |
7311 | ||
81ecdfbb RW |
7312 | # Check whether --enable-serial-configure was given. |
7313 | if test "${enable_serial_configure+set}" = set; then : | |
7314 | enableval=$enable_serial_configure; | |
7315 | fi | |
e6bfb94a AO |
7316 | |
7317 | ||
1047cb91 DD |
7318 | case ${enable_serial_configure} in |
7319 | yes) | |
7320 | enable_serial_build_configure=yes | |
7321 | enable_serial_host_configure=yes | |
7322 | enable_serial_target_configure=yes | |
7323 | ;; | |
7324 | esac | |
7325 | ||
a0da8069 NN |
7326 | # These force 'configure's to be done one at a time, to avoid problems |
7327 | # with contention over a shared config.cache. | |
7328 | rm -f serdep.tmp | |
e6bfb94a | 7329 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7330 | olditem= |
1047cb91 | 7331 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7332 | for item in ${build_configdirs} ; do |
7333 | case ${olditem} in | |
7334 | "") ;; | |
e6bfb94a | 7335 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7336 | esac |
7337 | olditem=${item} | |
7338 | done | |
7339 | olditem= | |
1047cb91 | 7340 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7341 | for item in ${configdirs} ; do |
7342 | case ${olditem} in | |
7343 | "") ;; | |
e6bfb94a | 7344 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7345 | esac |
7346 | olditem=${item} | |
7347 | done | |
7348 | olditem= | |
1047cb91 | 7349 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7350 | for item in ${target_configdirs} ; do |
7351 | case ${olditem} in | |
7352 | "") ;; | |
e6bfb94a | 7353 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7354 | esac |
7355 | olditem=${item} | |
7356 | done | |
7357 | serialization_dependencies=serdep.tmp | |
7358 | ||
7359 | ||
e6bfb94a | 7360 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7361 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7362 | # might not want to pass down to subconfigures. The exception being |
7363 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7364 | # files altogether, and which should be passed on to subconfigures. | |
7365 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7366 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7367 | baseargs= |
65b4571a | 7368 | tbaseargs= |
c6b750e1 DJ |
7369 | keep_next=no |
7370 | skip_next=no | |
7371 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7372 | for ac_arg |
7373 | do | |
c6b750e1 DJ |
7374 | if test X"$skip_next" = X"yes"; then |
7375 | skip_next=no | |
7376 | continue | |
7377 | fi | |
7378 | if test X"$keep_next" = X"yes"; then | |
7379 | case $ac_arg in | |
7380 | *\'*) | |
7381 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7382 | esac | |
7383 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7384 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7385 | keep_next=no |
7386 | continue | |
7387 | fi | |
7388 | ||
7389 | # Handle separated arguments. Based on the logic generated by | |
7390 | # autoconf 2.59. | |
7391 | case $ac_arg in | |
7392 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7393 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7394 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7395 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7396 | separate_arg=no | |
7397 | ;; | |
7398 | -*) | |
7399 | separate_arg=yes | |
7400 | ;; | |
7401 | *) | |
7402 | separate_arg=no | |
7403 | ;; | |
7404 | esac | |
7405 | ||
65b4571a AO |
7406 | skip_targ=no |
7407 | case $ac_arg in | |
7408 | ||
7409 | --with-* | --without-*) | |
7410 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7411 | ||
7412 | case $libopt in | |
7413 | *[-_]include) | |
7414 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7415 | ;; | |
7416 | *[-_]lib) | |
7417 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7418 | ;; | |
7419 | *) | |
7420 | lib=$libopt | |
7421 | ;; | |
7422 | esac | |
7423 | ||
7424 | ||
7425 | case $lib in | |
7ec59b9e | 7426 | mpc | mpfr | gmp | cloog) |
65b4571a AO |
7427 | # If we're processing --with-$lib, --with-$lib-include or |
7428 | # --with-$lib-lib, for one of the libs above, and target is | |
7429 | # different from host, don't pass the current argument to any | |
7430 | # target library's configure. | |
7431 | if test x$is_cross_compiler = xyes; then | |
7432 | skip_targ=yes | |
7433 | fi | |
7434 | ;; | |
7435 | esac | |
7436 | ;; | |
7437 | esac | |
7438 | ||
c6b750e1 | 7439 | case "$ac_arg" in |
30167e0a NC |
7440 | --cache-file=/dev/null | \ |
7441 | -cache-file=/dev/null ) | |
7442 | # Handled here to avoid the test to skip args below. | |
7443 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7444 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7445 | # Assert: $separate_arg should always be no. |
7446 | keep_next=$separate_arg | |
7447 | ;; | |
c6b750e1 DJ |
7448 | --no*) |
7449 | continue | |
7450 | ;; | |
7451 | --c* | \ | |
7452 | --sr* | \ | |
7453 | --ho* | \ | |
7454 | --bu* | \ | |
7455 | --t* | \ | |
7456 | --program-* | \ | |
7457 | -cache_file* | \ | |
7458 | -srcdir* | \ | |
7459 | -host* | \ | |
7460 | -build* | \ | |
7461 | -target* | \ | |
7462 | -program-prefix* | \ | |
7463 | -program-suffix* | \ | |
7464 | -program-transform-name* ) | |
7465 | skip_next=$separate_arg | |
7466 | continue | |
7467 | ;; | |
7468 | -*) | |
7469 | # An option. Add it. | |
7470 | case $ac_arg in | |
7471 | *\'*) | |
7472 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7473 | esac | |
7474 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7475 | if test X"$skip_targ" = Xno; then |
7476 | tbaseargs="$tbaseargs '$ac_arg'" | |
7477 | fi | |
c6b750e1 DJ |
7478 | keep_next=$separate_arg |
7479 | ;; | |
7480 | *) | |
7481 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7482 | # pass it down; let the Makefile handle this. | |
7483 | continue | |
7484 | ;; | |
7485 | esac | |
7486 | done | |
7487 | # Remove the initial space we just introduced and, as these will be | |
7488 | # expanded by make, quote '$'. | |
7489 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7490 | |
f27d4f92 DJ |
7491 | # Add in --program-transform-name, after --program-prefix and |
7492 | # --program-suffix have been applied to it. Autoconf has already | |
7493 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7494 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7495 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7496 | # Also, because we want to override the logic in subdir configure scripts to |
7497 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7498 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7499 | ${program_transform_name} | |
7500 | EOF_SED | |
7501 | gcc_transform_name=`cat conftestsed.out` | |
7502 | rm -f conftestsed.out | |
7503 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7504 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7505 | if test "$silent" = yes; then |
7506 | baseargs="$baseargs --silent" | |
65b4571a | 7507 | tbaseargs="$tbaseargs --silent" |
2444379b | 7508 | fi |
34a0f3cf | 7509 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7510 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7511 | |
4074d5f2 RW |
7512 | # Record and document user additions to sub configure arguments. |
7513 | ||
7514 | ||
7515 | ||
7516 | ||
a0da8069 NN |
7517 | # For the build-side libraries, we just need to pretend we're native, |
7518 | # and not use the same cache file. Multilibs are neither needed nor | |
7519 | # desired. | |
4074d5f2 | 7520 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7521 | |
7522 | # For host modules, accept cache file option, or specification as blank. | |
7523 | case "${cache_file}" in | |
7524 | "") # empty | |
7525 | cache_file_option="" ;; | |
7526 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7527 | cache_file_option="--cache-file=${cache_file}" ;; | |
7528 | *) # relative path | |
7529 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7530 | esac | |
7531 | ||
82252c06 NN |
7532 | # Host dirs don't like to share a cache file either, horribly enough. |
7533 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7534 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7535 | |
65b4571a | 7536 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7537 | |
7538 | # Passing a --with-cross-host argument lets the target libraries know | |
7539 | # whether they are being built with a cross-compiler or being built | |
7540 | # native. However, it would be better to use other mechanisms to make the | |
7541 | # sorts of decisions they want to make on this basis. Please consider | |
7542 | # this option to be deprecated. FIXME. | |
7543 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7544 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7545 | fi |
7546 | ||
afc0578d | 7547 | # Special user-friendly check for native x86_64-linux build, if |
7548 | # multilib is not explicitly enabled. | |
7549 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7550 | x86_64-*linux*:yes:$build:$build:) | |
7551 | # Make sure we have a developement environment that handles 32-bit | |
7552 | dev64=no | |
7553 | echo "int main () { return 0; }" > conftest.c | |
7554 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7555 | if test $? = 0 ; then | |
7556 | if test -s conftest || test -s conftest.exe ; then | |
7557 | dev64=yes | |
7558 | fi | |
7559 | fi | |
7560 | rm -f conftest* | |
7561 | if test x${dev64} != xyes ; then | |
7562 | 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 | |
7563 | fi | |
7564 | ;; | |
7565 | esac | |
7566 | ||
938d2b74 RW |
7567 | # Default to --enable-multilib. |
7568 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7569 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7570 | fi |
a0da8069 NN |
7571 | |
7572 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7573 | # changed from the earlier setting of with_newlib. | |
7574 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7575 | target_configargs="--with-newlib ${target_configargs}" | |
7576 | fi | |
7577 | ||
95036d20 NN |
7578 | # Different target subdirs use different values of certain variables |
7579 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7580 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7581 | # it doesn't automatically accept command-line overrides of them. | |
7582 | # This means it's not safe for target subdirs to share a cache file, | |
7583 | # which is disgusting, but there you have it. Hopefully this can be | |
7584 | # fixed in future. It's still worthwhile to use a cache file for each | |
7585 | # directory. I think. | |
7586 | ||
ae380b45 MS |
7587 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7588 | # We need to pass --target, as newer autoconf's requires consistency | |
7589 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7590 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7591 | |
a0da8069 NN |
7592 | FLAGS_FOR_TARGET= |
7593 | case " $target_configdirs " in | |
7594 | *" newlib "*) | |
7595 | case " $target_configargs " in | |
7596 | *" --with-newlib "*) | |
7597 | case "$target" in | |
1f53ca9a | 7598 | *-cygwin*) |
6d94c122 | 7599 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7600 | ;; |
a0da8069 NN |
7601 | esac |
7602 | ||
7603 | # If we're not building GCC, don't discard standard headers. | |
7604 | if test -d ${srcdir}/gcc; then | |
7605 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7606 | ||
7607 | if test "${build}" != "${host}"; then | |
7608 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7609 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7610 | # to it. This is right: we don't want to search that directory | |
7611 | # for binaries, but we want the header files in there, so add | |
7612 | # them explicitly. | |
e552509b | 7613 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7614 | |
7615 | # Someone might think of using the pre-installed headers on | |
7616 | # Canadian crosses, in case the installed compiler is not fully | |
7617 | # compatible with the compiler being built. In this case, it | |
7618 | # would be better to flag an error than risking having | |
7619 | # incompatible object files being constructed. We can't | |
7620 | # guarantee that an error will be flagged, but let's hope the | |
7621 | # compiler will do it, when presented with incompatible header | |
7622 | # files. | |
7623 | fi | |
7624 | fi | |
7625 | ||
7626 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7627 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7628 | # Here host == target, so we don't need to build gcc, |
7629 | # so we don't want to discard standard headers. | |
7630 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7631 | ;; | |
7632 | *) | |
7633 | # If we're building newlib, use its generic headers last, but search | |
7634 | # for any libc-related directories first (so make it the last -B | |
7635 | # switch). | |
7636 | 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 |
7637 | |
7638 | # If we're building libgloss, find the startup file, simulator library | |
7639 | # and linker script. | |
7640 | case " $target_configdirs " in | |
7641 | *" libgloss "*) | |
7642 | # Look for startup file, simulator library and maybe linker script. | |
7643 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7644 | # Look for libnosys.a in case the target needs it. | |
7645 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7646 | # Most targets have the linker script in the source directory. | |
7647 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7648 | ;; | |
7649 | esac | |
a0da8069 NN |
7650 | ;; |
7651 | esac | |
7652 | ;; | |
7653 | esac | |
7654 | ;; | |
7655 | esac | |
1f53ca9a | 7656 | |
45055374 | 7657 | case "$target" in |
1f53ca9a AO |
7658 | x86_64-*mingw* | *-w64-mingw*) |
7659 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7660 | # however, use a symlink named 'mingw' in ${prefix} . | |
7661 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7662 | ;; | |
7663 | *-mingw*) | |
7664 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7665 | 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' | |
7666 | ;; | |
45055374 | 7667 | esac |
a0da8069 | 7668 | |
5fbad20a DD |
7669 | # Allow the user to override the flags for |
7670 | # our build compiler if desired. | |
c66487f8 NC |
7671 | if test x"${build}" = x"${host}" ; then |
7672 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7673 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7674 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7675 | fi | |
5fbad20a | 7676 | |
a0da8069 NN |
7677 | # On Canadian crosses, we'll be searching the right directories for |
7678 | # the previously-installed cross compiler, so don't bother to add | |
7679 | # flags for directories within the install tree of the compiler | |
7680 | # being built; programs in there won't even run. | |
7681 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7682 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7683 | 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 |
7684 | fi |
7685 | ||
7686 | if test "x${use_gnu_ld}" = x && | |
7687 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7688 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7689 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7690 | fi |
7691 | ||
a481dbb7 DD |
7692 | # Search for other target-specific linker scripts and such. |
7693 | case "${target}" in | |
4e206d7e DB |
7694 | mep*) |
7695 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7696 | ;; | |
7697 | esac | |
7698 | ||
a0da8069 | 7699 | # Makefile fragments. |
3e707e94 PB |
7700 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7701 | do | |
7702 | eval fragval=\$$frag | |
7703 | if test $fragval != /dev/null; then | |
7704 | eval $frag=${srcdir}/$fragval | |
7705 | fi | |
7706 | done | |
a0da8069 NN |
7707 | |
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | # Miscellanea: directories, flags, etc. | |
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
3bbd2f8f | 7720 | |
6a9cf61e | 7721 | # Build module lists & subconfigure args. |
a0da8069 NN |
7722 | |
7723 | ||
7724 | ||
be01d343 PB |
7725 | # Host module lists & subconfigure args. |
7726 | ||
7727 | ||
7728 | ||
911e63d0 | 7729 | |
be01d343 PB |
7730 | # Target module lists & subconfigure args. |
7731 | ||
7732 | ||
7733 | ||
7734 | # Build tools. | |
7735 | ||
7736 | ||
7737 | ||
1576798e PB |
7738 | |
7739 | ||
7740 | ||
7741 | ||
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | ||
7751 | ||
be01d343 PB |
7752 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7753 | # on the build machine. These are used if the Makefile can't locate these | |
7754 | # programs in objdir. | |
7755 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7756 | ||
7757 | for ac_prog in 'bison -y' byacc yacc | |
7758 | do | |
c6b750e1 | 7759 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7760 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7762 | $as_echo_n "checking for $ac_word... " >&6; } | |
7763 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7764 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7765 | else |
7766 | if test -n "$YACC"; then | |
7767 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7768 | else | |
c6b750e1 DJ |
7769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7770 | for as_dir in $PATH | |
7771 | do | |
7772 | IFS=$as_save_IFS | |
7773 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7774 | for ac_exec_ext in '' $ac_executable_extensions; do |
7775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7776 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7778 | break 2 |
7779 | fi | |
7780 | done | |
81ecdfbb RW |
7781 | done |
7782 | IFS=$as_save_IFS | |
c6b750e1 | 7783 | |
be01d343 PB |
7784 | fi |
7785 | fi | |
c6b750e1 | 7786 | YACC=$ac_cv_prog_YACC |
be01d343 | 7787 | if test -n "$YACC"; then |
81ecdfbb RW |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7789 | $as_echo "$YACC" >&6; } | |
be01d343 | 7790 | else |
81ecdfbb RW |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7792 | $as_echo "no" >&6; } | |
be01d343 PB |
7793 | fi |
7794 | ||
81ecdfbb | 7795 | |
c6b750e1 | 7796 | test -n "$YACC" && break |
be01d343 PB |
7797 | done |
7798 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7799 | ||
7800 | case " $build_configdirs " in | |
7801 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7802 | esac |
7803 | ||
7804 | for ac_prog in bison | |
7805 | do | |
c6b750e1 | 7806 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7807 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7809 | $as_echo_n "checking for $ac_word... " >&6; } | |
7810 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7811 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7812 | else |
7813 | if test -n "$BISON"; then | |
7814 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7815 | else | |
c6b750e1 DJ |
7816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7817 | for as_dir in $PATH | |
7818 | do | |
7819 | IFS=$as_save_IFS | |
7820 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7821 | for ac_exec_ext in '' $ac_executable_extensions; do |
7822 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7823 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7824 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7825 | break 2 |
7826 | fi | |
7827 | done | |
81ecdfbb RW |
7828 | done |
7829 | IFS=$as_save_IFS | |
c6b750e1 | 7830 | |
be01d343 PB |
7831 | fi |
7832 | fi | |
c6b750e1 | 7833 | BISON=$ac_cv_prog_BISON |
be01d343 | 7834 | if test -n "$BISON"; then |
81ecdfbb RW |
7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7836 | $as_echo "$BISON" >&6; } | |
be01d343 | 7837 | else |
81ecdfbb RW |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7839 | $as_echo "no" >&6; } | |
be01d343 PB |
7840 | fi |
7841 | ||
81ecdfbb | 7842 | |
c6b750e1 | 7843 | test -n "$BISON" && break |
be01d343 PB |
7844 | done |
7845 | test -n "$BISON" || BISON="$MISSING bison" | |
7846 | ||
7847 | case " $build_configdirs " in | |
7848 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7849 | esac | |
7850 | ||
7851 | for ac_prog in gm4 gnum4 m4 | |
7852 | do | |
c6b750e1 | 7853 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7854 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7856 | $as_echo_n "checking for $ac_word... " >&6; } | |
7857 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7858 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7859 | else |
7860 | if test -n "$M4"; then | |
7861 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7862 | else | |
c6b750e1 DJ |
7863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7864 | for as_dir in $PATH | |
7865 | do | |
7866 | IFS=$as_save_IFS | |
7867 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7868 | for ac_exec_ext in '' $ac_executable_extensions; do |
7869 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7870 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7872 | break 2 |
7873 | fi | |
7874 | done | |
81ecdfbb RW |
7875 | done |
7876 | IFS=$as_save_IFS | |
c6b750e1 | 7877 | |
be01d343 PB |
7878 | fi |
7879 | fi | |
c6b750e1 | 7880 | M4=$ac_cv_prog_M4 |
be01d343 | 7881 | if test -n "$M4"; then |
81ecdfbb RW |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7883 | $as_echo "$M4" >&6; } | |
be01d343 | 7884 | else |
81ecdfbb RW |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7886 | $as_echo "no" >&6; } | |
be01d343 PB |
7887 | fi |
7888 | ||
81ecdfbb | 7889 | |
c6b750e1 | 7890 | test -n "$M4" && break |
be01d343 PB |
7891 | done |
7892 | test -n "$M4" || M4="$MISSING m4" | |
7893 | ||
7894 | case " $build_configdirs " in | |
7895 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7896 | esac | |
7897 | ||
7898 | for ac_prog in flex lex | |
7899 | do | |
c6b750e1 | 7900 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7901 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7903 | $as_echo_n "checking for $ac_word... " >&6; } | |
7904 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7905 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7906 | else |
7907 | if test -n "$LEX"; then | |
7908 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7909 | else | |
c6b750e1 DJ |
7910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7911 | for as_dir in $PATH | |
7912 | do | |
7913 | IFS=$as_save_IFS | |
7914 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7915 | for ac_exec_ext in '' $ac_executable_extensions; do |
7916 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7917 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7918 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7919 | break 2 |
7920 | fi | |
7921 | done | |
81ecdfbb RW |
7922 | done |
7923 | IFS=$as_save_IFS | |
c6b750e1 | 7924 | |
be01d343 PB |
7925 | fi |
7926 | fi | |
c6b750e1 | 7927 | LEX=$ac_cv_prog_LEX |
be01d343 | 7928 | if test -n "$LEX"; then |
81ecdfbb RW |
7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7930 | $as_echo "$LEX" >&6; } | |
be01d343 | 7931 | else |
81ecdfbb RW |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7933 | $as_echo "no" >&6; } | |
be01d343 PB |
7934 | fi |
7935 | ||
81ecdfbb | 7936 | |
c6b750e1 | 7937 | test -n "$LEX" && break |
be01d343 PB |
7938 | done |
7939 | test -n "$LEX" || LEX="$MISSING flex" | |
7940 | ||
7941 | case " $build_configdirs " in | |
7942 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7943 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7944 | esac | |
7945 | ||
7946 | for ac_prog in flex | |
7947 | do | |
c6b750e1 | 7948 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7949 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7951 | $as_echo_n "checking for $ac_word... " >&6; } | |
7952 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7953 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7954 | else |
7955 | if test -n "$FLEX"; then | |
7956 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7957 | else | |
c6b750e1 DJ |
7958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7959 | for as_dir in $PATH | |
7960 | do | |
7961 | IFS=$as_save_IFS | |
7962 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7963 | for ac_exec_ext in '' $ac_executable_extensions; do |
7964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7965 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7967 | break 2 |
7968 | fi | |
7969 | done | |
81ecdfbb RW |
7970 | done |
7971 | IFS=$as_save_IFS | |
c6b750e1 | 7972 | |
be01d343 PB |
7973 | fi |
7974 | fi | |
c6b750e1 | 7975 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7976 | if test -n "$FLEX"; then |
81ecdfbb RW |
7977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7978 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7979 | else |
81ecdfbb RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7981 | $as_echo "no" >&6; } | |
be01d343 PB |
7982 | fi |
7983 | ||
81ecdfbb | 7984 | |
c6b750e1 | 7985 | test -n "$FLEX" && break |
be01d343 PB |
7986 | done |
7987 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7988 | ||
7989 | case " $build_configdirs " in | |
7990 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7991 | esac | |
7992 | ||
7993 | for ac_prog in makeinfo | |
7994 | do | |
c6b750e1 | 7995 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7996 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7998 | $as_echo_n "checking for $ac_word... " >&6; } | |
7999 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
8000 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8001 | else |
8002 | if test -n "$MAKEINFO"; then | |
8003 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
8004 | else | |
c6b750e1 DJ |
8005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8006 | for as_dir in $PATH | |
8007 | do | |
8008 | IFS=$as_save_IFS | |
8009 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8010 | for ac_exec_ext in '' $ac_executable_extensions; do |
8011 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8012 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 8013 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8014 | break 2 |
8015 | fi | |
8016 | done | |
81ecdfbb RW |
8017 | done |
8018 | IFS=$as_save_IFS | |
c6b750e1 | 8019 | |
be01d343 PB |
8020 | fi |
8021 | fi | |
c6b750e1 | 8022 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 8023 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
8025 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 8026 | else |
81ecdfbb RW |
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8028 | $as_echo "no" >&6; } | |
be01d343 PB |
8029 | fi |
8030 | ||
81ecdfbb | 8031 | |
c6b750e1 | 8032 | test -n "$MAKEINFO" && break |
be01d343 PB |
8033 | done |
8034 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
8035 | ||
8036 | case " $build_configdirs " in | |
8037 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8038 | *) | |
8039 | ||
10ad8ef3 | 8040 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8041 | # higher, else we use the "missing" dummy. |
8042 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8043 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8044 | : |
8045 | else | |
8046 | MAKEINFO="$MISSING makeinfo" | |
8047 | fi | |
8048 | ;; | |
8049 | ||
8050 | esac | |
a0da8069 | 8051 | |
be01d343 | 8052 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8053 | |
be01d343 PB |
8054 | for ac_prog in expect |
8055 | do | |
c6b750e1 | 8056 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8057 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8059 | $as_echo_n "checking for $ac_word... " >&6; } | |
8060 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
8061 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8062 | else |
8063 | if test -n "$EXPECT"; then | |
8064 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8065 | else | |
c6b750e1 DJ |
8066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8067 | for as_dir in $PATH | |
8068 | do | |
8069 | IFS=$as_save_IFS | |
8070 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8071 | for ac_exec_ext in '' $ac_executable_extensions; do |
8072 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8073 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8075 | break 2 |
8076 | fi | |
8077 | done | |
81ecdfbb RW |
8078 | done |
8079 | IFS=$as_save_IFS | |
c6b750e1 | 8080 | |
be01d343 PB |
8081 | fi |
8082 | fi | |
c6b750e1 | 8083 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8084 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8086 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8087 | else |
81ecdfbb RW |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8089 | $as_echo "no" >&6; } | |
be01d343 | 8090 | fi |
a0da8069 | 8091 | |
81ecdfbb | 8092 | |
c6b750e1 | 8093 | test -n "$EXPECT" && break |
be01d343 PB |
8094 | done |
8095 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8096 | |
be01d343 PB |
8097 | case " $configdirs " in |
8098 | *" expect "*) | |
8099 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8100 | ;; | |
8101 | esac | |
a0da8069 | 8102 | |
be01d343 PB |
8103 | for ac_prog in runtest |
8104 | do | |
c6b750e1 | 8105 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8106 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8108 | $as_echo_n "checking for $ac_word... " >&6; } | |
8109 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8110 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8111 | else |
8112 | if test -n "$RUNTEST"; then | |
8113 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8114 | else | |
c6b750e1 DJ |
8115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8116 | for as_dir in $PATH | |
8117 | do | |
8118 | IFS=$as_save_IFS | |
8119 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8120 | for ac_exec_ext in '' $ac_executable_extensions; do |
8121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8122 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8124 | break 2 |
8125 | fi | |
8126 | done | |
81ecdfbb RW |
8127 | done |
8128 | IFS=$as_save_IFS | |
c6b750e1 | 8129 | |
be01d343 PB |
8130 | fi |
8131 | fi | |
c6b750e1 | 8132 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8133 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8135 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8136 | else |
81ecdfbb RW |
8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8138 | $as_echo "no" >&6; } | |
be01d343 | 8139 | fi |
a0da8069 | 8140 | |
81ecdfbb | 8141 | |
c6b750e1 | 8142 | test -n "$RUNTEST" && break |
be01d343 PB |
8143 | done |
8144 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8145 | |
be01d343 PB |
8146 | case " $configdirs " in |
8147 | *" dejagnu "*) | |
6b89cc21 | 8148 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8149 | ;; |
8150 | esac | |
a0da8069 NN |
8151 | |
8152 | ||
a0da8069 | 8153 | # Host tools. |
859789af AC |
8154 | ncn_tool_prefix= |
8155 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8156 | ncn_target_tool_prefix= | |
8157 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8158 | ||
9a819804 AO |
8159 | |
8160 | ||
8161 | if test -n "$AR"; then | |
8162 | ac_cv_prog_AR=$AR | |
8163 | elif test -n "$ac_cv_prog_AR"; then | |
8164 | AR=$ac_cv_prog_AR | |
8165 | fi | |
8166 | ||
8167 | if test -n "$ac_cv_prog_AR"; then | |
8168 | for ncn_progname in ar; do | |
8169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8170 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8172 | $as_echo_n "checking for $ac_word... " >&6; } | |
8173 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8174 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8175 | else |
8176 | if test -n "$AR"; then | |
8177 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8178 | else | |
8179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8180 | for as_dir in $PATH | |
8181 | do | |
8182 | IFS=$as_save_IFS | |
8183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8184 | for ac_exec_ext in '' $ac_executable_extensions; do |
8185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8186 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8188 | break 2 |
8189 | fi | |
8190 | done | |
81ecdfbb RW |
8191 | done |
8192 | IFS=$as_save_IFS | |
9a819804 AO |
8193 | |
8194 | fi | |
8195 | fi | |
8196 | AR=$ac_cv_prog_AR | |
8197 | if test -n "$AR"; then | |
81ecdfbb RW |
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8199 | $as_echo "$AR" >&6; } | |
9a819804 | 8200 | else |
81ecdfbb RW |
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8202 | $as_echo "no" >&6; } | |
9a819804 AO |
8203 | fi |
8204 | ||
81ecdfbb | 8205 | |
9a819804 AO |
8206 | done |
8207 | fi | |
8208 | ||
8209 | for ncn_progname in ar; do | |
05cbd757 PB |
8210 | if test -n "$ncn_tool_prefix"; then |
8211 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8212 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8214 | $as_echo_n "checking for $ac_word... " >&6; } | |
8215 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8216 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8217 | else |
8218 | if test -n "$AR"; then | |
8219 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8220 | else | |
c6b750e1 DJ |
8221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8222 | for as_dir in $PATH | |
8223 | do | |
8224 | IFS=$as_save_IFS | |
8225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8226 | for ac_exec_ext in '' $ac_executable_extensions; do |
8227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8228 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8230 | break 2 |
8231 | fi | |
8232 | done | |
81ecdfbb RW |
8233 | done |
8234 | IFS=$as_save_IFS | |
c6b750e1 | 8235 | |
859789af AC |
8236 | fi |
8237 | fi | |
c6b750e1 | 8238 | AR=$ac_cv_prog_AR |
859789af | 8239 | if test -n "$AR"; then |
81ecdfbb RW |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8241 | $as_echo "$AR" >&6; } | |
859789af | 8242 | else |
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8244 | $as_echo "no" >&6; } | |
859789af AC |
8245 | fi |
8246 | ||
81ecdfbb | 8247 | |
05cbd757 PB |
8248 | fi |
8249 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8251 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8253 | $as_echo_n "checking for $ac_word... " >&6; } | |
8254 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8255 | $as_echo_n "(cached) " >&6 | |
859789af | 8256 | else |
05cbd757 PB |
8257 | if test -n "$AR"; then |
8258 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8259 | else |
c6b750e1 DJ |
8260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8261 | for as_dir in $PATH | |
8262 | do | |
8263 | IFS=$as_save_IFS | |
8264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8265 | for ac_exec_ext in '' $ac_executable_extensions; do |
8266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8267 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8269 | break 2 |
8270 | fi | |
8271 | done | |
81ecdfbb RW |
8272 | done |
8273 | IFS=$as_save_IFS | |
c6b750e1 | 8274 | |
859789af AC |
8275 | fi |
8276 | fi | |
c6b750e1 | 8277 | AR=$ac_cv_prog_AR |
05cbd757 | 8278 | if test -n "$AR"; then |
81ecdfbb RW |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8280 | $as_echo "$AR" >&6; } | |
859789af | 8281 | else |
81ecdfbb RW |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8283 | $as_echo "no" >&6; } | |
859789af | 8284 | fi |
c6b750e1 | 8285 | |
81ecdfbb | 8286 | |
05cbd757 PB |
8287 | fi |
8288 | test -n "$ac_cv_prog_AR" && break | |
8289 | done | |
8290 | ||
8291 | if test -z "$ac_cv_prog_AR" ; then | |
8292 | set dummy ar | |
8293 | if test $build = $host ; then | |
8294 | AR="$2" | |
859789af | 8295 | else |
05cbd757 | 8296 | AR="${ncn_tool_prefix}$2" |
859789af | 8297 | fi |
859789af AC |
8298 | fi |
8299 | ||
9a819804 AO |
8300 | |
8301 | ||
8302 | if test -n "$AS"; then | |
8303 | ac_cv_prog_AS=$AS | |
8304 | elif test -n "$ac_cv_prog_AS"; then | |
8305 | AS=$ac_cv_prog_AS | |
8306 | fi | |
8307 | ||
8308 | if test -n "$ac_cv_prog_AS"; then | |
8309 | for ncn_progname in as; do | |
8310 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8311 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8313 | $as_echo_n "checking for $ac_word... " >&6; } | |
8314 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8315 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8316 | else |
8317 | if test -n "$AS"; then | |
8318 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8319 | else | |
8320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8321 | for as_dir in $PATH | |
8322 | do | |
8323 | IFS=$as_save_IFS | |
8324 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8325 | for ac_exec_ext in '' $ac_executable_extensions; do |
8326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8327 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8329 | break 2 |
8330 | fi | |
8331 | done | |
81ecdfbb RW |
8332 | done |
8333 | IFS=$as_save_IFS | |
9a819804 AO |
8334 | |
8335 | fi | |
8336 | fi | |
8337 | AS=$ac_cv_prog_AS | |
8338 | if test -n "$AS"; then | |
81ecdfbb RW |
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8340 | $as_echo "$AS" >&6; } | |
9a819804 | 8341 | else |
81ecdfbb RW |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8343 | $as_echo "no" >&6; } | |
9a819804 AO |
8344 | fi |
8345 | ||
81ecdfbb | 8346 | |
9a819804 AO |
8347 | done |
8348 | fi | |
8349 | ||
8350 | for ncn_progname in as; do | |
05cbd757 PB |
8351 | if test -n "$ncn_tool_prefix"; then |
8352 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8353 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8355 | $as_echo_n "checking for $ac_word... " >&6; } | |
8356 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8357 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8358 | else |
8359 | if test -n "$AS"; then | |
8360 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8361 | else |
8362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8363 | for as_dir in $PATH | |
8364 | do | |
8365 | IFS=$as_save_IFS | |
8366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8367 | for ac_exec_ext in '' $ac_executable_extensions; do |
8368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8369 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8371 | break 2 |
8372 | fi | |
8373 | done | |
81ecdfbb RW |
8374 | done |
8375 | IFS=$as_save_IFS | |
c6b750e1 | 8376 | |
859789af AC |
8377 | fi |
8378 | fi | |
c6b750e1 | 8379 | AS=$ac_cv_prog_AS |
859789af | 8380 | if test -n "$AS"; then |
81ecdfbb RW |
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8382 | $as_echo "$AS" >&6; } | |
859789af | 8383 | else |
81ecdfbb RW |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8385 | $as_echo "no" >&6; } | |
859789af AC |
8386 | fi |
8387 | ||
81ecdfbb | 8388 | |
05cbd757 PB |
8389 | fi |
8390 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8392 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8394 | $as_echo_n "checking for $ac_word... " >&6; } | |
8395 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8396 | $as_echo_n "(cached) " >&6 | |
859789af | 8397 | else |
05cbd757 PB |
8398 | if test -n "$AS"; then |
8399 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8400 | else |
c6b750e1 DJ |
8401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8402 | for as_dir in $PATH | |
8403 | do | |
8404 | IFS=$as_save_IFS | |
8405 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8406 | for ac_exec_ext in '' $ac_executable_extensions; do |
8407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8408 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8410 | break 2 |
8411 | fi | |
8412 | done | |
81ecdfbb RW |
8413 | done |
8414 | IFS=$as_save_IFS | |
c6b750e1 | 8415 | |
859789af AC |
8416 | fi |
8417 | fi | |
c6b750e1 | 8418 | AS=$ac_cv_prog_AS |
05cbd757 | 8419 | if test -n "$AS"; then |
81ecdfbb RW |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8421 | $as_echo "$AS" >&6; } | |
859789af | 8422 | else |
81ecdfbb RW |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8424 | $as_echo "no" >&6; } | |
859789af | 8425 | fi |
c6b750e1 | 8426 | |
81ecdfbb | 8427 | |
05cbd757 PB |
8428 | fi |
8429 | test -n "$ac_cv_prog_AS" && break | |
8430 | done | |
8431 | ||
8432 | if test -z "$ac_cv_prog_AS" ; then | |
8433 | set dummy as | |
8434 | if test $build = $host ; then | |
8435 | AS="$2" | |
859789af | 8436 | else |
05cbd757 | 8437 | AS="${ncn_tool_prefix}$2" |
859789af | 8438 | fi |
859789af AC |
8439 | fi |
8440 | ||
9a819804 AO |
8441 | |
8442 | ||
8443 | if test -n "$DLLTOOL"; then | |
8444 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8445 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8446 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8447 | fi | |
8448 | ||
8449 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8450 | for ncn_progname in dlltool; do | |
8451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8452 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8454 | $as_echo_n "checking for $ac_word... " >&6; } | |
8455 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8456 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8457 | else |
8458 | if test -n "$DLLTOOL"; then | |
8459 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8460 | else | |
8461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8462 | for as_dir in $PATH | |
8463 | do | |
8464 | IFS=$as_save_IFS | |
8465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8466 | for ac_exec_ext in '' $ac_executable_extensions; do |
8467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8468 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8470 | break 2 |
8471 | fi | |
8472 | done | |
81ecdfbb RW |
8473 | done |
8474 | IFS=$as_save_IFS | |
9a819804 AO |
8475 | |
8476 | fi | |
8477 | fi | |
8478 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8479 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8481 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8482 | else |
81ecdfbb RW |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8484 | $as_echo "no" >&6; } | |
9a819804 AO |
8485 | fi |
8486 | ||
81ecdfbb | 8487 | |
9a819804 AO |
8488 | done |
8489 | fi | |
8490 | ||
8491 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8492 | if test -n "$ncn_tool_prefix"; then |
8493 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8494 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8496 | $as_echo_n "checking for $ac_word... " >&6; } | |
8497 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8498 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8499 | else |
8500 | if test -n "$DLLTOOL"; then | |
8501 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8502 | else | |
c6b750e1 DJ |
8503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8504 | for as_dir in $PATH | |
8505 | do | |
8506 | IFS=$as_save_IFS | |
8507 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8508 | for ac_exec_ext in '' $ac_executable_extensions; do |
8509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8510 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8512 | break 2 |
8513 | fi | |
8514 | done | |
81ecdfbb RW |
8515 | done |
8516 | IFS=$as_save_IFS | |
c6b750e1 | 8517 | |
859789af AC |
8518 | fi |
8519 | fi | |
c6b750e1 | 8520 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8521 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8523 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8524 | else |
81ecdfbb RW |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8526 | $as_echo "no" >&6; } | |
859789af AC |
8527 | fi |
8528 | ||
81ecdfbb | 8529 | |
05cbd757 PB |
8530 | fi |
8531 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8533 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8535 | $as_echo_n "checking for $ac_word... " >&6; } | |
8536 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8537 | $as_echo_n "(cached) " >&6 | |
859789af | 8538 | else |
05cbd757 PB |
8539 | if test -n "$DLLTOOL"; then |
8540 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8541 | else |
c6b750e1 DJ |
8542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8543 | for as_dir in $PATH | |
8544 | do | |
8545 | IFS=$as_save_IFS | |
8546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8547 | for ac_exec_ext in '' $ac_executable_extensions; do |
8548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8549 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8551 | break 2 |
8552 | fi | |
8553 | done | |
81ecdfbb RW |
8554 | done |
8555 | IFS=$as_save_IFS | |
c6b750e1 | 8556 | |
859789af AC |
8557 | fi |
8558 | fi | |
c6b750e1 | 8559 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8560 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8562 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8563 | else |
81ecdfbb RW |
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8565 | $as_echo "no" >&6; } | |
859789af | 8566 | fi |
c6b750e1 | 8567 | |
81ecdfbb | 8568 | |
05cbd757 PB |
8569 | fi |
8570 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8571 | done | |
8572 | ||
8573 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8574 | set dummy dlltool | |
8575 | if test $build = $host ; then | |
8576 | DLLTOOL="$2" | |
859789af | 8577 | else |
05cbd757 | 8578 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8579 | fi |
859789af AC |
8580 | fi |
8581 | ||
9a819804 AO |
8582 | |
8583 | ||
8584 | if test -n "$LD"; then | |
8585 | ac_cv_prog_LD=$LD | |
8586 | elif test -n "$ac_cv_prog_LD"; then | |
8587 | LD=$ac_cv_prog_LD | |
8588 | fi | |
8589 | ||
8590 | if test -n "$ac_cv_prog_LD"; then | |
8591 | for ncn_progname in ld; do | |
8592 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8593 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8595 | $as_echo_n "checking for $ac_word... " >&6; } | |
8596 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8597 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8598 | else |
8599 | if test -n "$LD"; then | |
8600 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8601 | else | |
8602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8603 | for as_dir in $PATH | |
8604 | do | |
8605 | IFS=$as_save_IFS | |
8606 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8607 | for ac_exec_ext in '' $ac_executable_extensions; do |
8608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8609 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8611 | break 2 |
8612 | fi | |
8613 | done | |
81ecdfbb RW |
8614 | done |
8615 | IFS=$as_save_IFS | |
9a819804 AO |
8616 | |
8617 | fi | |
8618 | fi | |
8619 | LD=$ac_cv_prog_LD | |
8620 | if test -n "$LD"; then | |
81ecdfbb RW |
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8622 | $as_echo "$LD" >&6; } | |
9a819804 | 8623 | else |
81ecdfbb RW |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8625 | $as_echo "no" >&6; } | |
9a819804 AO |
8626 | fi |
8627 | ||
81ecdfbb | 8628 | |
9a819804 AO |
8629 | done |
8630 | fi | |
8631 | ||
8632 | for ncn_progname in ld; do | |
05cbd757 PB |
8633 | if test -n "$ncn_tool_prefix"; then |
8634 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8635 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8637 | $as_echo_n "checking for $ac_word... " >&6; } | |
8638 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8639 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8640 | else |
8641 | if test -n "$LD"; then | |
8642 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8643 | else | |
c6b750e1 DJ |
8644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8645 | for as_dir in $PATH | |
8646 | do | |
8647 | IFS=$as_save_IFS | |
8648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8649 | for ac_exec_ext in '' $ac_executable_extensions; do |
8650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8651 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8653 | break 2 |
8654 | fi | |
8655 | done | |
81ecdfbb RW |
8656 | done |
8657 | IFS=$as_save_IFS | |
c6b750e1 | 8658 | |
859789af AC |
8659 | fi |
8660 | fi | |
c6b750e1 | 8661 | LD=$ac_cv_prog_LD |
859789af | 8662 | if test -n "$LD"; then |
81ecdfbb RW |
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8664 | $as_echo "$LD" >&6; } | |
859789af | 8665 | else |
81ecdfbb RW |
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8667 | $as_echo "no" >&6; } | |
859789af AC |
8668 | fi |
8669 | ||
81ecdfbb | 8670 | |
05cbd757 PB |
8671 | fi |
8672 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8674 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8676 | $as_echo_n "checking for $ac_word... " >&6; } | |
8677 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8678 | $as_echo_n "(cached) " >&6 | |
859789af | 8679 | else |
05cbd757 PB |
8680 | if test -n "$LD"; then |
8681 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8682 | else |
c6b750e1 DJ |
8683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8684 | for as_dir in $PATH | |
8685 | do | |
8686 | IFS=$as_save_IFS | |
8687 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8688 | for ac_exec_ext in '' $ac_executable_extensions; do |
8689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8690 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8692 | break 2 |
8693 | fi | |
8694 | done | |
81ecdfbb RW |
8695 | done |
8696 | IFS=$as_save_IFS | |
c6b750e1 | 8697 | |
859789af AC |
8698 | fi |
8699 | fi | |
c6b750e1 | 8700 | LD=$ac_cv_prog_LD |
05cbd757 | 8701 | if test -n "$LD"; then |
81ecdfbb RW |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8703 | $as_echo "$LD" >&6; } | |
859789af | 8704 | else |
81ecdfbb RW |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8706 | $as_echo "no" >&6; } | |
859789af | 8707 | fi |
c6b750e1 | 8708 | |
81ecdfbb | 8709 | |
05cbd757 PB |
8710 | fi |
8711 | test -n "$ac_cv_prog_LD" && break | |
8712 | done | |
8713 | ||
8714 | if test -z "$ac_cv_prog_LD" ; then | |
8715 | set dummy ld | |
8716 | if test $build = $host ; then | |
8717 | LD="$2" | |
859789af | 8718 | else |
05cbd757 | 8719 | LD="${ncn_tool_prefix}$2" |
859789af | 8720 | fi |
859789af AC |
8721 | fi |
8722 | ||
9a819804 AO |
8723 | |
8724 | ||
8725 | if test -n "$LIPO"; then | |
8726 | ac_cv_prog_LIPO=$LIPO | |
8727 | elif test -n "$ac_cv_prog_LIPO"; then | |
8728 | LIPO=$ac_cv_prog_LIPO | |
8729 | fi | |
8730 | ||
8731 | if test -n "$ac_cv_prog_LIPO"; then | |
8732 | for ncn_progname in lipo; do | |
8733 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8734 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8736 | $as_echo_n "checking for $ac_word... " >&6; } | |
8737 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8738 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8739 | else |
8740 | if test -n "$LIPO"; then | |
8741 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8742 | else | |
8743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8744 | for as_dir in $PATH | |
8745 | do | |
8746 | IFS=$as_save_IFS | |
8747 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8748 | for ac_exec_ext in '' $ac_executable_extensions; do |
8749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8750 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8752 | break 2 |
8753 | fi | |
8754 | done | |
81ecdfbb RW |
8755 | done |
8756 | IFS=$as_save_IFS | |
9a819804 AO |
8757 | |
8758 | fi | |
8759 | fi | |
8760 | LIPO=$ac_cv_prog_LIPO | |
8761 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8763 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8764 | else |
81ecdfbb RW |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8766 | $as_echo "no" >&6; } | |
9a819804 AO |
8767 | fi |
8768 | ||
81ecdfbb | 8769 | |
9a819804 AO |
8770 | done |
8771 | fi | |
8772 | ||
8773 | for ncn_progname in lipo; do | |
be01d343 PB |
8774 | if test -n "$ncn_tool_prefix"; then |
8775 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8776 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8778 | $as_echo_n "checking for $ac_word... " >&6; } | |
8779 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8780 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8781 | else |
8782 | if test -n "$LIPO"; then | |
8783 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8784 | else | |
c6b750e1 DJ |
8785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8786 | for as_dir in $PATH | |
8787 | do | |
8788 | IFS=$as_save_IFS | |
8789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8790 | for ac_exec_ext in '' $ac_executable_extensions; do |
8791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8792 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8794 | break 2 |
8795 | fi | |
8796 | done | |
81ecdfbb RW |
8797 | done |
8798 | IFS=$as_save_IFS | |
c6b750e1 | 8799 | |
be01d343 PB |
8800 | fi |
8801 | fi | |
c6b750e1 | 8802 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8803 | if test -n "$LIPO"; then |
81ecdfbb RW |
8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8805 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8806 | else |
81ecdfbb RW |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8808 | $as_echo "no" >&6; } | |
be01d343 PB |
8809 | fi |
8810 | ||
81ecdfbb | 8811 | |
be01d343 PB |
8812 | fi |
8813 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8815 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8817 | $as_echo_n "checking for $ac_word... " >&6; } | |
8818 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8819 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8820 | else |
8821 | if test -n "$LIPO"; then | |
8822 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8823 | else | |
c6b750e1 DJ |
8824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8825 | for as_dir in $PATH | |
8826 | do | |
8827 | IFS=$as_save_IFS | |
8828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8829 | for ac_exec_ext in '' $ac_executable_extensions; do |
8830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8831 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8833 | break 2 |
8834 | fi | |
8835 | done | |
81ecdfbb RW |
8836 | done |
8837 | IFS=$as_save_IFS | |
c6b750e1 | 8838 | |
be01d343 PB |
8839 | fi |
8840 | fi | |
c6b750e1 | 8841 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8842 | if test -n "$LIPO"; then |
81ecdfbb RW |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8844 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8845 | else |
81ecdfbb RW |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8847 | $as_echo "no" >&6; } | |
be01d343 | 8848 | fi |
c6b750e1 | 8849 | |
81ecdfbb | 8850 | |
be01d343 PB |
8851 | fi |
8852 | test -n "$ac_cv_prog_LIPO" && break | |
8853 | done | |
8854 | ||
8855 | if test -z "$ac_cv_prog_LIPO" ; then | |
8856 | set dummy lipo | |
8857 | if test $build = $host ; then | |
8858 | LIPO="$2" | |
8859 | else | |
8860 | LIPO="${ncn_tool_prefix}$2" | |
8861 | fi | |
8862 | fi | |
8863 | ||
9a819804 AO |
8864 | |
8865 | ||
8866 | if test -n "$NM"; then | |
8867 | ac_cv_prog_NM=$NM | |
8868 | elif test -n "$ac_cv_prog_NM"; then | |
8869 | NM=$ac_cv_prog_NM | |
8870 | fi | |
8871 | ||
8872 | if test -n "$ac_cv_prog_NM"; then | |
8873 | for ncn_progname in nm; do | |
8874 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8875 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8877 | $as_echo_n "checking for $ac_word... " >&6; } | |
8878 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8879 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8880 | else |
8881 | if test -n "$NM"; then | |
8882 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8883 | else | |
c6b750e1 DJ |
8884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8885 | for as_dir in $PATH | |
8886 | do | |
8887 | IFS=$as_save_IFS | |
8888 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8889 | for ac_exec_ext in '' $ac_executable_extensions; do |
8890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8891 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8892 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8893 | break 2 |
8894 | fi | |
8895 | done | |
81ecdfbb RW |
8896 | done |
8897 | IFS=$as_save_IFS | |
c6b750e1 | 8898 | |
859789af AC |
8899 | fi |
8900 | fi | |
c6b750e1 | 8901 | NM=$ac_cv_prog_NM |
859789af | 8902 | if test -n "$NM"; then |
81ecdfbb RW |
8903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8904 | $as_echo "$NM" >&6; } | |
859789af | 8905 | else |
81ecdfbb RW |
8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8907 | $as_echo "no" >&6; } | |
859789af AC |
8908 | fi |
8909 | ||
81ecdfbb | 8910 | |
9a819804 AO |
8911 | done |
8912 | fi | |
8913 | ||
8914 | for ncn_progname in nm; do | |
8915 | if test -n "$ncn_tool_prefix"; then | |
8916 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8917 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8919 | $as_echo_n "checking for $ac_word... " >&6; } | |
8920 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8921 | $as_echo_n "(cached) " >&6 | |
859789af | 8922 | else |
05cbd757 PB |
8923 | if test -n "$NM"; then |
8924 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8925 | else |
c6b750e1 DJ |
8926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8927 | for as_dir in $PATH | |
8928 | do | |
8929 | IFS=$as_save_IFS | |
8930 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8931 | for ac_exec_ext in '' $ac_executable_extensions; do |
8932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8933 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8935 | break 2 |
8936 | fi | |
8937 | done | |
81ecdfbb RW |
8938 | done |
8939 | IFS=$as_save_IFS | |
c6b750e1 | 8940 | |
859789af AC |
8941 | fi |
8942 | fi | |
c6b750e1 | 8943 | NM=$ac_cv_prog_NM |
05cbd757 | 8944 | if test -n "$NM"; then |
81ecdfbb RW |
8945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8946 | $as_echo "$NM" >&6; } | |
859789af | 8947 | else |
81ecdfbb RW |
8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8949 | $as_echo "no" >&6; } | |
859789af | 8950 | fi |
c6b750e1 | 8951 | |
81ecdfbb | 8952 | |
05cbd757 | 8953 | fi |
9a819804 AO |
8954 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8955 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8956 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8958 | $as_echo_n "checking for $ac_word... " >&6; } | |
8959 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8960 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8961 | else |
8962 | if test -n "$NM"; then | |
8963 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8964 | else | |
8965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8966 | for as_dir in $PATH | |
8967 | do | |
8968 | IFS=$as_save_IFS | |
8969 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8970 | for ac_exec_ext in '' $ac_executable_extensions; do |
8971 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8972 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8974 | break 2 |
8975 | fi | |
8976 | done | |
81ecdfbb RW |
8977 | done |
8978 | IFS=$as_save_IFS | |
9a819804 AO |
8979 | |
8980 | fi | |
8981 | fi | |
8982 | NM=$ac_cv_prog_NM | |
8983 | if test -n "$NM"; then | |
81ecdfbb RW |
8984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8985 | $as_echo "$NM" >&6; } | |
9a819804 | 8986 | else |
81ecdfbb RW |
8987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8988 | $as_echo "no" >&6; } | |
9a819804 AO |
8989 | fi |
8990 | ||
81ecdfbb | 8991 | |
9a819804 AO |
8992 | fi |
8993 | test -n "$ac_cv_prog_NM" && break | |
8994 | done | |
8995 | ||
8996 | if test -z "$ac_cv_prog_NM" ; then | |
8997 | set dummy nm | |
8998 | if test $build = $host ; then | |
8999 | NM="$2" | |
9000 | else | |
9001 | NM="${ncn_tool_prefix}$2" | |
9002 | fi | |
9003 | fi | |
9004 | ||
9005 | ||
9006 | ||
9007 | if test -n "$RANLIB"; then | |
9008 | ac_cv_prog_RANLIB=$RANLIB | |
9009 | elif test -n "$ac_cv_prog_RANLIB"; then | |
9010 | RANLIB=$ac_cv_prog_RANLIB | |
9011 | fi | |
9012 | ||
9013 | if test -n "$ac_cv_prog_RANLIB"; then | |
9014 | for ncn_progname in ranlib; do | |
9015 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9016 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9018 | $as_echo_n "checking for $ac_word... " >&6; } | |
9019 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9020 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9021 | else |
9022 | if test -n "$RANLIB"; then | |
9023 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9024 | else | |
9025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9026 | for as_dir in $PATH | |
9027 | do | |
9028 | IFS=$as_save_IFS | |
9029 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9030 | for ac_exec_ext in '' $ac_executable_extensions; do |
9031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9032 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9034 | break 2 |
9035 | fi | |
9036 | done | |
81ecdfbb RW |
9037 | done |
9038 | IFS=$as_save_IFS | |
9a819804 AO |
9039 | |
9040 | fi | |
9041 | fi | |
9042 | RANLIB=$ac_cv_prog_RANLIB | |
9043 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9045 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9046 | else |
81ecdfbb RW |
9047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9048 | $as_echo "no" >&6; } | |
9a819804 AO |
9049 | fi |
9050 | ||
81ecdfbb | 9051 | |
9a819804 AO |
9052 | done |
9053 | fi | |
859789af | 9054 | |
9a819804 | 9055 | for ncn_progname in ranlib; do |
05cbd757 PB |
9056 | if test -n "$ncn_tool_prefix"; then |
9057 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9058 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9060 | $as_echo_n "checking for $ac_word... " >&6; } | |
9061 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9062 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9063 | else |
9064 | if test -n "$RANLIB"; then | |
9065 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9066 | else | |
c6b750e1 DJ |
9067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9068 | for as_dir in $PATH | |
9069 | do | |
9070 | IFS=$as_save_IFS | |
9071 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9072 | for ac_exec_ext in '' $ac_executable_extensions; do |
9073 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9074 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9075 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9076 | break 2 |
9077 | fi | |
9078 | done | |
81ecdfbb RW |
9079 | done |
9080 | IFS=$as_save_IFS | |
c6b750e1 | 9081 | |
859789af AC |
9082 | fi |
9083 | fi | |
c6b750e1 | 9084 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9085 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9087 | $as_echo "$RANLIB" >&6; } | |
859789af | 9088 | else |
81ecdfbb RW |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9090 | $as_echo "no" >&6; } | |
859789af AC |
9091 | fi |
9092 | ||
81ecdfbb | 9093 | |
05cbd757 PB |
9094 | fi |
9095 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
9096 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9097 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9099 | $as_echo_n "checking for $ac_word... " >&6; } | |
9100 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9101 | $as_echo_n "(cached) " >&6 | |
859789af | 9102 | else |
05cbd757 PB |
9103 | if test -n "$RANLIB"; then |
9104 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9105 | else |
c6b750e1 DJ |
9106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9107 | for as_dir in $PATH | |
9108 | do | |
9109 | IFS=$as_save_IFS | |
9110 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9111 | for ac_exec_ext in '' $ac_executable_extensions; do |
9112 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9113 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9115 | break 2 |
9116 | fi | |
9117 | done | |
81ecdfbb RW |
9118 | done |
9119 | IFS=$as_save_IFS | |
c6b750e1 | 9120 | |
859789af AC |
9121 | fi |
9122 | fi | |
c6b750e1 | 9123 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9124 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9126 | $as_echo "$RANLIB" >&6; } | |
859789af | 9127 | else |
81ecdfbb RW |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9129 | $as_echo "no" >&6; } | |
859789af | 9130 | fi |
c6b750e1 | 9131 | |
81ecdfbb | 9132 | |
859789af | 9133 | fi |
05cbd757 PB |
9134 | test -n "$ac_cv_prog_RANLIB" && break |
9135 | done | |
9136 | ||
9137 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9138 | RANLIB="true" |
859789af AC |
9139 | fi |
9140 | ||
9a819804 AO |
9141 | |
9142 | ||
9143 | if test -n "$STRIP"; then | |
9144 | ac_cv_prog_STRIP=$STRIP | |
9145 | elif test -n "$ac_cv_prog_STRIP"; then | |
9146 | STRIP=$ac_cv_prog_STRIP | |
9147 | fi | |
9148 | ||
9149 | if test -n "$ac_cv_prog_STRIP"; then | |
9150 | for ncn_progname in strip; do | |
9151 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9152 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9154 | $as_echo_n "checking for $ac_word... " >&6; } | |
9155 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9156 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9157 | else |
9158 | if test -n "$STRIP"; then | |
9159 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9160 | else | |
9161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9162 | for as_dir in $PATH | |
9163 | do | |
9164 | IFS=$as_save_IFS | |
9165 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9166 | for ac_exec_ext in '' $ac_executable_extensions; do |
9167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9168 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9170 | break 2 |
9171 | fi | |
9172 | done | |
81ecdfbb RW |
9173 | done |
9174 | IFS=$as_save_IFS | |
9a819804 AO |
9175 | |
9176 | fi | |
9177 | fi | |
9178 | STRIP=$ac_cv_prog_STRIP | |
9179 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9181 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9182 | else |
81ecdfbb RW |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9184 | $as_echo "no" >&6; } | |
9a819804 AO |
9185 | fi |
9186 | ||
81ecdfbb | 9187 | |
9a819804 AO |
9188 | done |
9189 | fi | |
9190 | ||
9191 | for ncn_progname in strip; do | |
be01d343 PB |
9192 | if test -n "$ncn_tool_prefix"; then |
9193 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9194 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9196 | $as_echo_n "checking for $ac_word... " >&6; } | |
9197 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9198 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9199 | else |
9200 | if test -n "$STRIP"; then | |
9201 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9202 | else | |
c6b750e1 DJ |
9203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9204 | for as_dir in $PATH | |
9205 | do | |
9206 | IFS=$as_save_IFS | |
9207 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9208 | for ac_exec_ext in '' $ac_executable_extensions; do |
9209 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9210 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9212 | break 2 |
9213 | fi | |
9214 | done | |
81ecdfbb RW |
9215 | done |
9216 | IFS=$as_save_IFS | |
c6b750e1 | 9217 | |
be01d343 PB |
9218 | fi |
9219 | fi | |
c6b750e1 | 9220 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9221 | if test -n "$STRIP"; then |
81ecdfbb RW |
9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9223 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9224 | else |
81ecdfbb RW |
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9226 | $as_echo "no" >&6; } | |
be01d343 PB |
9227 | fi |
9228 | ||
81ecdfbb | 9229 | |
be01d343 PB |
9230 | fi |
9231 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9232 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9233 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9235 | $as_echo_n "checking for $ac_word... " >&6; } | |
9236 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9237 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9238 | else |
9239 | if test -n "$STRIP"; then | |
9240 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9241 | else | |
c6b750e1 DJ |
9242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9243 | for as_dir in $PATH | |
9244 | do | |
9245 | IFS=$as_save_IFS | |
9246 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9247 | for ac_exec_ext in '' $ac_executable_extensions; do |
9248 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9249 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9251 | break 2 |
9252 | fi | |
9253 | done | |
81ecdfbb RW |
9254 | done |
9255 | IFS=$as_save_IFS | |
c6b750e1 | 9256 | |
be01d343 PB |
9257 | fi |
9258 | fi | |
c6b750e1 | 9259 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9260 | if test -n "$STRIP"; then |
81ecdfbb RW |
9261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9262 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9263 | else |
81ecdfbb RW |
9264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9265 | $as_echo "no" >&6; } | |
be01d343 | 9266 | fi |
c6b750e1 | 9267 | |
81ecdfbb | 9268 | |
be01d343 PB |
9269 | fi |
9270 | test -n "$ac_cv_prog_STRIP" && break | |
9271 | done | |
9272 | ||
9273 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9274 | STRIP="true" |
be01d343 PB |
9275 | fi |
9276 | ||
9a819804 AO |
9277 | |
9278 | ||
9279 | if test -n "$WINDRES"; then | |
9280 | ac_cv_prog_WINDRES=$WINDRES | |
9281 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9282 | WINDRES=$ac_cv_prog_WINDRES | |
9283 | fi | |
9284 | ||
9285 | if test -n "$ac_cv_prog_WINDRES"; then | |
9286 | for ncn_progname in windres; do | |
9287 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9288 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9290 | $as_echo_n "checking for $ac_word... " >&6; } | |
9291 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9292 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9293 | else |
9294 | if test -n "$WINDRES"; then | |
9295 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9296 | else | |
9297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9298 | for as_dir in $PATH | |
9299 | do | |
9300 | IFS=$as_save_IFS | |
9301 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9302 | for ac_exec_ext in '' $ac_executable_extensions; do |
9303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9304 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9306 | break 2 |
9307 | fi | |
9308 | done | |
81ecdfbb RW |
9309 | done |
9310 | IFS=$as_save_IFS | |
9a819804 AO |
9311 | |
9312 | fi | |
9313 | fi | |
9314 | WINDRES=$ac_cv_prog_WINDRES | |
9315 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9317 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9318 | else |
81ecdfbb RW |
9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9320 | $as_echo "no" >&6; } | |
9a819804 AO |
9321 | fi |
9322 | ||
81ecdfbb | 9323 | |
9a819804 AO |
9324 | done |
9325 | fi | |
9326 | ||
9327 | for ncn_progname in windres; do | |
05cbd757 PB |
9328 | if test -n "$ncn_tool_prefix"; then |
9329 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9330 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9332 | $as_echo_n "checking for $ac_word... " >&6; } | |
9333 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9334 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9335 | else |
9336 | if test -n "$WINDRES"; then | |
9337 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9338 | else | |
c6b750e1 DJ |
9339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9340 | for as_dir in $PATH | |
9341 | do | |
9342 | IFS=$as_save_IFS | |
9343 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9344 | for ac_exec_ext in '' $ac_executable_extensions; do |
9345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9346 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9348 | break 2 |
9349 | fi | |
9350 | done | |
81ecdfbb RW |
9351 | done |
9352 | IFS=$as_save_IFS | |
c6b750e1 | 9353 | |
859789af AC |
9354 | fi |
9355 | fi | |
c6b750e1 | 9356 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9357 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9359 | $as_echo "$WINDRES" >&6; } | |
859789af | 9360 | else |
81ecdfbb RW |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9362 | $as_echo "no" >&6; } | |
859789af AC |
9363 | fi |
9364 | ||
81ecdfbb | 9365 | |
05cbd757 PB |
9366 | fi |
9367 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9369 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9371 | $as_echo_n "checking for $ac_word... " >&6; } | |
9372 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9373 | $as_echo_n "(cached) " >&6 | |
859789af | 9374 | else |
05cbd757 PB |
9375 | if test -n "$WINDRES"; then |
9376 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9377 | else |
c6b750e1 DJ |
9378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9379 | for as_dir in $PATH | |
9380 | do | |
9381 | IFS=$as_save_IFS | |
9382 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9383 | for ac_exec_ext in '' $ac_executable_extensions; do |
9384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9385 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9387 | break 2 |
9388 | fi | |
9389 | done | |
81ecdfbb RW |
9390 | done |
9391 | IFS=$as_save_IFS | |
c6b750e1 | 9392 | |
859789af AC |
9393 | fi |
9394 | fi | |
c6b750e1 | 9395 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9396 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9398 | $as_echo "$WINDRES" >&6; } | |
859789af | 9399 | else |
81ecdfbb RW |
9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9401 | $as_echo "no" >&6; } | |
859789af | 9402 | fi |
c6b750e1 | 9403 | |
81ecdfbb | 9404 | |
05cbd757 PB |
9405 | fi |
9406 | test -n "$ac_cv_prog_WINDRES" && break | |
9407 | done | |
9408 | ||
9409 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9410 | set dummy windres | |
9411 | if test $build = $host ; then | |
9412 | WINDRES="$2" | |
859789af | 9413 | else |
05cbd757 | 9414 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9415 | fi |
859789af AC |
9416 | fi |
9417 | ||
9a819804 AO |
9418 | |
9419 | ||
0c24b341 NC |
9420 | if test -n "$WINDMC"; then |
9421 | ac_cv_prog_WINDMC=$WINDMC | |
9422 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9423 | WINDMC=$ac_cv_prog_WINDMC | |
9424 | fi | |
9425 | ||
9426 | if test -n "$ac_cv_prog_WINDMC"; then | |
9427 | for ncn_progname in windmc; do | |
9428 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9429 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9431 | $as_echo_n "checking for $ac_word... " >&6; } | |
9432 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9433 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9434 | else |
9435 | if test -n "$WINDMC"; then | |
9436 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9437 | else | |
9438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9439 | for as_dir in $PATH | |
9440 | do | |
9441 | IFS=$as_save_IFS | |
9442 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9443 | for ac_exec_ext in '' $ac_executable_extensions; do |
9444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9445 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9447 | break 2 |
9448 | fi | |
9449 | done | |
81ecdfbb RW |
9450 | done |
9451 | IFS=$as_save_IFS | |
0c24b341 NC |
9452 | |
9453 | fi | |
9454 | fi | |
9455 | WINDMC=$ac_cv_prog_WINDMC | |
9456 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9458 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9459 | else |
81ecdfbb RW |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9461 | $as_echo "no" >&6; } | |
0c24b341 NC |
9462 | fi |
9463 | ||
81ecdfbb | 9464 | |
0c24b341 NC |
9465 | done |
9466 | fi | |
9467 | ||
9468 | for ncn_progname in windmc; do | |
9469 | if test -n "$ncn_tool_prefix"; then | |
9470 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9471 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9473 | $as_echo_n "checking for $ac_word... " >&6; } | |
9474 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9475 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9476 | else |
9477 | if test -n "$WINDMC"; then | |
9478 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9479 | else | |
9480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9481 | for as_dir in $PATH | |
9482 | do | |
9483 | IFS=$as_save_IFS | |
9484 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9485 | for ac_exec_ext in '' $ac_executable_extensions; do |
9486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9487 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9489 | break 2 |
9490 | fi | |
9491 | done | |
81ecdfbb RW |
9492 | done |
9493 | IFS=$as_save_IFS | |
0c24b341 NC |
9494 | |
9495 | fi | |
9496 | fi | |
9497 | WINDMC=$ac_cv_prog_WINDMC | |
9498 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9500 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9501 | else |
81ecdfbb RW |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9503 | $as_echo "no" >&6; } | |
0c24b341 NC |
9504 | fi |
9505 | ||
81ecdfbb | 9506 | |
0c24b341 NC |
9507 | fi |
9508 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9509 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9510 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9512 | $as_echo_n "checking for $ac_word... " >&6; } | |
9513 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9514 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9515 | else |
9516 | if test -n "$WINDMC"; then | |
9517 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9518 | else | |
9519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9520 | for as_dir in $PATH | |
9521 | do | |
9522 | IFS=$as_save_IFS | |
9523 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9524 | for ac_exec_ext in '' $ac_executable_extensions; do |
9525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9526 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9528 | break 2 |
9529 | fi | |
9530 | done | |
81ecdfbb RW |
9531 | done |
9532 | IFS=$as_save_IFS | |
0c24b341 NC |
9533 | |
9534 | fi | |
9535 | fi | |
9536 | WINDMC=$ac_cv_prog_WINDMC | |
9537 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9539 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9540 | else |
81ecdfbb RW |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9542 | $as_echo "no" >&6; } | |
0c24b341 NC |
9543 | fi |
9544 | ||
81ecdfbb | 9545 | |
0c24b341 NC |
9546 | fi |
9547 | test -n "$ac_cv_prog_WINDMC" && break | |
9548 | done | |
9549 | ||
9550 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9551 | set dummy windmc | |
9552 | if test $build = $host ; then | |
9553 | WINDMC="$2" | |
9554 | else | |
9555 | WINDMC="${ncn_tool_prefix}$2" | |
9556 | fi | |
9557 | fi | |
9558 | ||
9559 | ||
9560 | ||
9a819804 AO |
9561 | if test -n "$OBJCOPY"; then |
9562 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9563 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9564 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9565 | fi | |
9566 | ||
9567 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9568 | for ncn_progname in objcopy; do | |
9569 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9570 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9572 | $as_echo_n "checking for $ac_word... " >&6; } | |
9573 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9574 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9575 | else |
9576 | if test -n "$OBJCOPY"; then | |
9577 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9578 | else | |
9579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9580 | for as_dir in $PATH | |
9581 | do | |
9582 | IFS=$as_save_IFS | |
9583 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9584 | for ac_exec_ext in '' $ac_executable_extensions; do |
9585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9586 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9588 | break 2 |
9589 | fi | |
9590 | done | |
81ecdfbb RW |
9591 | done |
9592 | IFS=$as_save_IFS | |
9a819804 AO |
9593 | |
9594 | fi | |
9595 | fi | |
9596 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9597 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9599 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9600 | else |
81ecdfbb RW |
9601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9602 | $as_echo "no" >&6; } | |
9a819804 AO |
9603 | fi |
9604 | ||
81ecdfbb | 9605 | |
9a819804 AO |
9606 | done |
9607 | fi | |
9608 | ||
9609 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9610 | if test -n "$ncn_tool_prefix"; then |
9611 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9612 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9614 | $as_echo_n "checking for $ac_word... " >&6; } | |
9615 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9616 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9617 | else |
9618 | if test -n "$OBJCOPY"; then | |
9619 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9620 | else | |
c6b750e1 DJ |
9621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9622 | for as_dir in $PATH | |
9623 | do | |
9624 | IFS=$as_save_IFS | |
9625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9626 | for ac_exec_ext in '' $ac_executable_extensions; do |
9627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9628 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9630 | break 2 |
9631 | fi | |
9632 | done | |
81ecdfbb RW |
9633 | done |
9634 | IFS=$as_save_IFS | |
c6b750e1 | 9635 | |
859789af AC |
9636 | fi |
9637 | fi | |
c6b750e1 | 9638 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9639 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9641 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9642 | else |
81ecdfbb RW |
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9644 | $as_echo "no" >&6; } | |
859789af AC |
9645 | fi |
9646 | ||
81ecdfbb | 9647 | |
05cbd757 PB |
9648 | fi |
9649 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9651 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9653 | $as_echo_n "checking for $ac_word... " >&6; } | |
9654 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9655 | $as_echo_n "(cached) " >&6 | |
859789af | 9656 | else |
05cbd757 PB |
9657 | if test -n "$OBJCOPY"; then |
9658 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9659 | else |
c6b750e1 DJ |
9660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9661 | for as_dir in $PATH | |
9662 | do | |
9663 | IFS=$as_save_IFS | |
9664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9665 | for ac_exec_ext in '' $ac_executable_extensions; do |
9666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9667 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9669 | break 2 |
9670 | fi | |
9671 | done | |
81ecdfbb RW |
9672 | done |
9673 | IFS=$as_save_IFS | |
c6b750e1 | 9674 | |
859789af AC |
9675 | fi |
9676 | fi | |
c6b750e1 | 9677 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9678 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9680 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9681 | else |
81ecdfbb RW |
9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9683 | $as_echo "no" >&6; } | |
859789af | 9684 | fi |
c6b750e1 | 9685 | |
81ecdfbb | 9686 | |
05cbd757 PB |
9687 | fi |
9688 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9689 | done | |
9690 | ||
9691 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9692 | set dummy objcopy | |
9693 | if test $build = $host ; then | |
9694 | OBJCOPY="$2" | |
859789af | 9695 | else |
05cbd757 | 9696 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9697 | fi |
859789af AC |
9698 | fi |
9699 | ||
9a819804 AO |
9700 | |
9701 | ||
9702 | if test -n "$OBJDUMP"; then | |
9703 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9704 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9705 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9706 | fi | |
9707 | ||
9708 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9709 | for ncn_progname in objdump; do | |
9710 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9711 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9713 | $as_echo_n "checking for $ac_word... " >&6; } | |
9714 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9715 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9716 | else |
9717 | if test -n "$OBJDUMP"; then | |
9718 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9719 | else | |
9720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9721 | for as_dir in $PATH | |
9722 | do | |
9723 | IFS=$as_save_IFS | |
9724 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9725 | for ac_exec_ext in '' $ac_executable_extensions; do |
9726 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9727 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9729 | break 2 |
9730 | fi | |
9731 | done | |
81ecdfbb RW |
9732 | done |
9733 | IFS=$as_save_IFS | |
9a819804 AO |
9734 | |
9735 | fi | |
9736 | fi | |
9737 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9738 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9740 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9741 | else |
81ecdfbb RW |
9742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9743 | $as_echo "no" >&6; } | |
9a819804 AO |
9744 | fi |
9745 | ||
81ecdfbb | 9746 | |
9a819804 AO |
9747 | done |
9748 | fi | |
9749 | ||
9750 | for ncn_progname in objdump; do | |
05cbd757 PB |
9751 | if test -n "$ncn_tool_prefix"; then |
9752 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9753 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9755 | $as_echo_n "checking for $ac_word... " >&6; } | |
9756 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9757 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9758 | else |
9759 | if test -n "$OBJDUMP"; then | |
9760 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9761 | else | |
c6b750e1 DJ |
9762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9763 | for as_dir in $PATH | |
9764 | do | |
9765 | IFS=$as_save_IFS | |
9766 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9767 | for ac_exec_ext in '' $ac_executable_extensions; do |
9768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9769 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9771 | break 2 |
9772 | fi | |
9773 | done | |
81ecdfbb RW |
9774 | done |
9775 | IFS=$as_save_IFS | |
c6b750e1 | 9776 | |
859789af AC |
9777 | fi |
9778 | fi | |
c6b750e1 | 9779 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9780 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9782 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9783 | else |
81ecdfbb RW |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9785 | $as_echo "no" >&6; } | |
859789af AC |
9786 | fi |
9787 | ||
81ecdfbb | 9788 | |
05cbd757 PB |
9789 | fi |
9790 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9791 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9792 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9794 | $as_echo_n "checking for $ac_word... " >&6; } | |
9795 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9796 | $as_echo_n "(cached) " >&6 | |
859789af | 9797 | else |
05cbd757 PB |
9798 | if test -n "$OBJDUMP"; then |
9799 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9800 | else |
c6b750e1 DJ |
9801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9802 | for as_dir in $PATH | |
9803 | do | |
9804 | IFS=$as_save_IFS | |
9805 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9806 | for ac_exec_ext in '' $ac_executable_extensions; do |
9807 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9808 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9810 | break 2 |
9811 | fi | |
9812 | done | |
81ecdfbb RW |
9813 | done |
9814 | IFS=$as_save_IFS | |
c6b750e1 | 9815 | |
859789af AC |
9816 | fi |
9817 | fi | |
c6b750e1 | 9818 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9819 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9821 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9822 | else |
81ecdfbb RW |
9823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9824 | $as_echo "no" >&6; } | |
859789af | 9825 | fi |
c6b750e1 | 9826 | |
81ecdfbb | 9827 | |
05cbd757 PB |
9828 | fi |
9829 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9830 | done | |
9831 | ||
9832 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9833 | set dummy objdump | |
9834 | if test $build = $host ; then | |
9835 | OBJDUMP="$2" | |
859789af | 9836 | else |
05cbd757 | 9837 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9838 | fi |
859789af AC |
9839 | fi |
9840 | ||
a0da8069 NN |
9841 | |
9842 | ||
b121d7d4 DD |
9843 | if test -n "$READELF"; then |
9844 | ac_cv_prog_READELF=$READELF | |
9845 | elif test -n "$ac_cv_prog_READELF"; then | |
9846 | READELF=$ac_cv_prog_READELF | |
9847 | fi | |
9848 | ||
9849 | if test -n "$ac_cv_prog_READELF"; then | |
9850 | for ncn_progname in readelf; do | |
9851 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9852 | set dummy ${ncn_progname}; ac_word=$2 | |
9853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9854 | $as_echo_n "checking for $ac_word... " >&6; } | |
9855 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9856 | $as_echo_n "(cached) " >&6 | |
9857 | else | |
9858 | if test -n "$READELF"; then | |
9859 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9860 | else | |
9861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9862 | for as_dir in $PATH | |
9863 | do | |
9864 | IFS=$as_save_IFS | |
9865 | test -z "$as_dir" && as_dir=. | |
9866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9867 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9868 | ac_cv_prog_READELF="${ncn_progname}" | |
9869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9870 | break 2 | |
9871 | fi | |
9872 | done | |
9873 | done | |
9874 | IFS=$as_save_IFS | |
9875 | ||
9876 | fi | |
9877 | fi | |
9878 | READELF=$ac_cv_prog_READELF | |
9879 | if test -n "$READELF"; then | |
9880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9881 | $as_echo "$READELF" >&6; } | |
9882 | else | |
9883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9884 | $as_echo "no" >&6; } | |
9885 | fi | |
9886 | ||
9887 | ||
9888 | done | |
9889 | fi | |
9890 | ||
9891 | for ncn_progname in readelf; do | |
9892 | if test -n "$ncn_tool_prefix"; then | |
9893 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9894 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9896 | $as_echo_n "checking for $ac_word... " >&6; } | |
9897 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9898 | $as_echo_n "(cached) " >&6 | |
9899 | else | |
9900 | if test -n "$READELF"; then | |
9901 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9902 | else | |
9903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9904 | for as_dir in $PATH | |
9905 | do | |
9906 | IFS=$as_save_IFS | |
9907 | test -z "$as_dir" && as_dir=. | |
9908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9910 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9912 | break 2 | |
9913 | fi | |
9914 | done | |
9915 | done | |
9916 | IFS=$as_save_IFS | |
9917 | ||
9918 | fi | |
9919 | fi | |
9920 | READELF=$ac_cv_prog_READELF | |
9921 | if test -n "$READELF"; then | |
9922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9923 | $as_echo "$READELF" >&6; } | |
9924 | else | |
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9926 | $as_echo "no" >&6; } | |
9927 | fi | |
9928 | ||
9929 | ||
9930 | fi | |
9931 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9932 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9933 | set dummy ${ncn_progname}; ac_word=$2 | |
9934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9935 | $as_echo_n "checking for $ac_word... " >&6; } | |
9936 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9937 | $as_echo_n "(cached) " >&6 | |
9938 | else | |
9939 | if test -n "$READELF"; then | |
9940 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9941 | else | |
9942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9943 | for as_dir in $PATH | |
9944 | do | |
9945 | IFS=$as_save_IFS | |
9946 | test -z "$as_dir" && as_dir=. | |
9947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9949 | ac_cv_prog_READELF="${ncn_progname}" | |
9950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9951 | break 2 | |
9952 | fi | |
9953 | done | |
9954 | done | |
9955 | IFS=$as_save_IFS | |
9956 | ||
9957 | fi | |
9958 | fi | |
9959 | READELF=$ac_cv_prog_READELF | |
9960 | if test -n "$READELF"; then | |
9961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9962 | $as_echo "$READELF" >&6; } | |
9963 | else | |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9965 | $as_echo "no" >&6; } | |
9966 | fi | |
9967 | ||
9968 | ||
9969 | fi | |
9970 | test -n "$ac_cv_prog_READELF" && break | |
9971 | done | |
9972 | ||
9973 | if test -z "$ac_cv_prog_READELF" ; then | |
9974 | set dummy readelf | |
9975 | if test $build = $host ; then | |
9976 | READELF="$2" | |
9977 | else | |
9978 | READELF="${ncn_tool_prefix}$2" | |
9979 | fi | |
9980 | fi | |
9981 | ||
9982 | ||
9983 | ||
a0da8069 NN |
9984 | |
9985 | ||
9986 | ||
be01d343 | 9987 | # Target tools. |
c6b750e1 | 9988 | |
81ecdfbb RW |
9989 | # Check whether --with-build-time-tools was given. |
9990 | if test "${with_build_time_tools+set}" = set; then : | |
9991 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9992 | x/*) ;; |
9993 | *) | |
9994 | with_build_time_tools= | |
81ecdfbb RW |
9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9996 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9997 | ;; |
9998 | esac | |
859789af | 9999 | else |
2429c060 | 10000 | with_build_time_tools= |
81ecdfbb RW |
10001 | fi |
10002 | ||
859789af | 10003 | |
9a819804 AO |
10004 | |
10005 | ||
10006 | if test -n "$CC_FOR_TARGET"; then | |
10007 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
10008 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10009 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10010 | fi | |
10011 | ||
10012 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
10013 | for ncn_progname in cc gcc; do | |
10014 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10015 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10017 | $as_echo_n "checking for $ac_word... " >&6; } | |
10018 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10019 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10020 | else |
10021 | if test -n "$CC_FOR_TARGET"; then | |
10022 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10023 | else | |
10024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10025 | for as_dir in $PATH | |
10026 | do | |
10027 | IFS=$as_save_IFS | |
10028 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10029 | for ac_exec_ext in '' $ac_executable_extensions; do |
10030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10031 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10033 | break 2 |
10034 | fi | |
10035 | done | |
81ecdfbb RW |
10036 | done |
10037 | IFS=$as_save_IFS | |
9a819804 AO |
10038 | |
10039 | fi | |
10040 | fi | |
10041 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10042 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10044 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10045 | else |
81ecdfbb RW |
10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10047 | $as_echo "no" >&6; } | |
9a819804 AO |
10048 | fi |
10049 | ||
81ecdfbb | 10050 | |
9a819804 AO |
10051 | done |
10052 | fi | |
10053 | ||
10054 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10055 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10057 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10058 | if test -x $with_build_time_tools/${ncn_progname}; then |
10059 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10061 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10062 | break |
2429c060 | 10063 | else |
81ecdfbb RW |
10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10065 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10066 | fi |
10067 | done | |
55db4b87 PB |
10068 | fi |
10069 | ||
2429c060 PB |
10070 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10071 | for ncn_progname in cc gcc; do | |
10072 | if test -n "$ncn_target_tool_prefix"; then | |
10073 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10074 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10076 | $as_echo_n "checking for $ac_word... " >&6; } | |
10077 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10078 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10079 | else |
10080 | if test -n "$CC_FOR_TARGET"; then | |
10081 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10082 | else | |
c6b750e1 DJ |
10083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10084 | for as_dir in $PATH | |
10085 | do | |
10086 | IFS=$as_save_IFS | |
10087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10088 | for ac_exec_ext in '' $ac_executable_extensions; do |
10089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10090 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10092 | break 2 |
10093 | fi | |
10094 | done | |
81ecdfbb RW |
10095 | done |
10096 | IFS=$as_save_IFS | |
c6b750e1 | 10097 | |
55db4b87 PB |
10098 | fi |
10099 | fi | |
c6b750e1 | 10100 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10101 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10103 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10104 | else |
81ecdfbb RW |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10106 | $as_echo "no" >&6; } | |
55db4b87 PB |
10107 | fi |
10108 | ||
81ecdfbb | 10109 | |
2429c060 PB |
10110 | fi |
10111 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10112 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10113 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10115 | $as_echo_n "checking for $ac_word... " >&6; } | |
10116 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10117 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10118 | else |
05cbd757 PB |
10119 | if test -n "$CC_FOR_TARGET"; then |
10120 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10121 | else |
c6b750e1 DJ |
10122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10123 | for as_dir in $PATH | |
10124 | do | |
10125 | IFS=$as_save_IFS | |
10126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10127 | for ac_exec_ext in '' $ac_executable_extensions; do |
10128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10129 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10131 | break 2 |
10132 | fi | |
10133 | done | |
81ecdfbb RW |
10134 | done |
10135 | IFS=$as_save_IFS | |
c6b750e1 | 10136 | |
55db4b87 PB |
10137 | fi |
10138 | fi | |
c6b750e1 | 10139 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10140 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10142 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10143 | else |
81ecdfbb RW |
10144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10145 | $as_echo "no" >&6; } | |
55db4b87 | 10146 | fi |
c6b750e1 | 10147 | |
81ecdfbb | 10148 | |
2429c060 PB |
10149 | fi |
10150 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10151 | done | |
10152 | fi | |
c6b750e1 | 10153 | |
05cbd757 PB |
10154 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10155 | set dummy cc gcc | |
10156 | if test $build = $target ; then | |
10157 | CC_FOR_TARGET="$2" | |
55db4b87 | 10158 | else |
05cbd757 | 10159 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10160 | fi |
d3f5afc4 MS |
10161 | else |
10162 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10163 | fi |
10164 | ||
9a819804 AO |
10165 | |
10166 | ||
10167 | if test -n "$CXX_FOR_TARGET"; then | |
10168 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10169 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10170 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10171 | fi | |
10172 | ||
10173 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10174 | for ncn_progname in c++ g++ cxx gxx; do | |
10175 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10176 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10178 | $as_echo_n "checking for $ac_word... " >&6; } | |
10179 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10180 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10181 | else |
10182 | if test -n "$CXX_FOR_TARGET"; then | |
10183 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10184 | else | |
10185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10186 | for as_dir in $PATH | |
10187 | do | |
10188 | IFS=$as_save_IFS | |
10189 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10190 | for ac_exec_ext in '' $ac_executable_extensions; do |
10191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10192 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10194 | break 2 |
10195 | fi | |
10196 | done | |
81ecdfbb RW |
10197 | done |
10198 | IFS=$as_save_IFS | |
9a819804 AO |
10199 | |
10200 | fi | |
10201 | fi | |
10202 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10203 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10205 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10206 | else |
81ecdfbb RW |
10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10208 | $as_echo "no" >&6; } | |
9a819804 AO |
10209 | fi |
10210 | ||
81ecdfbb | 10211 | |
9a819804 AO |
10212 | done |
10213 | fi | |
10214 | ||
10215 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10216 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10218 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10219 | if test -x $with_build_time_tools/${ncn_progname}; then |
10220 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10222 | $as_echo "yes" >&6; } | |
2429c060 PB |
10223 | break |
10224 | else | |
81ecdfbb RW |
10225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10226 | $as_echo "no" >&6; } | |
2429c060 PB |
10227 | fi |
10228 | done | |
10229 | fi | |
10230 | ||
10231 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10232 | for ncn_progname in c++ g++ cxx gxx; do | |
10233 | if test -n "$ncn_target_tool_prefix"; then | |
10234 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10235 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10237 | $as_echo_n "checking for $ac_word... " >&6; } | |
10238 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10239 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10240 | else |
10241 | if test -n "$CXX_FOR_TARGET"; then | |
10242 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10243 | else | |
c6b750e1 DJ |
10244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10245 | for as_dir in $PATH | |
10246 | do | |
10247 | IFS=$as_save_IFS | |
10248 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10249 | for ac_exec_ext in '' $ac_executable_extensions; do |
10250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10251 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10252 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10253 | break 2 |
10254 | fi | |
10255 | done | |
81ecdfbb RW |
10256 | done |
10257 | IFS=$as_save_IFS | |
c6b750e1 | 10258 | |
55db4b87 PB |
10259 | fi |
10260 | fi | |
c6b750e1 | 10261 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10262 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10264 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10265 | else |
81ecdfbb RW |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10267 | $as_echo "no" >&6; } | |
55db4b87 PB |
10268 | fi |
10269 | ||
81ecdfbb | 10270 | |
2429c060 PB |
10271 | fi |
10272 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10273 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10274 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10276 | $as_echo_n "checking for $ac_word... " >&6; } | |
10277 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10278 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10279 | else |
05cbd757 PB |
10280 | if test -n "$CXX_FOR_TARGET"; then |
10281 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10282 | else |
c6b750e1 DJ |
10283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10284 | for as_dir in $PATH | |
10285 | do | |
10286 | IFS=$as_save_IFS | |
10287 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10288 | for ac_exec_ext in '' $ac_executable_extensions; do |
10289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10290 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10291 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10292 | break 2 |
10293 | fi | |
10294 | done | |
81ecdfbb RW |
10295 | done |
10296 | IFS=$as_save_IFS | |
c6b750e1 | 10297 | |
55db4b87 PB |
10298 | fi |
10299 | fi | |
c6b750e1 | 10300 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10301 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10303 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10304 | else |
81ecdfbb RW |
10305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10306 | $as_echo "no" >&6; } | |
55db4b87 | 10307 | fi |
c6b750e1 | 10308 | |
81ecdfbb | 10309 | |
2429c060 PB |
10310 | fi |
10311 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10312 | done | |
10313 | fi | |
c6b750e1 | 10314 | |
05cbd757 PB |
10315 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10316 | set dummy c++ g++ cxx gxx | |
10317 | if test $build = $target ; then | |
10318 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10319 | else |
05cbd757 | 10320 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10321 | fi |
d3f5afc4 MS |
10322 | else |
10323 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10324 | fi |
10325 | ||
9a819804 AO |
10326 | |
10327 | ||
10328 | if test -n "$GCC_FOR_TARGET"; then | |
10329 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10330 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10331 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10332 | fi | |
10333 | ||
10334 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10335 | for ncn_progname in gcc; do | |
10336 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10337 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10339 | $as_echo_n "checking for $ac_word... " >&6; } | |
10340 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10341 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10342 | else |
10343 | if test -n "$GCC_FOR_TARGET"; then | |
10344 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10345 | else | |
10346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10347 | for as_dir in $PATH | |
10348 | do | |
10349 | IFS=$as_save_IFS | |
10350 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10351 | for ac_exec_ext in '' $ac_executable_extensions; do |
10352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10353 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10355 | break 2 |
10356 | fi | |
10357 | done | |
81ecdfbb RW |
10358 | done |
10359 | IFS=$as_save_IFS | |
9a819804 AO |
10360 | |
10361 | fi | |
10362 | fi | |
10363 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10364 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10366 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10367 | else |
81ecdfbb RW |
10368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10369 | $as_echo "no" >&6; } | |
9a819804 AO |
10370 | fi |
10371 | ||
81ecdfbb | 10372 | |
9a819804 AO |
10373 | done |
10374 | fi | |
10375 | ||
10376 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10377 | for ncn_progname in gcc; do |
81ecdfbb RW |
10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10379 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10380 | if test -x $with_build_time_tools/${ncn_progname}; then |
10381 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10383 | $as_echo "yes" >&6; } | |
2429c060 PB |
10384 | break |
10385 | else | |
81ecdfbb RW |
10386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10387 | $as_echo "no" >&6; } | |
2429c060 PB |
10388 | fi |
10389 | done | |
10390 | fi | |
10391 | ||
10392 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10393 | for ncn_progname in gcc; do | |
10394 | if test -n "$ncn_target_tool_prefix"; then | |
10395 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10396 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10398 | $as_echo_n "checking for $ac_word... " >&6; } | |
10399 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10400 | $as_echo_n "(cached) " >&6 | |
859789af | 10401 | else |
2429c060 PB |
10402 | if test -n "$GCC_FOR_TARGET"; then |
10403 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10404 | else |
c6b750e1 DJ |
10405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10406 | for as_dir in $PATH | |
10407 | do | |
10408 | IFS=$as_save_IFS | |
10409 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10410 | for ac_exec_ext in '' $ac_executable_extensions; do |
10411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10412 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10413 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10414 | break 2 |
10415 | fi | |
10416 | done | |
81ecdfbb RW |
10417 | done |
10418 | IFS=$as_save_IFS | |
c6b750e1 | 10419 | |
55db4b87 PB |
10420 | fi |
10421 | fi | |
c6b750e1 | 10422 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10423 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10425 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10426 | else |
81ecdfbb RW |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10428 | $as_echo "no" >&6; } | |
55db4b87 PB |
10429 | fi |
10430 | ||
81ecdfbb | 10431 | |
2429c060 PB |
10432 | fi |
10433 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10434 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10435 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10437 | $as_echo_n "checking for $ac_word... " >&6; } | |
10438 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10439 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10440 | else |
05cbd757 PB |
10441 | if test -n "$GCC_FOR_TARGET"; then |
10442 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10443 | else |
c6b750e1 DJ |
10444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10445 | for as_dir in $PATH | |
10446 | do | |
10447 | IFS=$as_save_IFS | |
10448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10449 | for ac_exec_ext in '' $ac_executable_extensions; do |
10450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10451 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10453 | break 2 |
10454 | fi | |
10455 | done | |
81ecdfbb RW |
10456 | done |
10457 | IFS=$as_save_IFS | |
c6b750e1 | 10458 | |
55db4b87 PB |
10459 | fi |
10460 | fi | |
c6b750e1 | 10461 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10462 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10464 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10465 | else |
81ecdfbb RW |
10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10467 | $as_echo "no" >&6; } | |
55db4b87 | 10468 | fi |
c6b750e1 | 10469 | |
81ecdfbb | 10470 | |
2429c060 PB |
10471 | fi |
10472 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10473 | done | |
10474 | fi | |
c6b750e1 | 10475 | |
05cbd757 PB |
10476 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10477 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10478 | else |
10479 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10480 | fi |
10481 | ||
9a819804 AO |
10482 | |
10483 | ||
10484 | if test -n "$GCJ_FOR_TARGET"; then | |
10485 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10486 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10487 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10488 | fi | |
10489 | ||
10490 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10491 | for ncn_progname in gcj; do | |
10492 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10493 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10495 | $as_echo_n "checking for $ac_word... " >&6; } | |
10496 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10497 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10498 | else |
10499 | if test -n "$GCJ_FOR_TARGET"; then | |
10500 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10501 | else | |
10502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10503 | for as_dir in $PATH | |
10504 | do | |
10505 | IFS=$as_save_IFS | |
10506 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10507 | for ac_exec_ext in '' $ac_executable_extensions; do |
10508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10509 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10511 | break 2 |
10512 | fi | |
10513 | done | |
81ecdfbb RW |
10514 | done |
10515 | IFS=$as_save_IFS | |
9a819804 AO |
10516 | |
10517 | fi | |
10518 | fi | |
10519 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10520 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10522 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10523 | else |
81ecdfbb RW |
10524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10525 | $as_echo "no" >&6; } | |
9a819804 AO |
10526 | fi |
10527 | ||
81ecdfbb | 10528 | |
9a819804 AO |
10529 | done |
10530 | fi | |
10531 | ||
10532 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10533 | for ncn_progname in gcj; do |
81ecdfbb RW |
10534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10535 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10536 | if test -x $with_build_time_tools/${ncn_progname}; then |
10537 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10539 | $as_echo "yes" >&6; } | |
2429c060 PB |
10540 | break |
10541 | else | |
81ecdfbb RW |
10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10543 | $as_echo "no" >&6; } | |
2429c060 PB |
10544 | fi |
10545 | done | |
10546 | fi | |
10547 | ||
10548 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10549 | for ncn_progname in gcj; do | |
10550 | if test -n "$ncn_target_tool_prefix"; then | |
10551 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10552 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10554 | $as_echo_n "checking for $ac_word... " >&6; } | |
10555 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10556 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10557 | else |
10558 | if test -n "$GCJ_FOR_TARGET"; then | |
10559 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10560 | else | |
c6b750e1 DJ |
10561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10562 | for as_dir in $PATH | |
10563 | do | |
10564 | IFS=$as_save_IFS | |
10565 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10566 | for ac_exec_ext in '' $ac_executable_extensions; do |
10567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10568 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10570 | break 2 |
10571 | fi | |
10572 | done | |
81ecdfbb RW |
10573 | done |
10574 | IFS=$as_save_IFS | |
c6b750e1 | 10575 | |
55db4b87 PB |
10576 | fi |
10577 | fi | |
9a819804 AO |
10578 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10579 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10581 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10582 | else |
81ecdfbb RW |
10583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10584 | $as_echo "no" >&6; } | |
9a819804 AO |
10585 | fi |
10586 | ||
81ecdfbb | 10587 | |
9a819804 AO |
10588 | fi |
10589 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10590 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10591 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10593 | $as_echo_n "checking for $ac_word... " >&6; } | |
10594 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10595 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10596 | else |
10597 | if test -n "$GCJ_FOR_TARGET"; then | |
10598 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10599 | else | |
10600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10601 | for as_dir in $PATH | |
10602 | do | |
10603 | IFS=$as_save_IFS | |
10604 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10605 | for ac_exec_ext in '' $ac_executable_extensions; do |
10606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10607 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10609 | break 2 |
10610 | fi | |
10611 | done | |
81ecdfbb RW |
10612 | done |
10613 | IFS=$as_save_IFS | |
9a819804 AO |
10614 | |
10615 | fi | |
10616 | fi | |
10617 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10618 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10620 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10621 | else |
81ecdfbb RW |
10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10623 | $as_echo "no" >&6; } | |
9a819804 AO |
10624 | fi |
10625 | ||
81ecdfbb | 10626 | |
9a819804 AO |
10627 | fi |
10628 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10629 | done | |
10630 | fi | |
10631 | ||
10632 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10633 | set dummy gcj | |
10634 | if test $build = $target ; then | |
10635 | GCJ_FOR_TARGET="$2" | |
10636 | else | |
10637 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10638 | fi | |
d3f5afc4 MS |
10639 | else |
10640 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10641 | fi |
10642 | ||
10643 | ||
10644 | ||
10645 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10646 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10647 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10648 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10649 | fi |
10650 | ||
9a819804 AO |
10651 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10652 | for ncn_progname in gfortran; do | |
10653 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10654 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10656 | $as_echo_n "checking for $ac_word... " >&6; } | |
10657 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10658 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10659 | else |
9a819804 AO |
10660 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10661 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10662 | else |
c6b750e1 DJ |
10663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10664 | for as_dir in $PATH | |
10665 | do | |
10666 | IFS=$as_save_IFS | |
10667 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10668 | for ac_exec_ext in '' $ac_executable_extensions; do |
10669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10670 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10672 | break 2 |
10673 | fi | |
10674 | done | |
81ecdfbb RW |
10675 | done |
10676 | IFS=$as_save_IFS | |
c6b750e1 | 10677 | |
55db4b87 PB |
10678 | fi |
10679 | fi | |
9a819804 AO |
10680 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10681 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10683 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10684 | else |
81ecdfbb RW |
10685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10686 | $as_echo "no" >&6; } | |
55db4b87 | 10687 | fi |
c6b750e1 | 10688 | |
81ecdfbb | 10689 | |
2429c060 PB |
10690 | done |
10691 | fi | |
c6b750e1 | 10692 | |
9a819804 | 10693 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10694 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10696 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10697 | if test -x $with_build_time_tools/${ncn_progname}; then |
10698 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10700 | $as_echo "yes" >&6; } | |
2429c060 PB |
10701 | break |
10702 | else | |
81ecdfbb RW |
10703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10704 | $as_echo "no" >&6; } | |
2429c060 PB |
10705 | fi |
10706 | done | |
10707 | fi | |
10708 | ||
10709 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10710 | for ncn_progname in gfortran; do | |
10711 | if test -n "$ncn_target_tool_prefix"; then | |
10712 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10713 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10715 | $as_echo_n "checking for $ac_word... " >&6; } | |
10716 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10717 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10718 | else |
10719 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10720 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10721 | else | |
c6b750e1 DJ |
10722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10723 | for as_dir in $PATH | |
10724 | do | |
10725 | IFS=$as_save_IFS | |
10726 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10727 | for ac_exec_ext in '' $ac_executable_extensions; do |
10728 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10729 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10731 | break 2 |
10732 | fi | |
10733 | done | |
81ecdfbb RW |
10734 | done |
10735 | IFS=$as_save_IFS | |
c6b750e1 | 10736 | |
55db4b87 PB |
10737 | fi |
10738 | fi | |
c6b750e1 | 10739 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10740 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10742 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10743 | else |
81ecdfbb RW |
10744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10745 | $as_echo "no" >&6; } | |
55db4b87 PB |
10746 | fi |
10747 | ||
81ecdfbb | 10748 | |
2429c060 PB |
10749 | fi |
10750 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10751 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10752 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10754 | $as_echo_n "checking for $ac_word... " >&6; } | |
10755 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10756 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10757 | else |
05cbd757 | 10758 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10759 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10760 | else | |
10761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10762 | for as_dir in $PATH | |
10763 | do | |
10764 | IFS=$as_save_IFS | |
10765 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10766 | for ac_exec_ext in '' $ac_executable_extensions; do |
10767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10768 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10770 | break 2 |
10771 | fi | |
10772 | done | |
81ecdfbb RW |
10773 | done |
10774 | IFS=$as_save_IFS | |
c6b750e1 | 10775 | |
55db4b87 PB |
10776 | fi |
10777 | fi | |
c6b750e1 | 10778 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10779 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10781 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10782 | else |
81ecdfbb RW |
10783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10784 | $as_echo "no" >&6; } | |
55db4b87 | 10785 | fi |
c6b750e1 | 10786 | |
81ecdfbb | 10787 | |
2429c060 PB |
10788 | fi |
10789 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10790 | done | |
10791 | fi | |
c6b750e1 | 10792 | |
05cbd757 PB |
10793 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10794 | set dummy gfortran | |
10795 | if test $build = $target ; then | |
10796 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10797 | else |
05cbd757 | 10798 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10799 | fi |
d3f5afc4 MS |
10800 | else |
10801 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10802 | fi |
10803 | ||
2429c060 PB |
10804 | |
10805 | ||
e552509b ILT |
10806 | if test -n "$GOC_FOR_TARGET"; then |
10807 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10808 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10809 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10810 | fi | |
10811 | ||
10812 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10813 | for ncn_progname in gccgo; do | |
10814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10815 | set dummy ${ncn_progname}; ac_word=$2 | |
10816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10817 | $as_echo_n "checking for $ac_word... " >&6; } | |
10818 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10819 | $as_echo_n "(cached) " >&6 | |
10820 | else | |
10821 | if test -n "$GOC_FOR_TARGET"; then | |
10822 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10823 | else | |
10824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10825 | for as_dir in $PATH | |
10826 | do | |
10827 | IFS=$as_save_IFS | |
10828 | test -z "$as_dir" && as_dir=. | |
10829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10831 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10833 | break 2 | |
10834 | fi | |
10835 | done | |
10836 | done | |
10837 | IFS=$as_save_IFS | |
10838 | ||
10839 | fi | |
10840 | fi | |
10841 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10842 | if test -n "$GOC_FOR_TARGET"; then | |
10843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10844 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10845 | else | |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10847 | $as_echo "no" >&6; } | |
10848 | fi | |
10849 | ||
10850 | ||
10851 | done | |
10852 | fi | |
10853 | ||
10854 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10855 | for ncn_progname in gccgo; do | |
10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10857 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10858 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10859 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10861 | $as_echo "yes" >&6; } | |
10862 | break | |
10863 | else | |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10865 | $as_echo "no" >&6; } | |
10866 | fi | |
10867 | done | |
10868 | fi | |
10869 | ||
10870 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10871 | for ncn_progname in gccgo; do | |
10872 | if test -n "$ncn_target_tool_prefix"; then | |
10873 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10874 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10876 | $as_echo_n "checking for $ac_word... " >&6; } | |
10877 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10878 | $as_echo_n "(cached) " >&6 | |
10879 | else | |
10880 | if test -n "$GOC_FOR_TARGET"; then | |
10881 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10882 | else | |
10883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10884 | for as_dir in $PATH | |
10885 | do | |
10886 | IFS=$as_save_IFS | |
10887 | test -z "$as_dir" && as_dir=. | |
10888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10889 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10890 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10892 | break 2 | |
10893 | fi | |
10894 | done | |
10895 | done | |
10896 | IFS=$as_save_IFS | |
10897 | ||
10898 | fi | |
10899 | fi | |
10900 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10901 | if test -n "$GOC_FOR_TARGET"; then | |
10902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10903 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10904 | else | |
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10906 | $as_echo "no" >&6; } | |
10907 | fi | |
10908 | ||
10909 | ||
10910 | fi | |
10911 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10912 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10913 | set dummy ${ncn_progname}; ac_word=$2 | |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10915 | $as_echo_n "checking for $ac_word... " >&6; } | |
10916 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10917 | $as_echo_n "(cached) " >&6 | |
10918 | else | |
10919 | if test -n "$GOC_FOR_TARGET"; then | |
10920 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10921 | else | |
10922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10923 | for as_dir in $PATH | |
10924 | do | |
10925 | IFS=$as_save_IFS | |
10926 | test -z "$as_dir" && as_dir=. | |
10927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10929 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10931 | break 2 | |
10932 | fi | |
10933 | done | |
10934 | done | |
10935 | IFS=$as_save_IFS | |
10936 | ||
10937 | fi | |
10938 | fi | |
10939 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10940 | if test -n "$GOC_FOR_TARGET"; then | |
10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10942 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10943 | else | |
10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10945 | $as_echo "no" >&6; } | |
10946 | fi | |
10947 | ||
10948 | ||
10949 | fi | |
10950 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10951 | done | |
10952 | fi | |
10953 | ||
10954 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10955 | set dummy gccgo | |
10956 | if test $build = $target ; then | |
10957 | GOC_FOR_TARGET="$2" | |
10958 | else | |
10959 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10960 | fi | |
10961 | else | |
10962 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10963 | fi | |
10964 | ||
10965 | ||
10966 | ||
2429c060 PB |
10967 | cat > conftest.c << \EOF |
10968 | #ifdef __GNUC__ | |
10969 | gcc_yay; | |
10970 | #endif | |
10971 | EOF | |
10972 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10973 | have_gcc_for_target=yes | |
859789af | 10974 | else |
2429c060 PB |
10975 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10976 | have_gcc_for_target=no | |
859789af | 10977 | fi |
2429c060 PB |
10978 | rm conftest.c |
10979 | ||
10980 | ||
10981 | ||
859789af | 10982 | |
2429c060 PB |
10983 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10984 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10986 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10987 | if test -x $with_build_time_tools/ar; then |
10988 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10989 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10991 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10992 | else |
81ecdfbb RW |
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10994 | $as_echo "no" >&6; } | |
3a35eeb3 | 10995 | fi |
2429c060 PB |
10996 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10997 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10998 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10999 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 11000 | fi |
2429c060 | 11001 | fi |
c6b750e1 | 11002 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11003 | # Extract the first word of "ar", so it can be a program name with args. |
11004 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
11005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11006 | $as_echo_n "checking for $ac_word... " >&6; } | |
11007 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
11008 | $as_echo_n "(cached) " >&6 | |
859789af | 11009 | else |
c6b750e1 DJ |
11010 | case $AR_FOR_TARGET in |
11011 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11012 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
11013 | ;; | |
2429c060 | 11014 | *) |
c6b750e1 DJ |
11015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11016 | for as_dir in $gcc_cv_tool_dirs | |
11017 | do | |
11018 | IFS=$as_save_IFS | |
11019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11020 | for ac_exec_ext in '' $ac_executable_extensions; do |
11021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11022 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11024 | break 2 |
11025 | fi | |
11026 | done | |
81ecdfbb RW |
11027 | done |
11028 | IFS=$as_save_IFS | |
c6b750e1 | 11029 | |
2429c060 PB |
11030 | ;; |
11031 | esac | |
859789af | 11032 | fi |
c6b750e1 | 11033 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 11034 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11036 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 11037 | else |
81ecdfbb RW |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11039 | $as_echo "no" >&6; } | |
859789af | 11040 | fi |
05cbd757 | 11041 | |
81ecdfbb | 11042 | |
2429c060 PB |
11043 | fi |
11044 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
11045 | |
11046 | ||
11047 | if test -n "$AR_FOR_TARGET"; then | |
11048 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11049 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11050 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11051 | fi | |
11052 | ||
11053 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11054 | for ncn_progname in ar; do | |
11055 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11056 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11058 | $as_echo_n "checking for $ac_word... " >&6; } | |
11059 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11060 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11061 | else |
11062 | if test -n "$AR_FOR_TARGET"; then | |
11063 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11064 | else | |
11065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11066 | for as_dir in $PATH | |
11067 | do | |
11068 | IFS=$as_save_IFS | |
11069 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11070 | for ac_exec_ext in '' $ac_executable_extensions; do |
11071 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11072 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11074 | break 2 |
11075 | fi | |
11076 | done | |
81ecdfbb RW |
11077 | done |
11078 | IFS=$as_save_IFS | |
9a819804 AO |
11079 | |
11080 | fi | |
11081 | fi | |
11082 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11083 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11085 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11086 | else |
81ecdfbb RW |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11088 | $as_echo "no" >&6; } | |
9a819804 AO |
11089 | fi |
11090 | ||
81ecdfbb | 11091 | |
9a819804 AO |
11092 | done |
11093 | fi | |
11094 | ||
11095 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11096 | for ncn_progname in ar; do |
81ecdfbb RW |
11097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11098 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11099 | if test -x $with_build_time_tools/${ncn_progname}; then |
11100 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11102 | $as_echo "yes" >&6; } | |
2429c060 PB |
11103 | break |
11104 | else | |
81ecdfbb RW |
11105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11106 | $as_echo "no" >&6; } | |
2429c060 PB |
11107 | fi |
11108 | done | |
859789af AC |
11109 | fi |
11110 | ||
2429c060 PB |
11111 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11112 | for ncn_progname in ar; do | |
11113 | if test -n "$ncn_target_tool_prefix"; then | |
11114 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11115 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11117 | $as_echo_n "checking for $ac_word... " >&6; } | |
11118 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11119 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11120 | else |
2429c060 PB |
11121 | if test -n "$AR_FOR_TARGET"; then |
11122 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11123 | else |
c6b750e1 DJ |
11124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11125 | for as_dir in $PATH | |
11126 | do | |
11127 | IFS=$as_save_IFS | |
11128 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11129 | for ac_exec_ext in '' $ac_executable_extensions; do |
11130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11131 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11133 | break 2 |
11134 | fi | |
11135 | done | |
81ecdfbb RW |
11136 | done |
11137 | IFS=$as_save_IFS | |
c6b750e1 | 11138 | |
7e0f7140 GK |
11139 | fi |
11140 | fi | |
c6b750e1 | 11141 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11142 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11144 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11145 | else |
81ecdfbb RW |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11147 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11148 | fi |
11149 | ||
81ecdfbb | 11150 | |
2429c060 PB |
11151 | fi |
11152 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11153 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11154 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11156 | $as_echo_n "checking for $ac_word... " >&6; } | |
11157 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11158 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11159 | else |
2429c060 PB |
11160 | if test -n "$AR_FOR_TARGET"; then |
11161 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11162 | else |
c6b750e1 DJ |
11163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11164 | for as_dir in $PATH | |
11165 | do | |
11166 | IFS=$as_save_IFS | |
11167 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11168 | for ac_exec_ext in '' $ac_executable_extensions; do |
11169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11170 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11172 | break 2 |
11173 | fi | |
11174 | done | |
81ecdfbb RW |
11175 | done |
11176 | IFS=$as_save_IFS | |
c6b750e1 | 11177 | |
7e0f7140 GK |
11178 | fi |
11179 | fi | |
c6b750e1 | 11180 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11181 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11183 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11184 | else |
81ecdfbb RW |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11186 | $as_echo "no" >&6; } | |
7e0f7140 | 11187 | fi |
c6b750e1 | 11188 | |
81ecdfbb | 11189 | |
2429c060 PB |
11190 | fi |
11191 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11192 | done | |
11193 | fi | |
c6b750e1 | 11194 | |
2429c060 PB |
11195 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11196 | set dummy ar | |
7e0f7140 | 11197 | if test $build = $target ; then |
2429c060 | 11198 | AR_FOR_TARGET="$2" |
7e0f7140 | 11199 | else |
2429c060 | 11200 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11201 | fi |
d3f5afc4 MS |
11202 | else |
11203 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11204 | fi |
11205 | ||
3a35eeb3 PB |
11206 | else |
11207 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11208 | fi |
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11214 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11216 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11217 | if test -x $with_build_time_tools/as; then |
11218 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11219 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11221 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11222 | else |
81ecdfbb RW |
11223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11224 | $as_echo "no" >&6; } | |
3a35eeb3 | 11225 | fi |
2429c060 PB |
11226 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11227 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11228 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11229 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11230 | fi |
11231 | fi | |
c6b750e1 | 11232 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11233 | # Extract the first word of "as", so it can be a program name with args. |
11234 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11236 | $as_echo_n "checking for $ac_word... " >&6; } | |
11237 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11238 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11239 | else |
c6b750e1 DJ |
11240 | case $AS_FOR_TARGET in |
11241 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11242 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11243 | ;; | |
2429c060 | 11244 | *) |
c6b750e1 DJ |
11245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11246 | for as_dir in $gcc_cv_tool_dirs | |
11247 | do | |
11248 | IFS=$as_save_IFS | |
11249 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11250 | for ac_exec_ext in '' $ac_executable_extensions; do |
11251 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11252 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11254 | break 2 |
11255 | fi | |
11256 | done | |
81ecdfbb RW |
11257 | done |
11258 | IFS=$as_save_IFS | |
c6b750e1 | 11259 | |
2429c060 PB |
11260 | ;; |
11261 | esac | |
11262 | fi | |
c6b750e1 | 11263 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11264 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11266 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11267 | else |
81ecdfbb RW |
11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11269 | $as_echo "no" >&6; } | |
2429c060 PB |
11270 | fi |
11271 | ||
81ecdfbb | 11272 | |
2429c060 PB |
11273 | fi |
11274 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11275 | |
11276 | ||
11277 | if test -n "$AS_FOR_TARGET"; then | |
11278 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11279 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11280 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11281 | fi | |
11282 | ||
11283 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11284 | for ncn_progname in as; do | |
11285 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11286 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11288 | $as_echo_n "checking for $ac_word... " >&6; } | |
11289 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11290 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11291 | else |
11292 | if test -n "$AS_FOR_TARGET"; then | |
11293 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11294 | else | |
11295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11296 | for as_dir in $PATH | |
11297 | do | |
11298 | IFS=$as_save_IFS | |
11299 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11300 | for ac_exec_ext in '' $ac_executable_extensions; do |
11301 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11302 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11303 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11304 | break 2 |
11305 | fi | |
11306 | done | |
81ecdfbb RW |
11307 | done |
11308 | IFS=$as_save_IFS | |
9a819804 AO |
11309 | |
11310 | fi | |
11311 | fi | |
11312 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11313 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11315 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11316 | else |
81ecdfbb RW |
11317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11318 | $as_echo "no" >&6; } | |
9a819804 AO |
11319 | fi |
11320 | ||
81ecdfbb | 11321 | |
9a819804 AO |
11322 | done |
11323 | fi | |
11324 | ||
11325 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11326 | for ncn_progname in as; do |
81ecdfbb RW |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11328 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11329 | if test -x $with_build_time_tools/${ncn_progname}; then |
11330 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11332 | $as_echo "yes" >&6; } | |
2429c060 PB |
11333 | break |
11334 | else | |
81ecdfbb RW |
11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11336 | $as_echo "no" >&6; } | |
2429c060 PB |
11337 | fi |
11338 | done | |
11339 | fi | |
11340 | ||
11341 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11342 | for ncn_progname in as; do | |
11343 | if test -n "$ncn_target_tool_prefix"; then | |
11344 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11345 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11347 | $as_echo_n "checking for $ac_word... " >&6; } | |
11348 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11349 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11350 | else |
11351 | if test -n "$AS_FOR_TARGET"; then | |
11352 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11353 | else | |
c6b750e1 DJ |
11354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11355 | for as_dir in $PATH | |
11356 | do | |
11357 | IFS=$as_save_IFS | |
11358 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11359 | for ac_exec_ext in '' $ac_executable_extensions; do |
11360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11361 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11363 | break 2 |
11364 | fi | |
11365 | done | |
81ecdfbb RW |
11366 | done |
11367 | IFS=$as_save_IFS | |
c6b750e1 | 11368 | |
2429c060 PB |
11369 | fi |
11370 | fi | |
c6b750e1 | 11371 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11372 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11374 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11375 | else |
81ecdfbb RW |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11377 | $as_echo "no" >&6; } | |
2429c060 PB |
11378 | fi |
11379 | ||
81ecdfbb | 11380 | |
2429c060 PB |
11381 | fi |
11382 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11383 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11384 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11386 | $as_echo_n "checking for $ac_word... " >&6; } | |
11387 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11388 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11389 | else |
11390 | if test -n "$AS_FOR_TARGET"; then | |
11391 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11392 | else | |
c6b750e1 DJ |
11393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11394 | for as_dir in $PATH | |
11395 | do | |
11396 | IFS=$as_save_IFS | |
11397 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11398 | for ac_exec_ext in '' $ac_executable_extensions; do |
11399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11400 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11402 | break 2 |
11403 | fi | |
11404 | done | |
81ecdfbb RW |
11405 | done |
11406 | IFS=$as_save_IFS | |
c6b750e1 | 11407 | |
2429c060 PB |
11408 | fi |
11409 | fi | |
c6b750e1 | 11410 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11411 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11413 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11414 | else |
81ecdfbb RW |
11415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11416 | $as_echo "no" >&6; } | |
2429c060 | 11417 | fi |
c6b750e1 | 11418 | |
81ecdfbb | 11419 | |
2429c060 PB |
11420 | fi |
11421 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11422 | done | |
11423 | fi | |
c6b750e1 | 11424 | |
2429c060 PB |
11425 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11426 | set dummy as | |
11427 | if test $build = $target ; then | |
11428 | AS_FOR_TARGET="$2" | |
11429 | else | |
11430 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11431 | fi | |
d3f5afc4 MS |
11432 | else |
11433 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11434 | fi |
11435 | ||
3a35eeb3 PB |
11436 | else |
11437 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11438 | fi |
11439 | ||
11440 | ||
11441 | ||
11442 | ||
11443 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11444 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11446 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11447 | if test -x $with_build_time_tools/dlltool; then |
11448 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11449 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11451 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11452 | else |
81ecdfbb RW |
11453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11454 | $as_echo "no" >&6; } | |
3a35eeb3 | 11455 | fi |
2429c060 PB |
11456 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11457 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11458 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11459 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11460 | fi |
11461 | fi | |
c6b750e1 | 11462 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11463 | # Extract the first word of "dlltool", so it can be a program name with args. |
11464 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11466 | $as_echo_n "checking for $ac_word... " >&6; } | |
11467 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11468 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11469 | else |
c6b750e1 DJ |
11470 | case $DLLTOOL_FOR_TARGET in |
11471 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11472 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11473 | ;; | |
2429c060 | 11474 | *) |
c6b750e1 DJ |
11475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11476 | for as_dir in $gcc_cv_tool_dirs | |
11477 | do | |
11478 | IFS=$as_save_IFS | |
11479 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11480 | for ac_exec_ext in '' $ac_executable_extensions; do |
11481 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11482 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11484 | break 2 |
11485 | fi | |
11486 | done | |
81ecdfbb RW |
11487 | done |
11488 | IFS=$as_save_IFS | |
c6b750e1 | 11489 | |
2429c060 PB |
11490 | ;; |
11491 | esac | |
11492 | fi | |
c6b750e1 | 11493 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11494 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11496 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11497 | else |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11499 | $as_echo "no" >&6; } | |
2429c060 PB |
11500 | fi |
11501 | ||
81ecdfbb | 11502 | |
2429c060 PB |
11503 | fi |
11504 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11505 | |
11506 | ||
11507 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11508 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11509 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11510 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11511 | fi | |
11512 | ||
11513 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11514 | for ncn_progname in dlltool; do | |
11515 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11516 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11518 | $as_echo_n "checking for $ac_word... " >&6; } | |
11519 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11520 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11521 | else |
11522 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11523 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11524 | else | |
11525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11526 | for as_dir in $PATH | |
11527 | do | |
11528 | IFS=$as_save_IFS | |
11529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11530 | for ac_exec_ext in '' $ac_executable_extensions; do |
11531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11532 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11534 | break 2 |
11535 | fi | |
11536 | done | |
81ecdfbb RW |
11537 | done |
11538 | IFS=$as_save_IFS | |
9a819804 AO |
11539 | |
11540 | fi | |
11541 | fi | |
11542 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11543 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11545 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11546 | else |
81ecdfbb RW |
11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11548 | $as_echo "no" >&6; } | |
9a819804 AO |
11549 | fi |
11550 | ||
81ecdfbb | 11551 | |
9a819804 AO |
11552 | done |
11553 | fi | |
11554 | ||
11555 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11556 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11558 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11559 | if test -x $with_build_time_tools/${ncn_progname}; then |
11560 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11562 | $as_echo "yes" >&6; } | |
2429c060 PB |
11563 | break |
11564 | else | |
81ecdfbb RW |
11565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11566 | $as_echo "no" >&6; } | |
2429c060 PB |
11567 | fi |
11568 | done | |
11569 | fi | |
11570 | ||
11571 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11572 | for ncn_progname in dlltool; do | |
11573 | if test -n "$ncn_target_tool_prefix"; then | |
11574 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11575 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11577 | $as_echo_n "checking for $ac_word... " >&6; } | |
11578 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11579 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11580 | else |
11581 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11582 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11583 | else | |
c6b750e1 DJ |
11584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11585 | for as_dir in $PATH | |
11586 | do | |
11587 | IFS=$as_save_IFS | |
11588 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11589 | for ac_exec_ext in '' $ac_executable_extensions; do |
11590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11591 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11593 | break 2 |
11594 | fi | |
11595 | done | |
81ecdfbb RW |
11596 | done |
11597 | IFS=$as_save_IFS | |
c6b750e1 | 11598 | |
2429c060 PB |
11599 | fi |
11600 | fi | |
c6b750e1 | 11601 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11602 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11604 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11605 | else |
81ecdfbb RW |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11607 | $as_echo "no" >&6; } | |
2429c060 PB |
11608 | fi |
11609 | ||
81ecdfbb | 11610 | |
2429c060 PB |
11611 | fi |
11612 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11613 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11614 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11616 | $as_echo_n "checking for $ac_word... " >&6; } | |
11617 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11618 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11619 | else |
11620 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11621 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11622 | else | |
c6b750e1 DJ |
11623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11624 | for as_dir in $PATH | |
11625 | do | |
11626 | IFS=$as_save_IFS | |
11627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11628 | for ac_exec_ext in '' $ac_executable_extensions; do |
11629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11630 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11632 | break 2 |
11633 | fi | |
11634 | done | |
81ecdfbb RW |
11635 | done |
11636 | IFS=$as_save_IFS | |
c6b750e1 | 11637 | |
2429c060 PB |
11638 | fi |
11639 | fi | |
c6b750e1 | 11640 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11641 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11643 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11644 | else |
81ecdfbb RW |
11645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11646 | $as_echo "no" >&6; } | |
2429c060 | 11647 | fi |
c6b750e1 | 11648 | |
81ecdfbb | 11649 | |
2429c060 PB |
11650 | fi |
11651 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11652 | done | |
11653 | fi | |
c6b750e1 | 11654 | |
2429c060 PB |
11655 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11656 | set dummy dlltool | |
11657 | if test $build = $target ; then | |
11658 | DLLTOOL_FOR_TARGET="$2" | |
11659 | else | |
11660 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11661 | fi | |
d3f5afc4 MS |
11662 | else |
11663 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11664 | fi |
11665 | ||
3a35eeb3 PB |
11666 | else |
11667 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11668 | fi |
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11674 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11676 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11677 | if test -x $with_build_time_tools/ld; then |
11678 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11679 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11681 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11682 | else |
81ecdfbb RW |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11684 | $as_echo "no" >&6; } | |
3a35eeb3 | 11685 | fi |
2429c060 PB |
11686 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11687 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11688 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11689 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11690 | fi |
11691 | fi | |
c6b750e1 | 11692 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11693 | # Extract the first word of "ld", so it can be a program name with args. |
11694 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11696 | $as_echo_n "checking for $ac_word... " >&6; } | |
11697 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11698 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11699 | else |
c6b750e1 DJ |
11700 | case $LD_FOR_TARGET in |
11701 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11702 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11703 | ;; | |
2429c060 | 11704 | *) |
c6b750e1 DJ |
11705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11706 | for as_dir in $gcc_cv_tool_dirs | |
11707 | do | |
11708 | IFS=$as_save_IFS | |
11709 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11710 | for ac_exec_ext in '' $ac_executable_extensions; do |
11711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11712 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11714 | break 2 |
11715 | fi | |
11716 | done | |
81ecdfbb RW |
11717 | done |
11718 | IFS=$as_save_IFS | |
c6b750e1 | 11719 | |
2429c060 PB |
11720 | ;; |
11721 | esac | |
11722 | fi | |
c6b750e1 | 11723 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11724 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11726 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11727 | else |
81ecdfbb RW |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11729 | $as_echo "no" >&6; } | |
2429c060 PB |
11730 | fi |
11731 | ||
81ecdfbb | 11732 | |
2429c060 PB |
11733 | fi |
11734 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11735 | |
11736 | ||
11737 | if test -n "$LD_FOR_TARGET"; then | |
11738 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11739 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11740 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11741 | fi | |
11742 | ||
11743 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11744 | for ncn_progname in ld; do | |
11745 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11746 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11748 | $as_echo_n "checking for $ac_word... " >&6; } | |
11749 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11750 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11751 | else |
11752 | if test -n "$LD_FOR_TARGET"; then | |
11753 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11754 | else | |
11755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11756 | for as_dir in $PATH | |
11757 | do | |
11758 | IFS=$as_save_IFS | |
11759 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11760 | for ac_exec_ext in '' $ac_executable_extensions; do |
11761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11762 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11764 | break 2 |
11765 | fi | |
11766 | done | |
81ecdfbb RW |
11767 | done |
11768 | IFS=$as_save_IFS | |
9a819804 AO |
11769 | |
11770 | fi | |
11771 | fi | |
11772 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11773 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11775 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11776 | else |
81ecdfbb RW |
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11778 | $as_echo "no" >&6; } | |
9a819804 AO |
11779 | fi |
11780 | ||
81ecdfbb | 11781 | |
9a819804 AO |
11782 | done |
11783 | fi | |
11784 | ||
11785 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11786 | for ncn_progname in ld; do |
81ecdfbb RW |
11787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11788 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11789 | if test -x $with_build_time_tools/${ncn_progname}; then |
11790 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11792 | $as_echo "yes" >&6; } | |
2429c060 PB |
11793 | break |
11794 | else | |
81ecdfbb RW |
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11796 | $as_echo "no" >&6; } | |
2429c060 PB |
11797 | fi |
11798 | done | |
11799 | fi | |
11800 | ||
11801 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11802 | for ncn_progname in ld; do | |
11803 | if test -n "$ncn_target_tool_prefix"; then | |
11804 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11805 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11807 | $as_echo_n "checking for $ac_word... " >&6; } | |
11808 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11809 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11810 | else |
11811 | if test -n "$LD_FOR_TARGET"; then | |
11812 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11813 | else | |
c6b750e1 DJ |
11814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11815 | for as_dir in $PATH | |
11816 | do | |
11817 | IFS=$as_save_IFS | |
11818 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11819 | for ac_exec_ext in '' $ac_executable_extensions; do |
11820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11821 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11823 | break 2 |
11824 | fi | |
11825 | done | |
81ecdfbb RW |
11826 | done |
11827 | IFS=$as_save_IFS | |
c6b750e1 | 11828 | |
2429c060 PB |
11829 | fi |
11830 | fi | |
c6b750e1 | 11831 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11832 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11834 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11835 | else |
81ecdfbb RW |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11837 | $as_echo "no" >&6; } | |
2429c060 PB |
11838 | fi |
11839 | ||
81ecdfbb | 11840 | |
2429c060 PB |
11841 | fi |
11842 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11843 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11844 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11846 | $as_echo_n "checking for $ac_word... " >&6; } | |
11847 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11848 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11849 | else |
11850 | if test -n "$LD_FOR_TARGET"; then | |
11851 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11852 | else | |
c6b750e1 DJ |
11853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11854 | for as_dir in $PATH | |
11855 | do | |
11856 | IFS=$as_save_IFS | |
11857 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11858 | for ac_exec_ext in '' $ac_executable_extensions; do |
11859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11860 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11862 | break 2 |
11863 | fi | |
11864 | done | |
81ecdfbb RW |
11865 | done |
11866 | IFS=$as_save_IFS | |
c6b750e1 | 11867 | |
2429c060 PB |
11868 | fi |
11869 | fi | |
c6b750e1 | 11870 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11871 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11873 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11874 | else |
81ecdfbb RW |
11875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11876 | $as_echo "no" >&6; } | |
2429c060 | 11877 | fi |
c6b750e1 | 11878 | |
81ecdfbb | 11879 | |
2429c060 PB |
11880 | fi |
11881 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11882 | done | |
11883 | fi | |
c6b750e1 | 11884 | |
2429c060 PB |
11885 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11886 | set dummy ld | |
11887 | if test $build = $target ; then | |
11888 | LD_FOR_TARGET="$2" | |
11889 | else | |
11890 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11891 | fi | |
d3f5afc4 MS |
11892 | else |
11893 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11894 | fi |
11895 | ||
3a35eeb3 PB |
11896 | else |
11897 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11898 | fi |
11899 | ||
11900 | ||
11901 | ||
11902 | ||
11903 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11904 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11906 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11907 | if test -x $with_build_time_tools/lipo; then |
11908 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11909 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11911 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11912 | else |
81ecdfbb RW |
11913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11914 | $as_echo "no" >&6; } | |
3a35eeb3 | 11915 | fi |
2429c060 PB |
11916 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11917 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11918 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11919 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11920 | fi |
11921 | fi | |
9a819804 AO |
11922 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11923 | # Extract the first word of "lipo", so it can be a program name with args. | |
11924 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11926 | $as_echo_n "checking for $ac_word... " >&6; } | |
11927 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11928 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11929 | else |
11930 | case $LIPO_FOR_TARGET in | |
11931 | [\\/]* | ?:[\\/]*) | |
11932 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11933 | ;; | |
11934 | *) | |
11935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11936 | for as_dir in $gcc_cv_tool_dirs | |
11937 | do | |
11938 | IFS=$as_save_IFS | |
11939 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11940 | for ac_exec_ext in '' $ac_executable_extensions; do |
11941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11942 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11944 | break 2 |
11945 | fi | |
11946 | done | |
81ecdfbb RW |
11947 | done |
11948 | IFS=$as_save_IFS | |
9a819804 AO |
11949 | |
11950 | ;; | |
11951 | esac | |
11952 | fi | |
11953 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11954 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11956 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11957 | else |
81ecdfbb RW |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11959 | $as_echo "no" >&6; } | |
9a819804 AO |
11960 | fi |
11961 | ||
81ecdfbb | 11962 | |
9a819804 AO |
11963 | fi |
11964 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11965 | ||
11966 | ||
11967 | if test -n "$LIPO_FOR_TARGET"; then | |
11968 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11969 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11970 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11971 | fi | |
11972 | ||
11973 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11974 | for ncn_progname in lipo; do | |
11975 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11976 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11978 | $as_echo_n "checking for $ac_word... " >&6; } | |
11979 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11980 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11981 | else |
9a819804 AO |
11982 | if test -n "$LIPO_FOR_TARGET"; then |
11983 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11984 | else | |
11985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11986 | for as_dir in $PATH | |
c6b750e1 DJ |
11987 | do |
11988 | IFS=$as_save_IFS | |
11989 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11990 | for ac_exec_ext in '' $ac_executable_extensions; do |
11991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11992 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11993 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11994 | break 2 |
11995 | fi | |
11996 | done | |
81ecdfbb RW |
11997 | done |
11998 | IFS=$as_save_IFS | |
c6b750e1 | 11999 | |
2429c060 | 12000 | fi |
9a819804 AO |
12001 | fi |
12002 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 12003 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12005 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12006 | else |
81ecdfbb RW |
12007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12008 | $as_echo "no" >&6; } | |
2429c060 PB |
12009 | fi |
12010 | ||
81ecdfbb | 12011 | |
9a819804 | 12012 | done |
2429c060 | 12013 | fi |
9a819804 AO |
12014 | |
12015 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12016 | for ncn_progname in lipo; do |
81ecdfbb RW |
12017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12018 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12019 | if test -x $with_build_time_tools/${ncn_progname}; then |
12020 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12022 | $as_echo "yes" >&6; } | |
2429c060 PB |
12023 | break |
12024 | else | |
81ecdfbb RW |
12025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12026 | $as_echo "no" >&6; } | |
2429c060 PB |
12027 | fi |
12028 | done | |
12029 | fi | |
12030 | ||
12031 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
12032 | for ncn_progname in lipo; do | |
12033 | if test -n "$ncn_target_tool_prefix"; then | |
12034 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12035 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12037 | $as_echo_n "checking for $ac_word... " >&6; } | |
12038 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12039 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
12040 | else |
12041 | if test -n "$LIPO_FOR_TARGET"; then | |
12042 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12043 | else | |
c6b750e1 DJ |
12044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12045 | for as_dir in $PATH | |
12046 | do | |
12047 | IFS=$as_save_IFS | |
12048 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12049 | for ac_exec_ext in '' $ac_executable_extensions; do |
12050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12051 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12053 | break 2 |
12054 | fi | |
12055 | done | |
81ecdfbb RW |
12056 | done |
12057 | IFS=$as_save_IFS | |
c6b750e1 | 12058 | |
2429c060 PB |
12059 | fi |
12060 | fi | |
c6b750e1 | 12061 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12062 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12064 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12065 | else |
81ecdfbb RW |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12067 | $as_echo "no" >&6; } | |
2429c060 PB |
12068 | fi |
12069 | ||
81ecdfbb | 12070 | |
2429c060 PB |
12071 | fi |
12072 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12073 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12074 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12076 | $as_echo_n "checking for $ac_word... " >&6; } | |
12077 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12078 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
12079 | else |
12080 | if test -n "$LIPO_FOR_TARGET"; then | |
12081 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12082 | else | |
c6b750e1 DJ |
12083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12084 | for as_dir in $PATH | |
12085 | do | |
12086 | IFS=$as_save_IFS | |
12087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12088 | for ac_exec_ext in '' $ac_executable_extensions; do |
12089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12090 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12092 | break 2 |
12093 | fi | |
12094 | done | |
81ecdfbb RW |
12095 | done |
12096 | IFS=$as_save_IFS | |
c6b750e1 | 12097 | |
2429c060 PB |
12098 | fi |
12099 | fi | |
c6b750e1 | 12100 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12101 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12103 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12104 | else |
81ecdfbb RW |
12105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12106 | $as_echo "no" >&6; } | |
2429c060 | 12107 | fi |
c6b750e1 | 12108 | |
81ecdfbb | 12109 | |
2429c060 PB |
12110 | fi |
12111 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12112 | done | |
12113 | fi | |
c6b750e1 | 12114 | |
2429c060 PB |
12115 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12116 | set dummy lipo | |
12117 | if test $build = $target ; then | |
12118 | LIPO_FOR_TARGET="$2" | |
12119 | else | |
12120 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12121 | fi | |
d3f5afc4 MS |
12122 | else |
12123 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12124 | fi |
12125 | ||
3a35eeb3 PB |
12126 | else |
12127 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12128 | fi |
12129 | ||
12130 | ||
12131 | ||
12132 | ||
12133 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12134 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12136 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12137 | if test -x $with_build_time_tools/nm; then |
12138 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12139 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12141 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12142 | else |
81ecdfbb RW |
12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12144 | $as_echo "no" >&6; } | |
3a35eeb3 | 12145 | fi |
2429c060 PB |
12146 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12147 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12148 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12149 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12150 | fi |
12151 | fi | |
c6b750e1 | 12152 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12153 | # Extract the first word of "nm", so it can be a program name with args. |
12154 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12156 | $as_echo_n "checking for $ac_word... " >&6; } | |
12157 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12158 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12159 | else |
c6b750e1 DJ |
12160 | case $NM_FOR_TARGET in |
12161 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12162 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12163 | ;; | |
2429c060 | 12164 | *) |
c6b750e1 DJ |
12165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12166 | for as_dir in $gcc_cv_tool_dirs | |
12167 | do | |
12168 | IFS=$as_save_IFS | |
12169 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12170 | for ac_exec_ext in '' $ac_executable_extensions; do |
12171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12172 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12174 | break 2 |
12175 | fi | |
12176 | done | |
81ecdfbb RW |
12177 | done |
12178 | IFS=$as_save_IFS | |
c6b750e1 | 12179 | |
2429c060 PB |
12180 | ;; |
12181 | esac | |
12182 | fi | |
c6b750e1 | 12183 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12184 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12186 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12187 | else |
81ecdfbb RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12189 | $as_echo "no" >&6; } | |
2429c060 PB |
12190 | fi |
12191 | ||
81ecdfbb | 12192 | |
2429c060 PB |
12193 | fi |
12194 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12195 | |
12196 | ||
12197 | if test -n "$NM_FOR_TARGET"; then | |
12198 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12199 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12200 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12201 | fi | |
12202 | ||
12203 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12204 | for ncn_progname in nm; do | |
12205 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12206 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12208 | $as_echo_n "checking for $ac_word... " >&6; } | |
12209 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12210 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12211 | else |
12212 | if test -n "$NM_FOR_TARGET"; then | |
12213 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12214 | else | |
12215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12216 | for as_dir in $PATH | |
12217 | do | |
12218 | IFS=$as_save_IFS | |
12219 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12220 | for ac_exec_ext in '' $ac_executable_extensions; do |
12221 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12222 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12224 | break 2 |
12225 | fi | |
12226 | done | |
81ecdfbb RW |
12227 | done |
12228 | IFS=$as_save_IFS | |
9a819804 AO |
12229 | |
12230 | fi | |
12231 | fi | |
12232 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12233 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12235 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12236 | else |
81ecdfbb RW |
12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12238 | $as_echo "no" >&6; } | |
9a819804 AO |
12239 | fi |
12240 | ||
81ecdfbb | 12241 | |
9a819804 AO |
12242 | done |
12243 | fi | |
12244 | ||
12245 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12246 | for ncn_progname in nm; do |
81ecdfbb RW |
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12248 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12249 | if test -x $with_build_time_tools/${ncn_progname}; then |
12250 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12252 | $as_echo "yes" >&6; } | |
2429c060 PB |
12253 | break |
12254 | else | |
81ecdfbb RW |
12255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12256 | $as_echo "no" >&6; } | |
2429c060 PB |
12257 | fi |
12258 | done | |
12259 | fi | |
12260 | ||
12261 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12262 | for ncn_progname in nm; do | |
12263 | if test -n "$ncn_target_tool_prefix"; then | |
12264 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12265 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12267 | $as_echo_n "checking for $ac_word... " >&6; } | |
12268 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12269 | $as_echo_n "(cached) " >&6 | |
859789af | 12270 | else |
55db4b87 PB |
12271 | if test -n "$NM_FOR_TARGET"; then |
12272 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12273 | else |
c6b750e1 DJ |
12274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12275 | for as_dir in $PATH | |
12276 | do | |
12277 | IFS=$as_save_IFS | |
12278 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12279 | for ac_exec_ext in '' $ac_executable_extensions; do |
12280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12281 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12283 | break 2 |
12284 | fi | |
12285 | done | |
81ecdfbb RW |
12286 | done |
12287 | IFS=$as_save_IFS | |
c6b750e1 | 12288 | |
859789af AC |
12289 | fi |
12290 | fi | |
c6b750e1 | 12291 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12292 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12294 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12295 | else |
81ecdfbb RW |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12297 | $as_echo "no" >&6; } | |
859789af AC |
12298 | fi |
12299 | ||
81ecdfbb | 12300 | |
2429c060 PB |
12301 | fi |
12302 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12303 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12304 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12306 | $as_echo_n "checking for $ac_word... " >&6; } | |
12307 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12308 | $as_echo_n "(cached) " >&6 | |
859789af | 12309 | else |
05cbd757 PB |
12310 | if test -n "$NM_FOR_TARGET"; then |
12311 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12312 | else |
c6b750e1 DJ |
12313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12314 | for as_dir in $PATH | |
12315 | do | |
12316 | IFS=$as_save_IFS | |
12317 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12318 | for ac_exec_ext in '' $ac_executable_extensions; do |
12319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12320 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12321 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12322 | break 2 |
12323 | fi | |
12324 | done | |
81ecdfbb RW |
12325 | done |
12326 | IFS=$as_save_IFS | |
c6b750e1 | 12327 | |
859789af AC |
12328 | fi |
12329 | fi | |
c6b750e1 | 12330 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12331 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12333 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12334 | else |
81ecdfbb RW |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12336 | $as_echo "no" >&6; } | |
859789af | 12337 | fi |
c6b750e1 | 12338 | |
81ecdfbb | 12339 | |
2429c060 PB |
12340 | fi |
12341 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12342 | done | |
12343 | fi | |
c6b750e1 | 12344 | |
05cbd757 PB |
12345 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12346 | set dummy nm | |
12347 | if test $build = $target ; then | |
12348 | NM_FOR_TARGET="$2" | |
859789af | 12349 | else |
05cbd757 | 12350 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12351 | fi |
d3f5afc4 MS |
12352 | else |
12353 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12354 | fi |
12355 | ||
3a35eeb3 PB |
12356 | else |
12357 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12358 | fi |
12359 | ||
12360 | ||
12361 | ||
12362 | ||
12363 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12364 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12366 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12367 | if test -x $with_build_time_tools/objdump; then |
12368 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12369 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12371 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12372 | else |
81ecdfbb RW |
12373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12374 | $as_echo "no" >&6; } | |
3a35eeb3 | 12375 | fi |
2429c060 PB |
12376 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12377 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12378 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12379 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12380 | fi |
12381 | fi | |
c6b750e1 | 12382 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12383 | # Extract the first word of "objdump", so it can be a program name with args. |
12384 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12386 | $as_echo_n "checking for $ac_word... " >&6; } | |
12387 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12388 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12389 | else |
c6b750e1 DJ |
12390 | case $OBJDUMP_FOR_TARGET in |
12391 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12392 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12393 | ;; | |
2429c060 | 12394 | *) |
c6b750e1 DJ |
12395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12396 | for as_dir in $gcc_cv_tool_dirs | |
12397 | do | |
12398 | IFS=$as_save_IFS | |
12399 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12400 | for ac_exec_ext in '' $ac_executable_extensions; do |
12401 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12402 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12404 | break 2 |
12405 | fi | |
12406 | done | |
81ecdfbb RW |
12407 | done |
12408 | IFS=$as_save_IFS | |
c6b750e1 | 12409 | |
2429c060 PB |
12410 | ;; |
12411 | esac | |
12412 | fi | |
c6b750e1 | 12413 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12414 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12416 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12417 | else |
81ecdfbb RW |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12419 | $as_echo "no" >&6; } | |
2429c060 PB |
12420 | fi |
12421 | ||
81ecdfbb | 12422 | |
2429c060 PB |
12423 | fi |
12424 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12425 | |
12426 | ||
12427 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12428 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12429 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12430 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12431 | fi | |
12432 | ||
12433 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12434 | for ncn_progname in objdump; do | |
12435 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12436 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12438 | $as_echo_n "checking for $ac_word... " >&6; } | |
12439 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12440 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12441 | else |
12442 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12443 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12444 | else | |
12445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12446 | for as_dir in $PATH | |
12447 | do | |
12448 | IFS=$as_save_IFS | |
12449 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12450 | for ac_exec_ext in '' $ac_executable_extensions; do |
12451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12452 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12454 | break 2 |
12455 | fi | |
12456 | done | |
81ecdfbb RW |
12457 | done |
12458 | IFS=$as_save_IFS | |
9a819804 AO |
12459 | |
12460 | fi | |
12461 | fi | |
12462 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12463 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12465 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12466 | else |
81ecdfbb RW |
12467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12468 | $as_echo "no" >&6; } | |
9a819804 AO |
12469 | fi |
12470 | ||
81ecdfbb | 12471 | |
9a819804 AO |
12472 | done |
12473 | fi | |
12474 | ||
12475 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12476 | for ncn_progname in objdump; do |
81ecdfbb RW |
12477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12478 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12479 | if test -x $with_build_time_tools/${ncn_progname}; then |
12480 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12482 | $as_echo "yes" >&6; } | |
2429c060 PB |
12483 | break |
12484 | else | |
81ecdfbb RW |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12486 | $as_echo "no" >&6; } | |
2429c060 PB |
12487 | fi |
12488 | done | |
12489 | fi | |
12490 | ||
12491 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12492 | for ncn_progname in objdump; do | |
12493 | if test -n "$ncn_target_tool_prefix"; then | |
12494 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12495 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12497 | $as_echo_n "checking for $ac_word... " >&6; } | |
12498 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12499 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12500 | else |
12501 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12502 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12503 | else | |
c6b750e1 DJ |
12504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12505 | for as_dir in $PATH | |
12506 | do | |
12507 | IFS=$as_save_IFS | |
12508 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12509 | for ac_exec_ext in '' $ac_executable_extensions; do |
12510 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12511 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12513 | break 2 |
12514 | fi | |
12515 | done | |
81ecdfbb RW |
12516 | done |
12517 | IFS=$as_save_IFS | |
c6b750e1 | 12518 | |
5ae72758 DJ |
12519 | fi |
12520 | fi | |
c6b750e1 | 12521 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12522 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12524 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12525 | else |
81ecdfbb RW |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12527 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12528 | fi |
12529 | ||
81ecdfbb | 12530 | |
2429c060 PB |
12531 | fi |
12532 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12533 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12534 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12536 | $as_echo_n "checking for $ac_word... " >&6; } | |
12537 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12538 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12539 | else |
12540 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12541 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12542 | else | |
c6b750e1 DJ |
12543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12544 | for as_dir in $PATH | |
12545 | do | |
12546 | IFS=$as_save_IFS | |
12547 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12548 | for ac_exec_ext in '' $ac_executable_extensions; do |
12549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12550 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12552 | break 2 |
12553 | fi | |
12554 | done | |
81ecdfbb RW |
12555 | done |
12556 | IFS=$as_save_IFS | |
c6b750e1 | 12557 | |
5ae72758 DJ |
12558 | fi |
12559 | fi | |
c6b750e1 | 12560 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12561 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12563 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12564 | else |
81ecdfbb RW |
12565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12566 | $as_echo "no" >&6; } | |
5ae72758 | 12567 | fi |
c6b750e1 | 12568 | |
81ecdfbb | 12569 | |
2429c060 PB |
12570 | fi |
12571 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12572 | done | |
12573 | fi | |
c6b750e1 | 12574 | |
5ae72758 DJ |
12575 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12576 | set dummy objdump | |
12577 | if test $build = $target ; then | |
12578 | OBJDUMP_FOR_TARGET="$2" | |
12579 | else | |
12580 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12581 | fi | |
d3f5afc4 MS |
12582 | else |
12583 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12584 | fi |
12585 | ||
3a35eeb3 PB |
12586 | else |
12587 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12588 | fi |
12589 | ||
12590 | ||
12591 | ||
12592 | ||
12593 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12594 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12596 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12597 | if test -x $with_build_time_tools/ranlib; then |
12598 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12599 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12601 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12602 | else |
81ecdfbb RW |
12603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12604 | $as_echo "no" >&6; } | |
3a35eeb3 | 12605 | fi |
2429c060 PB |
12606 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12607 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12608 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12609 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12610 | fi |
12611 | fi | |
c6b750e1 | 12612 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12613 | # Extract the first word of "ranlib", so it can be a program name with args. |
12614 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12616 | $as_echo_n "checking for $ac_word... " >&6; } | |
12617 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12618 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12619 | else |
c6b750e1 DJ |
12620 | case $RANLIB_FOR_TARGET in |
12621 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12622 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12623 | ;; | |
2429c060 | 12624 | *) |
c6b750e1 DJ |
12625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12626 | for as_dir in $gcc_cv_tool_dirs | |
12627 | do | |
12628 | IFS=$as_save_IFS | |
12629 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12630 | for ac_exec_ext in '' $ac_executable_extensions; do |
12631 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12632 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12633 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12634 | break 2 |
12635 | fi | |
12636 | done | |
81ecdfbb RW |
12637 | done |
12638 | IFS=$as_save_IFS | |
c6b750e1 | 12639 | |
2429c060 PB |
12640 | ;; |
12641 | esac | |
12642 | fi | |
c6b750e1 | 12643 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12644 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12646 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12647 | else |
81ecdfbb RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12649 | $as_echo "no" >&6; } | |
2429c060 PB |
12650 | fi |
12651 | ||
81ecdfbb | 12652 | |
2429c060 PB |
12653 | fi |
12654 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12655 | |
12656 | ||
12657 | if test -n "$RANLIB_FOR_TARGET"; then | |
12658 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12659 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12660 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12661 | fi | |
12662 | ||
12663 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12664 | for ncn_progname in ranlib; do | |
12665 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12666 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12668 | $as_echo_n "checking for $ac_word... " >&6; } | |
12669 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12670 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12671 | else |
12672 | if test -n "$RANLIB_FOR_TARGET"; then | |
12673 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12674 | else | |
12675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12676 | for as_dir in $PATH | |
12677 | do | |
12678 | IFS=$as_save_IFS | |
12679 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12680 | for ac_exec_ext in '' $ac_executable_extensions; do |
12681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12682 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12684 | break 2 |
12685 | fi | |
12686 | done | |
81ecdfbb RW |
12687 | done |
12688 | IFS=$as_save_IFS | |
9a819804 AO |
12689 | |
12690 | fi | |
12691 | fi | |
12692 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12693 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12695 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12696 | else |
81ecdfbb RW |
12697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12698 | $as_echo "no" >&6; } | |
9a819804 AO |
12699 | fi |
12700 | ||
81ecdfbb | 12701 | |
9a819804 AO |
12702 | done |
12703 | fi | |
12704 | ||
12705 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12706 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12708 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12709 | if test -x $with_build_time_tools/${ncn_progname}; then |
12710 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12712 | $as_echo "yes" >&6; } | |
2429c060 PB |
12713 | break |
12714 | else | |
81ecdfbb RW |
12715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12716 | $as_echo "no" >&6; } | |
2429c060 PB |
12717 | fi |
12718 | done | |
12719 | fi | |
12720 | ||
12721 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12722 | for ncn_progname in ranlib; do | |
12723 | if test -n "$ncn_target_tool_prefix"; then | |
12724 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12725 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12727 | $as_echo_n "checking for $ac_word... " >&6; } | |
12728 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12729 | $as_echo_n "(cached) " >&6 | |
859789af | 12730 | else |
55db4b87 PB |
12731 | if test -n "$RANLIB_FOR_TARGET"; then |
12732 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12733 | else |
c6b750e1 DJ |
12734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12735 | for as_dir in $PATH | |
12736 | do | |
12737 | IFS=$as_save_IFS | |
12738 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12739 | for ac_exec_ext in '' $ac_executable_extensions; do |
12740 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12741 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12743 | break 2 |
12744 | fi | |
12745 | done | |
81ecdfbb RW |
12746 | done |
12747 | IFS=$as_save_IFS | |
c6b750e1 | 12748 | |
859789af AC |
12749 | fi |
12750 | fi | |
c6b750e1 | 12751 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12752 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12754 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12755 | else |
81ecdfbb RW |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12757 | $as_echo "no" >&6; } | |
859789af AC |
12758 | fi |
12759 | ||
81ecdfbb | 12760 | |
2429c060 PB |
12761 | fi |
12762 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12763 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12764 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12766 | $as_echo_n "checking for $ac_word... " >&6; } | |
12767 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12768 | $as_echo_n "(cached) " >&6 | |
859789af | 12769 | else |
05cbd757 PB |
12770 | if test -n "$RANLIB_FOR_TARGET"; then |
12771 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12772 | else |
c6b750e1 DJ |
12773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12774 | for as_dir in $PATH | |
12775 | do | |
12776 | IFS=$as_save_IFS | |
12777 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12778 | for ac_exec_ext in '' $ac_executable_extensions; do |
12779 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12780 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12782 | break 2 |
12783 | fi | |
12784 | done | |
81ecdfbb RW |
12785 | done |
12786 | IFS=$as_save_IFS | |
c6b750e1 | 12787 | |
859789af AC |
12788 | fi |
12789 | fi | |
c6b750e1 | 12790 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12791 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12793 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12794 | else |
81ecdfbb RW |
12795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12796 | $as_echo "no" >&6; } | |
859789af | 12797 | fi |
c6b750e1 | 12798 | |
81ecdfbb | 12799 | |
2429c060 PB |
12800 | fi |
12801 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12802 | done | |
12803 | fi | |
c6b750e1 | 12804 | |
2429c060 PB |
12805 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12806 | set dummy ranlib | |
12807 | if test $build = $target ; then | |
12808 | RANLIB_FOR_TARGET="$2" | |
12809 | else | |
12810 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12811 | fi |
d3f5afc4 MS |
12812 | else |
12813 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12814 | fi |
05cbd757 | 12815 | |
3a35eeb3 PB |
12816 | else |
12817 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12818 | fi |
12819 | ||
2429c060 PB |
12820 | |
12821 | ||
12822 | ||
b121d7d4 DD |
12823 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
12824 | if test -n "$with_build_time_tools"; then | |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
12826 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
12827 | if test -x $with_build_time_tools/readelf; then | |
12828 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
12829 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
12831 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
12832 | else | |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12834 | $as_echo "no" >&6; } | |
12835 | fi | |
12836 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12837 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
12838 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
12839 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12840 | fi | |
12841 | fi | |
12842 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12843 | # Extract the first word of "readelf", so it can be a program name with args. | |
12844 | set dummy readelf; ac_word=$2 | |
12845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12846 | $as_echo_n "checking for $ac_word... " >&6; } | |
12847 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
12848 | $as_echo_n "(cached) " >&6 | |
12849 | else | |
12850 | case $READELF_FOR_TARGET in | |
12851 | [\\/]* | ?:[\\/]*) | |
12852 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
12853 | ;; | |
12854 | *) | |
12855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12856 | for as_dir in $gcc_cv_tool_dirs | |
12857 | do | |
12858 | IFS=$as_save_IFS | |
12859 | test -z "$as_dir" && as_dir=. | |
12860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12861 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12862 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12863 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12864 | break 2 | |
12865 | fi | |
12866 | done | |
12867 | done | |
12868 | IFS=$as_save_IFS | |
12869 | ||
12870 | ;; | |
12871 | esac | |
12872 | fi | |
12873 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
12874 | if test -n "$READELF_FOR_TARGET"; then | |
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12876 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12877 | else | |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12879 | $as_echo "no" >&6; } | |
12880 | fi | |
12881 | ||
12882 | ||
12883 | fi | |
12884 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
12885 | ||
12886 | ||
12887 | if test -n "$READELF_FOR_TARGET"; then | |
12888 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
12889 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12890 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12891 | fi | |
12892 | ||
12893 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12894 | for ncn_progname in readelf; do | |
12895 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12896 | set dummy ${ncn_progname}; ac_word=$2 | |
12897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12898 | $as_echo_n "checking for $ac_word... " >&6; } | |
12899 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12900 | $as_echo_n "(cached) " >&6 | |
12901 | else | |
12902 | if test -n "$READELF_FOR_TARGET"; then | |
12903 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12904 | else | |
12905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12906 | for as_dir in $PATH | |
12907 | do | |
12908 | IFS=$as_save_IFS | |
12909 | test -z "$as_dir" && as_dir=. | |
12910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12911 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12912 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
12913 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12914 | break 2 | |
12915 | fi | |
12916 | done | |
12917 | done | |
12918 | IFS=$as_save_IFS | |
12919 | ||
12920 | fi | |
12921 | fi | |
12922 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12923 | if test -n "$READELF_FOR_TARGET"; then | |
12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12925 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12926 | else | |
12927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12928 | $as_echo "no" >&6; } | |
12929 | fi | |
12930 | ||
12931 | ||
12932 | done | |
12933 | fi | |
12934 | ||
12935 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12936 | for ncn_progname in readelf; do | |
12937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12938 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12939 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12940 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12942 | $as_echo "yes" >&6; } | |
12943 | break | |
12944 | else | |
12945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12946 | $as_echo "no" >&6; } | |
12947 | fi | |
12948 | done | |
12949 | fi | |
12950 | ||
12951 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
12952 | for ncn_progname in readelf; do | |
12953 | if test -n "$ncn_target_tool_prefix"; then | |
12954 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12955 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12957 | $as_echo_n "checking for $ac_word... " >&6; } | |
12958 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12959 | $as_echo_n "(cached) " >&6 | |
12960 | else | |
12961 | if test -n "$READELF_FOR_TARGET"; then | |
12962 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
12963 | else | |
12964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12965 | for as_dir in $PATH | |
12966 | do | |
12967 | IFS=$as_save_IFS | |
12968 | test -z "$as_dir" && as_dir=. | |
12969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12971 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12973 | break 2 | |
12974 | fi | |
12975 | done | |
12976 | done | |
12977 | IFS=$as_save_IFS | |
12978 | ||
12979 | fi | |
12980 | fi | |
12981 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
12982 | if test -n "$READELF_FOR_TARGET"; then | |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
12984 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
12985 | else | |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12987 | $as_echo "no" >&6; } | |
12988 | fi | |
12989 | ||
12990 | ||
12991 | fi | |
12992 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
12993 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12994 | set dummy ${ncn_progname}; ac_word=$2 | |
12995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12996 | $as_echo_n "checking for $ac_word... " >&6; } | |
12997 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
12998 | $as_echo_n "(cached) " >&6 | |
12999 | else | |
13000 | if test -n "$READELF_FOR_TARGET"; then | |
13001 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13002 | else | |
13003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13004 | for as_dir in $PATH | |
13005 | do | |
13006 | IFS=$as_save_IFS | |
13007 | test -z "$as_dir" && as_dir=. | |
13008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13010 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13011 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13012 | break 2 | |
13013 | fi | |
13014 | done | |
13015 | done | |
13016 | IFS=$as_save_IFS | |
13017 | ||
13018 | fi | |
13019 | fi | |
13020 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13021 | if test -n "$READELF_FOR_TARGET"; then | |
13022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13023 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13024 | else | |
13025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13026 | $as_echo "no" >&6; } | |
13027 | fi | |
13028 | ||
13029 | ||
13030 | fi | |
13031 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13032 | done | |
13033 | fi | |
13034 | ||
13035 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13036 | set dummy readelf | |
13037 | if test $build = $target ; then | |
13038 | READELF_FOR_TARGET="$2" | |
13039 | else | |
13040 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13041 | fi | |
13042 | else | |
13043 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13044 | fi | |
13045 | ||
13046 | else | |
13047 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13048 | fi | |
13049 | ||
13050 | ||
13051 | ||
13052 | ||
2429c060 PB |
13053 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13054 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13056 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13057 | if test -x $with_build_time_tools/strip; then |
13058 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13059 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13061 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13062 | else |
81ecdfbb RW |
13063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13064 | $as_echo "no" >&6; } | |
3a35eeb3 | 13065 | fi |
2429c060 PB |
13066 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13067 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13068 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13069 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13070 | fi |
13071 | fi | |
c6b750e1 | 13072 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13073 | # Extract the first word of "strip", so it can be a program name with args. |
13074 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13076 | $as_echo_n "checking for $ac_word... " >&6; } | |
13077 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13078 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13079 | else |
c6b750e1 DJ |
13080 | case $STRIP_FOR_TARGET in |
13081 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13082 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13083 | ;; | |
2429c060 | 13084 | *) |
c6b750e1 DJ |
13085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13086 | for as_dir in $gcc_cv_tool_dirs | |
13087 | do | |
13088 | IFS=$as_save_IFS | |
13089 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13090 | for ac_exec_ext in '' $ac_executable_extensions; do |
13091 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13092 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13094 | break 2 |
13095 | fi | |
13096 | done | |
81ecdfbb RW |
13097 | done |
13098 | IFS=$as_save_IFS | |
c6b750e1 | 13099 | |
2429c060 PB |
13100 | ;; |
13101 | esac | |
13102 | fi | |
c6b750e1 | 13103 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13104 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13106 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13107 | else |
81ecdfbb RW |
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13109 | $as_echo "no" >&6; } | |
2429c060 PB |
13110 | fi |
13111 | ||
81ecdfbb | 13112 | |
2429c060 PB |
13113 | fi |
13114 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13115 | |
13116 | ||
13117 | if test -n "$STRIP_FOR_TARGET"; then | |
13118 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13119 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13120 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13121 | fi | |
13122 | ||
13123 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13124 | for ncn_progname in strip; do | |
13125 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13126 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13128 | $as_echo_n "checking for $ac_word... " >&6; } | |
13129 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13130 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13131 | else |
13132 | if test -n "$STRIP_FOR_TARGET"; then | |
13133 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13134 | else | |
13135 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13136 | for as_dir in $PATH | |
13137 | do | |
13138 | IFS=$as_save_IFS | |
13139 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13140 | for ac_exec_ext in '' $ac_executable_extensions; do |
13141 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13142 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13143 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13144 | break 2 |
13145 | fi | |
13146 | done | |
81ecdfbb RW |
13147 | done |
13148 | IFS=$as_save_IFS | |
9a819804 AO |
13149 | |
13150 | fi | |
13151 | fi | |
13152 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13153 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13155 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13156 | else |
81ecdfbb RW |
13157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13158 | $as_echo "no" >&6; } | |
9a819804 AO |
13159 | fi |
13160 | ||
81ecdfbb | 13161 | |
9a819804 AO |
13162 | done |
13163 | fi | |
13164 | ||
13165 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13166 | for ncn_progname in strip; do |
81ecdfbb RW |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13168 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13169 | if test -x $with_build_time_tools/${ncn_progname}; then |
13170 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13172 | $as_echo "yes" >&6; } | |
2429c060 PB |
13173 | break |
13174 | else | |
81ecdfbb RW |
13175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13176 | $as_echo "no" >&6; } | |
2429c060 PB |
13177 | fi |
13178 | done | |
13179 | fi | |
13180 | ||
13181 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13182 | for ncn_progname in strip; do | |
13183 | if test -n "$ncn_target_tool_prefix"; then | |
13184 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13185 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13187 | $as_echo_n "checking for $ac_word... " >&6; } | |
13188 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13189 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13190 | else |
13191 | if test -n "$STRIP_FOR_TARGET"; then | |
13192 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13193 | else |
13194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13195 | for as_dir in $PATH | |
13196 | do | |
13197 | IFS=$as_save_IFS | |
13198 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13199 | for ac_exec_ext in '' $ac_executable_extensions; do |
13200 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13201 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13202 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13203 | break 2 |
13204 | fi | |
13205 | done | |
81ecdfbb RW |
13206 | done |
13207 | IFS=$as_save_IFS | |
c6b750e1 | 13208 | |
7e0f7140 GK |
13209 | fi |
13210 | fi | |
c6b750e1 | 13211 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13212 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13214 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13215 | else |
81ecdfbb RW |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13217 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13218 | fi |
13219 | ||
81ecdfbb | 13220 | |
2429c060 PB |
13221 | fi |
13222 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13223 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13224 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13225 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13226 | $as_echo_n "checking for $ac_word... " >&6; } | |
13227 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13228 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13229 | else |
13230 | if test -n "$STRIP_FOR_TARGET"; then | |
13231 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13232 | else | |
c6b750e1 DJ |
13233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13234 | for as_dir in $PATH | |
13235 | do | |
13236 | IFS=$as_save_IFS | |
13237 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13238 | for ac_exec_ext in '' $ac_executable_extensions; do |
13239 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13240 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13241 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13242 | break 2 |
13243 | fi | |
13244 | done | |
81ecdfbb RW |
13245 | done |
13246 | IFS=$as_save_IFS | |
c6b750e1 | 13247 | |
7e0f7140 GK |
13248 | fi |
13249 | fi | |
c6b750e1 | 13250 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13251 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13253 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13254 | else |
81ecdfbb RW |
13255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13256 | $as_echo "no" >&6; } | |
7e0f7140 | 13257 | fi |
c6b750e1 | 13258 | |
81ecdfbb | 13259 | |
2429c060 PB |
13260 | fi |
13261 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13262 | done | |
13263 | fi | |
c6b750e1 | 13264 | |
7e0f7140 GK |
13265 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13266 | set dummy strip | |
13267 | if test $build = $target ; then | |
13268 | STRIP_FOR_TARGET="$2" | |
13269 | else | |
13270 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13271 | fi | |
d3f5afc4 MS |
13272 | else |
13273 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13274 | fi |
13275 | ||
3a35eeb3 PB |
13276 | else |
13277 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13278 | fi |
13279 | ||
13280 | ||
13281 | ||
13282 | ||
13283 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13284 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13286 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13287 | if test -x $with_build_time_tools/windres; then |
13288 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13289 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13291 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13292 | else |
81ecdfbb RW |
13293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13294 | $as_echo "no" >&6; } | |
3a35eeb3 | 13295 | fi |
2429c060 PB |
13296 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13297 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13298 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13299 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13300 | fi |
13301 | fi | |
c6b750e1 | 13302 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13303 | # Extract the first word of "windres", so it can be a program name with args. |
13304 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13306 | $as_echo_n "checking for $ac_word... " >&6; } | |
13307 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13308 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13309 | else |
c6b750e1 DJ |
13310 | case $WINDRES_FOR_TARGET in |
13311 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13312 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13313 | ;; | |
2429c060 | 13314 | *) |
c6b750e1 DJ |
13315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13316 | for as_dir in $gcc_cv_tool_dirs | |
13317 | do | |
13318 | IFS=$as_save_IFS | |
13319 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13320 | for ac_exec_ext in '' $ac_executable_extensions; do |
13321 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13322 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13324 | break 2 |
13325 | fi | |
13326 | done | |
81ecdfbb RW |
13327 | done |
13328 | IFS=$as_save_IFS | |
c6b750e1 | 13329 | |
2429c060 PB |
13330 | ;; |
13331 | esac | |
13332 | fi | |
c6b750e1 | 13333 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13334 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13336 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13337 | else |
81ecdfbb RW |
13338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13339 | $as_echo "no" >&6; } | |
2429c060 PB |
13340 | fi |
13341 | ||
81ecdfbb | 13342 | |
2429c060 PB |
13343 | fi |
13344 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13345 | |
13346 | ||
13347 | if test -n "$WINDRES_FOR_TARGET"; then | |
13348 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13349 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13350 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13351 | fi | |
13352 | ||
13353 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13354 | for ncn_progname in windres; do | |
13355 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13356 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13358 | $as_echo_n "checking for $ac_word... " >&6; } | |
13359 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13360 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13361 | else |
13362 | if test -n "$WINDRES_FOR_TARGET"; then | |
13363 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13364 | else | |
13365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13366 | for as_dir in $PATH | |
13367 | do | |
13368 | IFS=$as_save_IFS | |
13369 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13370 | for ac_exec_ext in '' $ac_executable_extensions; do |
13371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13372 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13374 | break 2 |
13375 | fi | |
13376 | done | |
81ecdfbb RW |
13377 | done |
13378 | IFS=$as_save_IFS | |
9a819804 AO |
13379 | |
13380 | fi | |
13381 | fi | |
13382 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13383 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13385 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13386 | else |
81ecdfbb RW |
13387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13388 | $as_echo "no" >&6; } | |
9a819804 AO |
13389 | fi |
13390 | ||
81ecdfbb | 13391 | |
9a819804 AO |
13392 | done |
13393 | fi | |
13394 | ||
13395 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13396 | for ncn_progname in windres; do |
81ecdfbb RW |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13398 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13399 | if test -x $with_build_time_tools/${ncn_progname}; then |
13400 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13402 | $as_echo "yes" >&6; } | |
2429c060 PB |
13403 | break |
13404 | else | |
81ecdfbb RW |
13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13406 | $as_echo "no" >&6; } | |
2429c060 PB |
13407 | fi |
13408 | done | |
13409 | fi | |
13410 | ||
13411 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13412 | for ncn_progname in windres; do | |
13413 | if test -n "$ncn_target_tool_prefix"; then | |
13414 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13415 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13417 | $as_echo_n "checking for $ac_word... " >&6; } | |
13418 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13419 | $as_echo_n "(cached) " >&6 | |
859789af | 13420 | else |
55db4b87 PB |
13421 | if test -n "$WINDRES_FOR_TARGET"; then |
13422 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13423 | else |
c6b750e1 DJ |
13424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13425 | for as_dir in $PATH | |
13426 | do | |
13427 | IFS=$as_save_IFS | |
13428 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13429 | for ac_exec_ext in '' $ac_executable_extensions; do |
13430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13431 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13433 | break 2 |
13434 | fi | |
13435 | done | |
81ecdfbb RW |
13436 | done |
13437 | IFS=$as_save_IFS | |
c6b750e1 | 13438 | |
859789af AC |
13439 | fi |
13440 | fi | |
c6b750e1 | 13441 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13442 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13444 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13445 | else |
81ecdfbb RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13447 | $as_echo "no" >&6; } | |
859789af AC |
13448 | fi |
13449 | ||
81ecdfbb | 13450 | |
2429c060 PB |
13451 | fi |
13452 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13453 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13454 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13456 | $as_echo_n "checking for $ac_word... " >&6; } | |
13457 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13458 | $as_echo_n "(cached) " >&6 | |
859789af | 13459 | else |
05cbd757 PB |
13460 | if test -n "$WINDRES_FOR_TARGET"; then |
13461 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13462 | else |
c6b750e1 DJ |
13463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13464 | for as_dir in $PATH | |
13465 | do | |
13466 | IFS=$as_save_IFS | |
13467 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13468 | for ac_exec_ext in '' $ac_executable_extensions; do |
13469 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13470 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13471 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13472 | break 2 |
13473 | fi | |
13474 | done | |
81ecdfbb RW |
13475 | done |
13476 | IFS=$as_save_IFS | |
c6b750e1 | 13477 | |
859789af AC |
13478 | fi |
13479 | fi | |
c6b750e1 | 13480 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13481 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13483 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13484 | else |
81ecdfbb RW |
13485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13486 | $as_echo "no" >&6; } | |
859789af | 13487 | fi |
c6b750e1 | 13488 | |
81ecdfbb | 13489 | |
2429c060 PB |
13490 | fi |
13491 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13492 | done | |
13493 | fi | |
c6b750e1 | 13494 | |
05cbd757 PB |
13495 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13496 | set dummy windres | |
13497 | if test $build = $target ; then | |
13498 | WINDRES_FOR_TARGET="$2" | |
859789af | 13499 | else |
05cbd757 | 13500 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13501 | fi |
d3f5afc4 MS |
13502 | else |
13503 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13504 | fi |
13505 | ||
3a35eeb3 PB |
13506 | else |
13507 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13508 | fi |
13509 | ||
852e5f18 | 13510 | |
0c24b341 NC |
13511 | |
13512 | ||
13513 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13514 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13516 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13517 | if test -x $with_build_time_tools/windmc; then |
13518 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13519 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13521 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13522 | else |
81ecdfbb RW |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13524 | $as_echo "no" >&6; } | |
0c24b341 NC |
13525 | fi |
13526 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13527 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13528 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13529 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13530 | fi | |
13531 | fi | |
13532 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13533 | # Extract the first word of "windmc", so it can be a program name with args. | |
13534 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13536 | $as_echo_n "checking for $ac_word... " >&6; } | |
13537 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13538 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13539 | else |
13540 | case $WINDMC_FOR_TARGET in | |
13541 | [\\/]* | ?:[\\/]*) | |
13542 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13543 | ;; | |
13544 | *) | |
13545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13546 | for as_dir in $gcc_cv_tool_dirs | |
13547 | do | |
13548 | IFS=$as_save_IFS | |
13549 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13550 | for ac_exec_ext in '' $ac_executable_extensions; do |
13551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13552 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13554 | break 2 |
13555 | fi | |
13556 | done | |
81ecdfbb RW |
13557 | done |
13558 | IFS=$as_save_IFS | |
0c24b341 NC |
13559 | |
13560 | ;; | |
13561 | esac | |
13562 | fi | |
13563 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13564 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13566 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13567 | else |
81ecdfbb RW |
13568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13569 | $as_echo "no" >&6; } | |
0c24b341 NC |
13570 | fi |
13571 | ||
81ecdfbb | 13572 | |
0c24b341 NC |
13573 | fi |
13574 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13575 | ||
13576 | ||
13577 | if test -n "$WINDMC_FOR_TARGET"; then | |
13578 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13579 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13580 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13581 | fi | |
13582 | ||
13583 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13584 | for ncn_progname in windmc; do | |
13585 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13586 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13588 | $as_echo_n "checking for $ac_word... " >&6; } | |
13589 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13590 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13591 | else |
13592 | if test -n "$WINDMC_FOR_TARGET"; then | |
13593 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13594 | else | |
13595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13596 | for as_dir in $PATH | |
13597 | do | |
13598 | IFS=$as_save_IFS | |
13599 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13600 | for ac_exec_ext in '' $ac_executable_extensions; do |
13601 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13602 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13604 | break 2 |
13605 | fi | |
13606 | done | |
81ecdfbb RW |
13607 | done |
13608 | IFS=$as_save_IFS | |
0c24b341 NC |
13609 | |
13610 | fi | |
13611 | fi | |
13612 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13613 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13615 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13616 | else |
81ecdfbb RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13618 | $as_echo "no" >&6; } | |
0c24b341 NC |
13619 | fi |
13620 | ||
81ecdfbb | 13621 | |
0c24b341 NC |
13622 | done |
13623 | fi | |
13624 | ||
13625 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13626 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13628 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13629 | if test -x $with_build_time_tools/${ncn_progname}; then |
13630 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13632 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13633 | break |
13634 | else | |
81ecdfbb RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13636 | $as_echo "no" >&6; } | |
0c24b341 NC |
13637 | fi |
13638 | done | |
13639 | fi | |
13640 | ||
13641 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13642 | for ncn_progname in windmc; do | |
13643 | if test -n "$ncn_target_tool_prefix"; then | |
13644 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13645 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13647 | $as_echo_n "checking for $ac_word... " >&6; } | |
13648 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13649 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13650 | else |
13651 | if test -n "$WINDMC_FOR_TARGET"; then | |
13652 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13653 | else | |
13654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13655 | for as_dir in $PATH | |
13656 | do | |
13657 | IFS=$as_save_IFS | |
13658 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13659 | for ac_exec_ext in '' $ac_executable_extensions; do |
13660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13661 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13663 | break 2 |
13664 | fi | |
13665 | done | |
81ecdfbb RW |
13666 | done |
13667 | IFS=$as_save_IFS | |
0c24b341 NC |
13668 | |
13669 | fi | |
13670 | fi | |
13671 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13672 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13674 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13675 | else |
81ecdfbb RW |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13677 | $as_echo "no" >&6; } | |
0c24b341 NC |
13678 | fi |
13679 | ||
81ecdfbb | 13680 | |
0c24b341 NC |
13681 | fi |
13682 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13683 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13684 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13686 | $as_echo_n "checking for $ac_word... " >&6; } | |
13687 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13688 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13689 | else |
13690 | if test -n "$WINDMC_FOR_TARGET"; then | |
13691 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13692 | else | |
13693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13694 | for as_dir in $PATH | |
13695 | do | |
13696 | IFS=$as_save_IFS | |
13697 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13698 | for ac_exec_ext in '' $ac_executable_extensions; do |
13699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13700 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13702 | break 2 |
13703 | fi | |
13704 | done | |
81ecdfbb RW |
13705 | done |
13706 | IFS=$as_save_IFS | |
0c24b341 NC |
13707 | |
13708 | fi | |
13709 | fi | |
13710 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13711 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13713 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13714 | else |
81ecdfbb RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13716 | $as_echo "no" >&6; } | |
0c24b341 NC |
13717 | fi |
13718 | ||
81ecdfbb | 13719 | |
0c24b341 NC |
13720 | fi |
13721 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13722 | done | |
13723 | fi | |
13724 | ||
13725 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13726 | set dummy windmc | |
13727 | if test $build = $target ; then | |
13728 | WINDMC_FOR_TARGET="$2" | |
13729 | else | |
13730 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13731 | fi | |
13732 | else | |
13733 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13734 | fi | |
13735 | ||
13736 | else | |
13737 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13738 | fi | |
13739 | ||
13740 | ||
be01d343 PB |
13741 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13742 | ||
81ecdfbb RW |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13744 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13745 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13746 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13747 | # We already found the complete path | |
b8025f34 | 13748 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13750 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13751 | else |
13752 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13754 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13755 | fi |
be01d343 PB |
13756 | else |
13757 | ok=yes | |
13758 | case " ${configdirs} " in | |
13759 | *" binutils "*) ;; | |
13760 | *) ok=no ;; | |
13761 | esac | |
c6b750e1 | 13762 | |
be01d343 PB |
13763 | if test $ok = yes; then |
13764 | # An in-tree tool is available and we can use it | |
13765 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13767 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13768 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13769 | # We already found the complete path | |
b8025f34 | 13770 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13772 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13773 | elif test "x$target" = "x$host"; then |
13774 | # We can use an host tool | |
13775 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13777 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13778 | else |
13779 | # We need a cross tool | |
81ecdfbb RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13781 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13782 | fi |
13783 | fi | |
4b900473 | 13784 | |
81ecdfbb RW |
13785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13786 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13787 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13788 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13789 | # We already found the complete path | |
b8025f34 | 13790 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13792 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13793 | else |
13794 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13796 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13797 | fi |
be01d343 PB |
13798 | else |
13799 | ok=yes | |
13800 | case " ${configdirs} " in | |
13801 | *" gas "*) ;; | |
13802 | *) ok=no ;; | |
13803 | esac | |
c6b750e1 | 13804 | |
be01d343 PB |
13805 | if test $ok = yes; then |
13806 | # An in-tree tool is available and we can use it | |
13807 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13809 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13810 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13811 | # We already found the complete path | |
b8025f34 | 13812 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13814 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13815 | elif test "x$target" = "x$host"; then |
13816 | # We can use an host tool | |
13817 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13819 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13820 | else |
13821 | # We need a cross tool | |
81ecdfbb RW |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13823 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13824 | fi |
13825 | fi | |
4b900473 | 13826 | |
81ecdfbb RW |
13827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13828 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13829 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13830 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13831 | # We already found the complete path | |
b8025f34 | 13832 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13834 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13835 | else |
13836 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13838 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13839 | fi |
be01d343 PB |
13840 | else |
13841 | ok=yes | |
13842 | case " ${configdirs} " in | |
13843 | *" gcc "*) ;; | |
13844 | *) ok=no ;; | |
13845 | esac | |
c6b750e1 | 13846 | |
be01d343 PB |
13847 | if test $ok = yes; then |
13848 | # An in-tree tool is available and we can use it | |
13849 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13851 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13852 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13853 | # We already found the complete path | |
b8025f34 | 13854 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13856 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13857 | elif test "x$target" = "x$host"; then |
13858 | # We can use an host tool | |
13859 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13861 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13862 | else |
13863 | # We need a cross tool | |
81ecdfbb RW |
13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13865 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13866 | fi |
13867 | fi | |
4b900473 | 13868 | |
81ecdfbb RW |
13869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13870 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13871 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13872 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13873 | # We already found the complete path | |
b8025f34 | 13874 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13876 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13877 | else |
13878 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13880 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13881 | fi |
be01d343 PB |
13882 | else |
13883 | ok=yes | |
13884 | case " ${configdirs} " in | |
13885 | *" gcc "*) ;; | |
13886 | *) ok=no ;; | |
13887 | esac | |
13888 | case ,${enable_languages}, in | |
13889 | *,c++,*) ;; | |
13890 | *) ok=no ;; | |
13891 | esac | |
13892 | if test $ok = yes; then | |
13893 | # An in-tree tool is available and we can use it | |
95e43135 | 13894 | 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 |
13895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13896 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13897 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13898 | # We already found the complete path | |
b8025f34 | 13899 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13901 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13902 | elif test "x$target" = "x$host"; then |
13903 | # We can use an host tool | |
13904 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13906 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13907 | else |
13908 | # We need a cross tool | |
81ecdfbb RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13910 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13911 | fi |
13912 | fi | |
4b900473 | 13913 | |
81ecdfbb RW |
13914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13915 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13916 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13917 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13918 | # We already found the complete path | |
b8025f34 | 13919 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13921 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13922 | else |
13923 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13925 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13926 | fi |
be01d343 PB |
13927 | else |
13928 | ok=yes | |
13929 | case " ${configdirs} " in | |
13930 | *" gcc "*) ;; | |
13931 | *) ok=no ;; | |
13932 | esac | |
13933 | case ,${enable_languages}, in | |
13934 | *,c++,*) ;; | |
13935 | *) ok=no ;; | |
13936 | esac | |
13937 | if test $ok = yes; then | |
13938 | # An in-tree tool is available and we can use it | |
95e43135 | 13939 | 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 |
13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13941 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13942 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13943 | # We already found the complete path | |
b8025f34 | 13944 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13946 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13947 | elif test "x$target" = "x$host"; then |
13948 | # We can use an host tool | |
13949 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13951 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13952 | else |
13953 | # We need a cross tool | |
81ecdfbb RW |
13954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13955 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13956 | fi |
13957 | fi | |
4b900473 | 13958 | |
81ecdfbb RW |
13959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13960 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13961 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13962 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13963 | # We already found the complete path | |
b8025f34 | 13964 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13966 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13967 | else |
13968 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13970 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13971 | fi |
be01d343 PB |
13972 | else |
13973 | ok=yes | |
13974 | case " ${configdirs} " in | |
13975 | *" binutils "*) ;; | |
13976 | *) ok=no ;; | |
13977 | esac | |
c6b750e1 | 13978 | |
be01d343 PB |
13979 | if test $ok = yes; then |
13980 | # An in-tree tool is available and we can use it | |
13981 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13983 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13984 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13985 | # We already found the complete path | |
b8025f34 | 13986 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13988 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13989 | elif test "x$target" = "x$host"; then |
13990 | # We can use an host tool | |
13991 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13993 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13994 | else |
13995 | # We need a cross tool | |
81ecdfbb RW |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13997 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13998 | fi |
13999 | fi | |
4b900473 | 14000 | |
81ecdfbb RW |
14001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14002 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14003 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14004 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14005 | # We already found the complete path | |
b8025f34 | 14006 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14008 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14009 | else |
14010 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14012 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14013 | fi |
be01d343 PB |
14014 | else |
14015 | ok=yes | |
14016 | case " ${configdirs} " in | |
14017 | *" gcc "*) ;; | |
14018 | *) ok=no ;; | |
14019 | esac | |
c6b750e1 | 14020 | |
be01d343 PB |
14021 | if test $ok = yes; then |
14022 | # An in-tree tool is available and we can use it | |
14023 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14025 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14026 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14027 | # We already found the complete path | |
b8025f34 | 14028 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14030 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14031 | elif test "x$target" = "x$host"; then |
14032 | # We can use an host tool | |
14033 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14035 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14036 | else |
14037 | # We need a cross tool | |
81ecdfbb RW |
14038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14039 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14040 | fi |
14041 | fi | |
4b900473 | 14042 | |
81ecdfbb RW |
14043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14044 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 14045 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14046 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14047 | # We already found the complete path | |
b8025f34 | 14048 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14050 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14051 | else |
14052 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14054 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14055 | fi |
be01d343 PB |
14056 | else |
14057 | ok=yes | |
14058 | case " ${configdirs} " in | |
14059 | *" gcc "*) ;; | |
14060 | *) ok=no ;; | |
14061 | esac | |
14062 | case ,${enable_languages}, in | |
14063 | *,java,*) ;; | |
14064 | *) ok=no ;; | |
14065 | esac | |
14066 | if test $ok = yes; then | |
14067 | # An in-tree tool is available and we can use it | |
14068 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14070 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14071 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14072 | # We already found the complete path | |
b8025f34 | 14073 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14075 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14076 | elif test "x$target" = "x$host"; then |
14077 | # We can use an host tool | |
14078 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
14079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14080 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14081 | else |
14082 | # We need a cross tool | |
81ecdfbb RW |
14083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14084 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14085 | fi |
14086 | fi | |
4b900473 | 14087 | |
81ecdfbb RW |
14088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14089 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14090 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14091 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14092 | # We already found the complete path | |
b8025f34 | 14093 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14095 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14096 | else |
14097 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14099 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14100 | fi |
be01d343 PB |
14101 | else |
14102 | ok=yes | |
14103 | case " ${configdirs} " in | |
14104 | *" gcc "*) ;; | |
14105 | *) ok=no ;; | |
14106 | esac | |
14107 | case ,${enable_languages}, in | |
14108 | *,fortran,*) ;; | |
14109 | *) ok=no ;; | |
14110 | esac | |
14111 | if test $ok = yes; then | |
14112 | # An in-tree tool is available and we can use it | |
14113 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14115 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14116 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14117 | # We already found the complete path | |
b8025f34 | 14118 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14120 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14121 | elif test "x$target" = "x$host"; then |
14122 | # We can use an host tool | |
14123 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14125 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14126 | else |
14127 | # We need a cross tool | |
81ecdfbb RW |
14128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14129 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14130 | fi |
14131 | fi | |
4b900473 | 14132 | |
e552509b ILT |
14133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14134 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14135 | if test "x${build}" != "x${host}" ; then | |
14136 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14137 | # We already found the complete path | |
14138 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14140 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14141 | else | |
14142 | # Canadian cross, just use what we found | |
14143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14144 | $as_echo "pre-installed" >&6; } | |
14145 | fi | |
14146 | else | |
14147 | ok=yes | |
14148 | case " ${configdirs} " in | |
14149 | *" gcc "*) ;; | |
14150 | *) ok=no ;; | |
14151 | esac | |
14152 | case ,${enable_languages}, in | |
14153 | *,go,*) ;; | |
14154 | *) ok=no ;; | |
14155 | esac | |
14156 | if test $ok = yes; then | |
14157 | # An in-tree tool is available and we can use it | |
14158 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14160 | $as_echo "just compiled" >&6; } | |
14161 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14162 | # We already found the complete path | |
14163 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14165 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14166 | elif test "x$target" = "x$host"; then | |
14167 | # We can use an host tool | |
14168 | GOC_FOR_TARGET='$(GOC)' | |
14169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14170 | $as_echo "host tool" >&6; } | |
14171 | else | |
14172 | # We need a cross tool | |
14173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14174 | $as_echo "pre-installed" >&6; } | |
14175 | fi | |
14176 | fi | |
14177 | ||
81ecdfbb RW |
14178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14179 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14180 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14181 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14182 | # We already found the complete path | |
b8025f34 | 14183 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14185 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14186 | else |
14187 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14189 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14190 | fi |
be01d343 PB |
14191 | else |
14192 | ok=yes | |
14193 | case " ${configdirs} " in | |
14194 | *" ld "*) ;; | |
14195 | *) ok=no ;; | |
14196 | esac | |
c6b750e1 | 14197 | |
be01d343 PB |
14198 | if test $ok = yes; then |
14199 | # An in-tree tool is available and we can use it | |
14200 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14202 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14203 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14204 | # We already found the complete path | |
b8025f34 | 14205 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14207 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14208 | elif test "x$target" = "x$host"; then |
14209 | # We can use an host tool | |
14210 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14212 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14213 | else |
14214 | # We need a cross tool | |
81ecdfbb RW |
14215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14216 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14217 | fi |
14218 | fi | |
4b900473 | 14219 | |
81ecdfbb RW |
14220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14221 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14222 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14223 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14224 | # We already found the complete path | |
b8025f34 | 14225 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14227 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14228 | else |
14229 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14231 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14232 | fi |
be01d343 | 14233 | else |
2429c060 PB |
14234 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14235 | # We already found the complete path | |
b8025f34 | 14236 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14238 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14239 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14240 | # We can use an host tool |
14241 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14243 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14244 | else |
14245 | # We need a cross tool | |
81ecdfbb RW |
14246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14247 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14248 | fi |
14249 | fi | |
4b900473 | 14250 | |
81ecdfbb RW |
14251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14252 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14253 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14254 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14255 | # We already found the complete path | |
b8025f34 | 14256 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14258 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14259 | else |
14260 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14262 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14263 | fi |
be01d343 PB |
14264 | else |
14265 | ok=yes | |
14266 | case " ${configdirs} " in | |
14267 | *" binutils "*) ;; | |
14268 | *) ok=no ;; | |
14269 | esac | |
c6b750e1 | 14270 | |
be01d343 PB |
14271 | if test $ok = yes; then |
14272 | # An in-tree tool is available and we can use it | |
14273 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14275 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14276 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14277 | # We already found the complete path | |
b8025f34 | 14278 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14280 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14281 | elif test "x$target" = "x$host"; then |
14282 | # We can use an host tool | |
14283 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14285 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14286 | else |
14287 | # We need a cross tool | |
81ecdfbb RW |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14289 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14290 | fi |
14291 | fi | |
4b900473 | 14292 | |
81ecdfbb RW |
14293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14294 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14295 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14296 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14297 | # We already found the complete path | |
b8025f34 | 14298 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14300 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14301 | else |
14302 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14304 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14305 | fi |
be01d343 PB |
14306 | else |
14307 | ok=yes | |
14308 | case " ${configdirs} " in | |
14309 | *" binutils "*) ;; | |
14310 | *) ok=no ;; | |
14311 | esac | |
c6b750e1 | 14312 | |
be01d343 PB |
14313 | if test $ok = yes; then |
14314 | # An in-tree tool is available and we can use it | |
14315 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14317 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14318 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14319 | # We already found the complete path | |
b8025f34 | 14320 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14322 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14323 | elif test "x$target" = "x$host"; then |
14324 | # We can use an host tool | |
14325 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14327 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14328 | else |
14329 | # We need a cross tool | |
81ecdfbb RW |
14330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14331 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14332 | fi |
14333 | fi | |
4b900473 | 14334 | |
81ecdfbb RW |
14335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14336 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14337 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14338 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14339 | # We already found the complete path | |
b8025f34 | 14340 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14342 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14343 | else |
14344 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14346 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14347 | fi |
be01d343 PB |
14348 | else |
14349 | ok=yes | |
14350 | case " ${configdirs} " in | |
14351 | *" binutils "*) ;; | |
14352 | *) ok=no ;; | |
14353 | esac | |
c6b750e1 | 14354 | |
be01d343 PB |
14355 | if test $ok = yes; then |
14356 | # An in-tree tool is available and we can use it | |
14357 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14359 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14360 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14361 | # We already found the complete path | |
b8025f34 | 14362 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14364 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14365 | elif test "x$target" = "x$host"; then |
14366 | # We can use an host tool | |
14367 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14369 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14370 | else |
14371 | # We need a cross tool | |
81ecdfbb RW |
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14373 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14374 | fi |
14375 | fi | |
4b900473 | 14376 | |
b121d7d4 DD |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14378 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14379 | if test "x${build}" != "x${host}" ; then | |
14380 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14381 | # We already found the complete path | |
14382 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14384 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14385 | else | |
14386 | # Canadian cross, just use what we found | |
14387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14388 | $as_echo "pre-installed" >&6; } | |
14389 | fi | |
14390 | else | |
14391 | ok=yes | |
14392 | case " ${configdirs} " in | |
14393 | *" binutils "*) ;; | |
14394 | *) ok=no ;; | |
14395 | esac | |
14396 | ||
14397 | if test $ok = yes; then | |
14398 | # An in-tree tool is available and we can use it | |
14399 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14401 | $as_echo "just compiled" >&6; } | |
14402 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14403 | # We already found the complete path | |
14404 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14406 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14407 | elif test "x$target" = "x$host"; then | |
14408 | # We can use an host tool | |
14409 | READELF_FOR_TARGET='$(READELF)' | |
14410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14411 | $as_echo "host tool" >&6; } | |
14412 | else | |
14413 | # We need a cross tool | |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14415 | $as_echo "pre-installed" >&6; } | |
14416 | fi | |
14417 | fi | |
14418 | ||
81ecdfbb RW |
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14420 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14421 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14422 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14423 | # We already found the complete path | |
b8025f34 | 14424 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14426 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14427 | else |
14428 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14430 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14431 | fi |
be01d343 PB |
14432 | else |
14433 | ok=yes | |
14434 | case " ${configdirs} " in | |
14435 | *" binutils "*) ;; | |
14436 | *) ok=no ;; | |
14437 | esac | |
c6b750e1 | 14438 | |
be01d343 PB |
14439 | if test $ok = yes; then |
14440 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14441 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14443 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14444 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14445 | # We already found the complete path | |
b8025f34 | 14446 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14448 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14449 | elif test "x$target" = "x$host"; then |
14450 | # We can use an host tool | |
14451 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14453 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14454 | else |
14455 | # We need a cross tool | |
81ecdfbb RW |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14457 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14458 | fi |
14459 | fi | |
4b900473 | 14460 | |
81ecdfbb RW |
14461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14462 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14463 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14464 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14465 | # We already found the complete path | |
b8025f34 | 14466 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14468 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14469 | else |
14470 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14472 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14473 | fi |
be01d343 PB |
14474 | else |
14475 | ok=yes | |
14476 | case " ${configdirs} " in | |
14477 | *" binutils "*) ;; | |
14478 | *) ok=no ;; | |
14479 | esac | |
c6b750e1 | 14480 | |
be01d343 PB |
14481 | if test $ok = yes; then |
14482 | # An in-tree tool is available and we can use it | |
14483 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14485 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14486 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14487 | # We already found the complete path | |
b8025f34 | 14488 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14490 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14491 | elif test "x$target" = "x$host"; then |
14492 | # We can use an host tool | |
14493 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14495 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14496 | else |
14497 | # We need a cross tool | |
81ecdfbb RW |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14499 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14500 | fi |
a0da8069 | 14501 | fi |
54752a6b | 14502 | |
81ecdfbb RW |
14503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14504 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14505 | if test "x${build}" != "x${host}" ; then |
14506 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14507 | # We already found the complete path | |
14508 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14510 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14511 | else |
14512 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14514 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14515 | fi |
14516 | else | |
14517 | ok=yes | |
14518 | case " ${configdirs} " in | |
14519 | *" binutils "*) ;; | |
14520 | *) ok=no ;; | |
14521 | esac | |
14522 | ||
14523 | if test $ok = yes; then | |
14524 | # An in-tree tool is available and we can use it | |
14525 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14527 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14528 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14529 | # We already found the complete path | |
14530 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14532 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14533 | elif test "x$target" = "x$host"; then |
14534 | # We can use an host tool | |
14535 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14537 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14538 | else |
14539 | # We need a cross tool | |
81ecdfbb RW |
14540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14541 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14542 | fi |
14543 | fi | |
14544 | ||
54752a6b NN |
14545 | |
14546 | ||
be01d343 | 14547 | |
4b900473 | 14548 | |
a0da8069 NN |
14549 | # Certain tools may need extra flags. |
14550 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14551 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14552 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14553 | ||
be01d343 PB |
14554 | # When building target libraries, except in a Canadian cross, we use |
14555 | # the same toolchain as the compiler we just built. | |
14556 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14557 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14558 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14559 | if test $host = $build; then | |
14560 | case " $configdirs " in | |
14561 | *" gcc "*) | |
14562 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14563 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14564 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14565 | ;; | |
14566 | esac | |
14567 | fi | |
14568 | ||
14569 | ||
14570 | ||
14571 | ||
14572 | ||
81ecdfbb RW |
14573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14574 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14575 | # Check whether --enable-maintainer-mode was given. | |
14576 | if test "${enable_maintainer_mode+set}" = set; then : | |
14577 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14578 | else |
14579 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14580 | fi |
14581 | ||
14582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14583 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14584 | |
14585 | ||
14586 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14587 | MAINTAINER_MODE_TRUE= | |
14588 | MAINTAINER_MODE_FALSE='#' | |
14589 | else | |
14590 | MAINTAINER_MODE_TRUE='#' | |
14591 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14592 | fi |
3d5e36ae AO |
14593 | MAINT=$MAINTAINER_MODE_TRUE |
14594 | ||
1d39f329 NN |
14595 | # --------------------- |
14596 | # GCC bootstrap support | |
14597 | # --------------------- | |
14598 | ||
14599 | # Stage specific cflags for build. | |
14600 | stage1_cflags="-g" | |
14601 | case $build in | |
14602 | vax-*-*) | |
14603 | case ${GCC} in | |
14604 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14605 | *) stage1_cflags="-g -J" ;; | |
14606 | esac ;; | |
1d39f329 NN |
14607 | esac |
14608 | ||
1d89b610 | 14609 | |
1d39f329 | 14610 | |
8a0d8a5c | 14611 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14612 | # Check whether --enable-stage1-checking was given. |
14613 | if test "${enable_stage1_checking+set}" = set; then : | |
14614 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14615 | else |
5566c1fa | 14616 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14617 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14618 | else |
5566c1fa | 14619 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14620 | fi |
81ecdfbb | 14621 | fi |
8a0d8a5c PB |
14622 | |
14623 | ||
c6b750e1 | 14624 | |
81ecdfbb RW |
14625 | # Enable -Werror in bootstrap stage2 and later. |
14626 | # Check whether --enable-werror was given. | |
14627 | if test "${enable_werror+set}" = set; then : | |
14628 | enableval=$enable_werror; | |
1d39f329 | 14629 | else |
a0323144 | 14630 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14631 | enable_werror=yes |
79fcd0ec PB |
14632 | else |
14633 | enable_werror=no | |
14634 | fi | |
81ecdfbb RW |
14635 | fi |
14636 | ||
1a6f2dc7 NN |
14637 | case ${enable_werror} in |
14638 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14639 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14640 | esac |
14641 | ||
14642 | ||
82033c9b JBG |
14643 | # Enable --enable-host-shared. |
14644 | # Check whether --enable-host-shared was given. | |
14645 | if test "${enable_host_shared+set}" = set; then : | |
14646 | enableval=$enable_host_shared; host_shared=$enableval | |
14647 | else | |
14648 | host_shared=no | |
14649 | fi | |
14650 | ||
14651 | ||
14652 | ||
e8a5fa9c RW |
14653 | # Specify what files to not compare during bootstrap. |
14654 | ||
14655 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14656 | case "$target" in | |
14657 | hppa*64*-*-hpux*) ;; | |
14658 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14659 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14660 | esac |
14661 | ||
14662 | ||
81ecdfbb RW |
14663 | ac_config_files="$ac_config_files Makefile" |
14664 | ||
c6b750e1 | 14665 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14666 | # This file is a shell script that caches the results of configure |
14667 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14668 | # scripts and configure runs, see configure's option --config-cache. |
14669 | # It is not useful on other systems. If it contains results you don't | |
14670 | # want to keep, you may remove or edit it. | |
a0da8069 | 14671 | # |
c6b750e1 DJ |
14672 | # config.status only pays attention to the cache file if you give it |
14673 | # the --recheck option to rerun configure. | |
a0da8069 | 14674 | # |
c6b750e1 DJ |
14675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14677 | # following values. | |
14678 | ||
14679 | _ACEOF | |
14680 | ||
a0da8069 NN |
14681 | # The following way of writing the cache mishandles newlines in values, |
14682 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14683 | # So, we kill variables containing newlines. |
a0da8069 NN |
14684 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14685 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14686 | ( |
14687 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14688 | eval ac_val=\$$ac_var | |
14689 | case $ac_val in #( | |
14690 | *${as_nl}*) | |
14691 | case $ac_var in #( | |
14692 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14693 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14694 | esac | |
14695 | case $ac_var in #( | |
14696 | _ | IFS | as_nl) ;; #( | |
14697 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14698 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14699 | esac ;; | |
14700 | esac | |
14701 | done | |
14702 | ||
c6b750e1 | 14703 | (set) 2>&1 | |
81ecdfbb RW |
14704 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14705 | *${as_nl}ac_space=\ *) | |
14706 | # `set' does not quote correctly, so add quotes: double-quote | |
14707 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14708 | sed -n \ |
14709 | "s/'/'\\\\''/g; | |
14710 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14711 | ;; #( |
c6b750e1 DJ |
14712 | *) |
14713 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14714 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14715 | ;; |
81ecdfbb RW |
14716 | esac | |
14717 | sort | |
14718 | ) | | |
c6b750e1 | 14719 | sed ' |
81ecdfbb | 14720 | /^ac_cv_env_/b end |
c6b750e1 | 14721 | t clear |
81ecdfbb | 14722 | :clear |
c6b750e1 DJ |
14723 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14724 | t end | |
81ecdfbb RW |
14725 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14726 | :end' >>confcache | |
14727 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14728 | if test -w "$cache_file"; then | |
14729 | test "x$cache_file" != "x/dev/null" && | |
14730 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14731 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14732 | cat confcache >$cache_file |
a0da8069 | 14733 | else |
81ecdfbb RW |
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14735 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14736 | fi |
852e5f18 | 14737 | fi |
a0da8069 | 14738 | rm -f confcache |
852e5f18 | 14739 | |
a0da8069 NN |
14740 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14741 | # Let make expand exec_prefix. | |
14742 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14743 | |
a0da8069 NN |
14744 | # Transform confdefs.h into DEFS. |
14745 | # Protect against shell expansion while executing Makefile rules. | |
14746 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14747 | # |
14748 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14749 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14750 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14751 | ac_script=' |
14752 | :mline | |
14753 | /\\$/{ | |
14754 | N | |
14755 | s,\\\n,, | |
14756 | b mline | |
14757 | } | |
c6b750e1 | 14758 | t clear |
81ecdfbb RW |
14759 | :clear |
14760 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14761 | t quote |
81ecdfbb | 14762 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14763 | t quote |
81ecdfbb RW |
14764 | b any |
14765 | :quote | |
14766 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14767 | s/\[/\\&/g | |
14768 | s/\]/\\&/g | |
14769 | s/\$/$$/g | |
14770 | H | |
14771 | :any | |
14772 | ${ | |
14773 | g | |
14774 | s/^\n// | |
14775 | s/\n/ /g | |
14776 | p | |
14777 | } | |
14778 | ' | |
14779 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14780 | |
14781 | ||
14782 | ac_libobjs= | |
14783 | ac_ltlibobjs= | |
14784 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14785 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14786 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14787 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14788 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14789 | # will be set to the directory where LIBOBJS objects are built. | |
14790 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14791 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14792 | done |
14793 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14794 | |
c6b750e1 | 14795 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14796 | |
cac3d6c4 | 14797 | |
c6b750e1 DJ |
14798 | |
14799 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14800 | ac_write_fail=0 |
c6b750e1 DJ |
14801 | ac_clean_files_save=$ac_clean_files |
14802 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14803 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14804 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14805 | as_write_fail=0 | |
14806 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14807 | #! $SHELL |
14808 | # Generated by $as_me. | |
a0da8069 | 14809 | # Run this file to recreate the current configuration. |
a0da8069 | 14810 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14811 | # configure, is in config.log if it exists. |
376a0e54 | 14812 | |
c6b750e1 DJ |
14813 | debug=false |
14814 | ac_cs_recheck=false | |
14815 | ac_cs_silent=false | |
c6b750e1 | 14816 | |
81ecdfbb RW |
14817 | SHELL=\${CONFIG_SHELL-$SHELL} |
14818 | export SHELL | |
14819 | _ASEOF | |
14820 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14821 | ## -------------------- ## | |
14822 | ## M4sh Initialization. ## | |
14823 | ## -------------------- ## | |
14824 | ||
14825 | # Be more Bourne compatible | |
14826 | DUALCASE=1; export DUALCASE # for MKS sh | |
14827 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14828 | emulate sh |
14829 | NULLCMD=: | |
81ecdfbb | 14830 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14831 | # is contrary to our usage. Disable this feature. |
14832 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14833 | setopt NO_GLOB_SUBST |
14834 | else | |
14835 | case `(set -o) 2>/dev/null` in #( | |
14836 | *posix*) : | |
14837 | set -o posix ;; #( | |
14838 | *) : | |
14839 | ;; | |
14840 | esac | |
c6b750e1 | 14841 | fi |
c6b750e1 | 14842 | |
81ecdfbb RW |
14843 | |
14844 | as_nl=' | |
14845 | ' | |
14846 | export as_nl | |
14847 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14848 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14849 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14850 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14851 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14852 | # but without wasting forks for bash or zsh. | |
14853 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14854 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14855 | as_echo='print -r --' | |
14856 | as_echo_n='print -rn --' | |
14857 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14858 | as_echo='printf %s\n' | |
14859 | as_echo_n='printf %s' | |
14860 | else | |
14861 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14862 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14863 | as_echo_n='/usr/ucb/echo -n' | |
14864 | else | |
14865 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14866 | as_echo_n_body='eval | |
14867 | arg=$1; | |
14868 | case $arg in #( | |
14869 | *"$as_nl"*) | |
14870 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14871 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14872 | esac; | |
14873 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14874 | ' | |
14875 | export as_echo_n_body | |
14876 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14877 | fi | |
14878 | export as_echo_body | |
14879 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14880 | fi |
14881 | ||
81ecdfbb RW |
14882 | # The user is always right. |
14883 | if test "${PATH_SEPARATOR+set}" != set; then | |
14884 | PATH_SEPARATOR=: | |
14885 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14886 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14887 | PATH_SEPARATOR=';' | |
14888 | } | |
14889 | fi | |
14890 | ||
14891 | ||
14892 | # IFS | |
14893 | # We need space, tab and new line, in precisely that order. Quoting is | |
14894 | # there to prevent editors from complaining about space-tab. | |
14895 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14896 | # splitting by setting IFS to empty value.) | |
14897 | IFS=" "" $as_nl" | |
14898 | ||
14899 | # Find who we are. Look in the path if we contain no directory separator. | |
14900 | case $0 in #(( | |
14901 | *[\\/]* ) as_myself=$0 ;; | |
14902 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14903 | for as_dir in $PATH | |
14904 | do | |
14905 | IFS=$as_save_IFS | |
14906 | test -z "$as_dir" && as_dir=. | |
14907 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14908 | done | |
14909 | IFS=$as_save_IFS | |
14910 | ||
14911 | ;; | |
14912 | esac | |
14913 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14914 | # in which case we are not to be found in the path. | |
14915 | if test "x$as_myself" = x; then | |
14916 | as_myself=$0 | |
14917 | fi | |
14918 | if test ! -f "$as_myself"; then | |
14919 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14920 | exit 1 | |
14921 | fi | |
c6b750e1 | 14922 | |
81ecdfbb RW |
14923 | # Unset variables that we do not need and which cause bugs (e.g. in |
14924 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14925 | # suppresses any "Segmentation fault" message there. '((' could | |
14926 | # trigger a bug in pdksh 5.2.14. | |
14927 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14928 | do eval test x\${$as_var+set} = xset \ | |
14929 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14930 | done | |
c6b750e1 DJ |
14931 | PS1='$ ' |
14932 | PS2='> ' | |
14933 | PS4='+ ' | |
14934 | ||
14935 | # NLS nuisances. | |
81ecdfbb RW |
14936 | LC_ALL=C |
14937 | export LC_ALL | |
14938 | LANGUAGE=C | |
14939 | export LANGUAGE | |
14940 | ||
14941 | # CDPATH. | |
14942 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14943 | ||
14944 | ||
14945 | # as_fn_error ERROR [LINENO LOG_FD] | |
14946 | # --------------------------------- | |
14947 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14948 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14949 | # script with status $?, using 1 if that was 0. | |
14950 | as_fn_error () | |
14951 | { | |
14952 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14953 | if test "$3"; then | |
14954 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14955 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14956 | fi |
81ecdfbb RW |
14957 | $as_echo "$as_me: error: $1" >&2 |
14958 | as_fn_exit $as_status | |
14959 | } # as_fn_error | |
14960 | ||
14961 | ||
14962 | # as_fn_set_status STATUS | |
14963 | # ----------------------- | |
14964 | # Set $? to STATUS, without forking. | |
14965 | as_fn_set_status () | |
14966 | { | |
14967 | return $1 | |
14968 | } # as_fn_set_status | |
14969 | ||
14970 | # as_fn_exit STATUS | |
14971 | # ----------------- | |
14972 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14973 | as_fn_exit () | |
14974 | { | |
14975 | set +e | |
14976 | as_fn_set_status $1 | |
14977 | exit $1 | |
14978 | } # as_fn_exit | |
14979 | ||
14980 | # as_fn_unset VAR | |
14981 | # --------------- | |
14982 | # Portably unset VAR. | |
14983 | as_fn_unset () | |
14984 | { | |
14985 | { eval $1=; unset $1;} | |
14986 | } | |
14987 | as_unset=as_fn_unset | |
14988 | # as_fn_append VAR VALUE | |
14989 | # ---------------------- | |
14990 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14991 | # advantage of any shell optimizations that allow amortized linear growth over | |
14992 | # repeated appends, instead of the typical quadratic growth present in naive | |
14993 | # implementations. | |
14994 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14995 | eval 'as_fn_append () | |
14996 | { | |
14997 | eval $1+=\$2 | |
14998 | }' | |
14999 | else | |
15000 | as_fn_append () | |
15001 | { | |
15002 | eval $1=\$$1\$2 | |
15003 | } | |
15004 | fi # as_fn_append | |
15005 | ||
15006 | # as_fn_arith ARG... | |
15007 | # ------------------ | |
15008 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15009 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15010 | # must be portable across $(()) and expr. | |
15011 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15012 | eval 'as_fn_arith () | |
15013 | { | |
15014 | as_val=$(( $* )) | |
15015 | }' | |
15016 | else | |
15017 | as_fn_arith () | |
15018 | { | |
15019 | as_val=`expr "$@" || test $? -eq 1` | |
15020 | } | |
15021 | fi # as_fn_arith | |
15022 | ||
c6b750e1 | 15023 | |
81ecdfbb RW |
15024 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15025 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15026 | as_expr=expr |
15027 | else | |
15028 | as_expr=false | |
15029 | fi | |
15030 | ||
81ecdfbb | 15031 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15032 | as_basename=basename |
15033 | else | |
15034 | as_basename=false | |
15035 | fi | |
15036 | ||
81ecdfbb RW |
15037 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15038 | as_dirname=dirname | |
15039 | else | |
15040 | as_dirname=false | |
15041 | fi | |
c6b750e1 | 15042 | |
81ecdfbb | 15043 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15044 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15045 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15046 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15047 | $as_echo X/"$0" | | |
15048 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15049 | s//\1/ | |
15050 | q | |
15051 | } | |
15052 | /^X\/\(\/\/\)$/{ | |
15053 | s//\1/ | |
15054 | q | |
15055 | } | |
15056 | /^X\/\(\/\).*/{ | |
15057 | s//\1/ | |
15058 | q | |
15059 | } | |
15060 | s/.*/./; q'` | |
c6b750e1 | 15061 | |
c6b750e1 DJ |
15062 | # Avoid depending upon Character Ranges. |
15063 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15064 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15065 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15066 | as_cr_digits='0123456789' | |
15067 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15068 | ||
81ecdfbb RW |
15069 | ECHO_C= ECHO_N= ECHO_T= |
15070 | case `echo -n x` in #((((( | |
15071 | -n*) | |
15072 | case `echo 'xy\c'` in | |
15073 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15074 | xy) ECHO_C='\c';; | |
15075 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15076 | ECHO_T=' ';; | |
15077 | esac;; | |
15078 | *) | |
15079 | ECHO_N='-n';; | |
c6b750e1 DJ |
15080 | esac |
15081 | ||
81ecdfbb RW |
15082 | rm -f conf$$ conf$$.exe conf$$.file |
15083 | if test -d conf$$.dir; then | |
15084 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15085 | else |
81ecdfbb RW |
15086 | rm -f conf$$.dir |
15087 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15088 | fi |
81ecdfbb RW |
15089 | if (echo >conf$$.file) 2>/dev/null; then |
15090 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15091 | as_ln_s='ln -s' |
81ecdfbb RW |
15092 | # ... but there are two gotchas: |
15093 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15094 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15095 | # In both cases, we have to default to `cp -p'. | |
15096 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15097 | as_ln_s='cp -p' | |
15098 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15099 | as_ln_s=ln | |
15100 | else | |
15101 | as_ln_s='cp -p' | |
c6b750e1 | 15102 | fi |
c6b750e1 DJ |
15103 | else |
15104 | as_ln_s='cp -p' | |
15105 | fi | |
81ecdfbb RW |
15106 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15107 | rmdir conf$$.dir 2>/dev/null | |
15108 | ||
15109 | ||
15110 | # as_fn_mkdir_p | |
15111 | # ------------- | |
15112 | # Create "$as_dir" as a directory, including parents if necessary. | |
15113 | as_fn_mkdir_p () | |
15114 | { | |
15115 | ||
15116 | case $as_dir in #( | |
15117 | -*) as_dir=./$as_dir;; | |
15118 | esac | |
15119 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15120 | as_dirs= | |
15121 | while :; do | |
15122 | case $as_dir in #( | |
15123 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15124 | *) as_qdir=$as_dir;; | |
15125 | esac | |
15126 | as_dirs="'$as_qdir' $as_dirs" | |
15127 | as_dir=`$as_dirname -- "$as_dir" || | |
15128 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15129 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15130 | X"$as_dir" : 'X\(//\)$' \| \ | |
15131 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15132 | $as_echo X"$as_dir" | | |
15133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15134 | s//\1/ | |
15135 | q | |
15136 | } | |
15137 | /^X\(\/\/\)[^/].*/{ | |
15138 | s//\1/ | |
15139 | q | |
15140 | } | |
15141 | /^X\(\/\/\)$/{ | |
15142 | s//\1/ | |
15143 | q | |
15144 | } | |
15145 | /^X\(\/\).*/{ | |
15146 | s//\1/ | |
15147 | q | |
15148 | } | |
15149 | s/.*/./; q'` | |
15150 | test -d "$as_dir" && break | |
15151 | done | |
15152 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15153 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15154 | ||
c6b750e1 | 15155 | |
81ecdfbb | 15156 | } # as_fn_mkdir_p |
c6b750e1 | 15157 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15158 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15159 | else |
15160 | test -d ./-p && rmdir ./-p | |
15161 | as_mkdir_p=false | |
15162 | fi | |
15163 | ||
81ecdfbb RW |
15164 | if test -x / >/dev/null 2>&1; then |
15165 | as_test_x='test -x' | |
15166 | else | |
15167 | if ls -dL / >/dev/null 2>&1; then | |
15168 | as_ls_L_option=L | |
15169 | else | |
15170 | as_ls_L_option= | |
15171 | fi | |
15172 | as_test_x=' | |
15173 | eval sh -c '\'' | |
15174 | if test -d "$1"; then | |
15175 | test -d "$1/."; | |
15176 | else | |
15177 | case $1 in #( | |
15178 | -*)set "./$1";; | |
15179 | esac; | |
15180 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15181 | ???[sx]*):;;*)false;;esac;fi | |
15182 | '\'' sh | |
15183 | ' | |
15184 | fi | |
15185 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15186 | |
15187 | # Sed expression to map a string onto a valid CPP name. | |
15188 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15189 | ||
15190 | # Sed expression to map a string onto a valid variable name. | |
15191 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15192 | ||
15193 | ||
c6b750e1 | 15194 | exec 6>&1 |
81ecdfbb RW |
15195 | ## ----------------------------------- ## |
15196 | ## Main body of $CONFIG_STATUS script. ## | |
15197 | ## ----------------------------------- ## | |
15198 | _ASEOF | |
15199 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15200 | ||
15201 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15202 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15203 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15204 | # values after options handling. |
15205 | ac_log=" | |
c6b750e1 | 15206 | This file was extended by $as_me, which was |
81ecdfbb | 15207 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15208 | |
15209 | CONFIG_FILES = $CONFIG_FILES | |
15210 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15211 | CONFIG_LINKS = $CONFIG_LINKS | |
15212 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15213 | $ $0 $@ | |
15214 | ||
81ecdfbb RW |
15215 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15216 | " | |
15217 | ||
c6b750e1 DJ |
15218 | _ACEOF |
15219 | ||
81ecdfbb RW |
15220 | case $ac_config_files in *" |
15221 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15222 | esac | |
c6b750e1 | 15223 | |
c6b750e1 | 15224 | |
c6b750e1 | 15225 | |
81ecdfbb RW |
15226 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15227 | # Files that config.status was made for. | |
15228 | config_files="$ac_config_files" | |
c6b750e1 | 15229 | |
81ecdfbb | 15230 | _ACEOF |
c6b750e1 | 15231 | |
81ecdfbb | 15232 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15233 | ac_cs_usage="\ |
81ecdfbb RW |
15234 | \`$as_me' instantiates files and other configuration actions |
15235 | from templates according to the current configuration. Unless the files | |
15236 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15237 | |
81ecdfbb | 15238 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15239 | |
15240 | -h, --help print this help, then exit | |
81ecdfbb RW |
15241 | -V, --version print version number and configuration settings, then exit |
15242 | -q, --quiet, --silent | |
15243 | do not print progress messages | |
c6b750e1 DJ |
15244 | -d, --debug don't remove temporary files |
15245 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15246 | --file=FILE[:TEMPLATE] |
15247 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15248 | |
15249 | Configuration files: | |
15250 | $config_files | |
15251 | ||
81ecdfbb | 15252 | Report bugs to the package provider." |
c6b750e1 | 15253 | |
81ecdfbb RW |
15254 | _ACEOF |
15255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15256 | ac_cs_version="\\ |
15257 | config.status | |
81ecdfbb RW |
15258 | configured by $0, generated by GNU Autoconf 2.64, |
15259 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15260 | |
81ecdfbb | 15261 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15262 | This config.status script is free software; the Free Software Foundation |
15263 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15264 | |
15265 | ac_pwd='$ac_pwd' | |
15266 | srcdir='$srcdir' | |
15267 | INSTALL='$INSTALL' | |
8e957354 | 15268 | AWK='$AWK' |
81ecdfbb | 15269 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15270 | _ACEOF |
15271 | ||
81ecdfbb RW |
15272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15273 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15274 | ac_need_defaults=: |
15275 | while test $# != 0 | |
a0da8069 | 15276 | do |
c6b750e1 DJ |
15277 | case $1 in |
15278 | --*=*) | |
81ecdfbb RW |
15279 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15280 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15281 | ac_shift=: |
15282 | ;; | |
81ecdfbb | 15283 | *) |
c6b750e1 DJ |
15284 | ac_option=$1 |
15285 | ac_optarg=$2 | |
15286 | ac_shift=shift | |
15287 | ;; | |
c6b750e1 DJ |
15288 | esac |
15289 | ||
15290 | case $ac_option in | |
15291 | # Handling of the options. | |
a0da8069 | 15292 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15293 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15294 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15295 | $as_echo "$ac_cs_version"; exit ;; | |
15296 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15297 | debug=: ;; |
15298 | --file | --fil | --fi | --f ) | |
15299 | $ac_shift | |
81ecdfbb RW |
15300 | case $ac_optarg in |
15301 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15302 | esac | |
15303 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15304 | ac_need_defaults=false;; |
81ecdfbb RW |
15305 | --he | --h | --help | --hel | -h ) |
15306 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15307 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15308 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15309 | ac_cs_silent=: ;; | |
15310 | ||
15311 | # This is an error. | |
81ecdfbb RW |
15312 | -*) as_fn_error "unrecognized option: \`$1' |
15313 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15314 | |
81ecdfbb RW |
15315 | *) as_fn_append ac_config_targets " $1" |
15316 | ac_need_defaults=false ;; | |
c6b750e1 | 15317 | |
376a0e54 | 15318 | esac |
c6b750e1 | 15319 | shift |
376a0e54 CM |
15320 | done |
15321 | ||
c6b750e1 | 15322 | ac_configure_extra_args= |
376a0e54 | 15323 | |
c6b750e1 DJ |
15324 | if $ac_cs_silent; then |
15325 | exec 6>/dev/null | |
15326 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15327 | fi | |
376a0e54 | 15328 | |
c6b750e1 | 15329 | _ACEOF |
81ecdfbb | 15330 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15331 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15332 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15333 | shift | |
15334 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15335 | CONFIG_SHELL='$SHELL' | |
15336 | export CONFIG_SHELL | |
15337 | exec "\$@" | |
c6b750e1 DJ |
15338 | fi |
15339 | ||
15340 | _ACEOF | |
81ecdfbb RW |
15341 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15342 | exec 5>>config.log | |
15343 | { | |
15344 | echo | |
15345 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15346 | ## Running $as_me. ## | |
15347 | _ASBOX | |
15348 | $as_echo "$ac_log" | |
15349 | } >&5 | |
c6b750e1 | 15350 | |
81ecdfbb RW |
15351 | _ACEOF |
15352 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15353 | # |
15354 | # INIT-COMMANDS | |
15355 | # | |
15356 | extrasub_build="$extrasub_build" | |
15357 | extrasub_host="$extrasub_host" | |
15358 | extrasub_target="$extrasub_target" | |
15359 | ||
81ecdfbb | 15360 | _ACEOF |
c6b750e1 | 15361 | |
81ecdfbb | 15362 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15363 | |
81ecdfbb | 15364 | # Handling of arguments. |
c6b750e1 DJ |
15365 | for ac_config_target in $ac_config_targets |
15366 | do | |
81ecdfbb RW |
15367 | case $ac_config_target in |
15368 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15369 | ||
15370 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15371 | esac |
15372 | done | |
15373 | ||
81ecdfbb | 15374 | |
c6b750e1 DJ |
15375 | # If the user did not use the arguments to specify the items to instantiate, |
15376 | # then the envvar interface is used. Set only those that are not. | |
15377 | # We use the long form for the default assignment because of an extremely | |
15378 | # bizarre bug on SunOS 4.1.3. | |
15379 | if $ac_need_defaults; then | |
15380 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15381 | fi | |
15382 | ||
15383 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15384 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15385 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15386 | # Hook for its removal unless debugging. |
15387 | # Note that there is a small window in which the directory will not be cleaned: | |
15388 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15389 | $debug || |
15390 | { | |
81ecdfbb RW |
15391 | tmp= |
15392 | trap 'exit_status=$? | |
15393 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15394 | ' 0 | |
15395 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15396 | } |
c6b750e1 DJ |
15397 | # Create a (secure) tmp directory for tmp files. |
15398 | ||
15399 | { | |
81ecdfbb | 15400 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15401 | test -n "$tmp" && test -d "$tmp" |
15402 | } || | |
15403 | { | |
81ecdfbb RW |
15404 | tmp=./conf$$-$RANDOM |
15405 | (umask 077 && mkdir "$tmp") | |
15406 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15407 | ||
15408 | # Set up the scripts for CONFIG_FILES section. | |
15409 | # No need to generate them if there are no CONFIG_FILES. | |
15410 | # This happens for instance with `./config.status config.h'. | |
15411 | if test -n "$CONFIG_FILES"; then | |
15412 | ||
15413 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15414 | ac_cs_awk_getline=: | |
15415 | ac_cs_awk_pipe_init= | |
15416 | ac_cs_awk_read_file=' | |
15417 | while ((getline aline < (F[key])) > 0) | |
15418 | print(aline) | |
15419 | close(F[key])' | |
15420 | ac_cs_awk_pipe_fini= | |
15421 | else | |
15422 | ac_cs_awk_getline=false | |
15423 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15424 | ac_cs_awk_read_file=' | |
15425 | print "|#_!!_#|" | |
15426 | print "cat " F[key] " &&" | |
15427 | '$ac_cs_awk_pipe_init | |
15428 | # The final `:' finishes the AND list. | |
15429 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15430 | fi | |
15431 | ac_cr=`echo X | tr X '\015'` | |
15432 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15433 | # But we know of no other shell where ac_cr would be empty at this | |
15434 | # point, so we can use a bashism as a fallback. | |
15435 | if test "x$ac_cr" = x; then | |
15436 | eval ac_cr=\$\'\\r\' | |
15437 | fi | |
15438 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15439 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15440 | ac_cs_awk_cr='\r' | |
15441 | else | |
15442 | ac_cs_awk_cr=$ac_cr | |
15443 | fi | |
15444 | ||
15445 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15446 | _ACEOF | |
15447 | ||
15448 | # Create commands to substitute file output variables. | |
c6b750e1 | 15449 | { |
81ecdfbb RW |
15450 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15451 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15452 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15453 | echo "_ACAWK" && | |
15454 | echo "_ACEOF" | |
15455 | } >conf$$files.sh && | |
15456 | . ./conf$$files.sh || | |
15457 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15458 | rm -f conf$$files.sh | |
c6b750e1 | 15459 | |
81ecdfbb RW |
15460 | { |
15461 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15462 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15463 | echo "_ACEOF" | |
15464 | } >conf$$subs.sh || | |
15465 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15466 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15467 | ac_delim='%!_!# ' | |
15468 | for ac_last_try in false false false false false :; do | |
15469 | . ./conf$$subs.sh || | |
15470 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15471 | ||
15472 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15473 | if test $ac_delim_n = $ac_delim_num; then | |
15474 | break | |
15475 | elif $ac_last_try; then | |
15476 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15477 | else | |
15478 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15479 | fi | |
15480 | done | |
15481 | rm -f conf$$subs.sh | |
15482 | ||
15483 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15484 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15485 | _ACEOF |
81ecdfbb RW |
15486 | sed -n ' |
15487 | h | |
15488 | s/^/S["/; s/!.*/"]=/ | |
15489 | p | |
15490 | g | |
15491 | s/^[^!]*!// | |
15492 | :repl | |
15493 | t repl | |
15494 | s/'"$ac_delim"'$// | |
15495 | t delim | |
15496 | :nl | |
15497 | h | |
15498 | s/\(.\{148\}\).*/\1/ | |
15499 | t more1 | |
15500 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15501 | p | |
15502 | n | |
15503 | b repl | |
15504 | :more1 | |
15505 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15506 | p | |
15507 | g | |
15508 | s/.\{148\}// | |
15509 | t nl | |
15510 | :delim | |
15511 | h | |
15512 | s/\(.\{148\}\).*/\1/ | |
15513 | t more2 | |
15514 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15515 | p | |
15516 | b | |
15517 | :more2 | |
15518 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15519 | p | |
15520 | g | |
15521 | s/.\{148\}// | |
15522 | t delim | |
15523 | ' <conf$$subs.awk | sed ' | |
15524 | /^[^""]/{ | |
15525 | N | |
15526 | s/\n// | |
15527 | } | |
15528 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15529 | rm -f conf$$subs.awk | |
15530 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15531 | _ACAWK | |
15532 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15533 | for (key in S) S_is_set[key] = 1 | |
15534 | FS = "\a" | |
15535 | \$ac_cs_awk_pipe_init | |
15536 | } | |
15537 | { | |
15538 | line = $ 0 | |
15539 | nfields = split(line, field, "@") | |
15540 | substed = 0 | |
15541 | len = length(field[1]) | |
15542 | for (i = 2; i < nfields; i++) { | |
15543 | key = field[i] | |
15544 | keylen = length(key) | |
15545 | if (S_is_set[key]) { | |
15546 | value = S[key] | |
15547 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15548 | len += length(value) + length(field[++i]) | |
15549 | substed = 1 | |
15550 | } else | |
15551 | len += 1 + keylen | |
15552 | } | |
15553 | if (nfields == 3 && !substed) { | |
15554 | key = field[2] | |
15555 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15556 | \$ac_cs_awk_read_file | |
15557 | next | |
15558 | } | |
15559 | } | |
15560 | print line | |
15561 | } | |
15562 | \$ac_cs_awk_pipe_fini | |
15563 | _ACAWK | |
15564 | _ACEOF | |
15565 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15566 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15567 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15568 | else | |
15569 | cat | |
15570 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15571 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15572 | _ACEOF | |
15573 | ||
15574 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15575 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15576 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15577 | # (actually we leave an empty line to preserve line numbers). | |
15578 | if test "x$srcdir" = x.; then | |
15579 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15580 | s/:*\$(srcdir):*/:/ | |
15581 | s/:*\${srcdir}:*/:/ | |
15582 | s/:*@srcdir@:*/:/ | |
15583 | s/^\([^=]*=[ ]*\):*/\1/ | |
15584 | s/:*$// | |
15585 | s/^[^=]*=[ ]*$// | |
15586 | }' | |
15587 | fi | |
c6b750e1 | 15588 | |
81ecdfbb RW |
15589 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15590 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15591 | |
c6b750e1 | 15592 | |
81ecdfbb RW |
15593 | eval set X " :F $CONFIG_FILES " |
15594 | shift | |
15595 | for ac_tag | |
15596 | do | |
15597 | case $ac_tag in | |
15598 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15599 | esac | |
15600 | case $ac_mode$ac_tag in | |
15601 | :[FHL]*:*);; | |
15602 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15603 | :[FH]-) ac_tag=-:-;; | |
15604 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15605 | esac | |
15606 | ac_save_IFS=$IFS | |
15607 | IFS=: | |
15608 | set x $ac_tag | |
15609 | IFS=$ac_save_IFS | |
15610 | shift | |
15611 | ac_file=$1 | |
15612 | shift | |
252b5132 | 15613 | |
81ecdfbb RW |
15614 | case $ac_mode in |
15615 | :L) ac_source=$1;; | |
15616 | :[FH]) | |
15617 | ac_file_inputs= | |
15618 | for ac_f | |
15619 | do | |
15620 | case $ac_f in | |
15621 | -) ac_f="$tmp/stdin";; | |
15622 | *) # Look for the file first in the build tree, then in the source tree | |
15623 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15624 | # because $ac_f cannot contain `:'. | |
15625 | test -f "$ac_f" || | |
15626 | case $ac_f in | |
15627 | [\\/$]*) false;; | |
15628 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15629 | esac || | |
15630 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15631 | esac | |
15632 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15633 | as_fn_append ac_file_inputs " '$ac_f'" | |
15634 | done | |
c6b750e1 | 15635 | |
81ecdfbb RW |
15636 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15637 | # use $as_me), people would be surprised to read: | |
15638 | # /* config.h. Generated by config.status. */ | |
15639 | configure_input='Generated from '` | |
15640 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15641 | `' by configure.' | |
15642 | if test x"$ac_file" != x-; then | |
15643 | configure_input="$ac_file. $configure_input" | |
15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15645 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15646 | fi |
81ecdfbb RW |
15647 | # Neutralize special characters interpreted by sed in replacement strings. |
15648 | case $configure_input in #( | |
15649 | *\&* | *\|* | *\\* ) | |
15650 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15651 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15652 | *) ac_sed_conf_input=$configure_input;; | |
15653 | esac | |
cac3d6c4 | 15654 | |
81ecdfbb RW |
15655 | case $ac_tag in |
15656 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15657 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15658 | esac | |
15659 | ;; | |
a0da8069 | 15660 | esac |
252b5132 | 15661 | |
81ecdfbb | 15662 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15663 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15664 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15665 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15666 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15667 | $as_echo X"$ac_file" | | |
15668 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15669 | s//\1/ | |
15670 | q | |
15671 | } | |
15672 | /^X\(\/\/\)[^/].*/{ | |
15673 | s//\1/ | |
15674 | q | |
15675 | } | |
15676 | /^X\(\/\/\)$/{ | |
15677 | s//\1/ | |
15678 | q | |
15679 | } | |
15680 | /^X\(\/\).*/{ | |
15681 | s//\1/ | |
15682 | q | |
15683 | } | |
15684 | s/.*/./; q'` | |
15685 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15686 | ac_builddir=. |
252b5132 | 15687 | |
81ecdfbb RW |
15688 | case "$ac_dir" in |
15689 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15690 | *) | |
15691 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15692 | # A ".." for each directory in $ac_dir_suffix. | |
15693 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15694 | case $ac_top_builddir_sub in | |
15695 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15696 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15697 | esac ;; | |
15698 | esac | |
15699 | ac_abs_top_builddir=$ac_pwd | |
15700 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15701 | # for backward compatibility: | |
15702 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15703 | |
15704 | case $srcdir in | |
81ecdfbb | 15705 | .) # We are building in place. |
c6b750e1 | 15706 | ac_srcdir=. |
81ecdfbb RW |
15707 | ac_top_srcdir=$ac_top_builddir_sub |
15708 | ac_abs_top_srcdir=$ac_pwd ;; | |
15709 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15710 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15711 | ac_top_srcdir=$srcdir |
15712 | ac_abs_top_srcdir=$srcdir ;; | |
15713 | *) # Relative name. | |
15714 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15715 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15716 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15717 | esac |
81ecdfbb | 15718 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15719 | |
252b5132 | 15720 | |
81ecdfbb RW |
15721 | case $ac_mode in |
15722 | :F) | |
15723 | # | |
15724 | # CONFIG_FILE | |
15725 | # | |
c6b750e1 DJ |
15726 | |
15727 | case $INSTALL in | |
15728 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15729 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15730 | esac |
81ecdfbb | 15731 | _ACEOF |
252b5132 | 15732 | |
81ecdfbb RW |
15733 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15734 | # If the template does not know about datarootdir, expand it. | |
15735 | # FIXME: This hack should be removed a few years after 2.60. | |
15736 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15737 | ac_sed_dataroot=' | |
15738 | /datarootdir/ { | |
15739 | p | |
15740 | q | |
15741 | } | |
15742 | /@datadir@/p | |
15743 | /@docdir@/p | |
15744 | /@infodir@/p | |
15745 | /@localedir@/p | |
15746 | /@mandir@/p' | |
15747 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15748 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15749 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15751 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15752 | _ACEOF |
81ecdfbb RW |
15753 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15754 | ac_datarootdir_hack=' | |
15755 | s&@datadir@&$datadir&g | |
15756 | s&@docdir@&$docdir&g | |
15757 | s&@infodir@&$infodir&g | |
15758 | s&@localedir@&$localedir&g | |
15759 | s&@mandir@&$mandir&g | |
15760 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15761 | esac | |
15762 | _ACEOF | |
15763 | ||
15764 | # Neutralize VPATH when `$srcdir' = `.'. | |
15765 | # Shell code in configure.ac might set extrasub. | |
15766 | # FIXME: do we really want to maintain this feature? | |
15767 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15768 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15769 | $extrasub |
15770 | _ACEOF | |
81ecdfbb | 15771 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15772 | :t |
15773 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15774 | s|@configure_input@|$ac_sed_conf_input|;t t |
15775 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15776 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15777 | s&@srcdir@&$ac_srcdir&;t t | |
15778 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15779 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15780 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15781 | s&@builddir@&$ac_builddir&;t t | |
15782 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15783 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15784 | s&@INSTALL@&$ac_INSTALL&;t t | |
15785 | $ac_datarootdir_hack | |
15786 | " | |
15787 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15788 | if $ac_cs_awk_getline; then | |
15789 | $AWK -f "$tmp/subs.awk" | |
15790 | else | |
15791 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15792 | fi >$tmp/out \ | |
15793 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15794 | ||
15795 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15796 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15797 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15799 | which seems to be undefined. Please make sure it is defined." >&5 | |
15800 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15801 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15802 | ||
15803 | rm -f "$tmp/stdin" | |
15804 | case $ac_file in | |
15805 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15806 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15807 | esac \ | |
15808 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15809 | ;; | |
c148b4cb | 15810 | |
c148b4cb | 15811 | |
c148b4cb | 15812 | |
81ecdfbb RW |
15813 | esac |
15814 | ||
06a51eac RW |
15815 | |
15816 | case $ac_file$ac_mode in | |
15817 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15818 | sed "$extrasub_host" | | |
15819 | sed "$extrasub_target" > mf$$ | |
15820 | mv -f mf$$ Makefile ;; | |
15821 | ||
15822 | esac | |
81ecdfbb RW |
15823 | done # for ac_tag |
15824 | ||
15825 | ||
15826 | as_fn_exit 0 | |
c6b750e1 | 15827 | _ACEOF |
c6b750e1 DJ |
15828 | ac_clean_files=$ac_clean_files_save |
15829 | ||
81ecdfbb RW |
15830 | test $ac_write_fail = 0 || |
15831 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15832 | ||
c6b750e1 DJ |
15833 | |
15834 | # configure is writing to config.log, and then calls config.status. | |
15835 | # config.status does its own redirection, appending to config.log. | |
15836 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15837 | # by configure, so config.status won't be able to write to it; its | |
15838 | # output is simply discarded. So we exec the FD to /dev/null, | |
15839 | # effectively closing config.log, so it can be properly (re)opened and | |
15840 | # appended to by config.status. When coming back to configure, we | |
15841 | # need to make the FD available again. | |
15842 | if test "$no_create" != yes; then | |
15843 | ac_cs_success=: | |
15844 | ac_config_status_args= | |
15845 | test "$silent" = yes && | |
15846 | ac_config_status_args="$ac_config_status_args --quiet" | |
15847 | exec 5>/dev/null | |
15848 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15849 | exec 5>>config.log | |
15850 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15851 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15852 | $ac_cs_success || as_fn_exit $? |
15853 | fi | |
15854 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15856 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15857 | fi |
c148b4cb | 15858 |