Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
559 | stage2_werror_flag | |
560 | stage1_checking | |
561 | stage1_cflags | |
562 | MAINT | |
563 | MAINTAINER_MODE_FALSE | |
564 | MAINTAINER_MODE_TRUE | |
565 | COMPILER_NM_FOR_TARGET | |
566 | COMPILER_LD_FOR_TARGET | |
567 | COMPILER_AS_FOR_TARGET | |
568 | FLAGS_FOR_TARGET | |
569 | RAW_CXX_FOR_TARGET | |
570 | WINDMC_FOR_TARGET | |
571 | WINDRES_FOR_TARGET | |
572 | STRIP_FOR_TARGET | |
573 | RANLIB_FOR_TARGET | |
574 | OBJDUMP_FOR_TARGET | |
575 | NM_FOR_TARGET | |
576 | LIPO_FOR_TARGET | |
577 | LD_FOR_TARGET | |
578 | DLLTOOL_FOR_TARGET | |
579 | AS_FOR_TARGET | |
580 | AR_FOR_TARGET | |
e552509b | 581 | GOC_FOR_TARGET |
81ecdfbb RW |
582 | GFORTRAN_FOR_TARGET |
583 | GCJ_FOR_TARGET | |
584 | GCC_FOR_TARGET | |
585 | CXX_FOR_TARGET | |
586 | CC_FOR_TARGET | |
587 | OBJDUMP | |
588 | OBJCOPY | |
589 | WINDMC | |
590 | WINDRES | |
591 | STRIP | |
592 | RANLIB | |
593 | NM | |
594 | LIPO | |
595 | LD | |
596 | DLLTOOL | |
597 | AS | |
598 | AR | |
599 | RUNTEST | |
600 | EXPECT | |
601 | MAKEINFO | |
602 | FLEX | |
603 | LEX | |
604 | M4 | |
605 | BISON | |
606 | YACC | |
81ecdfbb RW |
607 | WINDRES_FOR_BUILD |
608 | WINDMC_FOR_BUILD | |
609 | RANLIB_FOR_BUILD | |
610 | NM_FOR_BUILD | |
611 | LD_FOR_BUILD | |
612 | LDFLAGS_FOR_BUILD | |
e552509b | 613 | GOC_FOR_BUILD |
81ecdfbb RW |
614 | GFORTRAN_FOR_BUILD |
615 | GCJ_FOR_BUILD | |
616 | DLLTOOL_FOR_BUILD | |
617 | CXX_FOR_BUILD | |
618 | CXXFLAGS_FOR_BUILD | |
619 | CFLAGS_FOR_BUILD | |
620 | CC_FOR_BUILD | |
621 | AS_FOR_BUILD | |
622 | AR_FOR_BUILD | |
911e63d0 | 623 | target_configdirs |
81ecdfbb | 624 | configdirs |
81ecdfbb | 625 | build_configdirs |
81ecdfbb RW |
626 | INSTALL_GDB_TK |
627 | GDB_TK | |
628 | CONFIGURE_GDB_TK | |
629 | build_tooldir | |
630 | tooldir | |
631 | GCC_SHLIB_SUBDIR | |
632 | RPATH_ENVVAR | |
4074d5f2 RW |
633 | target_configargs |
634 | host_configargs | |
635 | build_configargs | |
96655cc4 | 636 | BUILD_CONFIG |
81ecdfbb RW |
637 | CXXFLAGS_FOR_TARGET |
638 | CFLAGS_FOR_TARGET | |
639 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
640 | SYSROOT_CFLAGS_FOR_TARGET | |
641 | stage1_languages | |
700d40ca | 642 | extra_host_libiberty_configure_flags |
81ecdfbb RW |
643 | clooginc |
644 | clooglibs | |
645 | pplinc | |
646 | ppllibs | |
81ecdfbb | 647 | poststage1_ldflags |
143754cd | 648 | poststage1_libs |
81ecdfbb RW |
649 | stage1_libs |
650 | stage1_ldflags | |
651 | extra_mpc_mpfr_configure_flags | |
652 | extra_mpc_gmp_configure_flags | |
653 | extra_mpfr_configure_flags | |
654 | gmpinc | |
655 | gmplibs | |
656 | do_compare | |
657 | GNATMAKE | |
658 | GNATBIND | |
659 | ac_ct_CXX | |
660 | CXXFLAGS | |
661 | CXX | |
662 | OBJEXT | |
663 | EXEEXT | |
664 | ac_ct_CC | |
665 | CPPFLAGS | |
666 | LDFLAGS | |
667 | CFLAGS | |
668 | CC | |
669 | target_subdir | |
670 | host_subdir | |
671 | build_subdir | |
672 | build_libsubdir | |
8e957354 PB |
673 | AWK |
674 | SED | |
81ecdfbb RW |
675 | LN_S |
676 | LN | |
677 | INSTALL_DATA | |
678 | INSTALL_SCRIPT | |
679 | INSTALL_PROGRAM | |
680 | target_os | |
681 | target_vendor | |
682 | target_cpu | |
683 | target | |
684 | host_os | |
685 | host_vendor | |
686 | host_cpu | |
687 | host | |
688 | target_noncanonical | |
689 | host_noncanonical | |
690 | build_noncanonical | |
691 | build_os | |
692 | build_vendor | |
693 | build_cpu | |
694 | build | |
695 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
696 | target_alias | |
697 | host_alias | |
698 | build_alias | |
699 | LIBS | |
700 | ECHO_T | |
701 | ECHO_N | |
702 | ECHO_C | |
703 | DEFS | |
704 | mandir | |
705 | localedir | |
706 | libdir | |
707 | psdir | |
708 | pdfdir | |
709 | dvidir | |
710 | htmldir | |
711 | infodir | |
712 | docdir | |
713 | oldincludedir | |
714 | includedir | |
715 | localstatedir | |
716 | sharedstatedir | |
717 | sysconfdir | |
718 | datadir | |
719 | datarootdir | |
720 | libexecdir | |
721 | sbindir | |
722 | bindir | |
723 | program_transform_name | |
724 | prefix | |
725 | exec_prefix | |
726 | PACKAGE_URL | |
727 | PACKAGE_BUGREPORT | |
728 | PACKAGE_STRING | |
729 | PACKAGE_VERSION | |
730 | PACKAGE_TARNAME | |
731 | PACKAGE_NAME | |
732 | PATH_SEPARATOR | |
733 | SHELL' | |
734 | ac_subst_files='serialization_dependencies | |
735 | host_makefile_frag | |
736 | target_makefile_frag | |
737 | alphaieee_frag | |
738 | ospace_frag' | |
739 | ac_user_opts=' | |
740 | enable_option_checking | |
741 | with_build_libsubdir | |
742 | enable_gold | |
c7791212 | 743 | enable_ld |
89a1e9c3 PB |
744 | enable_libquadmath |
745 | enable_libquadmath_support | |
81ecdfbb RW |
746 | enable_libada |
747 | enable_libssp | |
748 | enable_build_with_cxx | |
749 | with_mpc | |
750 | with_mpc_include | |
751 | with_mpc_lib | |
752 | with_mpfr_dir | |
753 | with_mpfr | |
754 | with_mpfr_include | |
755 | with_mpfr_lib | |
756 | with_gmp_dir | |
757 | with_gmp | |
758 | with_gmp_include | |
759 | with_gmp_lib | |
760 | with_host_libstdcxx | |
761 | with_stage1_ldflags | |
762 | with_stage1_libs | |
81ecdfbb | 763 | with_boot_libs |
143754cd | 764 | with_boot_ldflags |
81ecdfbb RW |
765 | with_ppl |
766 | with_ppl_include | |
767 | with_ppl_lib | |
768 | enable_ppl_version_check | |
769 | with_cloog | |
770 | with_cloog_include | |
771 | with_cloog_lib | |
e552509b | 772 | enable_cloog_backend |
81ecdfbb | 773 | enable_cloog_version_check |
700d40ca | 774 | enable_lto |
81ecdfbb RW |
775 | enable_stage1_languages |
776 | enable_objc_gc | |
777 | with_build_sysroot | |
778 | with_debug_prefix_map | |
779 | enable_bootstrap | |
96655cc4 | 780 | with_build_config |
81ecdfbb RW |
781 | enable_serial_configure |
782 | with_build_time_tools | |
783 | enable_maintainer_mode | |
784 | enable_stage1_checking | |
785 | enable_werror | |
81ecdfbb RW |
786 | ' |
787 | ac_precious_vars='build_alias | |
788 | host_alias | |
789 | target_alias | |
790 | CC | |
791 | CFLAGS | |
792 | LDFLAGS | |
793 | LIBS | |
794 | CPPFLAGS | |
795 | CXX | |
796 | CXXFLAGS | |
797 | CCC | |
4074d5f2 RW |
798 | build_configargs |
799 | host_configargs | |
800 | target_configargs | |
81ecdfbb RW |
801 | AR |
802 | AS | |
803 | DLLTOOL | |
804 | LD | |
805 | LIPO | |
806 | NM | |
807 | RANLIB | |
808 | STRIP | |
809 | WINDRES | |
810 | WINDMC | |
811 | OBJCOPY | |
812 | OBJDUMP | |
813 | CC_FOR_TARGET | |
814 | CXX_FOR_TARGET | |
815 | GCC_FOR_TARGET | |
816 | GCJ_FOR_TARGET | |
817 | GFORTRAN_FOR_TARGET | |
e552509b | 818 | GOC_FOR_TARGET |
81ecdfbb RW |
819 | AR_FOR_TARGET |
820 | AS_FOR_TARGET | |
821 | DLLTOOL_FOR_TARGET | |
822 | LD_FOR_TARGET | |
823 | LIPO_FOR_TARGET | |
824 | NM_FOR_TARGET | |
825 | OBJDUMP_FOR_TARGET | |
826 | RANLIB_FOR_TARGET | |
827 | STRIP_FOR_TARGET | |
828 | WINDRES_FOR_TARGET | |
829 | WINDMC_FOR_TARGET' | |
830 | ||
a0da8069 NN |
831 | |
832 | # Initialize some variables set by options. | |
c6b750e1 DJ |
833 | ac_init_help= |
834 | ac_init_version=false | |
81ecdfbb RW |
835 | ac_unrecognized_opts= |
836 | ac_unrecognized_sep= | |
a0da8069 NN |
837 | # The variables have the same names as the options, with |
838 | # dashes changed to underlines. | |
c6b750e1 | 839 | cache_file=/dev/null |
a0da8069 | 840 | exec_prefix=NONE |
a0da8069 | 841 | no_create= |
a0da8069 NN |
842 | no_recursion= |
843 | prefix=NONE | |
844 | program_prefix=NONE | |
845 | program_suffix=NONE | |
846 | program_transform_name=s,x,x, | |
847 | silent= | |
848 | site= | |
849 | srcdir= | |
a0da8069 NN |
850 | verbose= |
851 | x_includes=NONE | |
852 | x_libraries=NONE | |
c6b750e1 DJ |
853 | |
854 | # Installation directory options. | |
855 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
856 | # and all the variables that are supposed to be based on exec_prefix | |
857 | # by default will actually change. | |
858 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 859 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
860 | bindir='${exec_prefix}/bin' |
861 | sbindir='${exec_prefix}/sbin' | |
862 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
863 | datarootdir='${prefix}/share' |
864 | datadir='${datarootdir}' | |
a0da8069 NN |
865 | sysconfdir='${prefix}/etc' |
866 | sharedstatedir='${prefix}/com' | |
867 | localstatedir='${prefix}/var' | |
a0da8069 NN |
868 | includedir='${prefix}/include' |
869 | oldincludedir='/usr/include' | |
81ecdfbb RW |
870 | docdir='${datarootdir}/doc/${PACKAGE}' |
871 | infodir='${datarootdir}/info' | |
872 | htmldir='${docdir}' | |
873 | dvidir='${docdir}' | |
874 | pdfdir='${docdir}' | |
875 | psdir='${docdir}' | |
876 | libdir='${exec_prefix}/lib' | |
877 | localedir='${datarootdir}/locale' | |
878 | mandir='${datarootdir}/man' | |
252b5132 | 879 | |
a0da8069 | 880 | ac_prev= |
81ecdfbb | 881 | ac_dashdash= |
a0da8069 NN |
882 | for ac_option |
883 | do | |
a0da8069 NN |
884 | # If the previous option needs an argument, assign it. |
885 | if test -n "$ac_prev"; then | |
81ecdfbb | 886 | eval $ac_prev=\$ac_option |
a0da8069 NN |
887 | ac_prev= |
888 | continue | |
889 | fi | |
252b5132 | 890 | |
81ecdfbb RW |
891 | case $ac_option in |
892 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
893 | *) ac_optarg=yes ;; | |
894 | esac | |
a0da8069 NN |
895 | |
896 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
897 | ||
81ecdfbb RW |
898 | case $ac_dashdash$ac_option in |
899 | --) | |
900 | ac_dashdash=yes ;; | |
a0da8069 NN |
901 | |
902 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
903 | ac_prev=bindir ;; | |
904 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 905 | bindir=$ac_optarg ;; |
a0da8069 NN |
906 | |
907 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 908 | ac_prev=build_alias ;; |
a0da8069 | 909 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 910 | build_alias=$ac_optarg ;; |
a0da8069 NN |
911 | |
912 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
913 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
914 | ac_prev=cache_file ;; | |
915 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
916 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
917 | cache_file=$ac_optarg ;; |
918 | ||
919 | --config-cache | -C) | |
920 | cache_file=config.cache ;; | |
a0da8069 | 921 | |
81ecdfbb | 922 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 923 | ac_prev=datadir ;; |
81ecdfbb | 924 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 925 | datadir=$ac_optarg ;; |
a0da8069 | 926 | |
81ecdfbb RW |
927 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
928 | | --dataroo | --dataro | --datar) | |
929 | ac_prev=datarootdir ;; | |
930 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
931 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
932 | datarootdir=$ac_optarg ;; | |
933 | ||
a0da8069 | 934 | -disable-* | --disable-*) |
81ecdfbb | 935 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 936 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
937 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
938 | as_fn_error "invalid feature name: $ac_useropt" | |
939 | ac_useropt_orig=$ac_useropt | |
940 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
941 | case $ac_user_opts in | |
942 | *" | |
943 | "enable_$ac_useropt" | |
944 | "*) ;; | |
945 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
946 | ac_unrecognized_sep=', ';; | |
947 | esac | |
948 | eval enable_$ac_useropt=no ;; | |
949 | ||
950 | -docdir | --docdir | --docdi | --doc | --do) | |
951 | ac_prev=docdir ;; | |
952 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
953 | docdir=$ac_optarg ;; | |
954 | ||
955 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
956 | ac_prev=dvidir ;; | |
957 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
958 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
959 | |
960 | -enable-* | --enable-*) | |
81ecdfbb | 961 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 962 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
963 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
964 | as_fn_error "invalid feature name: $ac_useropt" | |
965 | ac_useropt_orig=$ac_useropt | |
966 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
967 | case $ac_user_opts in | |
968 | *" | |
969 | "enable_$ac_useropt" | |
970 | "*) ;; | |
971 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
972 | ac_unrecognized_sep=', ';; | |
a0da8069 | 973 | esac |
81ecdfbb | 974 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
975 | |
976 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
977 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
978 | | --exec | --exe | --ex) | |
979 | ac_prev=exec_prefix ;; | |
980 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
981 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
982 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 983 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
984 | |
985 | -gas | --gas | --ga | --g) | |
986 | # Obsolete; use --with-gas. | |
987 | with_gas=yes ;; | |
988 | ||
c6b750e1 DJ |
989 | -help | --help | --hel | --he | -h) |
990 | ac_init_help=long ;; | |
991 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
992 | ac_init_help=recursive ;; | |
993 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
994 | ac_init_help=short ;; | |
a0da8069 NN |
995 | |
996 | -host | --host | --hos | --ho) | |
c6b750e1 | 997 | ac_prev=host_alias ;; |
a0da8069 | 998 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 999 | host_alias=$ac_optarg ;; |
a0da8069 | 1000 | |
81ecdfbb RW |
1001 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1002 | ac_prev=htmldir ;; | |
1003 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1004 | | --ht=*) | |
1005 | htmldir=$ac_optarg ;; | |
1006 | ||
a0da8069 NN |
1007 | -includedir | --includedir | --includedi | --included | --include \ |
1008 | | --includ | --inclu | --incl | --inc) | |
1009 | ac_prev=includedir ;; | |
1010 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1011 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1012 | includedir=$ac_optarg ;; |
a0da8069 NN |
1013 | |
1014 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1015 | ac_prev=infodir ;; | |
1016 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1017 | infodir=$ac_optarg ;; |
a0da8069 NN |
1018 | |
1019 | -libdir | --libdir | --libdi | --libd) | |
1020 | ac_prev=libdir ;; | |
1021 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1022 | libdir=$ac_optarg ;; |
a0da8069 NN |
1023 | |
1024 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1025 | | --libexe | --libex | --libe) | |
1026 | ac_prev=libexecdir ;; | |
1027 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1028 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1029 | libexecdir=$ac_optarg ;; |
a0da8069 | 1030 | |
81ecdfbb RW |
1031 | -localedir | --localedir | --localedi | --localed | --locale) |
1032 | ac_prev=localedir ;; | |
1033 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1034 | localedir=$ac_optarg ;; | |
1035 | ||
a0da8069 | 1036 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1037 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1038 | ac_prev=localstatedir ;; |
1039 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1040 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1041 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1042 | |
1043 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1044 | ac_prev=mandir ;; | |
1045 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1046 | mandir=$ac_optarg ;; |
a0da8069 NN |
1047 | |
1048 | -nfp | --nfp | --nf) | |
1049 | # Obsolete; use --without-fp. | |
1050 | with_fp=no ;; | |
1051 | ||
1052 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1053 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1054 | no_create=yes ;; |
1055 | ||
1056 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1057 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1058 | no_recursion=yes ;; | |
1059 | ||
1060 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1061 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1062 | | --oldin | --oldi | --old | --ol | --o) | |
1063 | ac_prev=oldincludedir ;; | |
1064 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1065 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1066 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1067 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1068 | |
1069 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1070 | ac_prev=prefix ;; | |
1071 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1072 | prefix=$ac_optarg ;; |
a0da8069 NN |
1073 | |
1074 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1075 | | --program-pre | --program-pr | --program-p) | |
1076 | ac_prev=program_prefix ;; | |
1077 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1078 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1079 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1080 | |
1081 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1082 | | --program-suf | --program-su | --program-s) | |
1083 | ac_prev=program_suffix ;; | |
1084 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1085 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1086 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1087 | |
1088 | -program-transform-name | --program-transform-name \ | |
1089 | | --program-transform-nam | --program-transform-na \ | |
1090 | | --program-transform-n | --program-transform- \ | |
1091 | | --program-transform | --program-transfor \ | |
1092 | | --program-transfo | --program-transf \ | |
1093 | | --program-trans | --program-tran \ | |
1094 | | --progr-tra | --program-tr | --program-t) | |
1095 | ac_prev=program_transform_name ;; | |
1096 | -program-transform-name=* | --program-transform-name=* \ | |
1097 | | --program-transform-nam=* | --program-transform-na=* \ | |
1098 | | --program-transform-n=* | --program-transform-=* \ | |
1099 | | --program-transform=* | --program-transfor=* \ | |
1100 | | --program-transfo=* | --program-transf=* \ | |
1101 | | --program-trans=* | --program-tran=* \ | |
1102 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1103 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1104 | |
81ecdfbb RW |
1105 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1106 | ac_prev=pdfdir ;; | |
1107 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1108 | pdfdir=$ac_optarg ;; | |
1109 | ||
1110 | -psdir | --psdir | --psdi | --psd | --ps) | |
1111 | ac_prev=psdir ;; | |
1112 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1113 | psdir=$ac_optarg ;; | |
1114 | ||
a0da8069 NN |
1115 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1116 | | -silent | --silent | --silen | --sile | --sil) | |
1117 | silent=yes ;; | |
1118 | ||
1119 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1120 | ac_prev=sbindir ;; | |
1121 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1122 | | --sbi=* | --sb=*) | |
c6b750e1 | 1123 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1124 | |
1125 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1126 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1127 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1128 | | --sha | --sh) | |
1129 | ac_prev=sharedstatedir ;; | |
1130 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1131 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1132 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1133 | | --sha=* | --sh=*) | |
c6b750e1 | 1134 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1135 | |
1136 | -site | --site | --sit) | |
1137 | ac_prev=site ;; | |
1138 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1139 | site=$ac_optarg ;; |
a0da8069 NN |
1140 | |
1141 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1142 | ac_prev=srcdir ;; | |
1143 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1144 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1145 | |
1146 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1147 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1148 | ac_prev=sysconfdir ;; | |
1149 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1150 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1151 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1152 | |
1153 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1154 | ac_prev=target_alias ;; |
a0da8069 | 1155 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1156 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1157 | |
1158 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1159 | verbose=yes ;; | |
1160 | ||
c6b750e1 DJ |
1161 | -version | --version | --versio | --versi | --vers | -V) |
1162 | ac_init_version=: ;; | |
a0da8069 NN |
1163 | |
1164 | -with-* | --with-*) | |
81ecdfbb | 1165 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1166 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1167 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1168 | as_fn_error "invalid package name: $ac_useropt" | |
1169 | ac_useropt_orig=$ac_useropt | |
1170 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1171 | case $ac_user_opts in | |
1172 | *" | |
1173 | "with_$ac_useropt" | |
1174 | "*) ;; | |
1175 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1176 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1177 | esac |
81ecdfbb | 1178 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1179 | |
1180 | -without-* | --without-*) | |
81ecdfbb | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1182 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 | as_fn_error "invalid package name: $ac_useropt" | |
1185 | ac_useropt_orig=$ac_useropt | |
1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1187 | case $ac_user_opts in | |
1188 | *" | |
1189 | "with_$ac_useropt" | |
1190 | "*) ;; | |
1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1192 | ac_unrecognized_sep=', ';; | |
1193 | esac | |
1194 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1195 | |
1196 | --x) | |
1197 | # Obsolete; use --with-x. | |
1198 | with_x=yes ;; | |
1199 | ||
1200 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1201 | | --x-incl | --x-inc | --x-in | --x-i) | |
1202 | ac_prev=x_includes ;; | |
1203 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1204 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1205 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1206 | |
1207 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1208 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1209 | ac_prev=x_libraries ;; | |
1210 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1211 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1212 | x_libraries=$ac_optarg ;; |
a0da8069 | 1213 | |
81ecdfbb RW |
1214 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1215 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1216 | ;; |
1217 | ||
c6b750e1 DJ |
1218 | *=*) |
1219 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1220 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1221 | case $ac_envvar in #( |
1222 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1223 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1224 | esac | |
1225 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1226 | export $ac_envvar ;; |
1227 | ||
a0da8069 | 1228 | *) |
c6b750e1 | 1229 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1230 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1231 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1232 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1233 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1234 | ;; |
1235 | ||
1236 | esac | |
1237 | done | |
1238 | ||
1239 | if test -n "$ac_prev"; then | |
c6b750e1 | 1240 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1241 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1242 | fi |
a0da8069 | 1243 | |
81ecdfbb RW |
1244 | if test -n "$ac_unrecognized_opts"; then |
1245 | case $enable_option_checking in | |
1246 | no) ;; | |
1247 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1248 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1249 | esac |
81ecdfbb | 1250 | fi |
a0da8069 | 1251 | |
81ecdfbb RW |
1252 | # Check all directory arguments for consistency. |
1253 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1254 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1255 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1256 | libdir localedir mandir | |
a0da8069 | 1257 | do |
81ecdfbb RW |
1258 | eval ac_val=\$$ac_var |
1259 | # Remove trailing slashes. | |
1260 | case $ac_val in | |
1261 | */ ) | |
1262 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1263 | eval $ac_var=\$ac_val;; | |
1264 | esac | |
1265 | # Be sure to have absolute directory names. | |
c6b750e1 | 1266 | case $ac_val in |
81ecdfbb RW |
1267 | [\\/$]* | ?:[\\/]* ) continue;; |
1268 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1269 | esac |
81ecdfbb | 1270 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1271 | done |
1272 | ||
c6b750e1 DJ |
1273 | # There might be people who depend on the old broken behavior: `$host' |
1274 | # used to hold the argument of --host etc. | |
1275 | # FIXME: To remove some day. | |
1276 | build=$build_alias | |
1277 | host=$host_alias | |
1278 | target=$target_alias | |
376a0e54 | 1279 | |
c6b750e1 DJ |
1280 | # FIXME: To remove some day. |
1281 | if test "x$host_alias" != x; then | |
1282 | if test "x$build_alias" = x; then | |
1283 | cross_compiling=maybe | |
81ecdfbb | 1284 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1285 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1286 | elif test "x$build_alias" != "x$host_alias"; then | |
1287 | cross_compiling=yes | |
1288 | fi | |
1289 | fi | |
1290 | ||
1291 | ac_tool_prefix= | |
1292 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1293 | ||
1294 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1295 | |
a0da8069 | 1296 | |
81ecdfbb RW |
1297 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1298 | ac_ls_di=`ls -di .` && | |
1299 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1300 | as_fn_error "working directory cannot be determined" | |
1301 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1302 | as_fn_error "pwd does not report name of working directory" | |
1303 | ||
1304 | ||
a0da8069 NN |
1305 | # Find the source files, if location was not specified. |
1306 | if test -z "$srcdir"; then | |
1307 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1308 | # Try the directory containing this script, then the parent directory. |
1309 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1310 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1311 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1312 | X"$as_myself" : 'X\(//\)$' \| \ | |
1313 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1314 | $as_echo X"$as_myself" | | |
1315 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1316 | s//\1/ | |
1317 | q | |
1318 | } | |
1319 | /^X\(\/\/\)[^/].*/{ | |
1320 | s//\1/ | |
1321 | q | |
1322 | } | |
1323 | /^X\(\/\/\)$/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\).*/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | s/.*/./; q'` | |
a0da8069 | 1332 | srcdir=$ac_confdir |
81ecdfbb | 1333 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1334 | srcdir=.. |
1335 | fi | |
1336 | else | |
1337 | ac_srcdir_defaulted=no | |
1338 | fi | |
81ecdfbb RW |
1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
1340 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1341 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1342 | fi | |
1343 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1344 | ac_abs_confdir=`( | |
1345 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1346 | pwd)` | |
1347 | # When building in place, set srcdir=. | |
1348 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1349 | srcdir=. | |
1350 | fi | |
1351 | # Remove unnecessary trailing slashes from srcdir. | |
1352 | # Double slashes in file names in object file debugging info | |
1353 | # mess up M-x gdb in Emacs. | |
1354 | case $srcdir in | |
1355 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1356 | esac | |
6d0cd39e AM |
1357 | case $srcdir in |
1358 | *" "*) | |
1359 | as_fn_error "path to source, $srcdir, contains spaces" | |
1360 | ;; | |
1361 | esac | |
9cc8ae67 PB |
1362 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1363 | ||
81ecdfbb RW |
1364 | for ac_var in $ac_precious_vars; do |
1365 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1366 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1367 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1368 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1369 | done | |
c6b750e1 DJ |
1370 | |
1371 | # | |
1372 | # Report the --help message. | |
1373 | # | |
1374 | if test "$ac_init_help" = "long"; then | |
1375 | # Omit some internal or obsolete options to make the list less imposing. | |
1376 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1377 | cat <<_ACEOF | |
1378 | \`configure' configures this package to adapt to many kinds of systems. | |
1379 | ||
1380 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1381 | ||
1382 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1383 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1384 | ||
1385 | Defaults for the options are specified in brackets. | |
1386 | ||
1387 | Configuration: | |
1388 | -h, --help display this help and exit | |
1389 | --help=short display options specific to this package | |
1390 | --help=recursive display the short help of all the included packages | |
1391 | -V, --version display version information and exit | |
1392 | -q, --quiet, --silent do not print \`checking...' messages | |
1393 | --cache-file=FILE cache test results in FILE [disabled] | |
1394 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1395 | -n, --no-create do not create output files | |
1396 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1397 | ||
c6b750e1 DJ |
1398 | Installation directories: |
1399 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1400 | [$ac_default_prefix] |
c6b750e1 | 1401 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1402 | [PREFIX] |
c6b750e1 DJ |
1403 | |
1404 | By default, \`make install' will install all the files in | |
1405 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1406 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1407 | for instance \`--prefix=\$HOME'. | |
1408 | ||
1409 | For better control, use the options below. | |
1410 | ||
1411 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1412 | --bindir=DIR user executables [EPREFIX/bin] |
1413 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1414 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1415 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1416 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1417 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1418 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1419 | --includedir=DIR C header files [PREFIX/include] | |
1420 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1421 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1422 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1423 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1424 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1425 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1426 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1427 | --htmldir=DIR html documentation [DOCDIR] | |
1428 | --dvidir=DIR dvi documentation [DOCDIR] | |
1429 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1430 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1431 | _ACEOF |
1432 | ||
1433 | cat <<\_ACEOF | |
1434 | ||
1435 | Program names: | |
1436 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1437 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1438 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1439 | ||
1440 | System types: | |
1441 | --build=BUILD configure for building on BUILD [guessed] | |
1442 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1443 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1444 | _ACEOF | |
a0da8069 | 1445 | fi |
a0da8069 | 1446 | |
c6b750e1 DJ |
1447 | if test -n "$ac_init_help"; then |
1448 | ||
1449 | cat <<\_ACEOF | |
1450 | ||
1451 | Optional Features: | |
81ecdfbb | 1452 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1453 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1454 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1455 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1456 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1457 | --disable-libquadmath do not build libquadmath directory |
1458 | --disable-libquadmath-support | |
1459 | disable libquadmath support for Fortran | |
521ec477 DD |
1460 | --enable-libada build libada directory |
1461 | --enable-libssp build libssp directory | |
e8a5fa9c | 1462 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
7837304f AS |
1463 | --disable-ppl-version-check |
1464 | disable check for PPL version | |
ceca0218 PB |
1465 | --enable-cloog-backend[=BACKEND] |
1466 | set the CLooG BACKEND used to either isl, ppl or | |
1467 | ppl-legacy (default) | |
e552509b ILT |
1468 | --disable-cloog-version-check |
1469 | disable check for CLooG version | |
700d40ca | 1470 | --enable-lto enable link time optimization support |
7837304f AS |
1471 | --enable-stage1-languages[=all] |
1472 | choose additional languages to build during stage1. | |
1473 | Mostly useful for compiler development | |
1474 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1475 | Objective-C runtime | |
521ec477 DD |
1476 | --enable-bootstrap enable bootstrapping [yes if native build] |
1477 | --enable-serial-[{host,target,build}-]configure | |
7837304f AS |
1478 | force sequential configuration of sub-packages for |
1479 | the host, target or build machine, or all | |
1480 | sub-packages | |
1481 | --enable-maintainer-mode | |
1482 | enable make rules and dependencies not useful (and | |
1483 | sometimes confusing) to the casual installer | |
1484 | --enable-stage1-checking[=all] | |
1485 | choose additional checking for stage1 of the | |
1486 | compiler | |
c6b750e1 DJ |
1487 | --enable-werror enable -Werror in bootstrap stage2 and later |
1488 | ||
1489 | Optional Packages: | |
1490 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1491 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1492 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1493 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1494 | Equivalent to --with-mpc-include=PATH/include plus | |
1495 | --with-mpc-lib=PATH/lib | |
1496 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1497 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1498 | --with-mpfr-dir=PATH this option has been REMOVED |
1499 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1500 | Equivalent to --with-mpfr-include=PATH/include plus |
1501 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1502 | --with-mpfr-include=PATH |
521ec477 DD |
1503 | specify directory for installed MPFR include files |
1504 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1505 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1506 | --with-gmp=PATH specify prefix directory for the installed GMP |
1507 | package. Equivalent to | |
1508 | --with-gmp-include=PATH/include plus | |
1509 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1510 | --with-gmp-include=PATH specify directory for installed GMP include files |
1511 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1512 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1513 | linking with PPL | |
1514 | --with-stage1-ldflags=FLAGS | |
1515 | linker flags for stage1 | |
1516 | --with-stage1-libs=LIBS libraries for stage1 | |
1517 | --with-boot-libs=LIBS libraries for stage2 and later | |
1518 | --with-boot-ldflags=FLAGS | |
1519 | linker flags for stage2 and later | |
1520 | --with-ppl=PATH specify prefix directory for the installed PPL | |
1521 | package. Equivalent to | |
1522 | --with-ppl-include=PATH/include plus | |
1523 | --with-ppl-lib=PATH/lib | |
1524 | --with-ppl-include=PATH specify directory for installed PPL include files | |
1525 | --with-ppl-lib=PATH specify directory for the installed PPL library | |
e552509b ILT |
1526 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1527 | package. Equivalent to | |
1528 | --with-cloog-include=PATH/include plus | |
1529 | --with-cloog-lib=PATH/lib | |
1530 | --with-cloog-include=PATH | |
1531 | Specify directory for installed CLooG include files | |
1532 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1533 | library | |
521ec477 | 1534 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1535 | use sysroot as the system root during the build |
8a6ee3ab | 1536 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1537 | map A to B, C to D ... in debug information |
1538 | --with-build-config='NAME NAME2...' | |
1539 | use config/NAME.mk build configuration | |
521ec477 | 1540 | --with-build-time-tools=PATH |
c6b750e1 | 1541 | use given path to find target tools during the build |
c6b750e1 DJ |
1542 | |
1543 | Some influential environment variables: | |
1544 | CC C compiler command | |
1545 | CFLAGS C compiler flags | |
1546 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1547 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1548 | LIBS libraries to pass to the linker, e.g. -l<library> |
1549 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1550 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1551 | CXX C++ compiler command |
1552 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1553 | build_configargs |
1554 | additional configure arguments for build directories | |
1555 | host_configargs | |
1556 | additional configure arguments for host directories | |
1557 | target_configargs | |
1558 | additional configure arguments for target directories | |
9a819804 AO |
1559 | AR AR for the host |
1560 | AS AS for the host | |
1561 | DLLTOOL DLLTOOL for the host | |
1562 | LD LD for the host | |
1563 | LIPO LIPO for the host | |
1564 | NM NM for the host | |
1565 | RANLIB RANLIB for the host | |
1566 | STRIP STRIP for the host | |
1567 | WINDRES WINDRES for the host | |
0c24b341 | 1568 | WINDMC WINDMC for the host |
9a819804 AO |
1569 | OBJCOPY OBJCOPY for the host |
1570 | OBJDUMP OBJDUMP for the host | |
1571 | CC_FOR_TARGET | |
1572 | CC for the target | |
1573 | CXX_FOR_TARGET | |
1574 | CXX for the target | |
1575 | GCC_FOR_TARGET | |
1576 | GCC for the target | |
1577 | GCJ_FOR_TARGET | |
1578 | GCJ for the target | |
1579 | GFORTRAN_FOR_TARGET | |
1580 | GFORTRAN for the target | |
e552509b ILT |
1581 | GOC_FOR_TARGET |
1582 | GOC for the target | |
9a819804 AO |
1583 | AR_FOR_TARGET |
1584 | AR for the target | |
1585 | AS_FOR_TARGET | |
1586 | AS for the target | |
1587 | DLLTOOL_FOR_TARGET | |
1588 | DLLTOOL for the target | |
1589 | LD_FOR_TARGET | |
1590 | LD for the target | |
1591 | LIPO_FOR_TARGET | |
1592 | LIPO for the target | |
1593 | NM_FOR_TARGET | |
1594 | NM for the target | |
1595 | OBJDUMP_FOR_TARGET | |
1596 | OBJDUMP for the target | |
1597 | RANLIB_FOR_TARGET | |
1598 | RANLIB for the target | |
1599 | STRIP_FOR_TARGET | |
1600 | STRIP for the target | |
1601 | WINDRES_FOR_TARGET | |
1602 | WINDRES for the target | |
0c24b341 NC |
1603 | WINDMC_FOR_TARGET |
1604 | WINDMC for the target | |
c6b750e1 DJ |
1605 | |
1606 | Use these variables to override the choices made by `configure' or to help | |
1607 | it to find libraries and programs with nonstandard names/locations. | |
1608 | ||
81ecdfbb | 1609 | Report bugs to the package provider. |
c6b750e1 | 1610 | _ACEOF |
81ecdfbb | 1611 | ac_status=$? |
c6b750e1 DJ |
1612 | fi |
1613 | ||
1614 | if test "$ac_init_help" = "recursive"; then | |
1615 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1616 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1617 | test -d "$ac_dir" || |
1618 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1619 | continue | |
c6b750e1 DJ |
1620 | ac_builddir=. |
1621 | ||
81ecdfbb RW |
1622 | case "$ac_dir" in |
1623 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1624 | *) | |
1625 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1626 | # A ".." for each directory in $ac_dir_suffix. | |
1627 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1628 | case $ac_top_builddir_sub in | |
1629 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1630 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1631 | esac ;; | |
1632 | esac | |
1633 | ac_abs_top_builddir=$ac_pwd | |
1634 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1635 | # for backward compatibility: | |
1636 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1637 | |
1638 | case $srcdir in | |
81ecdfbb | 1639 | .) # We are building in place. |
c6b750e1 | 1640 | ac_srcdir=. |
81ecdfbb RW |
1641 | ac_top_srcdir=$ac_top_builddir_sub |
1642 | ac_abs_top_srcdir=$ac_pwd ;; | |
1643 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1644 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1645 | ac_top_srcdir=$srcdir |
1646 | ac_abs_top_srcdir=$srcdir ;; | |
1647 | *) # Relative name. | |
1648 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1649 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1650 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1651 | esac |
81ecdfbb RW |
1652 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1653 | ||
1654 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1655 | # Check for guested configure. | |
1656 | if test -f "$ac_srcdir/configure.gnu"; then | |
1657 | echo && | |
1658 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1659 | elif test -f "$ac_srcdir/configure"; then | |
1660 | echo && | |
1661 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1662 | else |
81ecdfbb RW |
1663 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1664 | fi || ac_status=$? | |
1665 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1666 | done |
1667 | fi | |
1668 | ||
81ecdfbb | 1669 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1670 | if $ac_init_version; then |
1671 | cat <<\_ACEOF | |
81ecdfbb RW |
1672 | configure |
1673 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1674 | |
81ecdfbb | 1675 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1676 | This configure script is free software; the Free Software Foundation |
1677 | gives unlimited permission to copy, distribute and modify it. | |
1678 | _ACEOF | |
81ecdfbb | 1679 | exit |
c6b750e1 | 1680 | fi |
81ecdfbb RW |
1681 | |
1682 | ## ------------------------ ## | |
1683 | ## Autoconf initialization. ## | |
1684 | ## ------------------------ ## | |
1685 | ||
1686 | # ac_fn_c_try_compile LINENO | |
1687 | # -------------------------- | |
1688 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1689 | ac_fn_c_try_compile () | |
1690 | { | |
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1692 | rm -f conftest.$ac_objext | |
1693 | if { { ac_try="$ac_compile" | |
1694 | case "(($ac_try" in | |
1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1696 | *) ac_try_echo=$ac_try;; | |
1697 | esac | |
1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1699 | $as_echo "$ac_try_echo"; } >&5 | |
1700 | (eval "$ac_compile") 2>conftest.err | |
1701 | ac_status=$? | |
1702 | if test -s conftest.err; then | |
1703 | grep -v '^ *+' conftest.err >conftest.er1 | |
1704 | cat conftest.er1 >&5 | |
1705 | mv -f conftest.er1 conftest.err | |
1706 | fi | |
1707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1708 | test $ac_status = 0; } && { | |
1709 | test -z "$ac_c_werror_flag" || | |
1710 | test ! -s conftest.err | |
1711 | } && test -s conftest.$ac_objext; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: failed program was:" >&5 | |
1715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1716 | ||
1717 | ac_retval=1 | |
1718 | fi | |
1719 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1720 | return $ac_retval | |
1721 | ||
1722 | } # ac_fn_c_try_compile | |
1723 | ||
1724 | # ac_fn_cxx_try_compile LINENO | |
1725 | # ---------------------------- | |
1726 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1727 | ac_fn_cxx_try_compile () | |
1728 | { | |
1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1730 | rm -f conftest.$ac_objext | |
1731 | if { { ac_try="$ac_compile" | |
1732 | case "(($ac_try" in | |
1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1734 | *) ac_try_echo=$ac_try;; | |
1735 | esac | |
1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1737 | $as_echo "$ac_try_echo"; } >&5 | |
1738 | (eval "$ac_compile") 2>conftest.err | |
1739 | ac_status=$? | |
1740 | if test -s conftest.err; then | |
1741 | grep -v '^ *+' conftest.err >conftest.er1 | |
1742 | cat conftest.er1 >&5 | |
1743 | mv -f conftest.er1 conftest.err | |
1744 | fi | |
1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1746 | test $ac_status = 0; } && { | |
1747 | test -z "$ac_cxx_werror_flag" || | |
1748 | test ! -s conftest.err | |
1749 | } && test -s conftest.$ac_objext; then : | |
1750 | ac_retval=0 | |
1751 | else | |
1752 | $as_echo "$as_me: failed program was:" >&5 | |
1753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1754 | ||
1755 | ac_retval=1 | |
1756 | fi | |
1757 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1758 | return $ac_retval | |
1759 | ||
1760 | } # ac_fn_cxx_try_compile | |
1761 | ||
1762 | # ac_fn_c_try_link LINENO | |
1763 | # ----------------------- | |
1764 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1765 | ac_fn_c_try_link () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1769 | if { { ac_try="$ac_link" | |
1770 | case "(($ac_try" in | |
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 | *) ac_try_echo=$ac_try;; | |
1773 | esac | |
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 | $as_echo "$ac_try_echo"; } >&5 | |
1776 | (eval "$ac_link") 2>conftest.err | |
1777 | ac_status=$? | |
1778 | if test -s conftest.err; then | |
1779 | grep -v '^ *+' conftest.err >conftest.er1 | |
1780 | cat conftest.er1 >&5 | |
1781 | mv -f conftest.er1 conftest.err | |
1782 | fi | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; } && { | |
1785 | test -z "$ac_c_werror_flag" || | |
1786 | test ! -s conftest.err | |
1787 | } && test -s conftest$ac_exeext && { | |
1788 | test "$cross_compiling" = yes || | |
1789 | $as_test_x conftest$ac_exeext | |
1790 | }; then : | |
1791 | ac_retval=0 | |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1795 | ||
1796 | ac_retval=1 | |
1797 | fi | |
1798 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1799 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1800 | # interfere with the next link command; also delete a directory that is | |
1801 | # left behind by Apple's compiler. We do this before executing the actions. | |
1802 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1803 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1804 | return $ac_retval | |
1805 | ||
1806 | } # ac_fn_c_try_link | |
1807 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1808 | This file contains any messages produced by compilers while |
1809 | running configure, to aid debugging if configure makes a mistake. | |
1810 | ||
1811 | It was created by $as_me, which was | |
81ecdfbb | 1812 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1813 | |
1814 | $ $0 $@ | |
1815 | ||
1816 | _ACEOF | |
81ecdfbb | 1817 | exec 5>>config.log |
c6b750e1 DJ |
1818 | { |
1819 | cat <<_ASUNAME | |
1820 | ## --------- ## | |
1821 | ## Platform. ## | |
1822 | ## --------- ## | |
1823 | ||
1824 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1825 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1826 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1827 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1828 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1829 | ||
1830 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1831 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1832 | ||
1833 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1834 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1835 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1836 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1837 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1838 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1839 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1840 | ||
1841 | _ASUNAME | |
1842 | ||
1843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1844 | for as_dir in $PATH | |
1845 | do | |
1846 | IFS=$as_save_IFS | |
1847 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1848 | $as_echo "PATH: $as_dir" |
1849 | done | |
1850 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1851 | |
1852 | } >&5 | |
1853 | ||
1854 | cat >&5 <<_ACEOF | |
1855 | ||
1856 | ||
1857 | ## ----------- ## | |
1858 | ## Core tests. ## | |
1859 | ## ----------- ## | |
1860 | ||
1861 | _ACEOF | |
1862 | ||
1863 | ||
1864 | # Keep a trace of the command line. | |
1865 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1866 | # Strip out --silent because we don't want to record it for future runs. | |
1867 | # Also quote any args containing shell meta-characters. | |
1868 | # Make two passes to allow for proper duplicate-argument suppression. | |
1869 | ac_configure_args= | |
1870 | ac_configure_args0= | |
1871 | ac_configure_args1= | |
c6b750e1 DJ |
1872 | ac_must_keep_next=false |
1873 | for ac_pass in 1 2 | |
1874 | do | |
1875 | for ac_arg | |
1876 | do | |
1877 | case $ac_arg in | |
1878 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1879 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1880 | | -silent | --silent | --silen | --sile | --sil) | |
1881 | continue ;; | |
81ecdfbb RW |
1882 | *\'*) |
1883 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1884 | esac |
1885 | case $ac_pass in | |
81ecdfbb | 1886 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1887 | 2) |
81ecdfbb | 1888 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1889 | if test $ac_must_keep_next = true; then |
1890 | ac_must_keep_next=false # Got value, back to normal. | |
1891 | else | |
1892 | case $ac_arg in | |
1893 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1894 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1895 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1896 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1897 | case "$ac_configure_args0 " in | |
1898 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1899 | esac | |
1900 | ;; | |
1901 | -* ) ac_must_keep_next=true ;; | |
1902 | esac | |
1903 | fi | |
81ecdfbb | 1904 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1905 | ;; |
1906 | esac | |
1907 | done | |
1908 | done | |
81ecdfbb RW |
1909 | { ac_configure_args0=; unset ac_configure_args0;} |
1910 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1911 | |
1912 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1913 | # config.log. We remove comments because anyway the quotes in there | |
1914 | # would cause problems or look ugly. | |
81ecdfbb RW |
1915 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1916 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1917 | trap 'exit_status=$? |
1918 | # Save into config.log some information that might help in debugging. | |
1919 | { | |
1920 | echo | |
1921 | ||
1922 | cat <<\_ASBOX | |
1923 | ## ---------------- ## | |
1924 | ## Cache variables. ## | |
1925 | ## ---------------- ## | |
1926 | _ASBOX | |
1927 | echo | |
1928 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1929 | ( |
1930 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1931 | eval ac_val=\$$ac_var | |
1932 | case $ac_val in #( | |
1933 | *${as_nl}*) | |
1934 | case $ac_var in #( | |
1935 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1936 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1937 | esac | |
1938 | case $ac_var in #( | |
1939 | _ | IFS | as_nl) ;; #( | |
1940 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1941 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1942 | esac ;; | |
1943 | esac | |
1944 | done | |
c6b750e1 | 1945 | (set) 2>&1 | |
81ecdfbb RW |
1946 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1947 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 1948 | sed -n \ |
81ecdfbb RW |
1949 | "s/'\''/'\''\\\\'\'''\''/g; |
1950 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1951 | ;; #( | |
c6b750e1 | 1952 | *) |
81ecdfbb | 1953 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 1954 | ;; |
81ecdfbb RW |
1955 | esac | |
1956 | sort | |
1957 | ) | |
c6b750e1 DJ |
1958 | echo |
1959 | ||
1960 | cat <<\_ASBOX | |
1961 | ## ----------------- ## | |
1962 | ## Output variables. ## | |
1963 | ## ----------------- ## | |
1964 | _ASBOX | |
1965 | echo | |
1966 | for ac_var in $ac_subst_vars | |
1967 | do | |
81ecdfbb RW |
1968 | eval ac_val=\$$ac_var |
1969 | case $ac_val in | |
1970 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1971 | esac | |
1972 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
1973 | done | sort |
1974 | echo | |
1975 | ||
1976 | if test -n "$ac_subst_files"; then | |
1977 | cat <<\_ASBOX | |
81ecdfbb RW |
1978 | ## ------------------- ## |
1979 | ## File substitutions. ## | |
1980 | ## ------------------- ## | |
c6b750e1 DJ |
1981 | _ASBOX |
1982 | echo | |
1983 | for ac_var in $ac_subst_files | |
1984 | do | |
81ecdfbb RW |
1985 | eval ac_val=\$$ac_var |
1986 | case $ac_val in | |
1987 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1988 | esac | |
1989 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
1990 | done | sort |
1991 | echo | |
1992 | fi | |
1993 | ||
1994 | if test -s confdefs.h; then | |
1995 | cat <<\_ASBOX | |
1996 | ## ----------- ## | |
1997 | ## confdefs.h. ## | |
1998 | ## ----------- ## | |
1999 | _ASBOX | |
2000 | echo | |
81ecdfbb | 2001 | cat confdefs.h |
c6b750e1 DJ |
2002 | echo |
2003 | fi | |
2004 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2005 | $as_echo "$as_me: caught signal $ac_signal" |
2006 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2007 | } >&5 |
81ecdfbb RW |
2008 | rm -f core *.core core.conftest.* && |
2009 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2010 | exit $exit_status |
81ecdfbb | 2011 | ' 0 |
c6b750e1 | 2012 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2013 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2014 | done |
2015 | ac_signal=0 | |
2016 | ||
2017 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2018 | rm -f -r conftest* confdefs.h |
2019 | ||
2020 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2021 | |
2022 | # Predefined preprocessor variables. | |
2023 | ||
2024 | cat >>confdefs.h <<_ACEOF | |
2025 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2026 | _ACEOF | |
2027 | ||
c6b750e1 DJ |
2028 | cat >>confdefs.h <<_ACEOF |
2029 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2030 | _ACEOF | |
2031 | ||
c6b750e1 DJ |
2032 | cat >>confdefs.h <<_ACEOF |
2033 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2034 | _ACEOF | |
2035 | ||
c6b750e1 DJ |
2036 | cat >>confdefs.h <<_ACEOF |
2037 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2038 | _ACEOF | |
2039 | ||
c6b750e1 DJ |
2040 | cat >>confdefs.h <<_ACEOF |
2041 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2042 | _ACEOF | |
2043 | ||
81ecdfbb RW |
2044 | cat >>confdefs.h <<_ACEOF |
2045 | #define PACKAGE_URL "$PACKAGE_URL" | |
2046 | _ACEOF | |
2047 | ||
c6b750e1 DJ |
2048 | |
2049 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2050 | # Prefer an explicitly selected file to automatically selected ones. |
2051 | ac_site_file1=NONE | |
2052 | ac_site_file2=NONE | |
2053 | if test -n "$CONFIG_SITE"; then | |
2054 | ac_site_file1=$CONFIG_SITE | |
2055 | elif test "x$prefix" != xNONE; then | |
2056 | ac_site_file1=$prefix/share/config.site | |
2057 | ac_site_file2=$prefix/etc/config.site | |
2058 | else | |
2059 | ac_site_file1=$ac_default_prefix/share/config.site | |
2060 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2061 | fi |
81ecdfbb RW |
2062 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2063 | do | |
2064 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2065 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2067 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2068 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2069 | . "$ac_site_file" |
2070 | fi | |
2071 | done | |
2072 | ||
2073 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2074 | # Some versions of bash will fail to source /dev/null (special |
2075 | # files actually), so we avoid doing that. | |
2076 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2078 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2079 | case $cache_file in |
81ecdfbb RW |
2080 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2081 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2082 | esac |
2083 | fi | |
a0da8069 | 2084 | else |
81ecdfbb RW |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2086 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2087 | >$cache_file |
2088 | fi | |
2089 | ||
2090 | # Check that the precious variables saved in the cache have kept the same | |
2091 | # value. | |
2092 | ac_cache_corrupted=false | |
81ecdfbb | 2093 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2094 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2095 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2096 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2097 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2098 | case $ac_old_set,$ac_new_set in |
2099 | set,) | |
81ecdfbb RW |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2101 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2102 | ac_cache_corrupted=: ;; |
2103 | ,set) | |
81ecdfbb RW |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2105 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2106 | ac_cache_corrupted=: ;; |
2107 | ,);; | |
2108 | *) | |
2109 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2110 | # differences in whitespace do not lead to failure. |
2111 | ac_old_val_w=`echo x $ac_old_val` | |
2112 | ac_new_val_w=`echo x $ac_new_val` | |
2113 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2115 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2116 | ac_cache_corrupted=: | |
2117 | else | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2119 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2120 | eval $ac_var=\$ac_old_val | |
2121 | fi | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2123 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2125 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2126 | fi;; |
2127 | esac | |
2128 | # Pass precious variables to config.status. | |
2129 | if test "$ac_new_set" = set; then | |
2130 | case $ac_new_val in | |
81ecdfbb | 2131 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2132 | *) ac_arg=$ac_var=$ac_new_val ;; |
2133 | esac | |
2134 | case " $ac_configure_args " in | |
2135 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2136 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2137 | esac |
2138 | fi | |
2139 | done | |
2140 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2144 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2145 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2146 | fi |
81ecdfbb RW |
2147 | ## -------------------- ## |
2148 | ## Main body of script. ## | |
2149 | ## -------------------- ## | |
a0da8069 NN |
2150 | |
2151 | ac_ext=c | |
a0da8069 | 2152 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2156 | ||
2157 | ||
2158 | ||
2159 | ||
c6b750e1 DJ |
2160 | |
2161 | ||
34a0f3cf | 2162 | |
c6b750e1 | 2163 | |
5b553f7e RW |
2164 | |
2165 | progname=$0 | |
2166 | # if PWD already has a value, it is probably wrong. | |
2167 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2168 | ||
2169 | # Export original configure arguments for use by sub-configures. | |
2170 | # Quote arguments with shell meta charatcers. | |
2171 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2172 | set -- "$progname" "$@" | |
2173 | for ac_arg | |
2174 | do | |
2175 | case "$ac_arg" in | |
2176 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2177 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2178 | # if the argument is of the form -foo=baz, quote the baz part only | |
2179 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2180 | *) ;; | |
2181 | esac | |
2182 | # Add the quoted argument to the list. | |
2183 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2184 | done | |
2185 | if test "$silent" = yes; then | |
2186 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2187 | fi | |
2188 | # Remove the initial space we just introduced and, as these will be | |
2189 | # expanded by make, quote '$'. | |
2190 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2191 | ||
c6b750e1 DJ |
2192 | |
2193 | # Find the build, host, and target systems. | |
a0da8069 | 2194 | ac_aux_dir= |
81ecdfbb RW |
2195 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2196 | for ac_t in install-sh install.sh shtool; do | |
2197 | if test -f "$ac_dir/$ac_t"; then | |
2198 | ac_aux_dir=$ac_dir | |
2199 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2200 | break 2 | |
2201 | fi | |
2202 | done | |
a0da8069 NN |
2203 | done |
2204 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2205 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2206 | fi |
81ecdfbb RW |
2207 | |
2208 | # These three variables are undocumented and unsupported, | |
2209 | # and are intended to be withdrawn in a future Autoconf release. | |
2210 | # They can cause serious problems if a builder's source tree is in a directory | |
2211 | # whose full name contains unusual characters. | |
2212 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2213 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2214 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2215 | ||
a0da8069 | 2216 | |
c6b750e1 | 2217 | # Make sure we can run config.sub. |
81ecdfbb RW |
2218 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2219 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2220 | ||
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2222 | $as_echo_n "checking build system type... " >&6; } | |
2223 | if test "${ac_cv_build+set}" = set; then : | |
2224 | $as_echo_n "(cached) " >&6 | |
2225 | else | |
2226 | ac_build_alias=$build_alias | |
2227 | test "x$ac_build_alias" = x && | |
2228 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2229 | test "x$ac_build_alias" = x && | |
2230 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2231 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2232 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2233 | ||
2234 | fi | |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2236 | $as_echo "$ac_cv_build" >&6; } | |
2237 | case $ac_cv_build in | |
2238 | *-*-*) ;; | |
2239 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2240 | esac | |
c6b750e1 | 2241 | build=$ac_cv_build |
81ecdfbb RW |
2242 | ac_save_IFS=$IFS; IFS='-' |
2243 | set x $ac_cv_build | |
2244 | shift | |
2245 | build_cpu=$1 | |
2246 | build_vendor=$2 | |
2247 | shift; shift | |
2248 | # Remember, the first character of IFS is used to create $*, | |
2249 | # except with old shells: | |
2250 | build_os=$* | |
2251 | IFS=$ac_save_IFS | |
2252 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2253 | |
a0da8069 | 2254 | |
c6b750e1 DJ |
2255 | case ${build_alias} in |
2256 | "") build_noncanonical=${build} ;; | |
2257 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2258 | esac |
2259 | ||
2260 | ||
cac3d6c4 | 2261 | |
c6b750e1 DJ |
2262 | case ${host_alias} in |
2263 | "") host_noncanonical=${build_noncanonical} ;; | |
2264 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2265 | esac |
2266 | ||
cac3d6c4 | 2267 | |
c6b750e1 DJ |
2268 | |
2269 | case ${target_alias} in | |
2270 | "") target_noncanonical=${host_noncanonical} ;; | |
2271 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2272 | esac |
2273 | ||
cac3d6c4 | 2274 | |
c6b750e1 DJ |
2275 | |
2276 | ||
2277 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2278 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2279 | NONENONEs,x,x, && | |
c6b750e1 | 2280 | program_transform_name=s,y,y, |
cac3d6c4 | 2281 | |
81ecdfbb RW |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2283 | $as_echo_n "checking host system type... " >&6; } | |
2284 | if test "${ac_cv_host+set}" = set; then : | |
2285 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2286 | else |
81ecdfbb RW |
2287 | if test "x$host_alias" = x; then |
2288 | ac_cv_host=$ac_cv_build | |
2289 | else | |
2290 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2291 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2292 | fi | |
c6b750e1 DJ |
2293 | |
2294 | fi | |
81ecdfbb RW |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2296 | $as_echo "$ac_cv_host" >&6; } | |
2297 | case $ac_cv_host in | |
2298 | *-*-*) ;; | |
2299 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2300 | esac | |
c6b750e1 | 2301 | host=$ac_cv_host |
81ecdfbb RW |
2302 | ac_save_IFS=$IFS; IFS='-' |
2303 | set x $ac_cv_host | |
2304 | shift | |
2305 | host_cpu=$1 | |
2306 | host_vendor=$2 | |
2307 | shift; shift | |
2308 | # Remember, the first character of IFS is used to create $*, | |
2309 | # except with old shells: | |
2310 | host_os=$* | |
2311 | IFS=$ac_save_IFS | |
2312 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2313 | |
2314 | ||
81ecdfbb RW |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2316 | $as_echo_n "checking target system type... " >&6; } | |
2317 | if test "${ac_cv_target+set}" = set; then : | |
2318 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2319 | else |
81ecdfbb RW |
2320 | if test "x$target_alias" = x; then |
2321 | ac_cv_target=$ac_cv_host | |
2322 | else | |
2323 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2324 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2325 | fi | |
c6b750e1 | 2326 | |
cac3d6c4 | 2327 | fi |
81ecdfbb RW |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2329 | $as_echo "$ac_cv_target" >&6; } | |
2330 | case $ac_cv_target in | |
2331 | *-*-*) ;; | |
2332 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2333 | esac | |
c6b750e1 | 2334 | target=$ac_cv_target |
81ecdfbb RW |
2335 | ac_save_IFS=$IFS; IFS='-' |
2336 | set x $ac_cv_target | |
2337 | shift | |
2338 | target_cpu=$1 | |
2339 | target_vendor=$2 | |
2340 | shift; shift | |
2341 | # Remember, the first character of IFS is used to create $*, | |
2342 | # except with old shells: | |
2343 | target_os=$* | |
2344 | IFS=$ac_save_IFS | |
2345 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2346 | |
2347 | ||
2348 | # The aliases save the names the user supplied, while $host etc. | |
2349 | # will get canonicalized. | |
2350 | test -n "$target_alias" && | |
2351 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2352 | NONENONEs,x,x, && | |
2353 | program_prefix=${target_alias}- | |
81ecdfbb | 2354 | |
a0da8069 | 2355 | test "$program_prefix" != NONE && |
81ecdfbb | 2356 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2357 | # Use a double $ so make ignores it. |
2358 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2359 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2360 | # Double any \ or $. | |
c6b750e1 | 2361 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2362 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2363 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2364 | |
a0da8069 NN |
2365 | |
2366 | ||
e5c3f801 NN |
2367 | # Get 'install' or 'install-sh' and its variants. |
2368 | # Find a good install program. We prefer a C program (faster), | |
2369 | # so one script is as good as another. But avoid the broken or | |
2370 | # incompatible versions: | |
2371 | # SysV /etc/install, /usr/sbin/install | |
2372 | # SunOS /usr/etc/install | |
2373 | # IRIX /sbin/install | |
2374 | # AIX /bin/install | |
c6b750e1 | 2375 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2376 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2377 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2378 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2379 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2380 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2381 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2383 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2384 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2385 | if test "${ac_cv_path_install+set}" = set; then : |
2386 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2387 | else |
2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2389 | for as_dir in $PATH | |
2390 | do | |
2391 | IFS=$as_save_IFS | |
2392 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2393 | # Account for people who put trailing slashes in PATH elements. |
2394 | case $as_dir/ in #(( | |
2395 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2397 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2398 | /usr/ucb/* ) ;; |
2399 | *) | |
2400 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2401 | # Don't use installbsd from OSF since it installs stuff as root | |
2402 | # by default. | |
2403 | for ac_prog in ginstall scoinst install; do | |
2404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2405 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2406 | if test $ac_prog = install && |
c6b750e1 | 2407 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2408 | # AIX install. It has an incompatible calling convention. |
2409 | : | |
c6b750e1 DJ |
2410 | elif test $ac_prog = install && |
2411 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2412 | # program-specific install script used by HP pwplus--don't use. | |
2413 | : | |
e5c3f801 | 2414 | else |
58c85be7 RW |
2415 | rm -rf conftest.one conftest.two conftest.dir |
2416 | echo one > conftest.one | |
2417 | echo two > conftest.two | |
2418 | mkdir conftest.dir | |
2419 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2420 | test -s conftest.one && test -s conftest.two && | |
2421 | test -s conftest.dir/conftest.one && | |
2422 | test -s conftest.dir/conftest.two | |
2423 | then | |
2424 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2425 | break 3 | |
2426 | fi | |
e5c3f801 NN |
2427 | fi |
2428 | fi | |
2429 | done | |
c6b750e1 DJ |
2430 | done |
2431 | ;; | |
2432 | esac | |
81ecdfbb RW |
2433 | |
2434 | done | |
2435 | IFS=$as_save_IFS | |
c6b750e1 | 2436 | |
58c85be7 | 2437 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2438 | |
2439 | fi | |
2440 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2441 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2442 | else |
58c85be7 RW |
2443 | # As a last resort, use the slow shell script. Don't cache a |
2444 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2445 | # break other packages using the cache if that directory is |
58c85be7 | 2446 | # removed, or if the value is a relative name. |
c6b750e1 | 2447 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2448 | fi |
2449 | fi | |
81ecdfbb RW |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2451 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2452 | |
2453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2454 | # It thinks the first close brace ends the variable substitution. | |
2455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2456 | ||
c6b750e1 | 2457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2458 | |
2459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2460 | ||
81ecdfbb RW |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2462 | $as_echo_n "checking whether ln works... " >&6; } | |
2463 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2464 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2465 | else |
2466 | rm -f conftestdata_t | |
2467 | echo >conftestdata_f | |
2468 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2469 | then | |
2470 | acx_cv_prog_LN=ln | |
2471 | else | |
2472 | acx_cv_prog_LN=no | |
2473 | fi | |
2474 | rm -f conftestdata_f conftestdata_t | |
2475 | ||
2476 | fi | |
2477 | if test $acx_cv_prog_LN = no; then | |
2478 | LN="cp" | |
81ecdfbb RW |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2480 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2481 | else |
2482 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2484 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2485 | fi |
2486 | ||
81ecdfbb RW |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2488 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2489 | LN_S=$as_ln_s |
2490 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2492 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2493 | else |
81ecdfbb RW |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2495 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2496 | fi |
2497 | ||
8e957354 PB |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2499 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2500 | if test "${ac_cv_path_SED+set}" = set; then : | |
2501 | $as_echo_n "(cached) " >&6 | |
2502 | else | |
2503 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2504 | for ac_i in 1 2 3 4 5 6 7; do | |
2505 | ac_script="$ac_script$as_nl$ac_script" | |
2506 | done | |
2507 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2508 | { ac_script=; unset ac_script;} | |
2509 | if test -z "$SED"; then | |
2510 | ac_path_SED_found=false | |
2511 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2513 | for as_dir in $PATH | |
2514 | do | |
2515 | IFS=$as_save_IFS | |
2516 | test -z "$as_dir" && as_dir=. | |
2517 | for ac_prog in sed gsed; do | |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2519 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2520 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2521 | # Check for GNU ac_path_SED and select it if it is found. | |
2522 | # Check for GNU $ac_path_SED | |
2523 | case `"$ac_path_SED" --version 2>&1` in | |
2524 | *GNU*) | |
2525 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2526 | *) | |
2527 | ac_count=0 | |
2528 | $as_echo_n 0123456789 >"conftest.in" | |
2529 | while : | |
2530 | do | |
2531 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2532 | mv "conftest.tmp" "conftest.in" | |
2533 | cp "conftest.in" "conftest.nl" | |
2534 | $as_echo '' >> "conftest.nl" | |
2535 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2536 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2537 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2538 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2539 | # Best one so far, save it but keep looking for a better one | |
2540 | ac_cv_path_SED="$ac_path_SED" | |
2541 | ac_path_SED_max=$ac_count | |
2542 | fi | |
2543 | # 10*(2^10) chars as input seems more than enough | |
2544 | test $ac_count -gt 10 && break | |
2545 | done | |
2546 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2547 | esac | |
2548 | ||
2549 | $ac_path_SED_found && break 3 | |
2550 | done | |
2551 | done | |
2552 | done | |
2553 | IFS=$as_save_IFS | |
2554 | if test -z "$ac_cv_path_SED"; then | |
2555 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2556 | fi | |
2557 | else | |
2558 | ac_cv_path_SED=$SED | |
2559 | fi | |
2560 | ||
2561 | fi | |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2563 | $as_echo "$ac_cv_path_SED" >&6; } | |
2564 | SED="$ac_cv_path_SED" | |
2565 | rm -f conftest.sed | |
2566 | ||
2567 | for ac_prog in gawk mawk nawk awk | |
2568 | do | |
2569 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2570 | set dummy $ac_prog; ac_word=$2 | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2572 | $as_echo_n "checking for $ac_word... " >&6; } | |
2573 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2574 | $as_echo_n "(cached) " >&6 | |
2575 | else | |
2576 | if test -n "$AWK"; then | |
2577 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2578 | else | |
2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2580 | for as_dir in $PATH | |
2581 | do | |
2582 | IFS=$as_save_IFS | |
2583 | test -z "$as_dir" && as_dir=. | |
2584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2586 | ac_cv_prog_AWK="$ac_prog" | |
2587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2588 | break 2 | |
2589 | fi | |
2590 | done | |
2591 | done | |
2592 | IFS=$as_save_IFS | |
2593 | ||
2594 | fi | |
2595 | fi | |
2596 | AWK=$ac_cv_prog_AWK | |
2597 | if test -n "$AWK"; then | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2599 | $as_echo "$AWK" >&6; } | |
2600 | else | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2602 | $as_echo "no" >&6; } | |
2603 | fi | |
2604 | ||
2605 | ||
2606 | test -n "$AWK" && break | |
2607 | done | |
2608 | ||
e5c3f801 | 2609 | |
0fdbe983 DJ |
2610 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2611 | ||
2612 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2613 | # a relative path. | |
2614 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2615 | INSTALL="${srcpwd}/install-sh -c" | |
2616 | fi | |
2617 | ||
a0da8069 NN |
2618 | # Set srcdir to "." if that's what it is. |
2619 | # This is important for multilib support. | |
2620 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2621 | if test "${pwd}" = "${srcpwd}" ; then |
2622 | srcdir=. | |
252b5132 RH |
2623 | fi |
2624 | ||
a0da8069 | 2625 | topsrcdir=$srcpwd |
252b5132 | 2626 | |
a0da8069 | 2627 | extra_host_args= |
afefada0 | 2628 | |
a0da8069 NN |
2629 | ### To add a new directory to the tree, first choose whether it is a target |
2630 | ### or a host dependent tool. Then put it into the appropriate list | |
2631 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2632 | |
c6b750e1 | 2633 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2634 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2635 | |
c6b750e1 DJ |
2636 | # Dependency sorting is only needed when *configuration* must be done in |
2637 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2638 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2639 | |
a0da8069 NN |
2640 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2641 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2642 | |
6a9cf61e PB |
2643 | # these library is used by various programs built for the build |
2644 | # environment | |
2645 | # | |
2646 | build_libs="build-libiberty" | |
2647 | ||
2648 | # these tools are built for the build environment | |
a90ef4bf | 2649 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2650 | |
a0da8069 NN |
2651 | # these libraries are used by various programs built for the host environment |
2652 | # | |
a90ef4bf | 2653 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv" |
a0da8069 | 2654 | |
a0da8069 NN |
2655 | # these tools are built for the host environment |
2656 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2657 | # know that we are building the simulator. | |
2658 | # binutils, gas and ld appear in that order because it makes sense to run | |
2659 | # "make check" in that particular order. | |
e6de499b | 2660 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2661 | 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 |
2662 | |
2663 | # libgcj represents the runtime libraries only used by gcj. | |
2664 | libgcj="target-libffi \ | |
a0da8069 | 2665 | target-zlib \ |
a0da8069 NN |
2666 | target-libjava" |
2667 | ||
2668 | # these libraries are built for the target environment, and are built after | |
2669 | # the host libraries and the host tools (which may be a cross compiler) | |
2670 | # | |
b1299c4e DJ |
2671 | target_libraries="target-libgcc \ |
2672 | target-libiberty \ | |
a0da8069 NN |
2673 | target-libgloss \ |
2674 | target-newlib \ | |
cff87f51 | 2675 | target-libgomp \ |
b9459e83 | 2676 | target-libstdc++-v3 \ |
4b1cb4fe | 2677 | target-libmudflap \ |
bb780410 | 2678 | target-libssp \ |
e552509b | 2679 | target-libquadmath \ |
4b1cb4fe | 2680 | target-libgfortran \ |
4f0ef2d8 | 2681 | target-boehm-gc \ |
83326456 | 2682 | ${libgcj} \ |
a2592b1b | 2683 | target-libobjc \ |
e552509b ILT |
2684 | target-libada \ |
2685 | target-libgo" | |
a0da8069 | 2686 | |
9c14acb8 NN |
2687 | # these tools are built using the target libraries, and are intended to |
2688 | # run only in the target environment | |
a0da8069 | 2689 | # |
9c14acb8 | 2690 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2691 | # list belongs in this list. |
a0da8069 | 2692 | # |
a90ef4bf | 2693 | target_tools="target-rda" |
252b5132 | 2694 | |
a0da8069 | 2695 | ################################################################################ |
252b5132 | 2696 | |
a0da8069 NN |
2697 | ## All tools belong in one of the four categories, and are assigned above |
2698 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2699 | ## is important because configure will choke if they ever get through. | |
2700 | ## ${configdirs} is directories we build using the host tools. | |
2701 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2702 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2703 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2704 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2705 | |
9cc8ae67 PB |
2706 | |
2707 | ||
a0da8069 | 2708 | ################################################################################ |
252b5132 | 2709 | |
a0da8069 | 2710 | srcname="gnu development package" |
252b5132 | 2711 | |
a0da8069 NN |
2712 | # This gets set non-empty for some net releases of packages. |
2713 | appdirs="" | |
252b5132 | 2714 | |
a0da8069 NN |
2715 | # Define is_cross_compiler to save on calls to 'test'. |
2716 | is_cross_compiler= | |
2717 | if test x"${host}" = x"${target}" ; then | |
2718 | is_cross_compiler=no | |
252b5132 | 2719 | else |
a0da8069 | 2720 | is_cross_compiler=yes |
c6b750e1 | 2721 | fi |
252b5132 | 2722 | |
9175bfc0 | 2723 | # Find the build and target subdir names. |
dd12c3a8 | 2724 | |
66a79c16 DJ |
2725 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2726 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2727 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2728 | # However, they still use the build modules, because the corresponding | |
2729 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2730 | # finishes. So: | |
2731 | # - build_subdir is where we find build modules, and never changes. | |
2732 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2733 | ||
2734 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2735 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2736 | |
81ecdfbb RW |
2737 | # Check whether --with-build-libsubdir was given. |
2738 | if test "${with_build_libsubdir+set}" = set; then : | |
2739 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2740 | else |
2741 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2742 | fi |
2743 | ||
b00612cc PB |
2744 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2745 | if ( test $srcdir = . && test -d gcc ) \ | |
2746 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2747 | host_subdir="host-${host_noncanonical}" | |
2748 | else | |
2749 | host_subdir=. | |
2750 | fi | |
dd12c3a8 NN |
2751 | # No prefix. |
2752 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2753 | |
2fd0b40b RW |
2754 | # Be sure to cover against remnants of an in-tree build. |
2755 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2756 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2757 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2758 | fi | |
252b5132 | 2759 | |
a0da8069 NN |
2760 | # Skipdirs are removed silently. |
2761 | skipdirs= | |
2762 | # Noconfigdirs are removed loudly. | |
2763 | noconfigdirs="" | |
252b5132 | 2764 | |
a0da8069 NN |
2765 | use_gnu_ld= |
2766 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2767 | if test x$with_gnu_ld = xno ; then | |
2768 | use_gnu_ld=no | |
93f9b408 | 2769 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2770 | fi |
2771 | ||
a0da8069 NN |
2772 | use_gnu_as= |
2773 | # Make sure we don't let GNU as be added if we didn't want it. | |
2774 | if test x$with_gnu_as = xno ; then | |
2775 | use_gnu_as=no | |
2776 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2777 | fi |
2778 | ||
700d40ca ILT |
2779 | use_included_zlib= |
2780 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2781 | if test x$with_system_zlib = xyes ; then | |
2782 | use_included_zlib=no | |
2783 | noconfigdirs="$noconfigdirs zlib" | |
2784 | fi | |
2785 | ||
c6b750e1 | 2786 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2787 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2788 | |
a0da8069 NN |
2789 | case ${with_x} in |
2790 | yes | "") ;; # the default value for this tree is that X11 is available | |
2791 | no) | |
675c6968 | 2792 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2793 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2794 | enable_gdbtk=no |
a0da8069 NN |
2795 | ;; |
2796 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2797 | esac | |
252b5132 | 2798 | |
0377a422 | 2799 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2800 | # Remove these if host=target. |
2801 | cross_only="target-libgloss target-newlib target-opcodes" | |
2802 | ||
2803 | case $is_cross_compiler in | |
2804 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2805 | esac |
252b5132 | 2806 | |
a0da8069 NN |
2807 | # If both --with-headers and --with-libs are specified, default to |
2808 | # --without-newlib. | |
32be62b5 RS |
2809 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2810 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2811 | if test x"${with_newlib}" = x ; then |
2812 | with_newlib=no | |
2813 | fi | |
252b5132 RH |
2814 | fi |
2815 | ||
a0da8069 NN |
2816 | # Recognize --with-newlib/--without-newlib. |
2817 | case ${with_newlib} in | |
2818 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2819 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2820 | esac | |
252b5132 | 2821 | |
c7791212 NC |
2822 | # Handle --enable-gold, --enable-ld. |
2823 | # --disable-gold [--enable-ld] | |
2824 | # Build only ld. Default option. | |
d3b50760 L |
2825 | # --enable-gold [--enable-ld] |
2826 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2827 | # as "ld.bfd" and "ld". | |
2828 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2829 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2830 | # install ld as "ld.bfd". | |
2831 | # --enable-gold[=default] --disable-ld | |
2832 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2833 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2834 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2835 | # and ld.bfd). | |
c7791212 NC |
2836 | # In other words, ld is default |
2837 | # --enable-gold=default --enable-ld=default | |
2838 | # Error. | |
2839 | ||
2840 | default_ld= | |
81ecdfbb RW |
2841 | # Check whether --enable-gold was given. |
2842 | if test "${enable_gold+set}" = set; then : | |
2843 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2844 | else |
2845 | ENABLE_GOLD=no | |
81ecdfbb RW |
2846 | fi |
2847 | ||
c7791212 NC |
2848 | case "${ENABLE_GOLD}" in |
2849 | yes|default) | |
e6de499b NC |
2850 | # Check for ELF target. |
2851 | is_elf=no | |
2852 | case "${target}" in | |
2853 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2854 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
5b806d27 NC |
2855 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2856 | | *-*-solaris2* | *-*-nto*) | |
e6de499b NC |
2857 | case "${target}" in |
2858 | *-*-linux*aout* | *-*-linux*oldld*) | |
2859 | ;; | |
2860 | *) | |
2861 | is_elf=yes | |
2862 | ;; | |
2863 | esac | |
2864 | esac | |
2865 | ||
2866 | if test "$is_elf" = "yes"; then | |
2867 | # Check for target supported by gold. | |
93f9b408 | 2868 | case "${target}" in |
e6de499b | 2869 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
c7791212 NC |
2870 | configdirs="$configdirs gold" |
2871 | if test x${ENABLE_GOLD} = xdefault; then | |
2872 | default_ld=gold | |
2873 | fi | |
e6de499b | 2874 | ENABLE_GOLD=yes |
93f9b408 ILT |
2875 | ;; |
2876 | esac | |
e6de499b NC |
2877 | fi |
2878 | ;; | |
2879 | no) | |
2880 | ;; | |
2881 | *) | |
2882 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2883 | ;; | |
c7791212 NC |
2884 | esac |
2885 | ||
2886 | # Check whether --enable-ld was given. | |
2887 | if test "${enable_ld+set}" = set; then : | |
2888 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2889 | else | |
2890 | ENABLE_LD=yes | |
2891 | fi | |
2892 | ||
2893 | ||
2894 | case "${ENABLE_LD}" in | |
2895 | default) | |
d3b50760 | 2896 | if test x${default_ld} != x; then |
c7791212 NC |
2897 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2898 | fi | |
2899 | ;; | |
2900 | yes) | |
2901 | ;; | |
2902 | no) | |
2903 | if test x${ENABLE_GOLD} != xyes; then | |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2905 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2906 | fi | |
2907 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2908 | ;; | |
2909 | *) | |
2910 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2911 | ;; | |
2912 | esac | |
93f9b408 | 2913 | |
a0da8069 | 2914 | # Configure extra directories which are host specific |
252b5132 | 2915 | |
a0da8069 NN |
2916 | case "${host}" in |
2917 | *-cygwin*) | |
2918 | configdirs="$configdirs libtermcap" ;; | |
2919 | esac | |
252b5132 | 2920 | |
59f7ec45 HPN |
2921 | # A target can indicate whether a language isn't supported for some reason. |
2922 | # Only spaces may be used in this macro; not newlines or tabs. | |
2923 | unsupported_languages= | |
2924 | ||
c6b750e1 | 2925 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
2926 | # target this usually means that a port of the program doesn't |
2927 | # exist yet. | |
252b5132 | 2928 | |
a0da8069 | 2929 | case "${host}" in |
3516a403 | 2930 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 2931 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 2932 | ;; |
a0da8069 | 2933 | esac |
252b5132 | 2934 | |
4b1cb4fe | 2935 | |
89a1e9c3 PB |
2936 | # Check whether --enable-libquadmath was given. |
2937 | if test "${enable_libquadmath+set}" = set; then : | |
2938 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2939 | else | |
2940 | ENABLE_LIBQUADMATH=yes | |
2941 | fi | |
2942 | ||
2943 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2944 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2945 | fi | |
2946 | ||
2947 | ||
2948 | # Check whether --enable-libquadmath-support was given. | |
2949 | if test "${enable_libquadmath_support+set}" = set; then : | |
2950 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
2951 | else | |
2952 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
2953 | fi | |
2954 | ||
2955 | enable_libquadmath_support= | |
2956 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
2957 | enable_libquadmath_support=no | |
2958 | fi | |
2959 | ||
2960 | ||
81ecdfbb RW |
2961 | # Check whether --enable-libada was given. |
2962 | if test "${enable_libada+set}" = set; then : | |
2963 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
2964 | else |
2965 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
2966 | fi |
2967 | ||
a2592b1b | 2968 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 2969 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
2970 | fi |
2971 | ||
81ecdfbb RW |
2972 | # Check whether --enable-libssp was given. |
2973 | if test "${enable_libssp+set}" = set; then : | |
2974 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
2975 | else |
2976 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
2977 | fi |
2978 | ||
5f128533 | 2979 | |
a0da8069 NN |
2980 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2981 | # front-end isn't enabled, we still get libgcj disabled. | |
2982 | libgcj_saved=$libgcj | |
2983 | case $enable_libgcj in | |
2984 | yes) | |
2985 | # If we reset it here, it won't get added to noconfigdirs in the | |
2986 | # target-specific build rules, so it will be forcibly enabled | |
2987 | # (unless the Java language itself isn't enabled). | |
2988 | libgcj= | |
2989 | ;; | |
2990 | no) | |
2991 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
2992 | # Don't disable libffi, though, other languages use it. |
2993 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
2994 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
2995 | # built. | |
2996 | libgcj_saved= | |
a0da8069 NN |
2997 | ;; |
2998 | esac | |
252b5132 | 2999 | |
4b1cb4fe | 3000 | |
a6df5a19 PB |
3001 | # Disable libmudflap on some systems. |
3002 | if test x$enable_libmudflap = x ; then | |
3e707e94 | 3003 | case "${target}" in |
29383458 | 3004 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
3d6dfe0f | 3005 | # Enable libmudflap by default in GNU and friends. |
3e707e94 PB |
3006 | ;; |
3007 | *-*-freebsd*) | |
3008 | # Enable libmudflap by default in FreeBSD. | |
3009 | ;; | |
3010 | *) | |
3011 | # Disable it by default everywhere else. | |
3012 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3013 | ;; | |
3014 | esac | |
a6df5a19 | 3015 | fi |
4b1cb4fe | 3016 | |
a6df5a19 PB |
3017 | # Disable libgomp on non POSIX hosted systems. |
3018 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3019 | # Enable libgomp by default on hosted POSIX systems. |
3020 | case "${target}" in | |
29383458 | 3021 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3022 | ;; |
5b806d27 | 3023 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3024 | ;; |
1f111696 | 3025 | *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
b3ded179 PB |
3026 | ;; |
3027 | *-*-darwin* | *-*-aix*) | |
3028 | ;; | |
3029 | *) | |
3030 | noconfigdirs="$noconfigdirs target-libgomp" | |
3031 | ;; | |
3032 | esac | |
a6df5a19 | 3033 | fi |
b3ded179 | 3034 | |
065a5627 JM |
3035 | # Disable libssp for some systems. |
3036 | case "${target}" in | |
3037 | avr-*-*) | |
c5f5c3c2 | 3038 | # No hosted I/O support. |
065a5627 JM |
3039 | noconfigdirs="$noconfigdirs target-libssp" |
3040 | ;; | |
3041 | powerpc-*-aix* | rs6000-*-aix*) | |
3042 | noconfigdirs="$noconfigdirs target-libssp" | |
3043 | ;; | |
065a5627 JM |
3044 | esac |
3045 | ||
3046 | # Disable target libiberty for some systems. | |
3047 | case "${target}" in | |
3048 | *-*-kaos*) | |
3049 | # Remove unsupported stuff on all kaOS configurations. | |
3050 | skipdirs="target-libiberty" | |
3051 | ;; | |
3052 | *-*-netbsd*) | |
3053 | # Skip some stuff on all NetBSD configurations. | |
3054 | noconfigdirs="$noconfigdirs target-libiberty" | |
3055 | ;; | |
3056 | *-*-netware*) | |
3057 | noconfigdirs="$noconfigdirs target-libiberty" | |
3058 | ;; | |
3059 | *-*-rtems*) | |
3060 | skipdirs="${skipdirs} target-libiberty" | |
3061 | ;; | |
3062 | *-*-tpf*) | |
3063 | noconfigdirs="$noconfigdirs target-libiberty" | |
3064 | ;; | |
3065 | *-*-vxworks*) | |
3066 | noconfigdirs="$noconfigdirs target-libiberty" | |
3067 | ;; | |
3068 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3069 | noconfigdirs="$noconfigdirs target-libiberty" | |
3070 | ;; | |
3071 | arm*-*-symbianelf*) | |
3072 | noconfigdirs="$noconfigdirs target-libiberty" | |
3073 | ;; | |
3074 | avr-*-*) | |
3075 | noconfigdirs="$noconfigdirs target-libiberty" | |
3076 | ;; | |
3077 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3078 | noconfigdirs="$noconfigdirs target-libiberty" | |
3079 | ;; | |
3080 | picochip-*-*) | |
3081 | noconfigdirs="$noconfigdirs target-libiberty" | |
3082 | ;; | |
3083 | mips*-sde-elf*) | |
3084 | skipdirs="$skipdirs target-libiberty" | |
3085 | ;; | |
3086 | ip2k-*-*) | |
3087 | noconfigdirs="$noconfigdirs target-libiberty" | |
3088 | ;; | |
3089 | esac | |
3090 | ||
3091 | # Disable libstdc++-v3 for some systems. | |
3092 | case "${target}" in | |
3093 | *-*-vxworks*) | |
3094 | # VxWorks uses the Dinkumware C++ library. | |
3095 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3096 | ;; | |
3097 | arm*-wince-pe*) | |
3098 | # the C++ libraries don't build on top of CE's C libraries | |
3099 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3100 | ;; | |
3101 | avr-*-*) | |
3102 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3103 | ;; | |
3104 | esac | |
3105 | ||
3106 | # Disable Fortran for some systems. | |
3107 | case "${target}" in | |
3108 | mmix-*-*) | |
3109 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3110 | unsupported_languages="$unsupported_languages fortran" | |
3111 | ;; | |
3112 | esac | |
3113 | ||
0827f9a6 | 3114 | # Disable Java if libffi is not supported. |
9863d716 | 3115 | case "${target}" in |
0827f9a6 JM |
3116 | alpha*-*-*) |
3117 | ;; | |
3118 | arm*-*-*) | |
3119 | ;; | |
3120 | cris-*-*) | |
3121 | ;; | |
3122 | frv-*-*) | |
3123 | ;; | |
3124 | hppa*-*-linux*) | |
3125 | ;; | |
3126 | hppa*-*-hpux*) | |
3127 | ;; | |
3128 | i?86-*-*) | |
3129 | ;; | |
3130 | ia64*-*-*) | |
3131 | ;; | |
3132 | m32r*-*-*) | |
3133 | ;; | |
3134 | m68k-*-*) | |
3135 | ;; | |
3136 | mips-sgi-irix6.* | mips*-*-rtems*) | |
3137 | ;; | |
3138 | mips*-*-linux*) | |
3139 | ;; | |
3140 | powerpc*-*-linux*) | |
3141 | ;; | |
3142 | powerpc-*-darwin*) | |
3143 | ;; | |
3144 | powerpc-*-aix* | rs6000-*-aix*) | |
3145 | ;; | |
3146 | powerpc-*-freebsd*) | |
3147 | ;; | |
3148 | powerpc64-*-freebsd*) | |
3149 | ;; | |
3150 | powerpc*-*-rtems*) | |
9863d716 | 3151 | ;; |
0827f9a6 JM |
3152 | s390-*-* | s390x-*-*) |
3153 | ;; | |
3154 | sh-*-* | sh[34]*-*-*) | |
3155 | ;; | |
3156 | sh64-*-* | sh5*-*-*) | |
3157 | ;; | |
3158 | sparc*-*-*) | |
3159 | ;; | |
3160 | x86_64-*-*) | |
3161 | ;; | |
3162 | *-*-*) | |
3163 | unsupported_languages="$unsupported_languages java" | |
3164 | ;; | |
3165 | esac | |
3166 | ||
3167 | # Disable Java, libgcj or related libraries for some systems. | |
3168 | case "${target}" in | |
9863d716 JM |
3169 | powerpc-*-darwin*) |
3170 | ;; | |
3171 | i[3456789]86-*-darwin*) | |
3172 | ;; | |
3173 | x86_64-*-darwin[912]*) | |
3174 | ;; | |
3175 | *-*-darwin*) | |
3176 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3177 | ;; | |
9863d716 JM |
3178 | *-*-netware*) |
3179 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3180 | ;; | |
3181 | *-*-rtems*) | |
3182 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3183 | ;; | |
3184 | *-*-tpf*) | |
3185 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3186 | ;; | |
3187 | *-*-uclinux*) | |
3188 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3189 | ;; | |
3190 | *-*-vxworks*) | |
3191 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3192 | ;; | |
9863d716 JM |
3193 | alpha*-*-*vms*) |
3194 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3195 | ;; | |
0827f9a6 | 3196 | arm-wince-pe) |
9863d716 JM |
3197 | noconfigdirs="$noconfigdirs ${libgcj}" |
3198 | ;; | |
9863d716 JM |
3199 | arm*-*-symbianelf*) |
3200 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3201 | ;; | |
9863d716 | 3202 | bfin-*-*) |
9863d716 JM |
3203 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3204 | ;; | |
9863d716 JM |
3205 | cris-*-* | crisv32-*-*) |
3206 | unsupported_languages="$unsupported_languages java" | |
3207 | case "${target}" in | |
3208 | *-*-linux*) | |
3209 | ;; | |
3210 | *) # See PR46792 regarding target-libffi. | |
3211 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3212 | esac | |
3213 | ;; | |
9863d716 JM |
3214 | hppa*64*-*-linux*) |
3215 | # In this case, it's because the hppa64-linux target is for | |
3216 | # the kernel only at this point and has no libc, and thus no | |
3217 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3218 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3219 | ;; |
82ae827f | 3220 | hppa*64*-*-hpux*) |
9863d716 JM |
3221 | noconfigdirs="$noconfigdirs ${libgcj}" |
3222 | ;; | |
3223 | hppa*-hp-hpux11*) | |
3224 | ;; | |
82ae827f | 3225 | hppa*-*-hpux*) |
9863d716 JM |
3226 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3227 | # build on HP-UX 10.20. | |
3228 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3229 | ;; | |
9863d716 JM |
3230 | ia64*-*-*vms*) |
3231 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3232 | ;; | |
9863d716 JM |
3233 | i[3456789]86-w64-mingw*) |
3234 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3235 | ;; | |
3236 | i[3456789]86-*-mingw*) | |
3237 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3238 | ;; | |
3239 | x86_64-*-mingw*) | |
3240 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3241 | ;; | |
9863d716 JM |
3242 | mmix-*-*) |
3243 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3244 | ;; |
3245 | powerpc-*-aix*) | |
3246 | # copied from rs6000-*-* entry | |
3247 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3248 | ;; | |
9863d716 JM |
3249 | rs6000-*-aix*) |
3250 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3251 | ;; | |
9863d716 JM |
3252 | mips*-*-irix6*) |
3253 | # Linking libjava exceeds command-line length limits on at least | |
3254 | # IRIX 6.2, but not on IRIX 6.5. | |
3255 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3256 | # <oldham@codesourcery.com> | |
3257 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3258 | ;; | |
9863d716 JM |
3259 | *-*-lynxos*) |
3260 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3261 | ;; | |
9863d716 JM |
3262 | esac |
3263 | ||
691bb5a1 DD |
3264 | # Default libgloss CPU subdirectory. |
3265 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3266 | |
ff46fb8f JM |
3267 | case "${target}" in |
3268 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3269 | libgloss_dir=wince | |
3270 | ;; | |
3271 | arm*-*-*) | |
3272 | libgloss_dir=arm | |
3273 | ;; | |
3274 | cris-*-* | crisv32-*-*) | |
3275 | libgloss_dir=cris | |
3276 | ;; | |
3277 | hppa*-*-*) | |
3278 | libgloss_dir=pa | |
3279 | ;; | |
3280 | i[3456789]86-*-*) | |
3281 | libgloss_dir=i386 | |
3282 | ;; | |
3283 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3284 | libgloss_dir=m68hc11 | |
3285 | ;; | |
3286 | m68*-*-* | fido-*-*) | |
3287 | libgloss_dir=m68k | |
3288 | ;; | |
3289 | mips*-*-*) | |
3290 | libgloss_dir=mips | |
3291 | ;; | |
3292 | powerpc*-*-*) | |
3293 | libgloss_dir=rs6000 | |
3294 | ;; | |
3295 | sparc*-*-*) | |
3296 | libgloss_dir=sparc | |
3297 | ;; | |
3298 | esac | |
3299 | ||
c7e4b184 | 3300 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3301 | case "${target}" in |
c7e4b184 JM |
3302 | alpha*-dec-osf*) |
3303 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3304 | ;; | |
3305 | i[3456789]86-*-linux*) | |
3306 | # This section makes it possible to build newlib natively on linux. | |
3307 | # If we are using a cross compiler then don't configure newlib. | |
3308 | if test x${is_cross_compiler} != xno ; then | |
3309 | noconfigdirs="$noconfigdirs target-newlib" | |
3310 | fi | |
3311 | noconfigdirs="$noconfigdirs target-libgloss" | |
3312 | # If we are not using a cross compiler, do configure newlib. | |
3313 | # Note however, that newlib will only be configured in this situation | |
3314 | # if the --with-newlib option has been given, because otherwise | |
3315 | # 'target-newlib' will appear in skipdirs. | |
3316 | ;; | |
3317 | i[3456789]86-*-rdos*) | |
3318 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3319 | ;; | |
3320 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3321 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3322 | ;; | |
3323 | sparc-*-sunos4*) | |
3324 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3325 | ;; | |
3326 | *-*-aix*) | |
3327 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3328 | ;; | |
3329 | *-*-beos*) | |
3330 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3331 | ;; | |
a0da8069 | 3332 | *-*-chorusos) |
b2f14e4a | 3333 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3334 | ;; |
c7e4b184 JM |
3335 | *-*-dragonfly*) |
3336 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3337 | ;; | |
3338 | *-*-freebsd*) | |
3339 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3340 | ;; | |
3341 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3342 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3343 | ;; | |
3344 | *-*-lynxos*) | |
3345 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3346 | ;; | |
3347 | *-*-mingw*) | |
3348 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3349 | ;; | |
3350 | *-*-netbsd*) | |
3351 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3352 | ;; | |
3353 | *-*-netware*) | |
3354 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3355 | ;; | |
3356 | *-*-tpf*) | |
3357 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3358 | ;; | |
3359 | *-*-uclinux*) | |
3360 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3361 | ;; | |
3362 | *-*-vxworks*) | |
3363 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3364 | ;; | |
3365 | esac | |
3366 | ||
3367 | case "${target}" in | |
3368 | *-*-chorusos) | |
3369 | ;; | |
24741ab2 | 3370 | powerpc-*-darwin*) |
9d39db92 | 3371 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3372 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3373 | ;; |
85bd1942 TG |
3374 | i[3456789]86-*-darwin*) |
3375 | noconfigdirs="$noconfigdirs ld gprof" | |
3376 | noconfigdirs="$noconfigdirs sim target-rda" | |
3377 | ;; | |
e8a5fa9c | 3378 | x86_64-*-darwin[912]*) |
652dec25 TG |
3379 | noconfigdirs="$noconfigdirs ld gas gprof" |
3380 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3381 | ;; |
04d1ab34 | 3382 | *-*-darwin*) |
d320aacb | 3383 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3384 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3385 | ;; |
5b806d27 | 3386 | *-*-dragonfly*) |
5b806d27 | 3387 | ;; |
de0b4a87 | 3388 | *-*-freebsd*) |
4b1cb4fe DD |
3389 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3390 | && test -f /usr/local/include/gmp.h; then | |
3391 | with_gmp=/usr/local | |
3392 | fi | |
4b1cb4fe | 3393 | ;; |
f8a495c8 NC |
3394 | *-*-kaos*) |
3395 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3396 | noconfigdirs="$noconfigdirs target-libgloss" |
3397 | ;; | |
a0da8069 | 3398 | *-*-netbsd*) |
a0da8069 | 3399 | ;; |
2a3124ca | 3400 | *-*-netware*) |
a0da8069 NN |
3401 | ;; |
3402 | *-*-rtems*) | |
9863d716 | 3403 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3404 | ;; |
1587117a EC |
3405 | # The tpf target doesn't support gdb yet. |
3406 | *-*-tpf*) | |
c7e4b184 | 3407 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3408 | ;; |
c1968181 | 3409 | *-*-uclinux*) |
c7e4b184 | 3410 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3411 | ;; |
a0da8069 | 3412 | *-*-vxworks*) |
a0da8069 NN |
3413 | ;; |
3414 | alpha*-dec-osf*) | |
3415 | # ld works, but does not support shared libraries. | |
a0da8069 | 3416 | # gas doesn't generate exception information. |
c7e4b184 | 3417 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3418 | ;; |
3419 | alpha*-*-*vms*) | |
9863d716 | 3420 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3421 | ;; |
a0da8069 NN |
3422 | alpha*-*-*) |
3423 | # newlib is not 64 bit ready | |
9863d716 | 3424 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3425 | ;; |
a0da8069 | 3426 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3427 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 NN |
3428 | ;; |
3429 | arc-*-*) | |
782cb41f | 3430 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3431 | ;; |
a0da8069 | 3432 | arm-*-pe*) |
9863d716 | 3433 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3434 | ;; |
a0da8069 | 3435 | arm-*-riscix*) |
b2f14e4a | 3436 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3437 | ;; |
a0da8069 | 3438 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3439 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3440 | ;; |
b2f14e4a JM |
3441 | tic54x-*-*) |
3442 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3443 | ;; |
52310858 | 3444 | cr16-*-*) |
9863d716 | 3445 | noconfigdirs="$noconfigdirs gdb" |
52310858 | 3446 | ;; |
a0da8069 | 3447 | d10v-*-*) |
b2f14e4a | 3448 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3449 | ;; |
3450 | d30v-*-*) | |
b2f14e4a | 3451 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3452 | ;; |
3453 | fr30-*-elf*) | |
9863d716 | 3454 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3455 | ;; |
20135e4c | 3456 | moxie-*-*) |
20135e4c NC |
3457 | noconfigdirs="$noconfigdirs gprof" |
3458 | ;; | |
a0da8069 | 3459 | h8300*-*-*) |
9863d716 | 3460 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3461 | ;; |
3462 | h8500-*-*) | |
b2f14e4a | 3463 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3464 | ;; |
caeba88f | 3465 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3466 | ;; |
93cc359e | 3467 | hppa*64*-*-linux*) |
a0da8069 | 3468 | ;; |
f0ff0f90 | 3469 | hppa*-*-linux*) |
5dcac624 | 3470 | ;; |
a0da8069 | 3471 | hppa*-*-*elf* | \ |
a0da8069 NN |
3472 | hppa*-*-lites* | \ |
3473 | hppa*-*-openbsd* | \ | |
3474 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3475 | ;; |
3476 | hppa*-hp-hpux11*) | |
0377a422 | 3477 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3478 | ;; |
691bb5a1 | 3479 | hppa*-*-pro*) |
691bb5a1 | 3480 | ;; |
a0da8069 | 3481 | hppa*-*-*) |
9863d716 | 3482 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3483 | ;; |
b07c2aad | 3484 | i960-*-*) |
b2f14e4a | 3485 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3486 | ;; |
a0da8069 NN |
3487 | ia64*-*-elf*) |
3488 | # No gdb support yet. | |
0377a422 | 3489 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3490 | ;; |
3491 | ia64*-**-hpux*) | |
92c9a463 | 3492 | # No ld support yet. |
9863d716 | 3493 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3494 | ;; |
19e99079 NC |
3495 | ia64*-*-*vms*) |
3496 | # No gdb or ld support yet. | |
9863d716 | 3497 | noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" |
19e99079 | 3498 | ;; |
1f53ca9a | 3499 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3500 | ;; |
3501 | i[3456789]86-*-mingw*) | |
45055374 | 3502 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3503 | ;; |
a0da8069 NN |
3504 | *-*-cygwin*) |
3505 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3506 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3507 | # always build newlib if winsup directory is present. |
45055374 | 3508 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3509 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3510 | elif test -d "$srcdir/newlib"; then |
45055374 | 3511 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3512 | fi |
c6b750e1 | 3513 | ;; |
ec11bdc6 | 3514 | i[3456789]86-*-pe) |
782cb41f | 3515 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3516 | ;; |
ec11bdc6 | 3517 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3518 | # The linker does not yet know about weak symbols in COFF, |
3519 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3520 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3521 | ;; |
ec11bdc6 | 3522 | i[3456789]86-*-sco*) |
b2f14e4a | 3523 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3524 | ;; |
ec11bdc6 | 3525 | i[3456789]86-*-solaris2*) |
a0da8069 NN |
3526 | noconfigdirs="$noconfigdirs target-libgloss" |
3527 | ;; | |
ec11bdc6 | 3528 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3529 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3530 | ;; |
ec11bdc6 | 3531 | i[3456789]86-*-beos*) |
c7e4b184 | 3532 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3533 | ;; |
b59bea8a | 3534 | i[3456789]86-*-rdos*) |
c7e4b184 | 3535 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3536 | ;; |
a0da8069 | 3537 | mmix-*-*) |
9863d716 | 3538 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3539 | ;; |
4970f871 | 3540 | mt-*-*) |
cdb9b172 AH |
3541 | noconfigdirs="$noconfigdirs sim" |
3542 | ;; | |
a0da8069 NN |
3543 | powerpc-*-aix*) |
3544 | # copied from rs6000-*-* entry | |
c7e4b184 | 3545 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3546 | ;; |
93cc359e | 3547 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3548 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3549 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3550 | # always build newlib. |
3551 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3552 | ;; | |
3553 | # This is temporary until we can link against shared libraries | |
3554 | powerpcle-*-solaris*) | |
b2f14e4a | 3555 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3556 | ;; |
3557 | powerpc-*-beos*) | |
c7e4b184 | 3558 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3559 | ;; |
a0da8069 | 3560 | rs6000-*-lynxos*) |
c7e4b184 | 3561 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3562 | ;; |
3563 | rs6000-*-aix*) | |
c7e4b184 | 3564 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3565 | ;; |
3566 | rs6000-*-*) | |
9863d716 | 3567 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3568 | ;; |
3569 | m68k-apollo-*) | |
b2f14e4a | 3570 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3571 | ;; |
25a07265 | 3572 | microblaze*) |
9863d716 | 3573 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3574 | ;; |
5bd8be13 | 3575 | mips*-sde-elf*) |
5bd8be13 RS |
3576 | if test x$with_newlib = xyes; then |
3577 | noconfigdirs="$noconfigdirs gprof" | |
3578 | fi | |
5bd8be13 | 3579 | ;; |
a0da8069 | 3580 | mips*-*-irix5*) |
b2f14e4a | 3581 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3582 | ;; |
3583 | mips*-*-irix6*) | |
9863d716 | 3584 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3585 | ;; |
a0da8069 | 3586 | mips*-*-bsd*) |
b2f14e4a | 3587 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3588 | ;; |
a0da8069 | 3589 | mips*-*-linux*) |
a0da8069 NN |
3590 | ;; |
3591 | mips*-*-*) | |
9863d716 | 3592 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3593 | ;; |
dbf85af7 | 3594 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3595 | case "${target}" in |
3596 | sh*-*-elf) | |
9863d716 | 3597 | ;; |
e8a5fa9c | 3598 | *) |
9863d716 | 3599 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3600 | esac |
a0da8069 | 3601 | ;; |
a0da8069 | 3602 | sparc-*-sunos4*) |
c7e4b184 | 3603 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3604 | use_gnu_ld=no |
3605 | fi | |
3606 | ;; | |
619a3713 | 3607 | tic6x-*-*) |
9863d716 | 3608 | noconfigdirs="$noconfigdirs gdb sim" |
619a3713 | 3609 | ;; |
a0da8069 | 3610 | v810-*-*) |
b2f14e4a | 3611 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3612 | ;; |
3613 | vax-*-*) | |
9863d716 | 3614 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3615 | ;; |
a0da8069 | 3616 | esac |
252b5132 | 3617 | |
a0da8069 NN |
3618 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3619 | # depends upon some newlib header files. | |
3620 | case "${noconfigdirs}" in | |
3621 | *target-libgloss*) ;; | |
3622 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3623 | esac | |
3624 | ||
a0da8069 | 3625 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3626 | host_makefile_frag=/dev/null |
3627 | if test -d ${srcdir}/config ; then | |
3628 | case "${host}" in | |
ec11bdc6 | 3629 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3630 | host_makefile_frag="config/mh-djgpp" |
3631 | ;; | |
3632 | *-cygwin*) | |
e33b51a6 | 3633 | |
81ecdfbb RW |
3634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3635 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3636 | echo a >cygwin-cat-check |
1f53ca9a | 3637 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3638 | rm cygwin-cat-check |
81ecdfbb RW |
3639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3640 | $as_echo "yes" >&6; } | |
e33b51a6 | 3641 | else |
8ade07e9 | 3642 | rm cygwin-cat-check |
81ecdfbb RW |
3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3644 | $as_echo "no" >&6; } | |
3645 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3646 | Please either mount the build directory in binary mode or run the following |
3647 | commands before running any configure script: | |
3648 | set -o igncr | |
3649 | export SHELLOPTS | |
81ecdfbb | 3650 | " "$LINENO" 5 |
e33b51a6 | 3651 | fi |
e33b51a6 | 3652 | |
a0da8069 NN |
3653 | host_makefile_frag="config/mh-cygwin" |
3654 | ;; | |
8a1599ab | 3655 | *-mingw*) |
84e7906e | 3656 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3657 | ;; |
a0da8069 NN |
3658 | *-interix*) |
3659 | host_makefile_frag="config/mh-interix" | |
3660 | ;; | |
da888c87 | 3661 | hppa*-hp-hpux10*) |
da888c87 | 3662 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3663 | ;; |
3516a403 | 3664 | hppa*-hp-hpux*) |
da888c87 PB |
3665 | host_makefile_frag="config/mh-pa" |
3666 | ;; | |
3667 | hppa*-*) | |
3668 | host_makefile_frag="config/mh-pa" | |
3669 | ;; | |
e552509b ILT |
3670 | *-*-darwin*) |
3671 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3672 | ;; |
f6d183c0 PB |
3673 | powerpc-*-aix*) |
3674 | host_makefile_frag="config/mh-ppc-aix" | |
3675 | ;; | |
3676 | rs6000-*-aix*) | |
3677 | host_makefile_frag="config/mh-ppc-aix" | |
3678 | ;; | |
a0da8069 NN |
3679 | esac |
3680 | fi | |
3681 | ||
9e07f89d | 3682 | if test "${build}" != "${host}" ; then |
1576798e PB |
3683 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3684 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3685 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3686 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3687 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3688 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3689 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3690 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3691 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3692 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3693 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3694 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3695 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3696 | else | |
3697 | AR_FOR_BUILD="\$(AR)" | |
3698 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3699 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3700 | CXX_FOR_BUILD="\$(CXX)" |
3701 | GCJ_FOR_BUILD="\$(GCJ)" | |
3702 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3703 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3704 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3705 | LD_FOR_BUILD="\$(LD)" | |
3706 | NM_FOR_BUILD="\$(NM)" | |
3707 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3708 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3709 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3710 | fi |
3711 | ||
3712 | ac_ext=c | |
c6b750e1 DJ |
3713 | ac_cpp='$CPP $CPPFLAGS' |
3714 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3715 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3716 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3717 | if test -n "$ac_tool_prefix"; then | |
3718 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3719 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3721 | $as_echo_n "checking for $ac_word... " >&6; } | |
3722 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3723 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3724 | else |
3725 | if test -n "$CC"; then | |
3726 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3727 | else | |
3728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3729 | for as_dir in $PATH | |
3730 | do | |
3731 | IFS=$as_save_IFS | |
3732 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3733 | for ac_exec_ext in '' $ac_executable_extensions; do |
3734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3735 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3737 | break 2 |
3738 | fi | |
3739 | done | |
81ecdfbb RW |
3740 | done |
3741 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3742 | |
3743 | fi | |
3744 | fi | |
3745 | CC=$ac_cv_prog_CC | |
3746 | if test -n "$CC"; then | |
81ecdfbb RW |
3747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3748 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3749 | else |
81ecdfbb RW |
3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3751 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3752 | fi |
3753 | ||
81ecdfbb | 3754 | |
c6b750e1 DJ |
3755 | fi |
3756 | if test -z "$ac_cv_prog_CC"; then | |
3757 | ac_ct_CC=$CC | |
6a9cf61e | 3758 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3759 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3761 | $as_echo_n "checking for $ac_word... " >&6; } | |
3762 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3763 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3764 | else |
3765 | if test -n "$ac_ct_CC"; then | |
3766 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3767 | else | |
3768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3769 | for as_dir in $PATH | |
3770 | do | |
3771 | IFS=$as_save_IFS | |
3772 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3773 | for ac_exec_ext in '' $ac_executable_extensions; do |
3774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3775 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3777 | break 2 |
3778 | fi | |
3779 | done | |
81ecdfbb RW |
3780 | done |
3781 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3782 | |
3783 | fi | |
3784 | fi | |
3785 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3786 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3788 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3789 | else |
81ecdfbb RW |
3790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3791 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3792 | fi |
3793 | ||
81ecdfbb RW |
3794 | if test "x$ac_ct_CC" = x; then |
3795 | CC="" | |
3796 | else | |
3797 | case $cross_compiling:$ac_tool_warned in | |
3798 | yes:) | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3800 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3801 | ac_tool_warned=yes ;; | |
3802 | esac | |
3803 | CC=$ac_ct_CC | |
3804 | fi | |
c6b750e1 DJ |
3805 | else |
3806 | CC="$ac_cv_prog_CC" | |
3807 | fi | |
3808 | ||
3809 | if test -z "$CC"; then | |
81ecdfbb RW |
3810 | if test -n "$ac_tool_prefix"; then |
3811 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 3812 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3814 | $as_echo_n "checking for $ac_word... " >&6; } | |
3815 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3816 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3817 | else |
3818 | if test -n "$CC"; then | |
3819 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3820 | else | |
c6b750e1 DJ |
3821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3822 | for as_dir in $PATH | |
3823 | do | |
3824 | IFS=$as_save_IFS | |
3825 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3826 | for ac_exec_ext in '' $ac_executable_extensions; do |
3827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3828 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3830 | break 2 |
3831 | fi | |
3832 | done | |
81ecdfbb RW |
3833 | done |
3834 | IFS=$as_save_IFS | |
c6b750e1 | 3835 | |
9e07f89d NN |
3836 | fi |
3837 | fi | |
c6b750e1 | 3838 | CC=$ac_cv_prog_CC |
9e07f89d | 3839 | if test -n "$CC"; then |
81ecdfbb RW |
3840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3841 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3842 | else |
81ecdfbb RW |
3843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3844 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3845 | fi |
3846 | ||
c6b750e1 | 3847 | |
81ecdfbb | 3848 | fi |
c6b750e1 | 3849 | fi |
9e07f89d NN |
3850 | if test -z "$CC"; then |
3851 | # Extract the first word of "cc", so it can be a program name with args. | |
3852 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3854 | $as_echo_n "checking for $ac_word... " >&6; } | |
3855 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3856 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3857 | else |
3858 | if test -n "$CC"; then | |
3859 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3860 | else | |
9e07f89d | 3861 | ac_prog_rejected=no |
c6b750e1 DJ |
3862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3863 | for as_dir in $PATH | |
3864 | do | |
3865 | IFS=$as_save_IFS | |
3866 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3867 | for ac_exec_ext in '' $ac_executable_extensions; do |
3868 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
3869 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3870 | ac_prog_rejected=yes | |
3871 | continue | |
3872 | fi | |
3873 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3875 | break 2 |
3876 | fi | |
3877 | done | |
81ecdfbb RW |
3878 | done |
3879 | IFS=$as_save_IFS | |
c6b750e1 | 3880 | |
9e07f89d NN |
3881 | if test $ac_prog_rejected = yes; then |
3882 | # We found a bogon in the path, so make sure we never use it. | |
3883 | set dummy $ac_cv_prog_CC | |
3884 | shift | |
c6b750e1 | 3885 | if test $# != 0; then |
9e07f89d NN |
3886 | # We chose a different compiler from the bogus one. |
3887 | # However, it has the same basename, so the bogon will be chosen | |
3888 | # first if we set CC to just the basename; use the full file name. | |
3889 | shift | |
c6b750e1 | 3890 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
3891 | fi |
3892 | fi | |
3893 | fi | |
3894 | fi | |
c6b750e1 | 3895 | CC=$ac_cv_prog_CC |
9e07f89d | 3896 | if test -n "$CC"; then |
81ecdfbb RW |
3897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3898 | $as_echo "$CC" >&6; } | |
9e07f89d | 3899 | else |
81ecdfbb RW |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3901 | $as_echo "no" >&6; } | |
9e07f89d NN |
3902 | fi |
3903 | ||
81ecdfbb | 3904 | |
c6b750e1 DJ |
3905 | fi |
3906 | if test -z "$CC"; then | |
3907 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3908 | for ac_prog in cl.exe |
c6b750e1 DJ |
3909 | do |
3910 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3911 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3913 | $as_echo_n "checking for $ac_word... " >&6; } | |
3914 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3915 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3916 | else |
3917 | if test -n "$CC"; then | |
3918 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3919 | else | |
c6b750e1 DJ |
3920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3921 | for as_dir in $PATH | |
3922 | do | |
3923 | IFS=$as_save_IFS | |
3924 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3925 | for ac_exec_ext in '' $ac_executable_extensions; do |
3926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3927 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3928 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 3929 | break 2 |
376a0e54 | 3930 | fi |
c6b750e1 | 3931 | done |
81ecdfbb RW |
3932 | done |
3933 | IFS=$as_save_IFS | |
cac3d6c4 | 3934 | |
c6b750e1 DJ |
3935 | fi |
3936 | fi | |
3937 | CC=$ac_cv_prog_CC | |
3938 | if test -n "$CC"; then | |
81ecdfbb RW |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3940 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 3941 | else |
81ecdfbb RW |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3943 | $as_echo "no" >&6; } | |
9e07f89d | 3944 | fi |
cac3d6c4 | 3945 | |
81ecdfbb | 3946 | |
c6b750e1 DJ |
3947 | test -n "$CC" && break |
3948 | done | |
cac3d6c4 | 3949 | fi |
c6b750e1 DJ |
3950 | if test -z "$CC"; then |
3951 | ac_ct_CC=$CC | |
81ecdfbb | 3952 | for ac_prog in cl.exe |
c6b750e1 DJ |
3953 | do |
3954 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3955 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3957 | $as_echo_n "checking for $ac_word... " >&6; } | |
3958 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3959 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 3960 | else |
c6b750e1 DJ |
3961 | if test -n "$ac_ct_CC"; then |
3962 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 3963 | else |
c6b750e1 DJ |
3964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3965 | for as_dir in $PATH | |
3966 | do | |
3967 | IFS=$as_save_IFS | |
3968 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3969 | for ac_exec_ext in '' $ac_executable_extensions; do |
3970 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3971 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3973 | break 2 |
3974 | fi | |
3975 | done | |
81ecdfbb RW |
3976 | done |
3977 | IFS=$as_save_IFS | |
c6b750e1 | 3978 | |
cac3d6c4 CM |
3979 | fi |
3980 | fi | |
c6b750e1 DJ |
3981 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3982 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3984 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 3985 | else |
81ecdfbb RW |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3987 | $as_echo "no" >&6; } | |
cac3d6c4 | 3988 | fi |
376a0e54 | 3989 | |
81ecdfbb | 3990 | |
c6b750e1 DJ |
3991 | test -n "$ac_ct_CC" && break |
3992 | done | |
3993 | ||
81ecdfbb RW |
3994 | if test "x$ac_ct_CC" = x; then |
3995 | CC="" | |
3996 | else | |
3997 | case $cross_compiling:$ac_tool_warned in | |
3998 | yes:) | |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4000 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4001 | ac_tool_warned=yes ;; | |
4002 | esac | |
4003 | CC=$ac_ct_CC | |
4004 | fi | |
c6b750e1 DJ |
4005 | fi |
4006 | ||
4007 | fi | |
4008 | ||
4009 | ||
81ecdfbb RW |
4010 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4011 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4012 | as_fn_error "no acceptable C compiler found in \$PATH | |
4013 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4014 | |
4015 | # Provide some information about the compiler. | |
81ecdfbb RW |
4016 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4017 | set X $ac_compile | |
4018 | ac_compiler=$2 | |
4019 | for ac_option in --version -v -V -qversion; do | |
4020 | { { ac_try="$ac_compiler $ac_option >&5" | |
4021 | case "(($ac_try" in | |
4022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4023 | *) ac_try_echo=$ac_try;; | |
4024 | esac | |
4025 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4026 | $as_echo "$ac_try_echo"; } >&5 | |
4027 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4028 | ac_status=$? |
81ecdfbb RW |
4029 | if test -s conftest.err; then |
4030 | sed '10a\ | |
4031 | ... rest of stderr output deleted ... | |
4032 | 10q' conftest.err >conftest.er1 | |
4033 | cat conftest.er1 >&5 | |
4034 | rm -f conftest.er1 conftest.err | |
4035 | fi | |
4036 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4037 | test $ac_status = 0; } | |
4038 | done | |
c6b750e1 | 4039 | |
81ecdfbb | 4040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4041 | /* end confdefs.h. */ |
4042 | ||
4043 | int | |
4044 | main () | |
4045 | { | |
4046 | ||
4047 | ; | |
4048 | return 0; | |
4049 | } | |
4050 | _ACEOF | |
4051 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4052 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4053 | # Try to create an executable without -o first, disregard a.out. |
4054 | # It will help us diagnose broken compilers, and finding out an intuition | |
4055 | # of exeext. | |
81ecdfbb RW |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4057 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4058 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4059 | ||
4060 | # The possible output files: | |
4061 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4062 | ||
4063 | ac_rmfiles= | |
4064 | for ac_file in $ac_files | |
4065 | do | |
4066 | case $ac_file in | |
4067 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4068 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4069 | esac | |
4070 | done | |
4071 | rm -f $ac_rmfiles | |
4072 | ||
4073 | if { { ac_try="$ac_link_default" | |
4074 | case "(($ac_try" in | |
4075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4076 | *) ac_try_echo=$ac_try;; | |
4077 | esac | |
4078 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4079 | $as_echo "$ac_try_echo"; } >&5 | |
4080 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4081 | ac_status=$? |
81ecdfbb RW |
4082 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4083 | test $ac_status = 0; }; then : | |
4084 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4085 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4086 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4087 | # so that the user can short-circuit this test for compilers unknown to | |
4088 | # Autoconf. | |
4089 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4090 | do |
4091 | test -f "$ac_file" || continue | |
4092 | case $ac_file in | |
81ecdfbb | 4093 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4094 | ;; |
4095 | [ab].out ) | |
4096 | # We found the default executable, but exeext='' is most | |
4097 | # certainly right. | |
4098 | break;; | |
4099 | *.* ) | |
81ecdfbb RW |
4100 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4101 | then :; else | |
4102 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4103 | fi | |
4104 | # We set ac_cv_exeext here because the later test for it is not | |
4105 | # safe: cross compilers may not add the suffix if given an `-o' | |
4106 | # argument, so we may need to know it at that point already. | |
4107 | # Even if this section looks crufty: it has the advantage of | |
4108 | # actually working. | |
c6b750e1 DJ |
4109 | break;; |
4110 | * ) | |
4111 | break;; | |
4112 | esac | |
4113 | done | |
81ecdfbb RW |
4114 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4115 | ||
c6b750e1 | 4116 | else |
81ecdfbb RW |
4117 | ac_file='' |
4118 | fi | |
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4120 | $as_echo "$ac_file" >&6; } | |
4121 | if test -z "$ac_file"; then : | |
4122 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4123 | sed 's/^/| /' conftest.$ac_ext >&5 |
4124 | ||
81ecdfbb RW |
4125 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4126 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4127 | { as_fn_set_status 77 | |
4128 | as_fn_error "C compiler cannot create executables | |
4129 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4130 | fi |
c6b750e1 | 4131 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4132 | |
81ecdfbb | 4133 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4134 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4136 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4137 | # If not cross compiling, check that we can run a simple program. |
4138 | if test "$cross_compiling" != yes; then | |
4139 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4140 | { { case "(($ac_try" in |
4141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4142 | *) ac_try_echo=$ac_try;; | |
4143 | esac | |
4144 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4145 | $as_echo "$ac_try_echo"; } >&5 | |
4146 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4147 | ac_status=$? |
81ecdfbb RW |
4148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4149 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4150 | cross_compiling=no |
4151 | else | |
4152 | if test "$cross_compiling" = maybe; then | |
4153 | cross_compiling=yes | |
4154 | else | |
81ecdfbb RW |
4155 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4156 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4157 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4158 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4159 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4160 | fi |
4161 | fi | |
4162 | fi | |
81ecdfbb RW |
4163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4164 | $as_echo "yes" >&6; } | |
c6b750e1 | 4165 | |
81ecdfbb | 4166 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4167 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4168 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4169 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4171 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4173 | $as_echo "$cross_compiling" >&6; } | |
4174 | ||
4175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4176 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4177 | if { { ac_try="$ac_link" | |
4178 | case "(($ac_try" in | |
4179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4180 | *) ac_try_echo=$ac_try;; | |
4181 | esac | |
4182 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4183 | $as_echo "$ac_try_echo"; } >&5 | |
4184 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4185 | ac_status=$? |
81ecdfbb RW |
4186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4187 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4188 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4189 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4190 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4191 | # `rm'. | |
4192 | for ac_file in conftest.exe conftest conftest.*; do | |
4193 | test -f "$ac_file" || continue | |
4194 | case $ac_file in | |
81ecdfbb | 4195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4196 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4197 | break;; |
4198 | * ) break;; | |
4199 | esac | |
4200 | done | |
4201 | else | |
81ecdfbb RW |
4202 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4203 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4204 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4205 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4206 | fi |
c6b750e1 | 4207 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4209 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4210 | |
4211 | rm -f conftest.$ac_ext | |
4212 | EXEEXT=$ac_cv_exeext | |
4213 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4215 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4216 | if test "${ac_cv_objext+set}" = set; then : | |
4217 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4218 | else |
81ecdfbb | 4219 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4220 | /* end confdefs.h. */ |
4221 | ||
4222 | int | |
4223 | main () | |
4224 | { | |
4225 | ||
4226 | ; | |
4227 | return 0; | |
4228 | } | |
4229 | _ACEOF | |
4230 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4231 | if { { ac_try="$ac_compile" |
4232 | case "(($ac_try" in | |
4233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4234 | *) ac_try_echo=$ac_try;; | |
4235 | esac | |
4236 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4237 | $as_echo "$ac_try_echo"; } >&5 | |
4238 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4239 | ac_status=$? |
81ecdfbb RW |
4240 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4241 | test $ac_status = 0; }; then : | |
4242 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4243 | test -f "$ac_file" || continue; | |
c6b750e1 | 4244 | case $ac_file in |
81ecdfbb | 4245 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4246 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4247 | break;; | |
4248 | esac | |
4249 | done | |
cac3d6c4 | 4250 | else |
81ecdfbb | 4251 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4252 | sed 's/^/| /' conftest.$ac_ext >&5 |
4253 | ||
81ecdfbb RW |
4254 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4255 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4256 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4257 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4258 | fi |
c6b750e1 DJ |
4259 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4260 | fi | |
81ecdfbb RW |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4262 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4263 | OBJEXT=$ac_cv_objext |
4264 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4266 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4267 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4268 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4269 | else |
81ecdfbb | 4270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4271 | /* end confdefs.h. */ |
4272 | ||
4273 | int | |
4274 | main () | |
4275 | { | |
4276 | #ifndef __GNUC__ | |
4277 | choke me | |
4278 | #endif | |
4279 | ||
4280 | ; | |
4281 | return 0; | |
4282 | } | |
4283 | _ACEOF | |
81ecdfbb | 4284 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4285 | ac_compiler_gnu=yes |
4286 | else | |
81ecdfbb | 4287 | ac_compiler_gnu=no |
c6b750e1 | 4288 | fi |
81ecdfbb | 4289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4290 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4291 | ||
4292 | fi | |
81ecdfbb RW |
4293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4294 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4295 | if test $ac_compiler_gnu = yes; then | |
4296 | GCC=yes | |
4297 | else | |
4298 | GCC= | |
4299 | fi | |
c6b750e1 DJ |
4300 | ac_test_CFLAGS=${CFLAGS+set} |
4301 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4303 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4304 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4305 | $as_echo_n "(cached) " >&6 | |
4306 | else | |
4307 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4308 | ac_c_werror_flag=yes | |
4309 | ac_cv_prog_cc_g=no | |
4310 | CFLAGS="-g" | |
4311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4312 | /* end confdefs.h. */ |
4313 | ||
4314 | int | |
4315 | main () | |
4316 | { | |
4317 | ||
4318 | ; | |
4319 | return 0; | |
4320 | } | |
4321 | _ACEOF | |
81ecdfbb | 4322 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4323 | ac_cv_prog_cc_g=yes |
4324 | else | |
81ecdfbb RW |
4325 | CFLAGS="" |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4327 | /* end confdefs.h. */ | |
4328 | ||
4329 | int | |
4330 | main () | |
4331 | { | |
4332 | ||
4333 | ; | |
4334 | return 0; | |
4335 | } | |
4336 | _ACEOF | |
4337 | if ac_fn_c_try_compile "$LINENO"; then : | |
4338 | ||
4339 | else | |
4340 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4341 | CFLAGS="-g" | |
4342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4343 | /* end confdefs.h. */ | |
cac3d6c4 | 4344 | |
81ecdfbb RW |
4345 | int |
4346 | main () | |
4347 | { | |
4348 | ||
4349 | ; | |
4350 | return 0; | |
4351 | } | |
4352 | _ACEOF | |
4353 | if ac_fn_c_try_compile "$LINENO"; then : | |
4354 | ac_cv_prog_cc_g=yes | |
4355 | fi | |
4356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4357 | fi |
81ecdfbb | 4358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4359 | fi |
81ecdfbb RW |
4360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4361 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4362 | fi | |
4363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4364 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4365 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4366 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4367 | elif test $ac_cv_prog_cc_g = yes; then |
4368 | if test "$GCC" = yes; then | |
4369 | CFLAGS="-g -O2" | |
4370 | else | |
4371 | CFLAGS="-g" | |
4372 | fi | |
4373 | else | |
4374 | if test "$GCC" = yes; then | |
4375 | CFLAGS="-O2" | |
4376 | else | |
4377 | CFLAGS= | |
4378 | fi | |
4379 | fi | |
81ecdfbb RW |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4381 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4382 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4383 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4384 | else |
81ecdfbb | 4385 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4386 | ac_save_CC=$CC |
81ecdfbb | 4387 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4388 | /* end confdefs.h. */ |
4389 | #include <stdarg.h> | |
4390 | #include <stdio.h> | |
4391 | #include <sys/types.h> | |
4392 | #include <sys/stat.h> | |
4393 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4394 | struct buf { int x; }; | |
4395 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4396 | static char *e (p, i) | |
4397 | char **p; | |
4398 | int i; | |
4399 | { | |
4400 | return p[i]; | |
4401 | } | |
4402 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4403 | { | |
4404 | char *s; | |
4405 | va_list v; | |
4406 | va_start (v,p); | |
4407 | s = g (p, va_arg (v,int)); | |
4408 | va_end (v); | |
4409 | return s; | |
4410 | } | |
4411 | ||
4412 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4413 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4414 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4415 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4416 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4417 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4418 | that's true only with -std. */ |
c6b750e1 DJ |
4419 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4420 | ||
81ecdfbb RW |
4421 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4422 | inside strings and character constants. */ | |
4423 | #define FOO(x) 'x' | |
4424 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4425 | ||
c6b750e1 DJ |
4426 | int test (int i, double x); |
4427 | struct s1 {int (*f) (int a);}; | |
4428 | struct s2 {int (*f) (double a);}; | |
4429 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4430 | int argc; | |
4431 | char **argv; | |
4432 | int | |
4433 | main () | |
4434 | { | |
4435 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4436 | ; | |
4437 | return 0; | |
4438 | } | |
4439 | _ACEOF | |
81ecdfbb RW |
4440 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4441 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4442 | do |
4443 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4444 | if ac_fn_c_try_compile "$LINENO"; then : |
4445 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4446 | fi |
81ecdfbb RW |
4447 | rm -f core conftest.err conftest.$ac_objext |
4448 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4449 | done |
81ecdfbb | 4450 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4451 | CC=$ac_save_CC |
4452 | ||
4453 | fi | |
81ecdfbb RW |
4454 | # AC_CACHE_VAL |
4455 | case "x$ac_cv_prog_cc_c89" in | |
4456 | x) | |
4457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4458 | $as_echo "none needed" >&6; } ;; | |
4459 | xno) | |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4461 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4462 | *) |
81ecdfbb RW |
4463 | CC="$CC $ac_cv_prog_cc_c89" |
4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4465 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4466 | esac |
81ecdfbb | 4467 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4468 | |
c6b750e1 DJ |
4469 | fi |
4470 | ||
c6b750e1 DJ |
4471 | ac_ext=c |
4472 | ac_cpp='$CPP $CPPFLAGS' | |
4473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4476 | |
81ecdfbb | 4477 | ac_ext=cpp |
18f6b6ee PB |
4478 | ac_cpp='$CXXCPP $CPPFLAGS' |
4479 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4480 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4481 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4482 | if test -z "$CXX"; then |
4483 | if test -n "$CCC"; then | |
4484 | CXX=$CCC | |
4485 | else | |
4486 | if test -n "$ac_tool_prefix"; then | |
4487 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4488 | do |
4489 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4490 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4492 | $as_echo_n "checking for $ac_word... " >&6; } | |
4493 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4494 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4495 | else |
4496 | if test -n "$CXX"; then | |
4497 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4498 | else | |
4499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4500 | for as_dir in $PATH | |
4501 | do | |
4502 | IFS=$as_save_IFS | |
4503 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4504 | for ac_exec_ext in '' $ac_executable_extensions; do |
4505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4506 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4508 | break 2 |
4509 | fi | |
4510 | done | |
81ecdfbb RW |
4511 | done |
4512 | IFS=$as_save_IFS | |
512b7dfb | 4513 | |
18f6b6ee PB |
4514 | fi |
4515 | fi | |
4516 | CXX=$ac_cv_prog_CXX | |
4517 | if test -n "$CXX"; then | |
81ecdfbb RW |
4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4519 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4520 | else |
81ecdfbb RW |
4521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4522 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4523 | fi |
4524 | ||
81ecdfbb | 4525 | |
18f6b6ee PB |
4526 | test -n "$CXX" && break |
4527 | done | |
4528 | fi | |
4529 | if test -z "$CXX"; then | |
4530 | ac_ct_CXX=$CXX | |
81ecdfbb | 4531 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4532 | do |
4533 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4534 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4536 | $as_echo_n "checking for $ac_word... " >&6; } | |
4537 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4538 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4539 | else |
4540 | if test -n "$ac_ct_CXX"; then | |
4541 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4542 | else | |
4543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4544 | for as_dir in $PATH | |
4545 | do | |
4546 | IFS=$as_save_IFS | |
4547 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4548 | for ac_exec_ext in '' $ac_executable_extensions; do |
4549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4550 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4552 | break 2 |
512b7dfb | 4553 | fi |
18f6b6ee | 4554 | done |
81ecdfbb RW |
4555 | done |
4556 | IFS=$as_save_IFS | |
512b7dfb | 4557 | |
18f6b6ee PB |
4558 | fi |
4559 | fi | |
4560 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4561 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4563 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4564 | else |
81ecdfbb RW |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4566 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4567 | fi |
4568 | ||
81ecdfbb | 4569 | |
18f6b6ee PB |
4570 | test -n "$ac_ct_CXX" && break |
4571 | done | |
18f6b6ee | 4572 | |
81ecdfbb RW |
4573 | if test "x$ac_ct_CXX" = x; then |
4574 | CXX="g++" | |
4575 | else | |
4576 | case $cross_compiling:$ac_tool_warned in | |
4577 | yes:) | |
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4579 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4580 | ac_tool_warned=yes ;; | |
4581 | esac | |
4582 | CXX=$ac_ct_CXX | |
4583 | fi | |
18f6b6ee PB |
4584 | fi |
4585 | ||
81ecdfbb RW |
4586 | fi |
4587 | fi | |
18f6b6ee | 4588 | # Provide some information about the compiler. |
81ecdfbb RW |
4589 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4590 | set X $ac_compile | |
4591 | ac_compiler=$2 | |
4592 | for ac_option in --version -v -V -qversion; do | |
4593 | { { ac_try="$ac_compiler $ac_option >&5" | |
4594 | case "(($ac_try" in | |
4595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4596 | *) ac_try_echo=$ac_try;; | |
4597 | esac | |
4598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4599 | $as_echo "$ac_try_echo"; } >&5 | |
4600 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4601 | ac_status=$? |
81ecdfbb RW |
4602 | if test -s conftest.err; then |
4603 | sed '10a\ | |
4604 | ... rest of stderr output deleted ... | |
4605 | 10q' conftest.err >conftest.er1 | |
4606 | cat conftest.er1 >&5 | |
4607 | rm -f conftest.er1 conftest.err | |
4608 | fi | |
4609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4610 | test $ac_status = 0; } | |
4611 | done | |
18f6b6ee | 4612 | |
81ecdfbb RW |
4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4614 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4615 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4616 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4617 | else |
81ecdfbb | 4618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4619 | /* end confdefs.h. */ |
4620 | ||
4621 | int | |
4622 | main () | |
4623 | { | |
4624 | #ifndef __GNUC__ | |
4625 | choke me | |
4626 | #endif | |
4627 | ||
4628 | ; | |
4629 | return 0; | |
4630 | } | |
4631 | _ACEOF | |
81ecdfbb | 4632 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4633 | ac_compiler_gnu=yes |
4634 | else | |
81ecdfbb | 4635 | ac_compiler_gnu=no |
18f6b6ee | 4636 | fi |
81ecdfbb | 4637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4638 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4639 | ||
4640 | fi | |
81ecdfbb RW |
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4642 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4643 | if test $ac_compiler_gnu = yes; then | |
4644 | GXX=yes | |
4645 | else | |
4646 | GXX= | |
4647 | fi | |
18f6b6ee PB |
4648 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4649 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4651 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4652 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4653 | $as_echo_n "(cached) " >&6 | |
4654 | else | |
4655 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4656 | ac_cxx_werror_flag=yes | |
4657 | ac_cv_prog_cxx_g=no | |
4658 | CXXFLAGS="-g" | |
4659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4660 | /* end confdefs.h. */ |
4661 | ||
4662 | int | |
4663 | main () | |
4664 | { | |
4665 | ||
4666 | ; | |
4667 | return 0; | |
4668 | } | |
4669 | _ACEOF | |
81ecdfbb | 4670 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4671 | ac_cv_prog_cxx_g=yes |
4672 | else | |
81ecdfbb RW |
4673 | CXXFLAGS="" |
4674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4675 | /* end confdefs.h. */ |
81ecdfbb | 4676 | |
18f6b6ee PB |
4677 | int |
4678 | main () | |
4679 | { | |
81ecdfbb | 4680 | |
18f6b6ee PB |
4681 | ; |
4682 | return 0; | |
4683 | } | |
4684 | _ACEOF | |
81ecdfbb | 4685 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4686 | |
81ecdfbb RW |
4687 | else |
4688 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4689 | CXXFLAGS="-g" | |
4690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4691 | /* end confdefs.h. */ |
81ecdfbb | 4692 | |
18f6b6ee PB |
4693 | int |
4694 | main () | |
4695 | { | |
81ecdfbb | 4696 | |
18f6b6ee PB |
4697 | ; |
4698 | return 0; | |
4699 | } | |
4700 | _ACEOF | |
81ecdfbb RW |
4701 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4702 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4703 | fi |
81ecdfbb RW |
4704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4705 | fi | |
4706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4707 | fi | |
4708 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4709 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4710 | fi | |
4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4712 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4713 | if test "$ac_test_CXXFLAGS" = set; then | |
4714 | CXXFLAGS=$ac_save_CXXFLAGS | |
4715 | elif test $ac_cv_prog_cxx_g = yes; then | |
4716 | if test "$GXX" = yes; then | |
4717 | CXXFLAGS="-g -O2" | |
4718 | else | |
4719 | CXXFLAGS="-g" | |
4720 | fi | |
4721 | else | |
4722 | if test "$GXX" = yes; then | |
4723 | CXXFLAGS="-O2" | |
4724 | else | |
4725 | CXXFLAGS= | |
4726 | fi | |
18f6b6ee | 4727 | fi |
18f6b6ee PB |
4728 | ac_ext=c |
4729 | ac_cpp='$CPP $CPPFLAGS' | |
4730 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4731 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4732 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4733 | ||
4734 | ||
4735 | # We must set the default linker to the linker used by gcc for the correct | |
4736 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4737 | # set the LD default to the ld used by gcc. | |
4738 | if test -z "$LD"; then | |
4739 | if test "$GCC" = yes; then | |
4740 | case $build in | |
4741 | *-*-mingw*) | |
4742 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4743 | *) | |
4744 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4745 | esac | |
4746 | case $gcc_prog_ld in | |
4747 | # Accept absolute paths. | |
4748 | [\\/]* | [A-Za-z]:[\\/]*) | |
4749 | LD="$gcc_prog_ld" ;; | |
4750 | esac | |
4751 | fi | |
512b7dfb PB |
4752 | fi |
4753 | ||
4754 | ||
4755 | ||
4756 | ||
c6b750e1 | 4757 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4758 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4759 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4761 | $as_echo_n "checking for $ac_word... " >&6; } | |
4762 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4763 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4764 | else |
512b7dfb PB |
4765 | if test -n "$GNATBIND"; then |
4766 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 4767 | else |
c6b750e1 DJ |
4768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4769 | for as_dir in $PATH | |
4770 | do | |
4771 | IFS=$as_save_IFS | |
4772 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4773 | for ac_exec_ext in '' $ac_executable_extensions; do |
4774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4775 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 4776 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4777 | break 2 |
4778 | fi | |
4779 | done | |
81ecdfbb RW |
4780 | done |
4781 | IFS=$as_save_IFS | |
c6b750e1 | 4782 | |
9e07f89d NN |
4783 | fi |
4784 | fi | |
512b7dfb PB |
4785 | GNATBIND=$ac_cv_prog_GNATBIND |
4786 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4788 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 4789 | else |
81ecdfbb RW |
4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4791 | $as_echo "no" >&6; } | |
9e07f89d NN |
4792 | fi |
4793 | ||
81ecdfbb | 4794 | |
c6b750e1 | 4795 | fi |
512b7dfb PB |
4796 | if test -z "$ac_cv_prog_GNATBIND"; then |
4797 | ac_ct_GNATBIND=$GNATBIND | |
4798 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4799 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
4800 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4801 | $as_echo_n "checking for $ac_word... " >&6; } | |
4802 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4803 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4804 | else |
512b7dfb PB |
4805 | if test -n "$ac_ct_GNATBIND"; then |
4806 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 4807 | else |
c6b750e1 DJ |
4808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4809 | for as_dir in $PATH | |
4810 | do | |
4811 | IFS=$as_save_IFS | |
4812 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4813 | for ac_exec_ext in '' $ac_executable_extensions; do |
4814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4815 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 4816 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4817 | break 2 |
4818 | fi | |
4819 | done | |
81ecdfbb RW |
4820 | done |
4821 | IFS=$as_save_IFS | |
c6b750e1 | 4822 | |
9e07f89d NN |
4823 | fi |
4824 | fi | |
512b7dfb PB |
4825 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4826 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4828 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 4829 | else |
81ecdfbb RW |
4830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4831 | $as_echo "no" >&6; } | |
9e07f89d NN |
4832 | fi |
4833 | ||
81ecdfbb RW |
4834 | if test "x$ac_ct_GNATBIND" = x; then |
4835 | GNATBIND="no" | |
4836 | else | |
4837 | case $cross_compiling:$ac_tool_warned in | |
4838 | yes:) | |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4840 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4841 | ac_tool_warned=yes ;; | |
4842 | esac | |
4843 | GNATBIND=$ac_ct_GNATBIND | |
4844 | fi | |
24ff9987 | 4845 | else |
512b7dfb | 4846 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
4847 | fi |
4848 | ||
7df2cd5d | 4849 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4850 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4851 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4853 | $as_echo_n "checking for $ac_word... " >&6; } | |
4854 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4855 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4856 | else |
512b7dfb PB |
4857 | if test -n "$GNATMAKE"; then |
4858 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4859 | else |
4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4861 | for as_dir in $PATH | |
4862 | do | |
4863 | IFS=$as_save_IFS | |
4864 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
4866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4867 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4869 | break 2 |
4870 | fi | |
4871 | done | |
81ecdfbb RW |
4872 | done |
4873 | IFS=$as_save_IFS | |
7df2cd5d PB |
4874 | |
4875 | fi | |
4876 | fi | |
512b7dfb PB |
4877 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4878 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4880 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 4881 | else |
81ecdfbb RW |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4883 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4884 | fi |
4885 | ||
81ecdfbb | 4886 | |
7df2cd5d | 4887 | fi |
512b7dfb PB |
4888 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4889 | ac_ct_GNATMAKE=$GNATMAKE | |
4890 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4891 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4893 | $as_echo_n "checking for $ac_word... " >&6; } | |
4894 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4895 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4896 | else |
512b7dfb PB |
4897 | if test -n "$ac_ct_GNATMAKE"; then |
4898 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4899 | else |
4900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4901 | for as_dir in $PATH | |
4902 | do | |
4903 | IFS=$as_save_IFS | |
4904 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4905 | for ac_exec_ext in '' $ac_executable_extensions; do |
4906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4907 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 4908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4909 | break 2 |
4910 | fi | |
4911 | done | |
81ecdfbb RW |
4912 | done |
4913 | IFS=$as_save_IFS | |
7df2cd5d | 4914 | |
7df2cd5d PB |
4915 | fi |
4916 | fi | |
512b7dfb PB |
4917 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4918 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4920 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 4921 | else |
81ecdfbb RW |
4922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4923 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4924 | fi |
4925 | ||
81ecdfbb RW |
4926 | if test "x$ac_ct_GNATMAKE" = x; then |
4927 | GNATMAKE="no" | |
4928 | else | |
4929 | case $cross_compiling:$ac_tool_warned in | |
4930 | yes:) | |
4931 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4932 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4933 | ac_tool_warned=yes ;; | |
4934 | esac | |
4935 | GNATMAKE=$ac_ct_GNATMAKE | |
4936 | fi | |
7df2cd5d | 4937 | else |
512b7dfb | 4938 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
4939 | fi |
4940 | ||
81ecdfbb RW |
4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4942 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4943 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4944 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4945 | else |
4946 | cat >conftest.adb <<EOF | |
4947 | procedure conftest is begin null; end conftest; | |
4948 | EOF | |
4949 | acx_cv_cc_gcc_supports_ada=no | |
4950 | # There is a bug in old released versions of GCC which causes the | |
4951 | # driver to exit successfully when the appropriate language module | |
4952 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4953 | # Therefore we must check for the error message as well as an | |
4954 | # unsuccessful exit. | |
b8908782 DD |
4955 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4956 | # given a .adb file, but produce no object file. So we must check | |
4957 | # if an object file was really produced to guard against this. | |
9e07f89d | 4958 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 4959 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 4960 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
4961 | fi |
4962 | rm -f conftest.* | |
4963 | fi | |
81ecdfbb RW |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4965 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 4966 | |
512b7dfb | 4967 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
4968 | have_gnat=yes |
4969 | else | |
4970 | have_gnat=no | |
4971 | fi | |
4972 | ||
81ecdfbb RW |
4973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
4974 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
4975 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
4976 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
4977 | else |
4978 | echo abfoo >t1 | |
4979 | echo cdfoo >t2 | |
4980 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
4981 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4982 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4983 | : | |
4984 | else | |
4985 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4986 | fi | |
4987 | fi | |
b8908782 DD |
4988 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4989 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 4990 | : |
b8908782 DD |
4991 | else |
4992 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4993 | fi | |
4994 | fi | |
4995 | rm t1 t2 | |
4996 | ||
4997 | fi | |
81ecdfbb RW |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
4999 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5000 | do_compare="$gcc_cv_prog_cmp_skip" |
5001 | ||
5002 | ||
9e07f89d | 5003 | |
e8a5fa9c | 5004 | # See if we are building gcc with C++. |
81ecdfbb RW |
5005 | # Check whether --enable-build-with-cxx was given. |
5006 | if test "${enable_build_with_cxx+set}" = set; then : | |
5007 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
e8a5fa9c RW |
5008 | else |
5009 | ENABLE_BUILD_WITH_CXX=no | |
81ecdfbb RW |
5010 | fi |
5011 | ||
e8a5fa9c | 5012 | |
d5f2ee2e KG |
5013 | # Used for setting $lt_cv_objdir |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5015 | $as_echo_n "checking for objdir... " >&6; } | |
5016 | if test "${lt_cv_objdir+set}" = set; then : | |
5017 | $as_echo_n "(cached) " >&6 | |
5018 | else | |
5019 | rm -f .libs 2>/dev/null | |
5020 | mkdir .libs 2>/dev/null | |
5021 | if test -d .libs; then | |
5022 | lt_cv_objdir=.libs | |
5023 | else | |
5024 | # MS-DOS does not allow filenames that begin with a dot. | |
5025 | lt_cv_objdir=_libs | |
5026 | fi | |
5027 | rmdir .libs 2>/dev/null | |
5028 | fi | |
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5030 | $as_echo "$lt_cv_objdir" >&6; } | |
5031 | objdir=$lt_cv_objdir | |
5032 | ||
5033 | ||
5034 | ||
5035 | ||
5036 | ||
5037 | cat >>confdefs.h <<_ACEOF | |
5038 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5039 | _ACEOF | |
5040 | ||
5041 | ||
5042 | ||
e8a5fa9c | 5043 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5044 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5045 | gmpinc= |
4b900473 | 5046 | have_gmp=no |
e8a5fa9c RW |
5047 | |
5048 | # Specify a location for mpc | |
5049 | # check for this first so it ends up on the link line before mpfr. | |
5050 | ||
81ecdfbb RW |
5051 | # Check whether --with-mpc was given. |
5052 | if test "${with_mpc+set}" = set; then : | |
5053 | withval=$with_mpc; | |
5054 | fi | |
e8a5fa9c | 5055 | |
e8a5fa9c | 5056 | |
e552509b | 5057 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5058 | if test "${with_mpc_include+set}" = set; then : |
5059 | withval=$with_mpc_include; | |
5060 | fi | |
e8a5fa9c | 5061 | |
e8a5fa9c | 5062 | |
e552509b | 5063 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5064 | if test "${with_mpc_lib+set}" = set; then : |
5065 | withval=$with_mpc_lib; | |
5066 | fi | |
e8a5fa9c | 5067 | |
e8a5fa9c RW |
5068 | |
5069 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5070 | gmplibs="-L$with_mpc/lib $gmplibs" |
5071 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5072 | fi |
5073 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5074 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5075 | fi |
5076 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5077 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5078 | fi |
5079 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5080 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5081 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5082 | # Do not test the mpc version. Assume that it is sufficient, since |
5083 | # it is in the source tree, and the library has not been built yet | |
5084 | # but it would be included on the link line in the version check below | |
5085 | # hence making the test fail. | |
d9b76ff9 | 5086 | have_gmp=yes |
e8a5fa9c | 5087 | fi |
4b900473 | 5088 | |
11b04d1f DD |
5089 | # Specify a location for mpfr |
5090 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5091 | |
81ecdfbb RW |
5092 | # Check whether --with-mpfr-dir was given. |
5093 | if test "${with_mpfr_dir+set}" = set; then : | |
5094 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5095 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5096 | fi | |
5097 | ||
11b04d1f DD |
5098 | |
5099 | ||
81ecdfbb RW |
5100 | # Check whether --with-mpfr was given. |
5101 | if test "${with_mpfr+set}" = set; then : | |
5102 | withval=$with_mpfr; | |
5103 | fi | |
c6b750e1 | 5104 | |
11b04d1f | 5105 | |
e552509b | 5106 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5107 | if test "${with_mpfr_include+set}" = set; then : |
5108 | withval=$with_mpfr_include; | |
5109 | fi | |
c6b750e1 | 5110 | |
8a0d8a5c | 5111 | |
e552509b | 5112 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5113 | if test "${with_mpfr_lib+set}" = set; then : |
5114 | withval=$with_mpfr_lib; | |
5115 | fi | |
8a0d8a5c | 5116 | |
11b04d1f DD |
5117 | |
5118 | if test "x$with_mpfr" != x; then | |
5119 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5120 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5121 | fi |
8a0d8a5c | 5122 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5123 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5124 | fi |
5125 | if test "x$with_mpfr_lib" != x; then | |
5126 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5127 | fi | |
4b900473 | 5128 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5f2ee2e | 5129 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5130 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
d5f2ee2e | 5131 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
4b900473 PB |
5132 | # Do not test the mpfr version. Assume that it is sufficient, since |
5133 | # it is in the source tree, and the library has not been built yet | |
5134 | # but it would be included on the link line in the version check below | |
5135 | # hence making the test fail. | |
5136 | have_gmp=yes | |
5137 | fi | |
11b04d1f | 5138 | |
4b1cb4fe | 5139 | # Specify a location for gmp |
c6b750e1 | 5140 | |
81ecdfbb RW |
5141 | # Check whether --with-gmp-dir was given. |
5142 | if test "${with_gmp_dir+set}" = set; then : | |
5143 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5144 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5145 | fi | |
5146 | ||
4b1cb4fe DD |
5147 | |
5148 | ||
81ecdfbb RW |
5149 | # Check whether --with-gmp was given. |
5150 | if test "${with_gmp+set}" = set; then : | |
5151 | withval=$with_gmp; | |
5152 | fi | |
c6b750e1 | 5153 | |
4b1cb4fe | 5154 | |
e552509b | 5155 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5156 | if test "${with_gmp_include+set}" = set; then : |
5157 | withval=$with_gmp_include; | |
5158 | fi | |
c6b750e1 | 5159 | |
8a0d8a5c | 5160 | |
e552509b | 5161 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5162 | if test "${with_gmp_lib+set}" = set; then : |
5163 | withval=$with_gmp_lib; | |
5164 | fi | |
8a0d8a5c PB |
5165 | |
5166 | ||
4b1cb4fe | 5167 | |
11b04d1f DD |
5168 | if test "x$with_gmp" != x; then |
5169 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5170 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5171 | fi |
8a0d8a5c PB |
5172 | if test "x$with_gmp_include" != x; then |
5173 | gmpinc="-I$with_gmp_include $gmpinc" | |
5174 | fi | |
5175 | if test "x$with_gmp_lib" != x; then | |
5176 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5177 | fi | |
4b900473 | 5178 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5179 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5180 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5181 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5182 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
4b900473 PB |
5183 | # Do not test the gmp version. Assume that it is sufficient, since |
5184 | # it is in the source tree, and the library has not been built yet | |
5185 | # but it would be included on the link line in the version check below | |
5186 | # hence making the test fail. | |
5187 | have_gmp=yes | |
5188 | fi | |
4b1cb4fe | 5189 | |
ceb92e78 | 5190 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5191 | have_gmp=yes |
5192 | saved_CFLAGS="$CFLAGS" | |
5193 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5194 | # Check for the recommended and required versions of GMP. |
5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5196 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5197 | |
5198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5199 | /* end confdefs.h. */ |
5200 | #include "gmp.h" | |
5201 | int | |
5202 | main () | |
5203 | { | |
5204 | ||
5205 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5206 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5207 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5208 | choke me | |
5209 | #endif | |
5210 | ||
5211 | ; | |
5212 | return 0; | |
5213 | } | |
5214 | _ACEOF | |
5215 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5217 | /* end confdefs.h. */ |
a6b5846e | 5218 | #include <gmp.h> |
c6b750e1 DJ |
5219 | int |
5220 | main () | |
5221 | { | |
4b1cb4fe | 5222 | |
a6b5846e KG |
5223 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5224 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5225 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5226 | choke me |
5227 | #endif | |
c6b750e1 DJ |
5228 | |
5229 | ; | |
5230 | return 0; | |
5231 | } | |
5232 | _ACEOF | |
81ecdfbb RW |
5233 | if ac_fn_c_try_compile "$LINENO"; then : |
5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5235 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5236 | else |
5237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5238 | $as_echo "buggy but acceptable" >&6; } | |
5239 | fi | |
5240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5241 | else |
81ecdfbb RW |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5243 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5244 | fi |
81ecdfbb | 5245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5246 | |
e8a5fa9c | 5247 | # If we have GMP, check the MPFR version. |
4b900473 | 5248 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5249 | # Check for the recommended and required versions of MPFR. |
5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5251 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5253 | /* end confdefs.h. */ |
9b134994 | 5254 | #include <gmp.h> |
4b900473 | 5255 | #include <mpfr.h> |
c6b750e1 DJ |
5256 | int |
5257 | main () | |
5258 | { | |
9b134994 | 5259 | |
ef699244 | 5260 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
4b900473 PB |
5261 | choke me |
5262 | #endif | |
c6b750e1 DJ |
5263 | |
5264 | ; | |
5265 | return 0; | |
5266 | } | |
5267 | _ACEOF | |
81ecdfbb RW |
5268 | if ac_fn_c_try_compile "$LINENO"; then : |
5269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5270 | /* end confdefs.h. */ |
4b1cb4fe | 5271 | #include <gmp.h> |
4b900473 | 5272 | #include <mpfr.h> |
c6b750e1 DJ |
5273 | int |
5274 | main () | |
5275 | { | |
9dbaa842 | 5276 | |
a6b5846e | 5277 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5278 | choke me |
5279 | #endif | |
e8a5fa9c RW |
5280 | |
5281 | ; | |
5282 | return 0; | |
5283 | } | |
5284 | _ACEOF | |
81ecdfbb RW |
5285 | if ac_fn_c_try_compile "$LINENO"; then : |
5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5287 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5288 | else |
81ecdfbb RW |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5290 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5291 | fi |
81ecdfbb | 5292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5293 | else |
81ecdfbb RW |
5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5295 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5296 | fi |
81ecdfbb | 5297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5298 | fi |
5299 | ||
5300 | # Check for the MPC header version. | |
d9b76ff9 | 5301 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5302 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5304 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5306 | /* end confdefs.h. */ |
5307 | #include <mpc.h> | |
5308 | int | |
5309 | main () | |
5310 | { | |
5311 | ||
a6b5846e KG |
5312 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5313 | choke me | |
5314 | #endif | |
5315 | ||
5316 | ; | |
5317 | return 0; | |
5318 | } | |
5319 | _ACEOF | |
5320 | if ac_fn_c_try_compile "$LINENO"; then : | |
5321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5322 | /* end confdefs.h. */ | |
5323 | #include <mpc.h> | |
5324 | int | |
5325 | main () | |
5326 | { | |
5327 | ||
5328 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5329 | choke me |
5330 | #endif | |
5331 | ||
5332 | ; | |
5333 | return 0; | |
5334 | } | |
5335 | _ACEOF | |
81ecdfbb RW |
5336 | if ac_fn_c_try_compile "$LINENO"; then : |
5337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5338 | $as_echo "yes" >&6; } |
a6b5846e KG |
5339 | else |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5341 | $as_echo "buggy but acceptable" >&6; } | |
5342 | fi | |
5343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5344 | else |
81ecdfbb | 5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5346 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5347 | fi |
81ecdfbb | 5348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5349 | fi |
5350 | ||
5351 | # Now check the MPFR library. | |
5352 | if test x"$have_gmp" = xyes; then | |
5353 | saved_LIBS="$LIBS" | |
5354 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5356 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5358 | /* end confdefs.h. */ |
d9b76ff9 | 5359 | #include <mpc.h> |
e8a5fa9c RW |
5360 | int |
5361 | main () | |
5362 | { | |
5363 | ||
5364 | mpfr_t n; | |
5365 | mpfr_t x; | |
d9b76ff9 | 5366 | mpc_t c; |
e8a5fa9c RW |
5367 | int t; |
5368 | mpfr_init (n); | |
5369 | mpfr_init (x); | |
5370 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5371 | mpfr_erfc (n, x, GMP_RNDN); | |
5372 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5373 | mpfr_clear(n); |
5374 | mpfr_clear(x); | |
5375 | mpc_init2 (c, 53); | |
5376 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5377 | mpc_cosh (c, c, MPC_RNDNN); | |
5378 | mpc_pow (c, c, c, MPC_RNDNN); | |
5379 | mpc_acosh (c, c, MPC_RNDNN); | |
5380 | mpc_clear (c); | |
c6b750e1 DJ |
5381 | |
5382 | ; | |
5383 | return 0; | |
5384 | } | |
5385 | _ACEOF | |
81ecdfbb RW |
5386 | if ac_fn_c_try_link "$LINENO"; then : |
5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5388 | $as_echo "yes" >&6; } | |
c6b750e1 | 5389 | else |
81ecdfbb RW |
5390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5391 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5392 | fi |
81ecdfbb RW |
5393 | rm -f core conftest.err conftest.$ac_objext \ |
5394 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5395 | LIBS="$saved_LIBS" |
5396 | fi | |
5397 | ||
4b900473 | 5398 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5399 | |
a6b5846e KG |
5400 | # The library versions listed in the error message below should match |
5401 | # the HARD-minimums enforced above. | |
4b900473 | 5402 | if test x$have_gmp != xyes; then |
a6b5846e | 5403 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
d9b76ff9 KG |
5404 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5405 | their locations. Source code for these libraries can be found at | |
5406 | their respective hosting sites as well as at | |
5407 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5408 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5409 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5410 | make sure that you have installed both the libraries and the header | |
5411 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5412 | fi |
9dbaa842 DD |
5413 | fi |
5414 | ||
e8a5fa9c RW |
5415 | # Flags needed for both GMP, MPFR and/or MPC. |
5416 | ||
5417 | ||
5418 | ||
4b1cb4fe DD |
5419 | |
5420 | ||
5421 | ||
29383458 JM |
5422 | # Allow host libstdc++ to be specified for static linking with PPL. |
5423 | ||
81ecdfbb RW |
5424 | # Check whether --with-host-libstdcxx was given. |
5425 | if test "${with_host_libstdcxx+set}" = set; then : | |
5426 | withval=$with_host_libstdcxx; | |
5427 | fi | |
29383458 | 5428 | |
29383458 JM |
5429 | |
5430 | case $with_host_libstdcxx in | |
5431 | no|yes) | |
81ecdfbb | 5432 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5433 | ;; |
5434 | esac | |
e28c595f | 5435 | |
e8a5fa9c RW |
5436 | # Linker flags to use for stage1 or when not boostrapping. |
5437 | ||
81ecdfbb RW |
5438 | # Check whether --with-stage1-ldflags was given. |
5439 | if test "${with_stage1_ldflags+set}" = set; then : | |
5440 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5441 | stage1_ldflags= |
5442 | else | |
5443 | stage1_ldflags=$withval | |
5444 | fi | |
5445 | else | |
5446 | stage1_ldflags= | |
81ecdfbb RW |
5447 | fi |
5448 | ||
e8a5fa9c RW |
5449 | |
5450 | ||
5451 | # Libraries to use for stage1 or when not bootstrapping. | |
5452 | ||
81ecdfbb RW |
5453 | # Check whether --with-stage1-libs was given. |
5454 | if test "${with_stage1_libs+set}" = set; then : | |
5455 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5456 | stage1_libs= |
5457 | else | |
5458 | stage1_libs=$withval | |
5459 | fi | |
5460 | else | |
5461 | stage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5462 | fi |
5463 | ||
e8a5fa9c RW |
5464 | |
5465 | ||
e8a5fa9c RW |
5466 | # Libraries to use for stage2 and later builds. This defaults to the |
5467 | # argument passed to --with-host-libstdcxx. | |
5468 | ||
81ecdfbb RW |
5469 | # Check whether --with-boot-libs was given. |
5470 | if test "${with_boot_libs+set}" = set; then : | |
5471 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5472 | poststage1_libs= |
5473 | else | |
5474 | poststage1_libs=$withval | |
5475 | fi | |
5476 | else | |
5477 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5478 | fi |
5479 | ||
e8a5fa9c RW |
5480 | |
5481 | ||
143754cd NC |
5482 | # Linker flags to use for stage2 and later builds. |
5483 | ||
5484 | # Check whether --with-boot-ldflags was given. | |
5485 | if test "${with_boot_ldflags+set}" = set; then : | |
5486 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5487 | poststage1_ldflags= | |
5488 | else | |
5489 | poststage1_ldflags=$withval | |
5490 | fi | |
5491 | else | |
5492 | poststage1_ldflags= | |
4f11b223 ILT |
5493 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5494 | # statically. But if the user explicitly specified the libraries to | |
5495 | # use, trust that they are doing what they want. | |
5496 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5497 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5498 | fi | |
5499 | fi | |
5500 | ||
5501 | ||
5502 | ||
e28c595f | 5503 | # Check for PPL |
b123da99 | 5504 | ppllibs= |
e28c595f | 5505 | pplinc= |
b123da99 | 5506 | pwllib= |
e28c595f JM |
5507 | |
5508 | ||
81ecdfbb RW |
5509 | # Check whether --with-ppl was given. |
5510 | if test "${with_ppl+set}" = set; then : | |
5511 | withval=$with_ppl; | |
81ecdfbb | 5512 | fi |
e28c595f | 5513 | |
e28c595f | 5514 | |
e552509b | 5515 | # Check whether --with-ppl-include was given. |
81ecdfbb RW |
5516 | if test "${with_ppl_include+set}" = set; then : |
5517 | withval=$with_ppl_include; | |
5518 | fi | |
5519 | ||
e28c595f | 5520 | |
e552509b | 5521 | # Check whether --with-ppl-lib was given. |
81ecdfbb RW |
5522 | if test "${with_ppl_lib+set}" = set; then : |
5523 | withval=$with_ppl_lib; | |
5524 | fi | |
e28c595f | 5525 | |
e28c595f | 5526 | |
b123da99 SP |
5527 | # Check whether --enable-ppl-version-check was given. |
5528 | if test "${enable_ppl_version_check+set}" = set; then : | |
5529 | enableval=$enable_ppl_version_check; | |
5530 | fi | |
5531 | ||
5532 | ||
29383458 | 5533 | case $with_ppl in |
b123da99 | 5534 | yes | no | "") |
1f53ca9a | 5535 | ;; |
29383458 | 5536 | *) |
b123da99 | 5537 | ppllibs="-L$with_ppl/lib" |
29383458 | 5538 | pplinc="-I$with_ppl/include $pplinc" |
b123da99 SP |
5539 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5540 | with_ppl=yes | |
5541 | else | |
5542 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5543 | fi | |
29383458 JM |
5544 | ;; |
5545 | esac | |
b123da99 SP |
5546 | |
5547 | if test x"$with_ppl_include" != x; then | |
e28c595f | 5548 | pplinc="-I$with_ppl_include $pplinc" |
b123da99 | 5549 | with_ppl=yes |
e28c595f | 5550 | fi |
b123da99 | 5551 | |
e28c595f | 5552 | if test "x$with_ppl_lib" != x; then |
b123da99 SP |
5553 | ppllibs="-L$with_ppl_lib" |
5554 | with_ppl=yes | |
e28c595f | 5555 | fi |
b123da99 SP |
5556 | |
5557 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5558 | if test x"$enable_watchdog" = xyes; then | |
5559 | pwllib="-lpwl" | |
5560 | fi | |
5561 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
1f53ca9a AO |
5562 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5563 | enable_ppl_version_check=no | |
b123da99 | 5564 | with_ppl=yes |
e28c595f JM |
5565 | fi |
5566 | ||
86ed8cf6 | 5567 | if test "x$with_ppl" != xno; then |
b123da99 | 5568 | if test "x$pwllib" = x; then |
0e8ad34f RO |
5569 | saved_LIBS="$LIBS" |
5570 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
b123da99 SP |
5571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5572 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5573 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5574 | $as_echo_n "(cached) " >&6 | |
5575 | else | |
5576 | ac_check_lib_save_LIBS=$LIBS | |
5577 | LIBS="-lpwl $LIBS" | |
5578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5579 | /* end confdefs.h. */ | |
5580 | ||
5581 | /* Override any GCC internal prototype to avoid an error. | |
5582 | Use char because int might match the return type of a GCC | |
5583 | builtin and then its argument prototype would still apply. */ | |
5584 | #ifdef __cplusplus | |
5585 | extern "C" | |
5586 | #endif | |
5587 | char PWL_handle_timeout (); | |
5588 | int | |
5589 | main () | |
5590 | { | |
5591 | return PWL_handle_timeout (); | |
5592 | ; | |
5593 | return 0; | |
5594 | } | |
5595 | _ACEOF | |
5596 | if ac_fn_c_try_link "$LINENO"; then : | |
5597 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
e28c595f | 5598 | else |
b123da99 SP |
5599 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5600 | fi | |
5601 | rm -f core conftest.err conftest.$ac_objext \ | |
5602 | conftest$ac_exeext conftest.$ac_ext | |
5603 | LIBS=$ac_check_lib_save_LIBS | |
5604 | fi | |
5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5606 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5607 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5608 | pwllib="-lpwl" | |
81ecdfbb RW |
5609 | fi |
5610 | ||
0e8ad34f | 5611 | LIBS="$saved_LIBS" |
b123da99 | 5612 | fi |
e28c595f | 5613 | |
b123da99 SP |
5614 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5615 | ||
5616 | if test "$enable_ppl_version_check" != no; then | |
5617 | saved_CFLAGS="$CFLAGS" | |
5618 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5620 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e28c595f JM |
5622 | /* end confdefs.h. */ |
5623 | #include "ppl_c.h" | |
5624 | int | |
5625 | main () | |
5626 | { | |
5627 | ||
b123da99 SP |
5628 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5629 | choke me | |
5630 | #endif | |
e28c595f JM |
5631 | |
5632 | ; | |
5633 | return 0; | |
5634 | } | |
5635 | _ACEOF | |
81ecdfbb RW |
5636 | if ac_fn_c_try_compile "$LINENO"; then : |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5638 | $as_echo "yes" >&6; } | |
e28c595f | 5639 | else |
81ecdfbb | 5640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1f53ca9a | 5641 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
e28c595f | 5642 | fi |
81ecdfbb | 5643 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b123da99 SP |
5644 | CFLAGS="$saved_CFLAGS" |
5645 | fi | |
e28c595f JM |
5646 | fi |
5647 | ||
5648 | # Flags needed for PPL | |
5649 | ||
5650 | ||
5651 | ||
5652 | ||
5653 | # Check for CLOOG | |
e552509b | 5654 | |
e28c595f JM |
5655 | |
5656 | ||
81ecdfbb RW |
5657 | # Check whether --with-cloog was given. |
5658 | if test "${with_cloog+set}" = set; then : | |
5659 | withval=$with_cloog; | |
81ecdfbb RW |
5660 | fi |
5661 | ||
e28c595f | 5662 | |
e552509b | 5663 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
5664 | if test "${with_cloog_include+set}" = set; then : |
5665 | withval=$with_cloog_include; | |
5666 | fi | |
e28c595f | 5667 | |
e28c595f | 5668 | |
e552509b | 5669 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
5670 | if test "${with_cloog_lib+set}" = set; then : |
5671 | withval=$with_cloog_lib; | |
5672 | fi | |
e28c595f | 5673 | |
e28c595f | 5674 | |
e552509b ILT |
5675 | # Check whether --enable-cloog-backend was given. |
5676 | if test "${enable_cloog_backend+set}" = set; then : | |
5677 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5678 | cloog_backend=isl | |
5679 | elif test "x${enableval}" = "xppl"; then | |
5680 | cloog_backend=ppl | |
5681 | else | |
5682 | cloog_backend=ppl-legacy | |
5683 | fi | |
5684 | else | |
5685 | cloog_backend=ppl-legacy | |
5686 | fi | |
5687 | ||
5688 | # Check whether --enable-cloog-version-check was given. | |
5689 | if test "${enable_cloog_version_check+set}" = set; then : | |
5690 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5691 | else | |
5692 | ENABLE_CLOOG_CHECK=yes | |
5693 | fi | |
5694 | ||
5695 | ||
5696 | # Initialize clooglibs and clooginc. | |
5697 | case $with_cloog in | |
5698 | no) | |
5699 | clooglibs= | |
5700 | clooginc= | |
5701 | ;; | |
5702 | "" | yes) | |
5703 | ;; | |
5704 | *) | |
5705 | clooglibs="-L$with_cloog/lib" | |
5706 | clooginc="-I$with_cloog/include" | |
5707 | ;; | |
5708 | esac | |
5709 | if test "x${with_cloog_include}" != x ; then | |
5710 | clooginc="-I$with_cloog_include" | |
5711 | fi | |
5712 | if test "x${with_cloog_lib}" != x; then | |
5713 | clooglibs="-L$with_cloog_lib" | |
5714 | fi | |
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
1f53ca9a | 5720 | if test "x$with_ppl" = "xno"; then |
8d8eef9a RW |
5721 | |
5722 | ||
5723 | ||
5724 | if test "x${with_cloog}" = xno; then | |
5725 | graphite_requested=no | |
5726 | elif test "x${with_cloog}" != x \ | |
5727 | || test "x${with_cloog_include}" != x \ | |
5728 | || test "x${with_cloog_lib}" != x ; then | |
5729 | graphite_requested=yes | |
5730 | else | |
5731 | graphite_requested=no | |
5732 | fi | |
5733 | ||
5734 | ||
5735 | if test "${graphite_requested}" = yes; then | |
5736 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 | |
5737 | fi | |
1f53ca9a AO |
5738 | with_cloog=no |
5739 | fi | |
e552509b ILT |
5740 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5741 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5742 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5743 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5744 | fi | |
5745 | if test "x$with_cloog" != "xno"; then | |
1f53ca9a | 5746 | |
e552509b ILT |
5747 | |
5748 | ||
5749 | _cloog_saved_CFLAGS=$CFLAGS | |
5750 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5751 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5752 | _cloog_saved_LIBS=$LIBS | |
5753 | ||
5754 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" | |
5755 | ||
5756 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" | |
5757 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" | |
5758 | LDFLAGS="${LDFLAGS} ${clooglibs}" | |
5759 | ||
5760 | case $cloog_backend in | |
5761 | "ppl-legacy") | |
5762 | CFLAGS="${CFLAGS} ${pplinc}" | |
5763 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5765 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
5766 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5767 | $as_echo_n "(cached) " >&6 | |
5768 | else | |
5769 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
5770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5771 | /* end confdefs.h. */ | |
5772 | #include "cloog/cloog.h" | |
5773 | int | |
5774 | main () | |
5775 | { | |
5776 | #ifndef CLOOG_PPL_BACKEND | |
5777 | choke me | |
5778 | #endif | |
5779 | ; | |
5780 | return 0; | |
5781 | } | |
5782 | _ACEOF | |
5783 | if ac_fn_c_try_link "$LINENO"; then : | |
5784 | gcc_cv_cloog_type="PPL Legacy" | |
5785 | else | |
5786 | gcc_cv_cloog_type=no | |
5787 | fi | |
5788 | rm -f core conftest.err conftest.$ac_objext \ | |
5789 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5790 | fi |
e552509b ILT |
5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5792 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5793 | ;; | |
5794 | "isl") | |
5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5796 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5797 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5798 | $as_echo_n "(cached) " >&6 | |
5799 | else | |
5800 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5802 | /* end confdefs.h. */ | |
5803 | #include "cloog/cloog.h" | |
5804 | int | |
5805 | main () | |
5806 | { | |
5807 | cloog_version () | |
5808 | ; | |
5809 | return 0; | |
5810 | } | |
5811 | _ACEOF | |
5812 | if ac_fn_c_try_link "$LINENO"; then : | |
5813 | gcc_cv_cloog_type="ISL" | |
5814 | else | |
5815 | gcc_cv_cloog_type=no | |
e28c595f | 5816 | fi |
e552509b ILT |
5817 | rm -f core conftest.err conftest.$ac_objext \ |
5818 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5819 | fi |
e552509b ILT |
5820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5821 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5822 | ;; | |
5823 | "ppl") | |
5824 | CFLAGS="${CFLAGS} ${pplinc}" | |
5825 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5827 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5828 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5829 | $as_echo_n "(cached) " >&6 | |
e28c595f | 5830 | else |
e552509b ILT |
5831 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" |
5832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5833 | /* end confdefs.h. */ | |
5834 | #include "cloog/cloog.h" | |
5835 | #include "cloog/ppl/cloog.h" | |
5836 | int | |
5837 | main () | |
5838 | { | |
5839 | cloog_version () | |
5840 | ; | |
5841 | return 0; | |
5842 | } | |
5843 | _ACEOF | |
5844 | if ac_fn_c_try_link "$LINENO"; then : | |
5845 | gcc_cv_cloog_type="PPL" | |
5846 | else | |
5847 | gcc_cv_cloog_type=no | |
81ecdfbb | 5848 | fi |
e552509b ILT |
5849 | rm -f core conftest.err conftest.$ac_objext \ |
5850 | conftest$ac_exeext conftest.$ac_ext | |
5851 | fi | |
5852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5853 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5854 | ;; | |
5855 | *) | |
5856 | gcc_cv_cloog_type="" | |
5857 | esac | |
5858 | ||
5859 | case $gcc_cv_cloog_type in | |
5860 | "PPL Legacy") | |
5861 | clooginc="${clooginc}" | |
5862 | clooglibs="${clooglibs} -lcloog" | |
5863 | cloog_org=no | |
5864 | ;; | |
5865 | "ISL") | |
5866 | clooginc="${clooginc} ${_cloogorginc}" | |
b123da99 | 5867 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
e552509b ILT |
5868 | cloog_org=yes |
5869 | ;; | |
5870 | "PPL") | |
5871 | clooginc="${clooginc} ${_cloogorginc}" | |
5872 | clooglibs="${clooglibs} -lcloog-ppl" | |
5873 | cloog_org=yes | |
5874 | ;; | |
5875 | *) | |
5876 | clooglibs= | |
5877 | clooginc= | |
5878 | cloog_org= | |
5879 | ;; | |
5880 | esac | |
81ecdfbb | 5881 | |
e552509b ILT |
5882 | LIBS=$_cloog_saved_LIBS |
5883 | CFLAGS=$_cloog_saved_CFLAGS | |
5884 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5885 | LDFLAGS=$_cloog_saved_LDFLAGS | |
e28c595f | 5886 | |
e552509b ILT |
5887 | |
5888 | ||
5889 | ||
5890 | ||
5891 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5892 | _cloog_saved_CFLAGS=$CFLAGS | |
5893 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5894 | ||
5895 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
5896 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" | |
5897 | ||
5898 | if test "${cloog_org}" = yes ; then | |
8d8eef9a RW |
5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
5900 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
e552509b ILT |
5901 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
5902 | $as_echo_n "(cached) " >&6 | |
5903 | else | |
5904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5905 | /* end confdefs.h. */ | |
5906 | #include "cloog/cloog.h" | |
5907 | int | |
5908 | main () | |
5909 | { | |
5910 | #if CLOOG_VERSION_MAJOR != 0 \ | |
8d8eef9a RW |
5911 | || CLOOG_VERSION_MINOR != 16 \ |
5912 | || CLOOG_VERSION_REVISION < 1 | |
e552509b ILT |
5913 | choke me |
5914 | #endif | |
5915 | ; | |
5916 | return 0; | |
5917 | } | |
5918 | _ACEOF | |
5919 | if ac_fn_c_try_compile "$LINENO"; then : | |
5920 | gcc_cv_cloog_ct_0_14_0=yes | |
5921 | else | |
5922 | gcc_cv_cloog_ct_0_14_0=no | |
5923 | fi | |
5924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5925 | fi | |
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
5927 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
5928 | elif test "${cloog_org}" = no ; then | |
5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
143754cd | 5930 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
e552509b ILT |
5931 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
5932 | $as_echo_n "(cached) " >&6 | |
5933 | else | |
81ecdfbb | 5934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e28c595f JM |
5935 | /* end confdefs.h. */ |
5936 | #include "cloog/cloog.h" | |
5937 | int | |
5938 | main () | |
5939 | { | |
e552509b ILT |
5940 | #if CLOOG_VERSION_MAJOR != 0 \ |
5941 | || CLOOG_VERSION_MINOR != 15 \ | |
5942 | || CLOOG_VERSION_REVISION < 5 | |
5943 | choke me | |
5944 | #endif | |
e28c595f JM |
5945 | ; |
5946 | return 0; | |
5947 | } | |
5948 | _ACEOF | |
a009f2e7 RW |
5949 | if ac_fn_c_try_compile "$LINENO"; then : |
5950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5951 | /* end confdefs.h. */ | |
5952 | #include "cloog/cloog.h" | |
5953 | int | |
5954 | main () | |
5955 | { | |
e552509b ILT |
5956 | #if CLOOG_VERSION_MAJOR != 0 \ |
5957 | || CLOOG_VERSION_MINOR != 15 \ | |
5958 | || CLOOG_VERSION_REVISION < 9 | |
5959 | choke me | |
5960 | #endif | |
a009f2e7 RW |
5961 | ; |
5962 | return 0; | |
5963 | } | |
5964 | _ACEOF | |
81ecdfbb | 5965 | if ac_fn_c_try_compile "$LINENO"; then : |
e552509b | 5966 | gcc_cv_cloog_ct_0_15_5=yes |
a009f2e7 | 5967 | else |
e552509b | 5968 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
a009f2e7 RW |
5969 | fi |
5970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e28c595f | 5971 | else |
e552509b | 5972 | gcc_cv_cloog_ct_0_15_5=no |
e28c595f | 5973 | fi |
81ecdfbb | 5974 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e28c595f | 5975 | fi |
e552509b ILT |
5976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
5977 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
5978 | fi | |
5979 | ||
5980 | CFLAGS=$_cloog_saved_CFLAGS | |
5981 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5982 | fi | |
5983 | ||
5984 | ||
5985 | ||
e28c595f | 5986 | |
e28c595f JM |
5987 | |
5988 | ||
5989 | ||
8d8eef9a RW |
5990 | if test "x${with_cloog}" = xno; then |
5991 | graphite_requested=no | |
5992 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
5993 | || test "x${with_cloog_include}" != x \ |
5994 | || test "x${with_cloog_lib}" != x ; then | |
5995 | graphite_requested=yes | |
5996 | else | |
5997 | graphite_requested=no | |
5998 | fi | |
5999 | ||
6000 | ||
6001 | ||
6002 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
6003 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
6004 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
6005 | clooglibs= | |
6006 | clooginc= | |
6007 | fi | |
6008 | ||
6009 | if test "${graphite_requested}" = yes \ | |
6010 | && test "x${clooglibs}" = x \ | |
6011 | && test "x${clooginc}" = x ; then | |
6012 | ||
8d8eef9a | 6013 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6014 | fi |
6015 | ||
6016 | ||
6017 | fi | |
6018 | ||
700d40ca ILT |
6019 | # Check for LTO support. |
6020 | # Check whether --enable-lto was given. | |
6021 | if test "${enable_lto+set}" = set; then : | |
6022 | enableval=$enable_lto; enable_lto=$enableval | |
6023 | else | |
6024 | enable_lto=yes; default_enable_lto=yes | |
6025 | fi | |
6026 | ||
6027 | ||
143754cd | 6028 | |
e49e5c92 DK |
6029 | |
6030 | ||
6031 | target_elf=no | |
6032 | case $target in | |
6033 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
6034 | *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \ | |
a009f2e7 | 6035 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6036 | target_elf=no |
6037 | ;; | |
6038 | *) | |
6039 | target_elf=yes | |
6040 | ;; | |
6041 | esac | |
6042 | ||
6043 | if test $target_elf = yes; then : | |
74cea91b DK |
6044 | # ELF platforms build the lto-plugin always. |
6045 | build_lto_plugin=yes | |
e49e5c92 | 6046 | |
e49e5c92 DK |
6047 | else |
6048 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6049 | case $target in |
899b04ef | 6050 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6051 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6052 | *) enable_lto=no ;; |
6053 | esac | |
e49e5c92 | 6054 | else |
29821356 RW |
6055 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6056 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6057 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6058 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6059 | # -flto it won't be needed until after installation anyway. | |
6060 | case $target in | |
a8eb3f0a | 6061 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6062 | *) if test x"$enable_lto" = x"yes"; then |
6063 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6064 | fi | |
6065 | ;; | |
6066 | esac | |
6067 | fi | |
a8eb3f0a | 6068 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6069 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6070 | case $target in |
74cea91b | 6071 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6072 | *) ;; |
6073 | esac | |
74cea91b | 6074 | |
e49e5c92 DK |
6075 | fi |
6076 | ||
700d40ca | 6077 | |
e28c595f | 6078 | |
947f426e | 6079 | # By default, C is the only stage 1 language. |
9b134994 | 6080 | stage1_languages=,c, |
1d39f329 | 6081 | |
e8a5fa9c | 6082 | # Target libraries that we bootstrap. |
2aa2364a | 6083 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6084 | |
9e07f89d NN |
6085 | # Figure out what language subdirectories are present. |
6086 | # Look if the user specified --enable-languages="..."; if not, use | |
6087 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6088 | # go away some day. | |
6089 | # NB: embedded tabs in this IF block -- do not untabify | |
6090 | if test -d ${srcdir}/gcc; then | |
6091 | if test x"${enable_languages+set}" != xset; then | |
6092 | if test x"${LANGUAGES+set}" = xset; then | |
6093 | enable_languages="${LANGUAGES}" | |
6094 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6095 | else | |
6096 | enable_languages=all | |
6097 | fi | |
6098 | else | |
6099 | if test x"${enable_languages}" = x || | |
6100 | test x"${enable_languages}" = xyes; | |
6101 | then | |
6102 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6103 | exit 1 | |
6104 | fi | |
6105 | fi | |
6106 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6107 | ||
096f7d00 DE |
6108 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6109 | # and make the substitution. | |
6110 | case ,${enable_languages}, in | |
6111 | *,f95,*) | |
6112 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6113 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6114 | ;; | |
6115 | esac | |
6116 | ||
9e07f89d NN |
6117 | # First scan to see if an enabled language requires some other language. |
6118 | # We assume that a given config-lang.in will list all the language | |
6119 | # front ends it requires, even if some are required indirectly. | |
6120 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6121 | case ${lang_frag} in | |
6122 | ..) ;; | |
6123 | # The odd quoting in the next line works around | |
6124 | # an apparent bug in bash 1.12 on linux. | |
6125 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6126 | *) | |
e552509b ILT |
6127 | # From the config-lang.in, get $language, $lang_requires, and |
6128 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6129 | language= |
6130 | lang_requires= | |
e552509b | 6131 | lang_requires_boot_languages= |
9e07f89d | 6132 | . ${lang_frag} |
e552509b | 6133 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6134 | case ,${enable_languages}, in |
6135 | *,$other,*) ;; | |
6136 | *,all,*) ;; | |
6137 | *,$language,*) | |
6138 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6139 | enable_languages="${enable_languages},${other}" | |
6140 | ;; | |
6141 | esac | |
6142 | done | |
e552509b ILT |
6143 | for other in ${lang_requires_boot_languages} ; do |
6144 | if test "$other" != "c"; then | |
6145 | case ,${enable_stage1_languages}, in | |
6146 | *,$other,*) ;; | |
6147 | *,all,*) ;; | |
6148 | *) | |
6149 | case ,${enable_languages}, in | |
6150 | *,$language,*) | |
6151 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6152 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6153 | ;; | |
6154 | esac | |
6155 | ;; | |
6156 | esac | |
6157 | fi | |
6158 | done | |
9e07f89d NN |
6159 | ;; |
6160 | esac | |
6161 | done | |
6162 | ||
9b134994 | 6163 | new_enable_languages=,c, |
700d40ca ILT |
6164 | |
6165 | # If LTO is enabled, add the LTO front end. | |
6166 | extra_host_libiberty_configure_flags= | |
6167 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6168 | case ,${enable_languages}, in |
6169 | *,lto,*) ;; | |
6170 | *) enable_languages="${enable_languages},lto" ;; | |
6171 | esac | |
a8eb3f0a | 6172 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6173 | configdirs="$configdirs lto-plugin" |
6174 | extra_host_libiberty_configure_flags=--enable-shared | |
6175 | fi | |
6176 | fi | |
6177 | ||
6178 | ||
9e07f89d | 6179 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6180 | potential_languages=,c, |
9e07f89d | 6181 | |
9e1a94f4 ILT |
6182 | enabled_target_libs= |
6183 | disabled_target_libs= | |
6184 | ||
9e07f89d NN |
6185 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6186 | case ${lang_frag} in | |
6187 | ..) ;; | |
6188 | # The odd quoting in the next line works around | |
6189 | # an apparent bug in bash 1.12 on linux. | |
6190 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6191 | *) | |
c6b750e1 | 6192 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6193 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6194 | language= |
6195 | target_libs= | |
6196 | lang_dirs= | |
64ce424c | 6197 | subdir_requires= |
9b134994 PB |
6198 | boot_language=no |
6199 | build_by_default=yes | |
9e07f89d | 6200 | . ${lang_frag} |
9b134994 PB |
6201 | if test x${language} = x; then |
6202 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6203 | exit 1 | |
6204 | fi | |
6205 | ||
1f53ca9a AO |
6206 | if test "$language" = "c++" \ |
6207 | && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then | |
e8a5fa9c RW |
6208 | boot_language=yes |
6209 | fi | |
6210 | ||
9b134994 PB |
6211 | case ,${enable_languages}, in |
6212 | *,${language},*) | |
9e07f89d NN |
6213 | # Language was explicitly selected; include it. |
6214 | add_this_lang=yes | |
6215 | ;; | |
9b134994 PB |
6216 | *,all,*) |
6217 | # 'all' was selected, select it if it is a default language | |
6218 | add_this_lang=${build_by_default} | |
9e07f89d NN |
6219 | ;; |
6220 | *) | |
6221 | add_this_lang=no | |
6222 | ;; | |
6223 | esac | |
4b1cb4fe | 6224 | |
64ce424c | 6225 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6226 | for i in $subdir_requires; do |
3d3adb43 | 6227 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6228 | case ,${enable_languages}, in |
6229 | *,${language},*) | |
6230 | # Specifically requested language; tell them. | |
81ecdfbb | 6231 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6232 | ;; |
6233 | *) | |
6234 | # Silently disable. | |
9b134994 | 6235 | add_this_lang=unsupported |
64ce424c PB |
6236 | ;; |
6237 | esac | |
6238 | done | |
6239 | ||
9b134994 PB |
6240 | # Disable Ada if no preexisting GNAT is available. |
6241 | case ,${enable_languages},:${language}:${have_gnat} in | |
6242 | *,${language},*:ada:no) | |
6243 | # Specifically requested language; tell them. | |
81ecdfbb | 6244 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6245 | ;; |
6246 | *:ada:no) | |
6247 | # Silently disable. | |
6248 | add_this_lang=unsupported | |
6249 | ;; | |
6250 | esac | |
6251 | ||
59f7ec45 HPN |
6252 | # Disable a language that is unsupported by the target. |
6253 | case " $unsupported_languages " in | |
6254 | *" $language "*) | |
9b134994 | 6255 | add_this_lang=unsupported |
59f7ec45 HPN |
6256 | ;; |
6257 | esac | |
6258 | ||
4b1cb4fe | 6259 | case $add_this_lang in |
9b134994 | 6260 | unsupported) |
9e07f89d | 6261 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6262 | disabled_target_libs="$disabled_target_libs $target_libs" |
6263 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6264 | ;; |
9b134994 PB |
6265 | no) |
6266 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6267 | disabled_target_libs="$disabled_target_libs $target_libs" |
6268 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6269 | potential_languages="${potential_languages}${language}," |
6270 | ;; | |
6271 | yes) | |
6272 | new_enable_languages="${new_enable_languages}${language}," | |
6273 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6274 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6275 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6276 | case "${boot_language}:,$enable_stage1_languages," in |
6277 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6278 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6279 | case ",$stage1_languages," in |
6280 | *,$language,* | ,yes, | ,all,) ;; | |
6281 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6282 | esac | |
e8a5fa9c RW |
6283 | # We need to bootstrap any supporting libraries. |
6284 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6285 | ;; |
6286 | esac | |
6287 | ;; | |
9e07f89d NN |
6288 | esac |
6289 | ;; | |
6290 | esac | |
6291 | done | |
6292 | ||
9e1a94f4 ILT |
6293 | # Add target libraries which are only needed for disabled languages |
6294 | # to noconfigdirs. | |
6295 | if test -n "$disabled_target_libs"; then | |
6296 | for dir in $disabled_target_libs; do | |
6297 | case " $enabled_target_libs " in | |
6298 | *" ${dir} "*) ;; | |
6299 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6300 | esac | |
6301 | done | |
6302 | fi | |
6303 | ||
81ecdfbb RW |
6304 | # Check whether --enable-stage1-languages was given. |
6305 | if test "${enable_stage1_languages+set}" = set; then : | |
6306 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6307 | ,no,|,,) |
6308 | # Set it to something that will have no effect in the loop below | |
6309 | enable_stage1_languages=c ;; | |
6310 | ,yes,) | |
6311 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6312 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6313 | *,all,*) | |
6314 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6315 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6316 | esac | |
6317 | ||
6318 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6319 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6320 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6321 | case $potential_languages in | |
6322 | *,$i,*) | |
6323 | case $stage1_languages in | |
6324 | *,$i,*) ;; | |
6325 | *) stage1_languages="$stage1_languages$i," ;; | |
6326 | esac ;; | |
6327 | *) | |
6328 | case $missing_languages in | |
6329 | *,$i,*) ;; | |
6330 | *) missing_languages="$missing_languages$i," ;; | |
6331 | esac ;; | |
6332 | esac | |
6333 | done | |
81ecdfbb RW |
6334 | fi |
6335 | ||
9b134994 PB |
6336 | |
6337 | # Remove leading/trailing commas that were added for simplicity | |
6338 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6339 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6340 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6341 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6342 | ||
9e07f89d | 6343 | if test "x$missing_languages" != x; then |
81ecdfbb | 6344 | as_fn_error " |
27258dd4 | 6345 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6346 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6347 | fi |
9e07f89d NN |
6348 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6349 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6350 | enable_languages="$new_enable_languages" |
9e07f89d | 6351 | fi |
9b134994 | 6352 | |
c6b750e1 | 6353 | |
81ec575a | 6354 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6355 | fi |
6356 | ||
a6df5a19 PB |
6357 | # Handle --disable-<component> generically. |
6358 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6359 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6360 | varname=`echo $dirname | sed -e s/+/_/g` |
6361 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6362 | noconfigdirs="$noconfigdirs $dir" |
6363 | fi | |
6364 | done | |
6365 | ||
4f0ef2d8 | 6366 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6367 | # Check whether --enable-objc-gc was given. |
6368 | if test "${enable_objc_gc+set}" = set; then : | |
6369 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6370 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6371 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6372 | ;; |
6373 | esac | |
81ecdfbb RW |
6374 | fi |
6375 | ||
4f0ef2d8 CD |
6376 | |
6377 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6378 | case ,${enable_languages},:${enable_objc_gc} in |
6379 | *,objc,*:yes) | |
4f0ef2d8 CD |
6380 | # Keep target-boehm-gc if requested for Objective-C. |
6381 | ;; | |
4f0ef2d8 | 6382 | *) |
d42c4017 DA |
6383 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6384 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6385 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6386 | fi | |
4f0ef2d8 CD |
6387 | ;; |
6388 | esac | |
6389 | ||
caeba88f AL |
6390 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6391 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6392 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6393 | ||
6394 | notsupp="" | |
6395 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6396 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6397 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6398 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6399 | if test -r $srcdir/$dirname/configure ; then | |
6400 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6401 | true | |
6402 | else | |
6403 | notsupp="$notsupp $dir" | |
6404 | fi | |
6405 | fi | |
6406 | fi | |
caeba88f AL |
6407 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6408 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6409 | if test -r $srcdir/$dirname/configure ; then | |
6410 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6411 | true | |
6412 | else | |
6413 | notsupp="$notsupp $dir" | |
6414 | fi | |
6415 | fi | |
6416 | fi | |
9e07f89d NN |
6417 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6418 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6419 | if test -r $srcdir/$dirname/configure ; then | |
6420 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6421 | true | |
6422 | else | |
6423 | notsupp="$notsupp $dir" | |
6424 | fi | |
6425 | fi | |
6426 | fi | |
6427 | done | |
6428 | ||
6429 | # Sometimes the tools are distributed with libiberty but with no other | |
6430 | # libraries. In that case, we don't want to build target-libiberty. | |
f86e35b8 | 6431 | # Don't let libgcc imply libiberty either. |
9e07f89d | 6432 | if test -n "${target_configdirs}" ; then |
f86e35b8 | 6433 | libgcc= |
9e07f89d NN |
6434 | others= |
6435 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
f86e35b8 NC |
6436 | if test "$i" = "libgcc"; then |
6437 | libgcc=target-libgcc | |
6438 | elif test "$i" != "libiberty" ; then | |
9e07f89d NN |
6439 | if test -r $srcdir/$i/configure ; then |
6440 | others=yes; | |
6441 | break; | |
6442 | fi | |
6443 | fi | |
6444 | done | |
6445 | if test -z "${others}" ; then | |
f86e35b8 | 6446 | target_configdirs=$libgcc |
9e07f89d NN |
6447 | fi |
6448 | fi | |
6449 | ||
6450 | # Quietly strip out all directories which aren't configurable in this tree. | |
6451 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6452 | # is now the case. | |
6a9cf61e PB |
6453 | build_configdirs_all="$build_configdirs" |
6454 | build_configdirs= | |
6455 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6456 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6457 | if test -f ${srcdir}/$j/configure ; then |
6458 | build_configdirs="${build_configdirs} $i" | |
6459 | fi | |
6460 | done | |
6461 | ||
9e07f89d NN |
6462 | configdirs_all="$configdirs" |
6463 | configdirs= | |
6464 | for i in ${configdirs_all} ; do | |
6465 | if test -f ${srcdir}/$i/configure ; then | |
6466 | configdirs="${configdirs} $i" | |
6467 | fi | |
6468 | done | |
6a9cf61e | 6469 | |
9e07f89d NN |
6470 | target_configdirs_all="$target_configdirs" |
6471 | target_configdirs= | |
6472 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6473 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6474 | if test -f ${srcdir}/$j/configure ; then |
6475 | target_configdirs="${target_configdirs} $i" | |
6476 | fi | |
6477 | done | |
6478 | ||
6479 | # Produce a warning message for the subdirs we can't configure. | |
6480 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6481 | # FSF releases, it's important to let people know when their machine isn't | |
6482 | # supported by the one or two programs in a package. | |
6483 | ||
6484 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6485 | # If $appdirs is non-empty, at least one of those directories must still | |
6486 | # be configured, or we error out. (E.g., if the gas release supports a | |
6487 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6488 | # pretend that all is well.) | |
6489 | if test -n "$appdirs" ; then | |
6490 | for dir in $appdirs ; do | |
6491 | if test -r $dir/Makefile.in ; then | |
6492 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6493 | appdirs="" | |
6494 | break | |
6495 | fi | |
6a9cf61e | 6496 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6497 | appdirs="" |
6498 | break | |
6499 | fi | |
6500 | fi | |
6501 | done | |
6502 | if test -n "$appdirs" ; then | |
6503 | echo "*** This configuration is not supported by this package." 1>&2 | |
6504 | exit 1 | |
6505 | fi | |
6506 | fi | |
6507 | # Okay, some application will build, or we don't care to check. Still | |
6508 | # notify of subdirs not getting built. | |
6509 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6510 | echo " ${notsupp}" 1>&2 | |
6511 | echo " (Any other directories should still work fine.)" 1>&2 | |
6512 | fi | |
6513 | ||
6514 | case "$host" in | |
6515 | *msdosdjgpp*) | |
6516 | enable_gdbtk=no ;; | |
6517 | esac | |
6518 | ||
18f6b6ee PB |
6519 | # To find our prefix, in gcc_cv_tool_prefix. |
6520 | ||
6521 | # The user is always right. | |
6522 | if test "${PATH_SEPARATOR+set}" != set; then | |
6523 | echo "#! /bin/sh" >conf$$.sh | |
6524 | echo "exit 0" >>conf$$.sh | |
6525 | chmod +x conf$$.sh | |
6526 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6527 | PATH_SEPARATOR=';' | |
6528 | else | |
6529 | PATH_SEPARATOR=: | |
6530 | fi | |
6531 | rm -f conf$$.sh | |
6532 | fi | |
6533 | ||
6534 | ||
6535 | ||
6536 | if test "x$exec_prefix" = xNONE; then | |
6537 | if test "x$prefix" = xNONE; then | |
6538 | gcc_cv_tool_prefix=$ac_default_prefix | |
6539 | else | |
6540 | gcc_cv_tool_prefix=$prefix | |
6541 | fi | |
6542 | else | |
6543 | gcc_cv_tool_prefix=$exec_prefix | |
6544 | fi | |
6545 | ||
6546 | # If there is no compiler in the tree, use the PATH only. In any | |
6547 | # case, if there is no compiler in the tree nobody should use | |
6548 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6549 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6550 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6551 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6552 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6553 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6554 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6555 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6556 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6557 | else | |
6558 | gcc_cv_tool_dirs= | |
6559 | fi | |
6560 | ||
6561 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6562 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6563 | fi | |
6564 | ||
6565 | ||
6566 | ||
9e07f89d NN |
6567 | copy_dirs= |
6568 | ||
c6b750e1 | 6569 | |
81ecdfbb RW |
6570 | # Check whether --with-build-sysroot was given. |
6571 | if test "${with_build_sysroot+set}" = set; then : | |
6572 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6573 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6574 | fi | |
6575 | else | |
6576 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6577 | fi |
a19b6204 MM |
6578 | |
6579 | ||
8a6ee3ab | 6580 | |
81ecdfbb RW |
6581 | |
6582 | # Check whether --with-debug-prefix-map was given. | |
6583 | if test "${with_debug_prefix_map+set}" = set; then : | |
6584 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6585 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6586 | for debug_map in $withval; do | |
6587 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6588 | done | |
6589 | fi | |
6590 | else | |
6591 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6592 | fi |
6593 | ||
8a6ee3ab JM |
6594 | |
6595 | ||
7f6ef0c0 PB |
6596 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6597 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6598 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6599 | # We want to ensure that TARGET libraries (which we know are built with | |
6600 | # gcc) are built with "-O2 -g", so include those options when setting | |
6601 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6602 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6603 | CFLAGS_FOR_TARGET=$CFLAGS | |
6604 | case " $CFLAGS " in | |
6605 | *" -O2 "*) ;; | |
6606 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6607 | esac | |
6608 | case " $CFLAGS " in | |
6609 | *" -g "* | *" -g3 "*) ;; | |
6610 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6611 | esac | |
6612 | fi | |
6613 | ||
6614 | ||
6615 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6616 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6617 | case " $CXXFLAGS " in | |
6618 | *" -O2 "*) ;; | |
6619 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6620 | esac | |
6621 | case " $CXXFLAGS " in | |
6622 | *" -g "* | *" -g3 "*) ;; | |
6623 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6624 | esac | |
6625 | fi | |
6626 | ||
6627 | ||
9e07f89d NN |
6628 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6629 | # the named directory are copied to $(tooldir)/sys-include. | |
6630 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6631 | if test x${is_cross_compiler} = xno ; then | |
6632 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6633 | exit 1 | |
6634 | fi | |
6635 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6636 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6637 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6638 | fi |
6639 | fi | |
6640 | ||
6641 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6642 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6643 | # are permitted. | |
6644 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6645 | if test x${is_cross_compiler} = xno ; then | |
6646 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6647 | exit 1 | |
6648 | fi | |
6649 | if test x"${with_libs}" != xyes ; then | |
6650 | # Copy the libraries in reverse order, so that files in the first named | |
6651 | # library override files in subsequent libraries. | |
18f6b6ee | 6652 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6653 | for l in ${with_libs}; do |
c6b750e1 | 6654 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6655 | done |
6656 | fi | |
6657 | fi | |
6658 | ||
700d40ca | 6659 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6660 | # |
6661 | # This is done by determining whether or not the appropriate directory | |
6662 | # is available, and by checking whether or not specific configurations | |
6663 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6664 | # |
6665 | # The command line options always override the explicit settings in | |
2429c060 PB |
6666 | # configure.in, and the settings in configure.in override this magic. |
6667 | # | |
c6b750e1 | 6668 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6669 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6670 | # --without-gnu-ld options for the configure script. Similarly, if |
6671 | # the default is to use the included zlib and you don't want to do that, | |
6672 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6673 | |
6674 | if test x${use_gnu_as} = x && | |
6675 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6676 | with_gnu_as=yes | |
6677 | extra_host_args="$extra_host_args --with-gnu-as" | |
6678 | fi | |
6679 | ||
6680 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6681 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6682 | with_gnu_ld=yes |
6683 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6684 | fi | |
6685 | ||
700d40ca ILT |
6686 | if test x${use_included_zlib} = x && |
6687 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6688 | : | |
6689 | else | |
6690 | with_system_zlib=yes | |
6691 | extra_host_args="$extra_host_args --with-system-zlib" | |
6692 | fi | |
6693 | ||
2429c060 PB |
6694 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6695 | # can detect this case. | |
6696 | ||
6697 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6698 | with_newlib=yes | |
6699 | extra_host_args="$extra_host_args --with-newlib" | |
6700 | fi | |
6701 | ||
9e07f89d NN |
6702 | # Handle ${copy_dirs} |
6703 | set fnord ${copy_dirs} | |
6704 | shift | |
6705 | while test $# != 0 ; do | |
6706 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6707 | : | |
6708 | else | |
6709 | echo Copying $1 to $2 | |
6710 | ||
6711 | # Use the install script to create the directory and all required | |
6712 | # parent directories. | |
6713 | if test -d $2 ; then | |
6714 | : | |
6715 | else | |
6716 | echo >config.temp | |
6717 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6718 | fi | |
6719 | ||
6720 | # Copy the directory, assuming we have tar. | |
6721 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6722 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6723 | ||
6724 | # It is the responsibility of the user to correctly adjust all | |
6725 | # symlinks. If somebody can figure out how to handle them correctly | |
6726 | # here, feel free to add the code. | |
6727 | ||
6728 | echo $1 > $2/COPIED | |
6729 | fi | |
6730 | shift; shift | |
6731 | done | |
6732 | ||
2429c060 PB |
6733 | # Determine a target-dependent exec_prefix that the installed |
6734 | # gcc will search in. Keep this list sorted by triplet, with | |
6735 | # the *-*-osname triplets last. | |
6736 | md_exec_prefix= | |
6737 | case "${target}" in | |
521ec477 | 6738 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6739 | md_exec_prefix=/dev/env/DJDIR/bin |
6740 | ;; | |
2429c060 | 6741 | *-*-hpux* | \ |
2429c060 | 6742 | *-*-nto-qnx* | \ |
1f111696 | 6743 | *-*-solaris2*) |
2429c060 PB |
6744 | md_exec_prefix=/usr/ccs/bin |
6745 | ;; | |
6746 | esac | |
6747 | ||
a0da8069 NN |
6748 | extra_arflags_for_target= |
6749 | extra_nmflags_for_target= | |
6750 | extra_ranlibflags_for_target= | |
6751 | target_makefile_frag=/dev/null | |
6752 | case "${target}" in | |
77d7106f AM |
6753 | spu-*-*) |
6754 | target_makefile_frag="config/mt-spu" | |
6755 | ;; | |
429acdec RS |
6756 | mips*-sde-elf*) |
6757 | target_makefile_frag="config/mt-sde" | |
6758 | ;; | |
f3b1e08e RS |
6759 | mipsisa*-*-elfoabi*) |
6760 | target_makefile_frag="config/mt-mips-elfoabi" | |
6761 | ;; | |
e7c8859c RS |
6762 | mips*-*-*linux* | mips*-*-gnu*) |
6763 | target_makefile_frag="config/mt-mips-gnu" | |
6764 | ;; | |
29383458 | 6765 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6766 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6767 | ;; |
6768 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6769 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6770 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6771 | # harmless if we're using GNU nm or ar. | |
6772 | extra_arflags_for_target=" -X32_64" | |
6773 | extra_nmflags_for_target=" -B -X32_64" | |
6774 | ;; | |
92f4e989 JM |
6775 | *-*-darwin[3-9]*) |
6776 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
a0da8069 NN |
6777 | extra_ranlibflags_for_target=" -c" |
6778 | ;; | |
a0da8069 NN |
6779 | esac |
6780 | ||
6781 | alphaieee_frag=/dev/null | |
6782 | case $target in | |
6783 | alpha*-*-*) | |
6784 | # This just makes sure to use the -mieee option to build target libs. | |
6785 | # This should probably be set individually by each library. | |
6786 | alphaieee_frag="config/mt-alphaieee" | |
6787 | ;; | |
6788 | esac | |
6789 | ||
6790 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6791 | # the target libraries, similarly if it is not specified, use -Os | |
6792 | # on selected platforms. | |
6793 | ospace_frag=/dev/null | |
6794 | case "${enable_target_optspace}:${target}" in | |
6795 | yes:*) | |
6796 | ospace_frag="config/mt-ospace" | |
6797 | ;; | |
6798 | :d30v-*) | |
6799 | ospace_frag="config/mt-d30v" | |
6800 | ;; | |
6801 | :m32r-* | :d10v-* | :fr30-*) | |
6802 | ospace_frag="config/mt-ospace" | |
6803 | ;; | |
6804 | no:* | :*) | |
6805 | ;; | |
6806 | *) | |
6807 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6808 | ;; | |
6809 | esac | |
6810 | ||
a0da8069 NN |
6811 | # Default to using --with-stabs for certain targets. |
6812 | if test x${with_stabs} = x ; then | |
6813 | case "${target}" in | |
e31d1ea3 | 6814 | mips*-*-irix[56]*) |
a0da8069 NN |
6815 | ;; |
6816 | mips*-*-* | alpha*-*-osf*) | |
6817 | with_stabs=yes; | |
6818 | extra_host_args="${extra_host_args} --with-stabs" | |
6819 | ;; | |
6820 | esac | |
6821 | fi | |
6822 | ||
a0da8069 NN |
6823 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6824 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6825 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6826 | build_tooldir=${tooldir} |
6827 | ||
a0da8069 NN |
6828 | # Create a .gdbinit file which runs the one in srcdir |
6829 | # and tells GDB to look there for source files. | |
6830 | ||
6831 | if test -r ${srcdir}/.gdbinit ; then | |
6832 | case ${srcdir} in | |
6833 | .) ;; | |
6834 | *) cat > ./.gdbinit <<EOF | |
6835 | # ${NO_EDIT} | |
6836 | dir ${srcdir} | |
6837 | dir . | |
6838 | source ${srcdir}/.gdbinit | |
6839 | EOF | |
6840 | ;; | |
6841 | esac | |
6842 | fi | |
6843 | ||
a0da8069 NN |
6844 | # Make sure that the compiler is able to generate an executable. If it |
6845 | # can't, we are probably in trouble. We don't care whether we can run the | |
6846 | # executable--we might be using a cross compiler--we only care whether it | |
6847 | # can be created. At this point the main configure script has set CC. | |
6848 | we_are_ok=no | |
6849 | echo "int main () { return 0; }" > conftest.c | |
6850 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6851 | if test $? = 0 ; then | |
6852 | if test -s conftest || test -s conftest.exe ; then | |
6853 | we_are_ok=yes | |
6854 | fi | |
c6b750e1 | 6855 | fi |
a0da8069 NN |
6856 | case $we_are_ok in |
6857 | no) | |
6858 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6859 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6860 | rm -f conftest* | |
6861 | exit 1 | |
6862 | ;; | |
6863 | esac | |
6864 | rm -f conftest* | |
6865 | ||
3bbd2f8f | 6866 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6867 | case "${host}" in |
6868 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6869 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6870 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6871 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6872 | esac | |
6873 | ||
3bbd2f8f | 6874 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6875 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6876 | # built executables to PATH. | |
3bbd2f8f AL |
6877 | if test "$RPATH_ENVVAR" = PATH; then |
6878 | GCC_SHLIB_SUBDIR=/shlib | |
6879 | else | |
6880 | GCC_SHLIB_SUBDIR= | |
6881 | fi | |
6882 | ||
a0da8069 NN |
6883 | # Record target_configdirs and the configure arguments for target and |
6884 | # build configuration in Makefile. | |
6885 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 6886 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 6887 | |
2aa2364a JR |
6888 | # If we are building libgomp, bootstrap it. |
6889 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6890 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6891 | fi | |
6892 | ||
a0da8069 NN |
6893 | # Determine whether gdb needs tk/tcl or not. |
6894 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6895 | # and in that case we want gdb to be built without tk. Ugh! | |
6896 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6897 | # so we should be able to put the 'maybe's in unconditionally and | |
6898 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6899 | # 100% sure that that's safe though. | |
c180f501 | 6900 | |
675c6968 | 6901 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
6902 | case "$enable_gdbtk" in |
6903 | no) | |
6904 | GDB_TK="" ;; | |
c180f501 AC |
6905 | yes) |
6906 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 6907 | *) |
c180f501 AC |
6908 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6909 | # distro. Eventually someone will fix this and move Insight, nee | |
6910 | # gdbtk to a separate directory. | |
6911 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6912 | GDB_TK="${gdb_tk}" | |
6913 | else | |
6914 | GDB_TK="" | |
6915 | fi | |
6916 | ;; | |
a0da8069 | 6917 | esac |
907be67c DJ |
6918 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6919 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 6920 | |
6bd3dfaa | 6921 | # Strip out unwanted targets. |
dd12c3a8 NN |
6922 | |
6923 | # While at that, we remove Makefiles if we were started for recursive | |
6924 | # configuration, so that the top-level Makefile reconfigures them, | |
6925 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 6926 | |
06a51eac RW |
6927 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6928 | # but now we're fixing up the Makefile ourselves with the additional | |
6929 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6930 | # extrasub-{build,host,target} not because there is any reason to split | |
6931 | # the substitutions up that way, but only to remain below the limit of | |
6932 | # 99 commands in a script, for HP-UX sed. | |
6933 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 6934 | |
81ecdfbb RW |
6935 | # Check whether --enable-bootstrap was given. |
6936 | if test "${enable_bootstrap+set}" = set; then : | |
6937 | enableval=$enable_bootstrap; | |
319cab08 | 6938 | else |
9cb3fa6f | 6939 | enable_bootstrap=default |
81ecdfbb RW |
6940 | fi |
6941 | ||
319cab08 | 6942 | |
9cb3fa6f PB |
6943 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
6944 | case "$configdirs" in | |
6945 | *gcc*) have_compiler=yes ;; | |
6946 | *) have_compiler=no ;; | |
6947 | esac | |
6948 | ||
6949 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
6950 | *:*:*:no) ;; | |
6951 | ||
0aed8855 | 6952 | # Default behavior. Enable bootstrap if we have a compiler |
9cb3fa6f PB |
6953 | # and we are in a native configuration. |
6954 | yes:$build:$build:default) | |
0aed8855 | 6955 | enable_bootstrap=yes ;; |
9cb3fa6f PB |
6956 | |
6957 | *:*:*:default) | |
6958 | enable_bootstrap=no ;; | |
6959 | ||
6960 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
80911fe1 | 6961 | yes:$build:$build:yes) |
9cb3fa6f PB |
6962 | ;; |
6963 | ||
6964 | # Other configurations, but we have a compiler. Assume the user knows | |
6965 | # what he's doing. | |
80911fe1 | 6966 | yes:*:*:yes) |
81ecdfbb RW |
6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 |
6968 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
9cb3fa6f PB |
6969 | ;; |
6970 | ||
6971 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
80911fe1 | 6972 | no:*:*:yes) |
81ecdfbb | 6973 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
9cb3fa6f PB |
6974 | |
6975 | # Fail if wrong command line | |
6976 | *) | |
81ecdfbb | 6977 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 |
9cb3fa6f PB |
6978 | ;; |
6979 | esac | |
6980 | ||
4385ad3c RW |
6981 | case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in |
6982 | *,c++,*:yes:yes) ;; | |
6983 | *:yes:yes) | |
6984 | as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5 | |
6985 | ;; | |
6986 | esac | |
6987 | ||
16b1ad29 RW |
6988 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6989 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6990 | yes:yes:*\ gold\ *:*) | |
6991 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6992 | ;; | |
6993 | esac | |
6994 | ||
9cb3fa6f | 6995 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 6996 | case $enable_bootstrap in |
319cab08 | 6997 | yes) |
96655cc4 AO |
6998 | bootstrap_suffix=bootstrap |
6999 | BUILD_CONFIG=bootstrap-debug | |
7000 | ;; | |
319cab08 | 7001 | no) |
96655cc4 AO |
7002 | bootstrap_suffix=no-bootstrap |
7003 | BUILD_CONFIG= | |
7004 | ;; | |
319cab08 PB |
7005 | esac |
7006 | ||
96655cc4 AO |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7008 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7009 | ||
7010 | ||
7011 | # Check whether --with-build-config was given. | |
7012 | if test "${with_build_config+set}" = set; then : | |
7013 | withval=$with_build_config; case $with_build_config in | |
7014 | yes) with_build_config= ;; | |
7015 | no) with_build_config= BUILD_CONFIG= ;; | |
7016 | esac | |
7017 | fi | |
7018 | ||
7019 | ||
7020 | if test "x${with_build_config}" != x; then | |
7021 | BUILD_CONFIG=$with_build_config | |
7022 | else | |
7023 | case $BUILD_CONFIG in | |
7024 | bootstrap-debug) | |
7025 | if echo "int f (void) { return 0; }" > conftest.c && | |
7026 | ${CC} -c conftest.c && | |
7027 | mv conftest.o conftest.o.g0 && | |
7028 | ${CC} -c -g conftest.c && | |
7029 | mv conftest.o conftest.o.g && | |
a009f2e7 | 7030 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
7031 | : |
7032 | else | |
7033 | BUILD_CONFIG= | |
7034 | fi | |
7035 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7036 | ;; | |
7037 | esac | |
7038 | fi | |
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7040 | $as_echo "$BUILD_CONFIG" >&6; } | |
7041 | ||
7042 | ||
06a51eac | 7043 | extrasub_build= |
6a9cf61e | 7044 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7045 | if test -z "${no_recursion}" \ |
7046 | && test -f ${build_subdir}/${module}/Makefile; then | |
7047 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7048 | rm -f ${build_subdir}/${module}/Makefile | |
7049 | fi | |
06a51eac | 7050 | extrasub_build="$extrasub_build |
498d4a71 CF |
7051 | /^@if build-$module\$/d |
7052 | /^@endif build-$module\$/d | |
7053 | /^@if build-$module-$bootstrap_suffix\$/d | |
7054 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7055 | done | |
06a51eac | 7056 | extrasub_host= |
498d4a71 | 7057 | for module in ${configdirs} ; do |
80911fe1 | 7058 | if test -z "${no_recursion}"; then |
8cf39b1b | 7059 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7060 | if test -f ${file}; then |
7061 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7062 | rm -f ${file} | |
7063 | fi | |
7064 | done | |
498d4a71 | 7065 | fi |
06a51eac | 7066 | extrasub_host="$extrasub_host |
498d4a71 CF |
7067 | /^@if $module\$/d |
7068 | /^@endif $module\$/d | |
7069 | /^@if $module-$bootstrap_suffix\$/d | |
7070 | /^@endif $module-$bootstrap_suffix\$/d" | |
7071 | done | |
06a51eac | 7072 | extrasub_target= |
498d4a71 CF |
7073 | for module in ${target_configdirs} ; do |
7074 | if test -z "${no_recursion}" \ | |
7075 | && test -f ${target_subdir}/${module}/Makefile; then | |
7076 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7077 | rm -f ${target_subdir}/${module}/Makefile | |
7078 | fi | |
e8a5fa9c RW |
7079 | |
7080 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7081 | case $bootstrap_target_libs in | |
7082 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7083 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7084 | esac | |
7085 | ||
06a51eac | 7086 | extrasub_target="$extrasub_target |
498d4a71 CF |
7087 | /^@if target-$module\$/d |
7088 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7089 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7090 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7091 | done |
7092 | ||
06a51eac RW |
7093 | # Do the final fixup along with target modules. |
7094 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7095 | /^@if /,/^@endif /d" |
a0da8069 NN |
7096 | |
7097 | # Create the serialization dependencies. This uses a temporary file. | |
7098 | ||
81ecdfbb RW |
7099 | # Check whether --enable-serial-configure was given. |
7100 | if test "${enable_serial_configure+set}" = set; then : | |
7101 | enableval=$enable_serial_configure; | |
7102 | fi | |
e6bfb94a AO |
7103 | |
7104 | ||
1047cb91 DD |
7105 | case ${enable_serial_configure} in |
7106 | yes) | |
7107 | enable_serial_build_configure=yes | |
7108 | enable_serial_host_configure=yes | |
7109 | enable_serial_target_configure=yes | |
7110 | ;; | |
7111 | esac | |
7112 | ||
a0da8069 NN |
7113 | # These force 'configure's to be done one at a time, to avoid problems |
7114 | # with contention over a shared config.cache. | |
7115 | rm -f serdep.tmp | |
e6bfb94a | 7116 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7117 | olditem= |
1047cb91 | 7118 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7119 | for item in ${build_configdirs} ; do |
7120 | case ${olditem} in | |
7121 | "") ;; | |
e6bfb94a | 7122 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7123 | esac |
7124 | olditem=${item} | |
7125 | done | |
7126 | olditem= | |
1047cb91 | 7127 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7128 | for item in ${configdirs} ; do |
7129 | case ${olditem} in | |
7130 | "") ;; | |
e6bfb94a | 7131 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7132 | esac |
7133 | olditem=${item} | |
7134 | done | |
7135 | olditem= | |
1047cb91 | 7136 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7137 | for item in ${target_configdirs} ; do |
7138 | case ${olditem} in | |
7139 | "") ;; | |
e6bfb94a | 7140 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7141 | esac |
7142 | olditem=${item} | |
7143 | done | |
7144 | serialization_dependencies=serdep.tmp | |
7145 | ||
7146 | ||
e6bfb94a | 7147 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7148 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7149 | # might not want to pass down to subconfigures. The exception being |
7150 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7151 | # files altogether, and which should be passed on to subconfigures. | |
7152 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7153 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7154 | baseargs= |
65b4571a | 7155 | tbaseargs= |
c6b750e1 DJ |
7156 | keep_next=no |
7157 | skip_next=no | |
7158 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7159 | for ac_arg |
7160 | do | |
c6b750e1 DJ |
7161 | if test X"$skip_next" = X"yes"; then |
7162 | skip_next=no | |
7163 | continue | |
7164 | fi | |
7165 | if test X"$keep_next" = X"yes"; then | |
7166 | case $ac_arg in | |
7167 | *\'*) | |
7168 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7169 | esac | |
7170 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7171 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7172 | keep_next=no |
7173 | continue | |
7174 | fi | |
7175 | ||
7176 | # Handle separated arguments. Based on the logic generated by | |
7177 | # autoconf 2.59. | |
7178 | case $ac_arg in | |
7179 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7180 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7181 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7182 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7183 | separate_arg=no | |
7184 | ;; | |
7185 | -*) | |
7186 | separate_arg=yes | |
7187 | ;; | |
7188 | *) | |
7189 | separate_arg=no | |
7190 | ;; | |
7191 | esac | |
7192 | ||
65b4571a AO |
7193 | skip_targ=no |
7194 | case $ac_arg in | |
7195 | ||
7196 | --with-* | --without-*) | |
7197 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7198 | ||
7199 | case $libopt in | |
7200 | *[-_]include) | |
7201 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7202 | ;; | |
7203 | *[-_]lib) | |
7204 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7205 | ;; | |
7206 | *) | |
7207 | lib=$libopt | |
7208 | ;; | |
7209 | esac | |
7210 | ||
7211 | ||
7212 | case $lib in | |
7213 | mpc | mpfr | gmp | ppl | cloog) | |
7214 | # If we're processing --with-$lib, --with-$lib-include or | |
7215 | # --with-$lib-lib, for one of the libs above, and target is | |
7216 | # different from host, don't pass the current argument to any | |
7217 | # target library's configure. | |
7218 | if test x$is_cross_compiler = xyes; then | |
7219 | skip_targ=yes | |
7220 | fi | |
7221 | ;; | |
7222 | esac | |
7223 | ;; | |
7224 | esac | |
7225 | ||
c6b750e1 | 7226 | case "$ac_arg" in |
30167e0a NC |
7227 | --cache-file=/dev/null | \ |
7228 | -cache-file=/dev/null ) | |
7229 | # Handled here to avoid the test to skip args below. | |
7230 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7231 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7232 | # Assert: $separate_arg should always be no. |
7233 | keep_next=$separate_arg | |
7234 | ;; | |
c6b750e1 DJ |
7235 | --no*) |
7236 | continue | |
7237 | ;; | |
7238 | --c* | \ | |
7239 | --sr* | \ | |
7240 | --ho* | \ | |
7241 | --bu* | \ | |
7242 | --t* | \ | |
7243 | --program-* | \ | |
7244 | -cache_file* | \ | |
7245 | -srcdir* | \ | |
7246 | -host* | \ | |
7247 | -build* | \ | |
7248 | -target* | \ | |
7249 | -program-prefix* | \ | |
7250 | -program-suffix* | \ | |
7251 | -program-transform-name* ) | |
7252 | skip_next=$separate_arg | |
7253 | continue | |
7254 | ;; | |
7255 | -*) | |
7256 | # An option. Add it. | |
7257 | case $ac_arg in | |
7258 | *\'*) | |
7259 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7260 | esac | |
7261 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7262 | if test X"$skip_targ" = Xno; then |
7263 | tbaseargs="$tbaseargs '$ac_arg'" | |
7264 | fi | |
c6b750e1 DJ |
7265 | keep_next=$separate_arg |
7266 | ;; | |
7267 | *) | |
7268 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7269 | # pass it down; let the Makefile handle this. | |
7270 | continue | |
7271 | ;; | |
7272 | esac | |
7273 | done | |
7274 | # Remove the initial space we just introduced and, as these will be | |
7275 | # expanded by make, quote '$'. | |
7276 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7277 | |
f27d4f92 DJ |
7278 | # Add in --program-transform-name, after --program-prefix and |
7279 | # --program-suffix have been applied to it. Autoconf has already | |
7280 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7281 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7282 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7283 | # Also, because we want to override the logic in subdir configure scripts to |
7284 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7285 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7286 | ${program_transform_name} | |
7287 | EOF_SED | |
7288 | gcc_transform_name=`cat conftestsed.out` | |
7289 | rm -f conftestsed.out | |
7290 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7291 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7292 | if test "$silent" = yes; then |
7293 | baseargs="$baseargs --silent" | |
65b4571a | 7294 | tbaseargs="$tbaseargs --silent" |
2444379b | 7295 | fi |
34a0f3cf | 7296 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7297 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7298 | |
4074d5f2 RW |
7299 | # Record and document user additions to sub configure arguments. |
7300 | ||
7301 | ||
7302 | ||
7303 | ||
a0da8069 NN |
7304 | # For the build-side libraries, we just need to pretend we're native, |
7305 | # and not use the same cache file. Multilibs are neither needed nor | |
7306 | # desired. | |
4074d5f2 | 7307 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7308 | |
7309 | # For host modules, accept cache file option, or specification as blank. | |
7310 | case "${cache_file}" in | |
7311 | "") # empty | |
7312 | cache_file_option="" ;; | |
7313 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7314 | cache_file_option="--cache-file=${cache_file}" ;; | |
7315 | *) # relative path | |
7316 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7317 | esac | |
7318 | ||
82252c06 NN |
7319 | # Host dirs don't like to share a cache file either, horribly enough. |
7320 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7321 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7322 | |
65b4571a | 7323 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7324 | |
7325 | # Passing a --with-cross-host argument lets the target libraries know | |
7326 | # whether they are being built with a cross-compiler or being built | |
7327 | # native. However, it would be better to use other mechanisms to make the | |
7328 | # sorts of decisions they want to make on this basis. Please consider | |
7329 | # this option to be deprecated. FIXME. | |
7330 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7331 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7332 | fi |
7333 | ||
938d2b74 RW |
7334 | # Default to --enable-multilib. |
7335 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7336 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7337 | fi |
a0da8069 NN |
7338 | |
7339 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7340 | # changed from the earlier setting of with_newlib. | |
7341 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7342 | target_configargs="--with-newlib ${target_configargs}" | |
7343 | fi | |
7344 | ||
95036d20 NN |
7345 | # Different target subdirs use different values of certain variables |
7346 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7347 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7348 | # it doesn't automatically accept command-line overrides of them. | |
7349 | # This means it's not safe for target subdirs to share a cache file, | |
7350 | # which is disgusting, but there you have it. Hopefully this can be | |
7351 | # fixed in future. It's still worthwhile to use a cache file for each | |
7352 | # directory. I think. | |
7353 | ||
ae380b45 MS |
7354 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7355 | # We need to pass --target, as newer autoconf's requires consistency | |
7356 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7357 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7358 | |
a0da8069 NN |
7359 | FLAGS_FOR_TARGET= |
7360 | case " $target_configdirs " in | |
7361 | *" newlib "*) | |
7362 | case " $target_configargs " in | |
7363 | *" --with-newlib "*) | |
7364 | case "$target" in | |
1f53ca9a AO |
7365 | *-cygwin*) |
7366 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' | |
7367 | ;; | |
a0da8069 NN |
7368 | esac |
7369 | ||
7370 | # If we're not building GCC, don't discard standard headers. | |
7371 | if test -d ${srcdir}/gcc; then | |
7372 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7373 | ||
7374 | if test "${build}" != "${host}"; then | |
7375 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7376 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7377 | # to it. This is right: we don't want to search that directory | |
7378 | # for binaries, but we want the header files in there, so add | |
7379 | # them explicitly. | |
e552509b | 7380 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7381 | |
7382 | # Someone might think of using the pre-installed headers on | |
7383 | # Canadian crosses, in case the installed compiler is not fully | |
7384 | # compatible with the compiler being built. In this case, it | |
7385 | # would be better to flag an error than risking having | |
7386 | # incompatible object files being constructed. We can't | |
7387 | # guarantee that an error will be flagged, but let's hope the | |
7388 | # compiler will do it, when presented with incompatible header | |
7389 | # files. | |
7390 | fi | |
7391 | fi | |
7392 | ||
7393 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7394 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7395 | # Here host == target, so we don't need to build gcc, |
7396 | # so we don't want to discard standard headers. | |
7397 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7398 | ;; | |
7399 | *) | |
7400 | # If we're building newlib, use its generic headers last, but search | |
7401 | # for any libc-related directories first (so make it the last -B | |
7402 | # switch). | |
7403 | 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 |
7404 | |
7405 | # If we're building libgloss, find the startup file, simulator library | |
7406 | # and linker script. | |
7407 | case " $target_configdirs " in | |
7408 | *" libgloss "*) | |
7409 | # Look for startup file, simulator library and maybe linker script. | |
7410 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7411 | # Look for libnosys.a in case the target needs it. | |
7412 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7413 | # Most targets have the linker script in the source directory. | |
7414 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7415 | ;; | |
7416 | esac | |
a0da8069 NN |
7417 | ;; |
7418 | esac | |
7419 | ;; | |
7420 | esac | |
7421 | ;; | |
7422 | esac | |
1f53ca9a | 7423 | |
45055374 | 7424 | case "$target" in |
1f53ca9a AO |
7425 | x86_64-*mingw* | *-w64-mingw*) |
7426 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7427 | # however, use a symlink named 'mingw' in ${prefix} . | |
7428 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7429 | ;; | |
7430 | *-mingw*) | |
7431 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7432 | 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' | |
7433 | ;; | |
45055374 | 7434 | esac |
a0da8069 | 7435 | |
5fbad20a DD |
7436 | # Allow the user to override the flags for |
7437 | # our build compiler if desired. | |
c66487f8 NC |
7438 | if test x"${build}" = x"${host}" ; then |
7439 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7440 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7441 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7442 | fi | |
5fbad20a | 7443 | |
a0da8069 NN |
7444 | # On Canadian crosses, we'll be searching the right directories for |
7445 | # the previously-installed cross compiler, so don't bother to add | |
7446 | # flags for directories within the install tree of the compiler | |
7447 | # being built; programs in there won't even run. | |
7448 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7449 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7450 | 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 |
7451 | fi |
7452 | ||
7453 | if test "x${use_gnu_ld}" = x && | |
7454 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7455 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7456 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7457 | fi |
7458 | ||
a481dbb7 DD |
7459 | # Search for other target-specific linker scripts and such. |
7460 | case "${target}" in | |
4e206d7e DB |
7461 | mep*) |
7462 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7463 | ;; | |
7464 | esac | |
7465 | ||
a0da8069 | 7466 | # Makefile fragments. |
3e707e94 PB |
7467 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7468 | do | |
7469 | eval fragval=\$$frag | |
7470 | if test $fragval != /dev/null; then | |
7471 | eval $frag=${srcdir}/$fragval | |
7472 | fi | |
7473 | done | |
a0da8069 NN |
7474 | |
7475 | ||
7476 | ||
7477 | ||
7478 | ||
7479 | # Miscellanea: directories, flags, etc. | |
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
3bbd2f8f | 7487 | |
6a9cf61e | 7488 | # Build module lists & subconfigure args. |
a0da8069 NN |
7489 | |
7490 | ||
7491 | ||
be01d343 PB |
7492 | # Host module lists & subconfigure args. |
7493 | ||
7494 | ||
7495 | ||
911e63d0 | 7496 | |
be01d343 PB |
7497 | # Target module lists & subconfigure args. |
7498 | ||
7499 | ||
7500 | ||
7501 | # Build tools. | |
7502 | ||
7503 | ||
7504 | ||
1576798e PB |
7505 | |
7506 | ||
7507 | ||
7508 | ||
7509 | ||
7510 | ||
7511 | ||
7512 | ||
7513 | ||
7514 | ||
7515 | ||
7516 | ||
7517 | ||
7518 | ||
be01d343 PB |
7519 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7520 | # on the build machine. These are used if the Makefile can't locate these | |
7521 | # programs in objdir. | |
7522 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7523 | ||
7524 | for ac_prog in 'bison -y' byacc yacc | |
7525 | do | |
c6b750e1 | 7526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7527 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7529 | $as_echo_n "checking for $ac_word... " >&6; } | |
7530 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7531 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7532 | else |
7533 | if test -n "$YACC"; then | |
7534 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7535 | else | |
c6b750e1 DJ |
7536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7537 | for as_dir in $PATH | |
7538 | do | |
7539 | IFS=$as_save_IFS | |
7540 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7541 | for ac_exec_ext in '' $ac_executable_extensions; do |
7542 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7543 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7545 | break 2 |
7546 | fi | |
7547 | done | |
81ecdfbb RW |
7548 | done |
7549 | IFS=$as_save_IFS | |
c6b750e1 | 7550 | |
be01d343 PB |
7551 | fi |
7552 | fi | |
c6b750e1 | 7553 | YACC=$ac_cv_prog_YACC |
be01d343 | 7554 | if test -n "$YACC"; then |
81ecdfbb RW |
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7556 | $as_echo "$YACC" >&6; } | |
be01d343 | 7557 | else |
81ecdfbb RW |
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7559 | $as_echo "no" >&6; } | |
be01d343 PB |
7560 | fi |
7561 | ||
81ecdfbb | 7562 | |
c6b750e1 | 7563 | test -n "$YACC" && break |
be01d343 PB |
7564 | done |
7565 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7566 | ||
7567 | case " $build_configdirs " in | |
7568 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7569 | esac |
7570 | ||
7571 | for ac_prog in bison | |
7572 | do | |
c6b750e1 | 7573 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7574 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7576 | $as_echo_n "checking for $ac_word... " >&6; } | |
7577 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7578 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7579 | else |
7580 | if test -n "$BISON"; then | |
7581 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7582 | else | |
c6b750e1 DJ |
7583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7584 | for as_dir in $PATH | |
7585 | do | |
7586 | IFS=$as_save_IFS | |
7587 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7588 | for ac_exec_ext in '' $ac_executable_extensions; do |
7589 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7590 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7591 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7592 | break 2 |
7593 | fi | |
7594 | done | |
81ecdfbb RW |
7595 | done |
7596 | IFS=$as_save_IFS | |
c6b750e1 | 7597 | |
be01d343 PB |
7598 | fi |
7599 | fi | |
c6b750e1 | 7600 | BISON=$ac_cv_prog_BISON |
be01d343 | 7601 | if test -n "$BISON"; then |
81ecdfbb RW |
7602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7603 | $as_echo "$BISON" >&6; } | |
be01d343 | 7604 | else |
81ecdfbb RW |
7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7606 | $as_echo "no" >&6; } | |
be01d343 PB |
7607 | fi |
7608 | ||
81ecdfbb | 7609 | |
c6b750e1 | 7610 | test -n "$BISON" && break |
be01d343 PB |
7611 | done |
7612 | test -n "$BISON" || BISON="$MISSING bison" | |
7613 | ||
7614 | case " $build_configdirs " in | |
7615 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7616 | esac | |
7617 | ||
7618 | for ac_prog in gm4 gnum4 m4 | |
7619 | do | |
c6b750e1 | 7620 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7621 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7623 | $as_echo_n "checking for $ac_word... " >&6; } | |
7624 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7625 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7626 | else |
7627 | if test -n "$M4"; then | |
7628 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7629 | else | |
c6b750e1 DJ |
7630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7631 | for as_dir in $PATH | |
7632 | do | |
7633 | IFS=$as_save_IFS | |
7634 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7635 | for ac_exec_ext in '' $ac_executable_extensions; do |
7636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7637 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7639 | break 2 |
7640 | fi | |
7641 | done | |
81ecdfbb RW |
7642 | done |
7643 | IFS=$as_save_IFS | |
c6b750e1 | 7644 | |
be01d343 PB |
7645 | fi |
7646 | fi | |
c6b750e1 | 7647 | M4=$ac_cv_prog_M4 |
be01d343 | 7648 | if test -n "$M4"; then |
81ecdfbb RW |
7649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7650 | $as_echo "$M4" >&6; } | |
be01d343 | 7651 | else |
81ecdfbb RW |
7652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7653 | $as_echo "no" >&6; } | |
be01d343 PB |
7654 | fi |
7655 | ||
81ecdfbb | 7656 | |
c6b750e1 | 7657 | test -n "$M4" && break |
be01d343 PB |
7658 | done |
7659 | test -n "$M4" || M4="$MISSING m4" | |
7660 | ||
7661 | case " $build_configdirs " in | |
7662 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7663 | esac | |
7664 | ||
7665 | for ac_prog in flex lex | |
7666 | do | |
c6b750e1 | 7667 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7668 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7670 | $as_echo_n "checking for $ac_word... " >&6; } | |
7671 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7672 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7673 | else |
7674 | if test -n "$LEX"; then | |
7675 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7676 | else | |
c6b750e1 DJ |
7677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7678 | for as_dir in $PATH | |
7679 | do | |
7680 | IFS=$as_save_IFS | |
7681 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7682 | for ac_exec_ext in '' $ac_executable_extensions; do |
7683 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7684 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7685 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7686 | break 2 |
7687 | fi | |
7688 | done | |
81ecdfbb RW |
7689 | done |
7690 | IFS=$as_save_IFS | |
c6b750e1 | 7691 | |
be01d343 PB |
7692 | fi |
7693 | fi | |
c6b750e1 | 7694 | LEX=$ac_cv_prog_LEX |
be01d343 | 7695 | if test -n "$LEX"; then |
81ecdfbb RW |
7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7697 | $as_echo "$LEX" >&6; } | |
be01d343 | 7698 | else |
81ecdfbb RW |
7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7700 | $as_echo "no" >&6; } | |
be01d343 PB |
7701 | fi |
7702 | ||
81ecdfbb | 7703 | |
c6b750e1 | 7704 | test -n "$LEX" && break |
be01d343 PB |
7705 | done |
7706 | test -n "$LEX" || LEX="$MISSING flex" | |
7707 | ||
7708 | case " $build_configdirs " in | |
7709 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7710 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7711 | esac | |
7712 | ||
7713 | for ac_prog in flex | |
7714 | do | |
c6b750e1 | 7715 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7716 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7718 | $as_echo_n "checking for $ac_word... " >&6; } | |
7719 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7720 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7721 | else |
7722 | if test -n "$FLEX"; then | |
7723 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7724 | else | |
c6b750e1 DJ |
7725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7726 | for as_dir in $PATH | |
7727 | do | |
7728 | IFS=$as_save_IFS | |
7729 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7730 | for ac_exec_ext in '' $ac_executable_extensions; do |
7731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7732 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7734 | break 2 |
7735 | fi | |
7736 | done | |
81ecdfbb RW |
7737 | done |
7738 | IFS=$as_save_IFS | |
c6b750e1 | 7739 | |
be01d343 PB |
7740 | fi |
7741 | fi | |
c6b750e1 | 7742 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7743 | if test -n "$FLEX"; then |
81ecdfbb RW |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7745 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7746 | else |
81ecdfbb RW |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7748 | $as_echo "no" >&6; } | |
be01d343 PB |
7749 | fi |
7750 | ||
81ecdfbb | 7751 | |
c6b750e1 | 7752 | test -n "$FLEX" && break |
be01d343 PB |
7753 | done |
7754 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7755 | ||
7756 | case " $build_configdirs " in | |
7757 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7758 | esac | |
7759 | ||
7760 | for ac_prog in makeinfo | |
7761 | do | |
c6b750e1 | 7762 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7763 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7765 | $as_echo_n "checking for $ac_word... " >&6; } | |
7766 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7767 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7768 | else |
7769 | if test -n "$MAKEINFO"; then | |
7770 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7771 | else | |
c6b750e1 DJ |
7772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7773 | for as_dir in $PATH | |
7774 | do | |
7775 | IFS=$as_save_IFS | |
7776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7777 | for ac_exec_ext in '' $ac_executable_extensions; do |
7778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7779 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7781 | break 2 |
7782 | fi | |
7783 | done | |
81ecdfbb RW |
7784 | done |
7785 | IFS=$as_save_IFS | |
c6b750e1 | 7786 | |
be01d343 PB |
7787 | fi |
7788 | fi | |
c6b750e1 | 7789 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7790 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7792 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7793 | else |
81ecdfbb RW |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7795 | $as_echo "no" >&6; } | |
be01d343 PB |
7796 | fi |
7797 | ||
81ecdfbb | 7798 | |
c6b750e1 | 7799 | test -n "$MAKEINFO" && break |
be01d343 PB |
7800 | done |
7801 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7802 | ||
7803 | case " $build_configdirs " in | |
7804 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7805 | *) | |
7806 | ||
10ad8ef3 | 7807 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7808 | # higher, else we use the "missing" dummy. |
7809 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7810 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7811 | : |
7812 | else | |
7813 | MAKEINFO="$MISSING makeinfo" | |
7814 | fi | |
7815 | ;; | |
7816 | ||
7817 | esac | |
a0da8069 | 7818 | |
be01d343 | 7819 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7820 | |
be01d343 PB |
7821 | for ac_prog in expect |
7822 | do | |
c6b750e1 | 7823 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7824 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7826 | $as_echo_n "checking for $ac_word... " >&6; } | |
7827 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7828 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7829 | else |
7830 | if test -n "$EXPECT"; then | |
7831 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7832 | else | |
c6b750e1 DJ |
7833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7834 | for as_dir in $PATH | |
7835 | do | |
7836 | IFS=$as_save_IFS | |
7837 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7838 | for ac_exec_ext in '' $ac_executable_extensions; do |
7839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7840 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7842 | break 2 |
7843 | fi | |
7844 | done | |
81ecdfbb RW |
7845 | done |
7846 | IFS=$as_save_IFS | |
c6b750e1 | 7847 | |
be01d343 PB |
7848 | fi |
7849 | fi | |
c6b750e1 | 7850 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7851 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7853 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7854 | else |
81ecdfbb RW |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7856 | $as_echo "no" >&6; } | |
be01d343 | 7857 | fi |
a0da8069 | 7858 | |
81ecdfbb | 7859 | |
c6b750e1 | 7860 | test -n "$EXPECT" && break |
be01d343 PB |
7861 | done |
7862 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7863 | |
be01d343 PB |
7864 | case " $configdirs " in |
7865 | *" expect "*) | |
7866 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7867 | ;; | |
7868 | esac | |
a0da8069 | 7869 | |
be01d343 PB |
7870 | for ac_prog in runtest |
7871 | do | |
c6b750e1 | 7872 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7873 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7875 | $as_echo_n "checking for $ac_word... " >&6; } | |
7876 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
7877 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7878 | else |
7879 | if test -n "$RUNTEST"; then | |
7880 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
7881 | else | |
c6b750e1 DJ |
7882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7883 | for as_dir in $PATH | |
7884 | do | |
7885 | IFS=$as_save_IFS | |
7886 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7887 | for ac_exec_ext in '' $ac_executable_extensions; do |
7888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7889 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 7890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7891 | break 2 |
7892 | fi | |
7893 | done | |
81ecdfbb RW |
7894 | done |
7895 | IFS=$as_save_IFS | |
c6b750e1 | 7896 | |
be01d343 PB |
7897 | fi |
7898 | fi | |
c6b750e1 | 7899 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 7900 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
7901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7902 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 7903 | else |
81ecdfbb RW |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7905 | $as_echo "no" >&6; } | |
be01d343 | 7906 | fi |
a0da8069 | 7907 | |
81ecdfbb | 7908 | |
c6b750e1 | 7909 | test -n "$RUNTEST" && break |
be01d343 PB |
7910 | done |
7911 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 7912 | |
be01d343 PB |
7913 | case " $configdirs " in |
7914 | *" dejagnu "*) | |
6b89cc21 | 7915 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
7916 | ;; |
7917 | esac | |
a0da8069 NN |
7918 | |
7919 | ||
a0da8069 | 7920 | # Host tools. |
859789af AC |
7921 | ncn_tool_prefix= |
7922 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7923 | ncn_target_tool_prefix= | |
7924 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7925 | ||
9a819804 AO |
7926 | |
7927 | ||
7928 | if test -n "$AR"; then | |
7929 | ac_cv_prog_AR=$AR | |
7930 | elif test -n "$ac_cv_prog_AR"; then | |
7931 | AR=$ac_cv_prog_AR | |
7932 | fi | |
7933 | ||
7934 | if test -n "$ac_cv_prog_AR"; then | |
7935 | for ncn_progname in ar; do | |
7936 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7937 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7939 | $as_echo_n "checking for $ac_word... " >&6; } | |
7940 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7941 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
7942 | else |
7943 | if test -n "$AR"; then | |
7944 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7945 | else | |
7946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7947 | for as_dir in $PATH | |
7948 | do | |
7949 | IFS=$as_save_IFS | |
7950 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7951 | for ac_exec_ext in '' $ac_executable_extensions; do |
7952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 7953 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
7955 | break 2 |
7956 | fi | |
7957 | done | |
81ecdfbb RW |
7958 | done |
7959 | IFS=$as_save_IFS | |
9a819804 AO |
7960 | |
7961 | fi | |
7962 | fi | |
7963 | AR=$ac_cv_prog_AR | |
7964 | if test -n "$AR"; then | |
81ecdfbb RW |
7965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7966 | $as_echo "$AR" >&6; } | |
9a819804 | 7967 | else |
81ecdfbb RW |
7968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7969 | $as_echo "no" >&6; } | |
9a819804 AO |
7970 | fi |
7971 | ||
81ecdfbb | 7972 | |
9a819804 AO |
7973 | done |
7974 | fi | |
7975 | ||
7976 | for ncn_progname in ar; do | |
05cbd757 PB |
7977 | if test -n "$ncn_tool_prefix"; then |
7978 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7979 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7981 | $as_echo_n "checking for $ac_word... " >&6; } | |
7982 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7983 | $as_echo_n "(cached) " >&6 | |
859789af AC |
7984 | else |
7985 | if test -n "$AR"; then | |
7986 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7987 | else | |
c6b750e1 DJ |
7988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7989 | for as_dir in $PATH | |
7990 | do | |
7991 | IFS=$as_save_IFS | |
7992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7993 | for ac_exec_ext in '' $ac_executable_extensions; do |
7994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7995 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 7996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7997 | break 2 |
7998 | fi | |
7999 | done | |
81ecdfbb RW |
8000 | done |
8001 | IFS=$as_save_IFS | |
c6b750e1 | 8002 | |
859789af AC |
8003 | fi |
8004 | fi | |
c6b750e1 | 8005 | AR=$ac_cv_prog_AR |
859789af | 8006 | if test -n "$AR"; then |
81ecdfbb RW |
8007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8008 | $as_echo "$AR" >&6; } | |
859789af | 8009 | else |
81ecdfbb RW |
8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8011 | $as_echo "no" >&6; } | |
859789af AC |
8012 | fi |
8013 | ||
81ecdfbb | 8014 | |
05cbd757 PB |
8015 | fi |
8016 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8017 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8018 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8020 | $as_echo_n "checking for $ac_word... " >&6; } | |
8021 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8022 | $as_echo_n "(cached) " >&6 | |
859789af | 8023 | else |
05cbd757 PB |
8024 | if test -n "$AR"; then |
8025 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8026 | else |
c6b750e1 DJ |
8027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8028 | for as_dir in $PATH | |
8029 | do | |
8030 | IFS=$as_save_IFS | |
8031 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8032 | for ac_exec_ext in '' $ac_executable_extensions; do |
8033 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8034 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8035 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8036 | break 2 |
8037 | fi | |
8038 | done | |
81ecdfbb RW |
8039 | done |
8040 | IFS=$as_save_IFS | |
c6b750e1 | 8041 | |
859789af AC |
8042 | fi |
8043 | fi | |
c6b750e1 | 8044 | AR=$ac_cv_prog_AR |
05cbd757 | 8045 | if test -n "$AR"; then |
81ecdfbb RW |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8047 | $as_echo "$AR" >&6; } | |
859789af | 8048 | else |
81ecdfbb RW |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8050 | $as_echo "no" >&6; } | |
859789af | 8051 | fi |
c6b750e1 | 8052 | |
81ecdfbb | 8053 | |
05cbd757 PB |
8054 | fi |
8055 | test -n "$ac_cv_prog_AR" && break | |
8056 | done | |
8057 | ||
8058 | if test -z "$ac_cv_prog_AR" ; then | |
8059 | set dummy ar | |
8060 | if test $build = $host ; then | |
8061 | AR="$2" | |
859789af | 8062 | else |
05cbd757 | 8063 | AR="${ncn_tool_prefix}$2" |
859789af | 8064 | fi |
859789af AC |
8065 | fi |
8066 | ||
9a819804 AO |
8067 | |
8068 | ||
8069 | if test -n "$AS"; then | |
8070 | ac_cv_prog_AS=$AS | |
8071 | elif test -n "$ac_cv_prog_AS"; then | |
8072 | AS=$ac_cv_prog_AS | |
8073 | fi | |
8074 | ||
8075 | if test -n "$ac_cv_prog_AS"; then | |
8076 | for ncn_progname in as; do | |
8077 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8078 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8080 | $as_echo_n "checking for $ac_word... " >&6; } | |
8081 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8082 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8083 | else |
8084 | if test -n "$AS"; then | |
8085 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8086 | else | |
8087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8088 | for as_dir in $PATH | |
8089 | do | |
8090 | IFS=$as_save_IFS | |
8091 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8092 | for ac_exec_ext in '' $ac_executable_extensions; do |
8093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8094 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8095 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8096 | break 2 |
8097 | fi | |
8098 | done | |
81ecdfbb RW |
8099 | done |
8100 | IFS=$as_save_IFS | |
9a819804 AO |
8101 | |
8102 | fi | |
8103 | fi | |
8104 | AS=$ac_cv_prog_AS | |
8105 | if test -n "$AS"; then | |
81ecdfbb RW |
8106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8107 | $as_echo "$AS" >&6; } | |
9a819804 | 8108 | else |
81ecdfbb RW |
8109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8110 | $as_echo "no" >&6; } | |
9a819804 AO |
8111 | fi |
8112 | ||
81ecdfbb | 8113 | |
9a819804 AO |
8114 | done |
8115 | fi | |
8116 | ||
8117 | for ncn_progname in as; do | |
05cbd757 PB |
8118 | if test -n "$ncn_tool_prefix"; then |
8119 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8120 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8122 | $as_echo_n "checking for $ac_word... " >&6; } | |
8123 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8124 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8125 | else |
8126 | if test -n "$AS"; then | |
8127 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8128 | else |
8129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8130 | for as_dir in $PATH | |
8131 | do | |
8132 | IFS=$as_save_IFS | |
8133 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8134 | for ac_exec_ext in '' $ac_executable_extensions; do |
8135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8136 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8138 | break 2 |
8139 | fi | |
8140 | done | |
81ecdfbb RW |
8141 | done |
8142 | IFS=$as_save_IFS | |
c6b750e1 | 8143 | |
859789af AC |
8144 | fi |
8145 | fi | |
c6b750e1 | 8146 | AS=$ac_cv_prog_AS |
859789af | 8147 | if test -n "$AS"; then |
81ecdfbb RW |
8148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8149 | $as_echo "$AS" >&6; } | |
859789af | 8150 | else |
81ecdfbb RW |
8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8152 | $as_echo "no" >&6; } | |
859789af AC |
8153 | fi |
8154 | ||
81ecdfbb | 8155 | |
05cbd757 PB |
8156 | fi |
8157 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8158 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8159 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8161 | $as_echo_n "checking for $ac_word... " >&6; } | |
8162 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8163 | $as_echo_n "(cached) " >&6 | |
859789af | 8164 | else |
05cbd757 PB |
8165 | if test -n "$AS"; then |
8166 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8167 | else |
c6b750e1 DJ |
8168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8169 | for as_dir in $PATH | |
8170 | do | |
8171 | IFS=$as_save_IFS | |
8172 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8173 | for ac_exec_ext in '' $ac_executable_extensions; do |
8174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8175 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8177 | break 2 |
8178 | fi | |
8179 | done | |
81ecdfbb RW |
8180 | done |
8181 | IFS=$as_save_IFS | |
c6b750e1 | 8182 | |
859789af AC |
8183 | fi |
8184 | fi | |
c6b750e1 | 8185 | AS=$ac_cv_prog_AS |
05cbd757 | 8186 | if test -n "$AS"; then |
81ecdfbb RW |
8187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8188 | $as_echo "$AS" >&6; } | |
859789af | 8189 | else |
81ecdfbb RW |
8190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8191 | $as_echo "no" >&6; } | |
859789af | 8192 | fi |
c6b750e1 | 8193 | |
81ecdfbb | 8194 | |
05cbd757 PB |
8195 | fi |
8196 | test -n "$ac_cv_prog_AS" && break | |
8197 | done | |
8198 | ||
8199 | if test -z "$ac_cv_prog_AS" ; then | |
8200 | set dummy as | |
8201 | if test $build = $host ; then | |
8202 | AS="$2" | |
859789af | 8203 | else |
05cbd757 | 8204 | AS="${ncn_tool_prefix}$2" |
859789af | 8205 | fi |
859789af AC |
8206 | fi |
8207 | ||
9a819804 AO |
8208 | |
8209 | ||
8210 | if test -n "$DLLTOOL"; then | |
8211 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8212 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8213 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8214 | fi | |
8215 | ||
8216 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8217 | for ncn_progname in dlltool; do | |
8218 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8219 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8221 | $as_echo_n "checking for $ac_word... " >&6; } | |
8222 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8223 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8224 | else |
8225 | if test -n "$DLLTOOL"; then | |
8226 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8227 | else | |
8228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8229 | for as_dir in $PATH | |
8230 | do | |
8231 | IFS=$as_save_IFS | |
8232 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8233 | for ac_exec_ext in '' $ac_executable_extensions; do |
8234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8235 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8237 | break 2 |
8238 | fi | |
8239 | done | |
81ecdfbb RW |
8240 | done |
8241 | IFS=$as_save_IFS | |
9a819804 AO |
8242 | |
8243 | fi | |
8244 | fi | |
8245 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8246 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8248 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8249 | else |
81ecdfbb RW |
8250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8251 | $as_echo "no" >&6; } | |
9a819804 AO |
8252 | fi |
8253 | ||
81ecdfbb | 8254 | |
9a819804 AO |
8255 | done |
8256 | fi | |
8257 | ||
8258 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8259 | if test -n "$ncn_tool_prefix"; then |
8260 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8261 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8263 | $as_echo_n "checking for $ac_word... " >&6; } | |
8264 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8265 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8266 | else |
8267 | if test -n "$DLLTOOL"; then | |
8268 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8269 | else | |
c6b750e1 DJ |
8270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8271 | for as_dir in $PATH | |
8272 | do | |
8273 | IFS=$as_save_IFS | |
8274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8275 | for ac_exec_ext in '' $ac_executable_extensions; do |
8276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8277 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8279 | break 2 |
8280 | fi | |
8281 | done | |
81ecdfbb RW |
8282 | done |
8283 | IFS=$as_save_IFS | |
c6b750e1 | 8284 | |
859789af AC |
8285 | fi |
8286 | fi | |
c6b750e1 | 8287 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8288 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8290 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8291 | else |
81ecdfbb RW |
8292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8293 | $as_echo "no" >&6; } | |
859789af AC |
8294 | fi |
8295 | ||
81ecdfbb | 8296 | |
05cbd757 PB |
8297 | fi |
8298 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8299 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8300 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8302 | $as_echo_n "checking for $ac_word... " >&6; } | |
8303 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8304 | $as_echo_n "(cached) " >&6 | |
859789af | 8305 | else |
05cbd757 PB |
8306 | if test -n "$DLLTOOL"; then |
8307 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8308 | else |
c6b750e1 DJ |
8309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8310 | for as_dir in $PATH | |
8311 | do | |
8312 | IFS=$as_save_IFS | |
8313 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8314 | for ac_exec_ext in '' $ac_executable_extensions; do |
8315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8316 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8318 | break 2 |
8319 | fi | |
8320 | done | |
81ecdfbb RW |
8321 | done |
8322 | IFS=$as_save_IFS | |
c6b750e1 | 8323 | |
859789af AC |
8324 | fi |
8325 | fi | |
c6b750e1 | 8326 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8327 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8329 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8330 | else |
81ecdfbb RW |
8331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8332 | $as_echo "no" >&6; } | |
859789af | 8333 | fi |
c6b750e1 | 8334 | |
81ecdfbb | 8335 | |
05cbd757 PB |
8336 | fi |
8337 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8338 | done | |
8339 | ||
8340 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8341 | set dummy dlltool | |
8342 | if test $build = $host ; then | |
8343 | DLLTOOL="$2" | |
859789af | 8344 | else |
05cbd757 | 8345 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8346 | fi |
859789af AC |
8347 | fi |
8348 | ||
9a819804 AO |
8349 | |
8350 | ||
8351 | if test -n "$LD"; then | |
8352 | ac_cv_prog_LD=$LD | |
8353 | elif test -n "$ac_cv_prog_LD"; then | |
8354 | LD=$ac_cv_prog_LD | |
8355 | fi | |
8356 | ||
8357 | if test -n "$ac_cv_prog_LD"; then | |
8358 | for ncn_progname in ld; do | |
8359 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8360 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8362 | $as_echo_n "checking for $ac_word... " >&6; } | |
8363 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8364 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8365 | else |
8366 | if test -n "$LD"; then | |
8367 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8368 | else | |
8369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8370 | for as_dir in $PATH | |
8371 | do | |
8372 | IFS=$as_save_IFS | |
8373 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8374 | for ac_exec_ext in '' $ac_executable_extensions; do |
8375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8376 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8378 | break 2 |
8379 | fi | |
8380 | done | |
81ecdfbb RW |
8381 | done |
8382 | IFS=$as_save_IFS | |
9a819804 AO |
8383 | |
8384 | fi | |
8385 | fi | |
8386 | LD=$ac_cv_prog_LD | |
8387 | if test -n "$LD"; then | |
81ecdfbb RW |
8388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8389 | $as_echo "$LD" >&6; } | |
9a819804 | 8390 | else |
81ecdfbb RW |
8391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8392 | $as_echo "no" >&6; } | |
9a819804 AO |
8393 | fi |
8394 | ||
81ecdfbb | 8395 | |
9a819804 AO |
8396 | done |
8397 | fi | |
8398 | ||
8399 | for ncn_progname in ld; do | |
05cbd757 PB |
8400 | if test -n "$ncn_tool_prefix"; then |
8401 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8402 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8404 | $as_echo_n "checking for $ac_word... " >&6; } | |
8405 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8406 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8407 | else |
8408 | if test -n "$LD"; then | |
8409 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8410 | else | |
c6b750e1 DJ |
8411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8412 | for as_dir in $PATH | |
8413 | do | |
8414 | IFS=$as_save_IFS | |
8415 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8416 | for ac_exec_ext in '' $ac_executable_extensions; do |
8417 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8418 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8420 | break 2 |
8421 | fi | |
8422 | done | |
81ecdfbb RW |
8423 | done |
8424 | IFS=$as_save_IFS | |
c6b750e1 | 8425 | |
859789af AC |
8426 | fi |
8427 | fi | |
c6b750e1 | 8428 | LD=$ac_cv_prog_LD |
859789af | 8429 | if test -n "$LD"; then |
81ecdfbb RW |
8430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8431 | $as_echo "$LD" >&6; } | |
859789af | 8432 | else |
81ecdfbb RW |
8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8434 | $as_echo "no" >&6; } | |
859789af AC |
8435 | fi |
8436 | ||
81ecdfbb | 8437 | |
05cbd757 PB |
8438 | fi |
8439 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8440 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8441 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8443 | $as_echo_n "checking for $ac_word... " >&6; } | |
8444 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8445 | $as_echo_n "(cached) " >&6 | |
859789af | 8446 | else |
05cbd757 PB |
8447 | if test -n "$LD"; then |
8448 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8449 | else |
c6b750e1 DJ |
8450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8451 | for as_dir in $PATH | |
8452 | do | |
8453 | IFS=$as_save_IFS | |
8454 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8455 | for ac_exec_ext in '' $ac_executable_extensions; do |
8456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8457 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8459 | break 2 |
8460 | fi | |
8461 | done | |
81ecdfbb RW |
8462 | done |
8463 | IFS=$as_save_IFS | |
c6b750e1 | 8464 | |
859789af AC |
8465 | fi |
8466 | fi | |
c6b750e1 | 8467 | LD=$ac_cv_prog_LD |
05cbd757 | 8468 | if test -n "$LD"; then |
81ecdfbb RW |
8469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8470 | $as_echo "$LD" >&6; } | |
859789af | 8471 | else |
81ecdfbb RW |
8472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8473 | $as_echo "no" >&6; } | |
859789af | 8474 | fi |
c6b750e1 | 8475 | |
81ecdfbb | 8476 | |
05cbd757 PB |
8477 | fi |
8478 | test -n "$ac_cv_prog_LD" && break | |
8479 | done | |
8480 | ||
8481 | if test -z "$ac_cv_prog_LD" ; then | |
8482 | set dummy ld | |
8483 | if test $build = $host ; then | |
8484 | LD="$2" | |
859789af | 8485 | else |
05cbd757 | 8486 | LD="${ncn_tool_prefix}$2" |
859789af | 8487 | fi |
859789af AC |
8488 | fi |
8489 | ||
9a819804 AO |
8490 | |
8491 | ||
8492 | if test -n "$LIPO"; then | |
8493 | ac_cv_prog_LIPO=$LIPO | |
8494 | elif test -n "$ac_cv_prog_LIPO"; then | |
8495 | LIPO=$ac_cv_prog_LIPO | |
8496 | fi | |
8497 | ||
8498 | if test -n "$ac_cv_prog_LIPO"; then | |
8499 | for ncn_progname in lipo; do | |
8500 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8501 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8503 | $as_echo_n "checking for $ac_word... " >&6; } | |
8504 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8505 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8506 | else |
8507 | if test -n "$LIPO"; then | |
8508 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8509 | else | |
8510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8511 | for as_dir in $PATH | |
8512 | do | |
8513 | IFS=$as_save_IFS | |
8514 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8515 | for ac_exec_ext in '' $ac_executable_extensions; do |
8516 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8517 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8518 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8519 | break 2 |
8520 | fi | |
8521 | done | |
81ecdfbb RW |
8522 | done |
8523 | IFS=$as_save_IFS | |
9a819804 AO |
8524 | |
8525 | fi | |
8526 | fi | |
8527 | LIPO=$ac_cv_prog_LIPO | |
8528 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8530 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8531 | else |
81ecdfbb RW |
8532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8533 | $as_echo "no" >&6; } | |
9a819804 AO |
8534 | fi |
8535 | ||
81ecdfbb | 8536 | |
9a819804 AO |
8537 | done |
8538 | fi | |
8539 | ||
8540 | for ncn_progname in lipo; do | |
be01d343 PB |
8541 | if test -n "$ncn_tool_prefix"; then |
8542 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8543 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8545 | $as_echo_n "checking for $ac_word... " >&6; } | |
8546 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8547 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8548 | else |
8549 | if test -n "$LIPO"; then | |
8550 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8551 | else | |
c6b750e1 DJ |
8552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8553 | for as_dir in $PATH | |
8554 | do | |
8555 | IFS=$as_save_IFS | |
8556 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8557 | for ac_exec_ext in '' $ac_executable_extensions; do |
8558 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8559 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8561 | break 2 |
8562 | fi | |
8563 | done | |
81ecdfbb RW |
8564 | done |
8565 | IFS=$as_save_IFS | |
c6b750e1 | 8566 | |
be01d343 PB |
8567 | fi |
8568 | fi | |
c6b750e1 | 8569 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8570 | if test -n "$LIPO"; then |
81ecdfbb RW |
8571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8572 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8573 | else |
81ecdfbb RW |
8574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8575 | $as_echo "no" >&6; } | |
be01d343 PB |
8576 | fi |
8577 | ||
81ecdfbb | 8578 | |
be01d343 PB |
8579 | fi |
8580 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8581 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8582 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8584 | $as_echo_n "checking for $ac_word... " >&6; } | |
8585 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8586 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8587 | else |
8588 | if test -n "$LIPO"; then | |
8589 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8590 | else | |
c6b750e1 DJ |
8591 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8592 | for as_dir in $PATH | |
8593 | do | |
8594 | IFS=$as_save_IFS | |
8595 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8596 | for ac_exec_ext in '' $ac_executable_extensions; do |
8597 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8598 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8599 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8600 | break 2 |
8601 | fi | |
8602 | done | |
81ecdfbb RW |
8603 | done |
8604 | IFS=$as_save_IFS | |
c6b750e1 | 8605 | |
be01d343 PB |
8606 | fi |
8607 | fi | |
c6b750e1 | 8608 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8609 | if test -n "$LIPO"; then |
81ecdfbb RW |
8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8611 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8612 | else |
81ecdfbb RW |
8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8614 | $as_echo "no" >&6; } | |
be01d343 | 8615 | fi |
c6b750e1 | 8616 | |
81ecdfbb | 8617 | |
be01d343 PB |
8618 | fi |
8619 | test -n "$ac_cv_prog_LIPO" && break | |
8620 | done | |
8621 | ||
8622 | if test -z "$ac_cv_prog_LIPO" ; then | |
8623 | set dummy lipo | |
8624 | if test $build = $host ; then | |
8625 | LIPO="$2" | |
8626 | else | |
8627 | LIPO="${ncn_tool_prefix}$2" | |
8628 | fi | |
8629 | fi | |
8630 | ||
9a819804 AO |
8631 | |
8632 | ||
8633 | if test -n "$NM"; then | |
8634 | ac_cv_prog_NM=$NM | |
8635 | elif test -n "$ac_cv_prog_NM"; then | |
8636 | NM=$ac_cv_prog_NM | |
8637 | fi | |
8638 | ||
8639 | if test -n "$ac_cv_prog_NM"; then | |
8640 | for ncn_progname in nm; do | |
8641 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8642 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8644 | $as_echo_n "checking for $ac_word... " >&6; } | |
8645 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8646 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8647 | else |
8648 | if test -n "$NM"; then | |
8649 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8650 | else | |
c6b750e1 DJ |
8651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8652 | for as_dir in $PATH | |
8653 | do | |
8654 | IFS=$as_save_IFS | |
8655 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8656 | for ac_exec_ext in '' $ac_executable_extensions; do |
8657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8658 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8660 | break 2 |
8661 | fi | |
8662 | done | |
81ecdfbb RW |
8663 | done |
8664 | IFS=$as_save_IFS | |
c6b750e1 | 8665 | |
859789af AC |
8666 | fi |
8667 | fi | |
c6b750e1 | 8668 | NM=$ac_cv_prog_NM |
859789af | 8669 | if test -n "$NM"; then |
81ecdfbb RW |
8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8671 | $as_echo "$NM" >&6; } | |
859789af | 8672 | else |
81ecdfbb RW |
8673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8674 | $as_echo "no" >&6; } | |
859789af AC |
8675 | fi |
8676 | ||
81ecdfbb | 8677 | |
9a819804 AO |
8678 | done |
8679 | fi | |
8680 | ||
8681 | for ncn_progname in nm; do | |
8682 | if test -n "$ncn_tool_prefix"; then | |
8683 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8684 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8686 | $as_echo_n "checking for $ac_word... " >&6; } | |
8687 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8688 | $as_echo_n "(cached) " >&6 | |
859789af | 8689 | else |
05cbd757 PB |
8690 | if test -n "$NM"; then |
8691 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8692 | else |
c6b750e1 DJ |
8693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8694 | for as_dir in $PATH | |
8695 | do | |
8696 | IFS=$as_save_IFS | |
8697 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8698 | for ac_exec_ext in '' $ac_executable_extensions; do |
8699 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8700 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8701 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8702 | break 2 |
8703 | fi | |
8704 | done | |
81ecdfbb RW |
8705 | done |
8706 | IFS=$as_save_IFS | |
c6b750e1 | 8707 | |
859789af AC |
8708 | fi |
8709 | fi | |
c6b750e1 | 8710 | NM=$ac_cv_prog_NM |
05cbd757 | 8711 | if test -n "$NM"; then |
81ecdfbb RW |
8712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8713 | $as_echo "$NM" >&6; } | |
859789af | 8714 | else |
81ecdfbb RW |
8715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8716 | $as_echo "no" >&6; } | |
859789af | 8717 | fi |
c6b750e1 | 8718 | |
81ecdfbb | 8719 | |
05cbd757 | 8720 | fi |
9a819804 AO |
8721 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8722 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8723 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8725 | $as_echo_n "checking for $ac_word... " >&6; } | |
8726 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8727 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8728 | else |
8729 | if test -n "$NM"; then | |
8730 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8731 | else | |
8732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8733 | for as_dir in $PATH | |
8734 | do | |
8735 | IFS=$as_save_IFS | |
8736 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8737 | for ac_exec_ext in '' $ac_executable_extensions; do |
8738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8739 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8741 | break 2 |
8742 | fi | |
8743 | done | |
81ecdfbb RW |
8744 | done |
8745 | IFS=$as_save_IFS | |
9a819804 AO |
8746 | |
8747 | fi | |
8748 | fi | |
8749 | NM=$ac_cv_prog_NM | |
8750 | if test -n "$NM"; then | |
81ecdfbb RW |
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8752 | $as_echo "$NM" >&6; } | |
9a819804 | 8753 | else |
81ecdfbb RW |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8755 | $as_echo "no" >&6; } | |
9a819804 AO |
8756 | fi |
8757 | ||
81ecdfbb | 8758 | |
9a819804 AO |
8759 | fi |
8760 | test -n "$ac_cv_prog_NM" && break | |
8761 | done | |
8762 | ||
8763 | if test -z "$ac_cv_prog_NM" ; then | |
8764 | set dummy nm | |
8765 | if test $build = $host ; then | |
8766 | NM="$2" | |
8767 | else | |
8768 | NM="${ncn_tool_prefix}$2" | |
8769 | fi | |
8770 | fi | |
8771 | ||
8772 | ||
8773 | ||
8774 | if test -n "$RANLIB"; then | |
8775 | ac_cv_prog_RANLIB=$RANLIB | |
8776 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8777 | RANLIB=$ac_cv_prog_RANLIB | |
8778 | fi | |
8779 | ||
8780 | if test -n "$ac_cv_prog_RANLIB"; then | |
8781 | for ncn_progname in ranlib; do | |
8782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8783 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8785 | $as_echo_n "checking for $ac_word... " >&6; } | |
8786 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8787 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8788 | else |
8789 | if test -n "$RANLIB"; then | |
8790 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8791 | else | |
8792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8793 | for as_dir in $PATH | |
8794 | do | |
8795 | IFS=$as_save_IFS | |
8796 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8797 | for ac_exec_ext in '' $ac_executable_extensions; do |
8798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8799 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8801 | break 2 |
8802 | fi | |
8803 | done | |
81ecdfbb RW |
8804 | done |
8805 | IFS=$as_save_IFS | |
9a819804 AO |
8806 | |
8807 | fi | |
8808 | fi | |
8809 | RANLIB=$ac_cv_prog_RANLIB | |
8810 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8812 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8813 | else |
81ecdfbb RW |
8814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8815 | $as_echo "no" >&6; } | |
9a819804 AO |
8816 | fi |
8817 | ||
81ecdfbb | 8818 | |
9a819804 AO |
8819 | done |
8820 | fi | |
859789af | 8821 | |
9a819804 | 8822 | for ncn_progname in ranlib; do |
05cbd757 PB |
8823 | if test -n "$ncn_tool_prefix"; then |
8824 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8825 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8827 | $as_echo_n "checking for $ac_word... " >&6; } | |
8828 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8829 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8830 | else |
8831 | if test -n "$RANLIB"; then | |
8832 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8833 | else | |
c6b750e1 DJ |
8834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8835 | for as_dir in $PATH | |
8836 | do | |
8837 | IFS=$as_save_IFS | |
8838 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8839 | for ac_exec_ext in '' $ac_executable_extensions; do |
8840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8841 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8843 | break 2 |
8844 | fi | |
8845 | done | |
81ecdfbb RW |
8846 | done |
8847 | IFS=$as_save_IFS | |
c6b750e1 | 8848 | |
859789af AC |
8849 | fi |
8850 | fi | |
c6b750e1 | 8851 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8852 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8854 | $as_echo "$RANLIB" >&6; } | |
859789af | 8855 | else |
81ecdfbb RW |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8857 | $as_echo "no" >&6; } | |
859789af AC |
8858 | fi |
8859 | ||
81ecdfbb | 8860 | |
05cbd757 PB |
8861 | fi |
8862 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8863 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8864 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8866 | $as_echo_n "checking for $ac_word... " >&6; } | |
8867 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8868 | $as_echo_n "(cached) " >&6 | |
859789af | 8869 | else |
05cbd757 PB |
8870 | if test -n "$RANLIB"; then |
8871 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8872 | else |
c6b750e1 DJ |
8873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8874 | for as_dir in $PATH | |
8875 | do | |
8876 | IFS=$as_save_IFS | |
8877 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8878 | for ac_exec_ext in '' $ac_executable_extensions; do |
8879 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8880 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8882 | break 2 |
8883 | fi | |
8884 | done | |
81ecdfbb RW |
8885 | done |
8886 | IFS=$as_save_IFS | |
c6b750e1 | 8887 | |
859789af AC |
8888 | fi |
8889 | fi | |
c6b750e1 | 8890 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 8891 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8893 | $as_echo "$RANLIB" >&6; } | |
859789af | 8894 | else |
81ecdfbb RW |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8896 | $as_echo "no" >&6; } | |
859789af | 8897 | fi |
c6b750e1 | 8898 | |
81ecdfbb | 8899 | |
859789af | 8900 | fi |
05cbd757 PB |
8901 | test -n "$ac_cv_prog_RANLIB" && break |
8902 | done | |
8903 | ||
8904 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 8905 | RANLIB="true" |
859789af AC |
8906 | fi |
8907 | ||
9a819804 AO |
8908 | |
8909 | ||
8910 | if test -n "$STRIP"; then | |
8911 | ac_cv_prog_STRIP=$STRIP | |
8912 | elif test -n "$ac_cv_prog_STRIP"; then | |
8913 | STRIP=$ac_cv_prog_STRIP | |
8914 | fi | |
8915 | ||
8916 | if test -n "$ac_cv_prog_STRIP"; then | |
8917 | for ncn_progname in strip; do | |
8918 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8919 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8921 | $as_echo_n "checking for $ac_word... " >&6; } | |
8922 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8923 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8924 | else |
8925 | if test -n "$STRIP"; then | |
8926 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8927 | else | |
8928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8929 | for as_dir in $PATH | |
8930 | do | |
8931 | IFS=$as_save_IFS | |
8932 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8933 | for ac_exec_ext in '' $ac_executable_extensions; do |
8934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8935 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8937 | break 2 |
8938 | fi | |
8939 | done | |
81ecdfbb RW |
8940 | done |
8941 | IFS=$as_save_IFS | |
9a819804 AO |
8942 | |
8943 | fi | |
8944 | fi | |
8945 | STRIP=$ac_cv_prog_STRIP | |
8946 | if test -n "$STRIP"; then | |
81ecdfbb RW |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8948 | $as_echo "$STRIP" >&6; } | |
9a819804 | 8949 | else |
81ecdfbb RW |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8951 | $as_echo "no" >&6; } | |
9a819804 AO |
8952 | fi |
8953 | ||
81ecdfbb | 8954 | |
9a819804 AO |
8955 | done |
8956 | fi | |
8957 | ||
8958 | for ncn_progname in strip; do | |
be01d343 PB |
8959 | if test -n "$ncn_tool_prefix"; then |
8960 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8961 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8963 | $as_echo_n "checking for $ac_word... " >&6; } | |
8964 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8965 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8966 | else |
8967 | if test -n "$STRIP"; then | |
8968 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8969 | else | |
c6b750e1 DJ |
8970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8971 | for as_dir in $PATH | |
8972 | do | |
8973 | IFS=$as_save_IFS | |
8974 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8975 | for ac_exec_ext in '' $ac_executable_extensions; do |
8976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8977 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8979 | break 2 |
8980 | fi | |
8981 | done | |
81ecdfbb RW |
8982 | done |
8983 | IFS=$as_save_IFS | |
c6b750e1 | 8984 | |
be01d343 PB |
8985 | fi |
8986 | fi | |
c6b750e1 | 8987 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8988 | if test -n "$STRIP"; then |
81ecdfbb RW |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8990 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8991 | else |
81ecdfbb RW |
8992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8993 | $as_echo "no" >&6; } | |
be01d343 PB |
8994 | fi |
8995 | ||
81ecdfbb | 8996 | |
be01d343 PB |
8997 | fi |
8998 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8999 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9000 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9002 | $as_echo_n "checking for $ac_word... " >&6; } | |
9003 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9004 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9005 | else |
9006 | if test -n "$STRIP"; then | |
9007 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9008 | else | |
c6b750e1 DJ |
9009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9010 | for as_dir in $PATH | |
9011 | do | |
9012 | IFS=$as_save_IFS | |
9013 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9014 | for ac_exec_ext in '' $ac_executable_extensions; do |
9015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9016 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9018 | break 2 |
9019 | fi | |
9020 | done | |
81ecdfbb RW |
9021 | done |
9022 | IFS=$as_save_IFS | |
c6b750e1 | 9023 | |
be01d343 PB |
9024 | fi |
9025 | fi | |
c6b750e1 | 9026 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9027 | if test -n "$STRIP"; then |
81ecdfbb RW |
9028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9029 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9030 | else |
81ecdfbb RW |
9031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9032 | $as_echo "no" >&6; } | |
be01d343 | 9033 | fi |
c6b750e1 | 9034 | |
81ecdfbb | 9035 | |
be01d343 PB |
9036 | fi |
9037 | test -n "$ac_cv_prog_STRIP" && break | |
9038 | done | |
9039 | ||
9040 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9041 | STRIP="true" |
be01d343 PB |
9042 | fi |
9043 | ||
9a819804 AO |
9044 | |
9045 | ||
9046 | if test -n "$WINDRES"; then | |
9047 | ac_cv_prog_WINDRES=$WINDRES | |
9048 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9049 | WINDRES=$ac_cv_prog_WINDRES | |
9050 | fi | |
9051 | ||
9052 | if test -n "$ac_cv_prog_WINDRES"; then | |
9053 | for ncn_progname in windres; do | |
9054 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9055 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9057 | $as_echo_n "checking for $ac_word... " >&6; } | |
9058 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9059 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9060 | else |
9061 | if test -n "$WINDRES"; then | |
9062 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9063 | else | |
9064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9065 | for as_dir in $PATH | |
9066 | do | |
9067 | IFS=$as_save_IFS | |
9068 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9069 | for ac_exec_ext in '' $ac_executable_extensions; do |
9070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9071 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9073 | break 2 |
9074 | fi | |
9075 | done | |
81ecdfbb RW |
9076 | done |
9077 | IFS=$as_save_IFS | |
9a819804 AO |
9078 | |
9079 | fi | |
9080 | fi | |
9081 | WINDRES=$ac_cv_prog_WINDRES | |
9082 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9084 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9085 | else |
81ecdfbb RW |
9086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9087 | $as_echo "no" >&6; } | |
9a819804 AO |
9088 | fi |
9089 | ||
81ecdfbb | 9090 | |
9a819804 AO |
9091 | done |
9092 | fi | |
9093 | ||
9094 | for ncn_progname in windres; do | |
05cbd757 PB |
9095 | if test -n "$ncn_tool_prefix"; then |
9096 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9097 | set dummy ${ncn_tool_prefix}${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_WINDRES+set}" = set; then : | |
9101 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9102 | else |
9103 | if test -n "$WINDRES"; then | |
9104 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
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_WINDRES="${ncn_tool_prefix}${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 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9124 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9126 | $as_echo "$WINDRES" >&6; } | |
859789af | 9127 | else |
81ecdfbb RW |
9128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9129 | $as_echo "no" >&6; } | |
859789af AC |
9130 | fi |
9131 | ||
81ecdfbb | 9132 | |
05cbd757 PB |
9133 | fi |
9134 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9135 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9136 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9138 | $as_echo_n "checking for $ac_word... " >&6; } | |
9139 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9140 | $as_echo_n "(cached) " >&6 | |
859789af | 9141 | else |
05cbd757 PB |
9142 | if test -n "$WINDRES"; then |
9143 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9144 | else |
c6b750e1 DJ |
9145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9146 | for as_dir in $PATH | |
9147 | do | |
9148 | IFS=$as_save_IFS | |
9149 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9150 | for ac_exec_ext in '' $ac_executable_extensions; do |
9151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9152 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9154 | break 2 |
9155 | fi | |
9156 | done | |
81ecdfbb RW |
9157 | done |
9158 | IFS=$as_save_IFS | |
c6b750e1 | 9159 | |
859789af AC |
9160 | fi |
9161 | fi | |
c6b750e1 | 9162 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9163 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9165 | $as_echo "$WINDRES" >&6; } | |
859789af | 9166 | else |
81ecdfbb RW |
9167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9168 | $as_echo "no" >&6; } | |
859789af | 9169 | fi |
c6b750e1 | 9170 | |
81ecdfbb | 9171 | |
05cbd757 PB |
9172 | fi |
9173 | test -n "$ac_cv_prog_WINDRES" && break | |
9174 | done | |
9175 | ||
9176 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9177 | set dummy windres | |
9178 | if test $build = $host ; then | |
9179 | WINDRES="$2" | |
859789af | 9180 | else |
05cbd757 | 9181 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9182 | fi |
859789af AC |
9183 | fi |
9184 | ||
9a819804 AO |
9185 | |
9186 | ||
0c24b341 NC |
9187 | if test -n "$WINDMC"; then |
9188 | ac_cv_prog_WINDMC=$WINDMC | |
9189 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9190 | WINDMC=$ac_cv_prog_WINDMC | |
9191 | fi | |
9192 | ||
9193 | if test -n "$ac_cv_prog_WINDMC"; then | |
9194 | for ncn_progname in windmc; do | |
9195 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9196 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9198 | $as_echo_n "checking for $ac_word... " >&6; } | |
9199 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9200 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9201 | else |
9202 | if test -n "$WINDMC"; then | |
9203 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9204 | else | |
9205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9206 | for as_dir in $PATH | |
9207 | do | |
9208 | IFS=$as_save_IFS | |
9209 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9210 | for ac_exec_ext in '' $ac_executable_extensions; do |
9211 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9212 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9214 | break 2 |
9215 | fi | |
9216 | done | |
81ecdfbb RW |
9217 | done |
9218 | IFS=$as_save_IFS | |
0c24b341 NC |
9219 | |
9220 | fi | |
9221 | fi | |
9222 | WINDMC=$ac_cv_prog_WINDMC | |
9223 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9225 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9226 | else |
81ecdfbb RW |
9227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9228 | $as_echo "no" >&6; } | |
0c24b341 NC |
9229 | fi |
9230 | ||
81ecdfbb | 9231 | |
0c24b341 NC |
9232 | done |
9233 | fi | |
9234 | ||
9235 | for ncn_progname in windmc; do | |
9236 | if test -n "$ncn_tool_prefix"; then | |
9237 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9238 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9240 | $as_echo_n "checking for $ac_word... " >&6; } | |
9241 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9242 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9243 | else |
9244 | if test -n "$WINDMC"; then | |
9245 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9246 | else | |
9247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9248 | for as_dir in $PATH | |
9249 | do | |
9250 | IFS=$as_save_IFS | |
9251 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9252 | for ac_exec_ext in '' $ac_executable_extensions; do |
9253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9254 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9256 | break 2 |
9257 | fi | |
9258 | done | |
81ecdfbb RW |
9259 | done |
9260 | IFS=$as_save_IFS | |
0c24b341 NC |
9261 | |
9262 | fi | |
9263 | fi | |
9264 | WINDMC=$ac_cv_prog_WINDMC | |
9265 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9267 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9268 | else |
81ecdfbb RW |
9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9270 | $as_echo "no" >&6; } | |
0c24b341 NC |
9271 | fi |
9272 | ||
81ecdfbb | 9273 | |
0c24b341 NC |
9274 | fi |
9275 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9276 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9277 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9279 | $as_echo_n "checking for $ac_word... " >&6; } | |
9280 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9281 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9282 | else |
9283 | if test -n "$WINDMC"; then | |
9284 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9285 | else | |
9286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9287 | for as_dir in $PATH | |
9288 | do | |
9289 | IFS=$as_save_IFS | |
9290 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9291 | for ac_exec_ext in '' $ac_executable_extensions; do |
9292 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9293 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9295 | break 2 |
9296 | fi | |
9297 | done | |
81ecdfbb RW |
9298 | done |
9299 | IFS=$as_save_IFS | |
0c24b341 NC |
9300 | |
9301 | fi | |
9302 | fi | |
9303 | WINDMC=$ac_cv_prog_WINDMC | |
9304 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9306 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9307 | else |
81ecdfbb RW |
9308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9309 | $as_echo "no" >&6; } | |
0c24b341 NC |
9310 | fi |
9311 | ||
81ecdfbb | 9312 | |
0c24b341 NC |
9313 | fi |
9314 | test -n "$ac_cv_prog_WINDMC" && break | |
9315 | done | |
9316 | ||
9317 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9318 | set dummy windmc | |
9319 | if test $build = $host ; then | |
9320 | WINDMC="$2" | |
9321 | else | |
9322 | WINDMC="${ncn_tool_prefix}$2" | |
9323 | fi | |
9324 | fi | |
9325 | ||
9326 | ||
9327 | ||
9a819804 AO |
9328 | if test -n "$OBJCOPY"; then |
9329 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9330 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9331 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9332 | fi | |
9333 | ||
9334 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9335 | for ncn_progname in objcopy; do | |
9336 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9337 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9339 | $as_echo_n "checking for $ac_word... " >&6; } | |
9340 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9341 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9342 | else |
9343 | if test -n "$OBJCOPY"; then | |
9344 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9345 | else | |
9346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9347 | for as_dir in $PATH | |
9348 | do | |
9349 | IFS=$as_save_IFS | |
9350 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9351 | for ac_exec_ext in '' $ac_executable_extensions; do |
9352 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9353 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9355 | break 2 |
9356 | fi | |
9357 | done | |
81ecdfbb RW |
9358 | done |
9359 | IFS=$as_save_IFS | |
9a819804 AO |
9360 | |
9361 | fi | |
9362 | fi | |
9363 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9364 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9366 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9367 | else |
81ecdfbb RW |
9368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9369 | $as_echo "no" >&6; } | |
9a819804 AO |
9370 | fi |
9371 | ||
81ecdfbb | 9372 | |
9a819804 AO |
9373 | done |
9374 | fi | |
9375 | ||
9376 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9377 | if test -n "$ncn_tool_prefix"; then |
9378 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9379 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9381 | $as_echo_n "checking for $ac_word... " >&6; } | |
9382 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9383 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9384 | else |
9385 | if test -n "$OBJCOPY"; then | |
9386 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9387 | else | |
c6b750e1 DJ |
9388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9389 | for as_dir in $PATH | |
9390 | do | |
9391 | IFS=$as_save_IFS | |
9392 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9393 | for ac_exec_ext in '' $ac_executable_extensions; do |
9394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9395 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9397 | break 2 |
9398 | fi | |
9399 | done | |
81ecdfbb RW |
9400 | done |
9401 | IFS=$as_save_IFS | |
c6b750e1 | 9402 | |
859789af AC |
9403 | fi |
9404 | fi | |
c6b750e1 | 9405 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9406 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9408 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9409 | else |
81ecdfbb RW |
9410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9411 | $as_echo "no" >&6; } | |
859789af AC |
9412 | fi |
9413 | ||
81ecdfbb | 9414 | |
05cbd757 PB |
9415 | fi |
9416 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9417 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9418 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9420 | $as_echo_n "checking for $ac_word... " >&6; } | |
9421 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9422 | $as_echo_n "(cached) " >&6 | |
859789af | 9423 | else |
05cbd757 PB |
9424 | if test -n "$OBJCOPY"; then |
9425 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9426 | else |
c6b750e1 DJ |
9427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9428 | for as_dir in $PATH | |
9429 | do | |
9430 | IFS=$as_save_IFS | |
9431 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9432 | for ac_exec_ext in '' $ac_executable_extensions; do |
9433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9434 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9436 | break 2 |
9437 | fi | |
9438 | done | |
81ecdfbb RW |
9439 | done |
9440 | IFS=$as_save_IFS | |
c6b750e1 | 9441 | |
859789af AC |
9442 | fi |
9443 | fi | |
c6b750e1 | 9444 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9445 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9447 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9448 | else |
81ecdfbb RW |
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9450 | $as_echo "no" >&6; } | |
859789af | 9451 | fi |
c6b750e1 | 9452 | |
81ecdfbb | 9453 | |
05cbd757 PB |
9454 | fi |
9455 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9456 | done | |
9457 | ||
9458 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9459 | set dummy objcopy | |
9460 | if test $build = $host ; then | |
9461 | OBJCOPY="$2" | |
859789af | 9462 | else |
05cbd757 | 9463 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9464 | fi |
859789af AC |
9465 | fi |
9466 | ||
9a819804 AO |
9467 | |
9468 | ||
9469 | if test -n "$OBJDUMP"; then | |
9470 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9471 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9472 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9473 | fi | |
9474 | ||
9475 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9476 | for ncn_progname in objdump; do | |
9477 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9478 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9480 | $as_echo_n "checking for $ac_word... " >&6; } | |
9481 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9482 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9483 | else |
9484 | if test -n "$OBJDUMP"; then | |
9485 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9486 | else | |
9487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9488 | for as_dir in $PATH | |
9489 | do | |
9490 | IFS=$as_save_IFS | |
9491 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9492 | for ac_exec_ext in '' $ac_executable_extensions; do |
9493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9494 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9496 | break 2 |
9497 | fi | |
9498 | done | |
81ecdfbb RW |
9499 | done |
9500 | IFS=$as_save_IFS | |
9a819804 AO |
9501 | |
9502 | fi | |
9503 | fi | |
9504 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9505 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9507 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9508 | else |
81ecdfbb RW |
9509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9510 | $as_echo "no" >&6; } | |
9a819804 AO |
9511 | fi |
9512 | ||
81ecdfbb | 9513 | |
9a819804 AO |
9514 | done |
9515 | fi | |
9516 | ||
9517 | for ncn_progname in objdump; do | |
05cbd757 PB |
9518 | if test -n "$ncn_tool_prefix"; then |
9519 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9520 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9522 | $as_echo_n "checking for $ac_word... " >&6; } | |
9523 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9524 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9525 | else |
9526 | if test -n "$OBJDUMP"; then | |
9527 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9528 | else | |
c6b750e1 DJ |
9529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9530 | for as_dir in $PATH | |
9531 | do | |
9532 | IFS=$as_save_IFS | |
9533 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9534 | for ac_exec_ext in '' $ac_executable_extensions; do |
9535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9536 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9538 | break 2 |
9539 | fi | |
9540 | done | |
81ecdfbb RW |
9541 | done |
9542 | IFS=$as_save_IFS | |
c6b750e1 | 9543 | |
859789af AC |
9544 | fi |
9545 | fi | |
c6b750e1 | 9546 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9547 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9549 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9550 | else |
81ecdfbb RW |
9551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9552 | $as_echo "no" >&6; } | |
859789af AC |
9553 | fi |
9554 | ||
81ecdfbb | 9555 | |
05cbd757 PB |
9556 | fi |
9557 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9558 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9559 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9561 | $as_echo_n "checking for $ac_word... " >&6; } | |
9562 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9563 | $as_echo_n "(cached) " >&6 | |
859789af | 9564 | else |
05cbd757 PB |
9565 | if test -n "$OBJDUMP"; then |
9566 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9567 | else |
c6b750e1 DJ |
9568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9569 | for as_dir in $PATH | |
9570 | do | |
9571 | IFS=$as_save_IFS | |
9572 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9573 | for ac_exec_ext in '' $ac_executable_extensions; do |
9574 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9575 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9576 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9577 | break 2 |
9578 | fi | |
9579 | done | |
81ecdfbb RW |
9580 | done |
9581 | IFS=$as_save_IFS | |
c6b750e1 | 9582 | |
859789af AC |
9583 | fi |
9584 | fi | |
c6b750e1 | 9585 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9586 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9588 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9589 | else |
81ecdfbb RW |
9590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9591 | $as_echo "no" >&6; } | |
859789af | 9592 | fi |
c6b750e1 | 9593 | |
81ecdfbb | 9594 | |
05cbd757 PB |
9595 | fi |
9596 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9597 | done | |
9598 | ||
9599 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9600 | set dummy objdump | |
9601 | if test $build = $host ; then | |
9602 | OBJDUMP="$2" | |
859789af | 9603 | else |
05cbd757 | 9604 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9605 | fi |
859789af AC |
9606 | fi |
9607 | ||
a0da8069 NN |
9608 | |
9609 | ||
9610 | ||
9611 | ||
9612 | ||
be01d343 | 9613 | # Target tools. |
c6b750e1 | 9614 | |
81ecdfbb RW |
9615 | # Check whether --with-build-time-tools was given. |
9616 | if test "${with_build_time_tools+set}" = set; then : | |
9617 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9618 | x/*) ;; |
9619 | *) | |
9620 | with_build_time_tools= | |
81ecdfbb RW |
9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9622 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9623 | ;; |
9624 | esac | |
859789af | 9625 | else |
2429c060 | 9626 | with_build_time_tools= |
81ecdfbb RW |
9627 | fi |
9628 | ||
859789af | 9629 | |
9a819804 AO |
9630 | |
9631 | ||
9632 | if test -n "$CC_FOR_TARGET"; then | |
9633 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9634 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9635 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9636 | fi | |
9637 | ||
9638 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9639 | for ncn_progname in cc gcc; do | |
9640 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9641 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9643 | $as_echo_n "checking for $ac_word... " >&6; } | |
9644 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9645 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9646 | else |
9647 | if test -n "$CC_FOR_TARGET"; then | |
9648 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9649 | else | |
9650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9651 | for as_dir in $PATH | |
9652 | do | |
9653 | IFS=$as_save_IFS | |
9654 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9655 | for ac_exec_ext in '' $ac_executable_extensions; do |
9656 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9657 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9658 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9659 | break 2 |
9660 | fi | |
9661 | done | |
81ecdfbb RW |
9662 | done |
9663 | IFS=$as_save_IFS | |
9a819804 AO |
9664 | |
9665 | fi | |
9666 | fi | |
9667 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9668 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9670 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9671 | else |
81ecdfbb RW |
9672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9673 | $as_echo "no" >&6; } | |
9a819804 AO |
9674 | fi |
9675 | ||
81ecdfbb | 9676 | |
9a819804 AO |
9677 | done |
9678 | fi | |
9679 | ||
9680 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9681 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9683 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9684 | if test -x $with_build_time_tools/${ncn_progname}; then |
9685 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9687 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9688 | break |
2429c060 | 9689 | else |
81ecdfbb RW |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9691 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9692 | fi |
9693 | done | |
55db4b87 PB |
9694 | fi |
9695 | ||
2429c060 PB |
9696 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9697 | for ncn_progname in cc gcc; do | |
9698 | if test -n "$ncn_target_tool_prefix"; then | |
9699 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9700 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9702 | $as_echo_n "checking for $ac_word... " >&6; } | |
9703 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9704 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9705 | else |
9706 | if test -n "$CC_FOR_TARGET"; then | |
9707 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9708 | else | |
c6b750e1 DJ |
9709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9710 | for as_dir in $PATH | |
9711 | do | |
9712 | IFS=$as_save_IFS | |
9713 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9714 | for ac_exec_ext in '' $ac_executable_extensions; do |
9715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9716 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9718 | break 2 |
9719 | fi | |
9720 | done | |
81ecdfbb RW |
9721 | done |
9722 | IFS=$as_save_IFS | |
c6b750e1 | 9723 | |
55db4b87 PB |
9724 | fi |
9725 | fi | |
c6b750e1 | 9726 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9727 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9729 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9730 | else |
81ecdfbb RW |
9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9732 | $as_echo "no" >&6; } | |
55db4b87 PB |
9733 | fi |
9734 | ||
81ecdfbb | 9735 | |
2429c060 PB |
9736 | fi |
9737 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9738 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9739 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9741 | $as_echo_n "checking for $ac_word... " >&6; } | |
9742 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9743 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9744 | else |
05cbd757 PB |
9745 | if test -n "$CC_FOR_TARGET"; then |
9746 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9747 | else |
c6b750e1 DJ |
9748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9749 | for as_dir in $PATH | |
9750 | do | |
9751 | IFS=$as_save_IFS | |
9752 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9753 | for ac_exec_ext in '' $ac_executable_extensions; do |
9754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9755 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9757 | break 2 |
9758 | fi | |
9759 | done | |
81ecdfbb RW |
9760 | done |
9761 | IFS=$as_save_IFS | |
c6b750e1 | 9762 | |
55db4b87 PB |
9763 | fi |
9764 | fi | |
c6b750e1 | 9765 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 9766 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9768 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9769 | else |
81ecdfbb RW |
9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9771 | $as_echo "no" >&6; } | |
55db4b87 | 9772 | fi |
c6b750e1 | 9773 | |
81ecdfbb | 9774 | |
2429c060 PB |
9775 | fi |
9776 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9777 | done | |
9778 | fi | |
c6b750e1 | 9779 | |
05cbd757 PB |
9780 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9781 | set dummy cc gcc | |
9782 | if test $build = $target ; then | |
9783 | CC_FOR_TARGET="$2" | |
55db4b87 | 9784 | else |
05cbd757 | 9785 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9786 | fi |
d3f5afc4 MS |
9787 | else |
9788 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
9789 | fi |
9790 | ||
9a819804 AO |
9791 | |
9792 | ||
9793 | if test -n "$CXX_FOR_TARGET"; then | |
9794 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9795 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9796 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9797 | fi | |
9798 | ||
9799 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9800 | for ncn_progname in c++ g++ cxx gxx; do | |
9801 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9802 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9804 | $as_echo_n "checking for $ac_word... " >&6; } | |
9805 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9806 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9807 | else |
9808 | if test -n "$CXX_FOR_TARGET"; then | |
9809 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9810 | else | |
9811 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9812 | for as_dir in $PATH | |
9813 | do | |
9814 | IFS=$as_save_IFS | |
9815 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9816 | for ac_exec_ext in '' $ac_executable_extensions; do |
9817 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9818 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9819 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9820 | break 2 |
9821 | fi | |
9822 | done | |
81ecdfbb RW |
9823 | done |
9824 | IFS=$as_save_IFS | |
9a819804 AO |
9825 | |
9826 | fi | |
9827 | fi | |
9828 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9829 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
9830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9831 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 9832 | else |
81ecdfbb RW |
9833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9834 | $as_echo "no" >&6; } | |
9a819804 AO |
9835 | fi |
9836 | ||
81ecdfbb | 9837 | |
9a819804 AO |
9838 | done |
9839 | fi | |
9840 | ||
9841 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9842 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9844 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9845 | if test -x $with_build_time_tools/${ncn_progname}; then |
9846 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9848 | $as_echo "yes" >&6; } | |
2429c060 PB |
9849 | break |
9850 | else | |
81ecdfbb RW |
9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9852 | $as_echo "no" >&6; } | |
2429c060 PB |
9853 | fi |
9854 | done | |
9855 | fi | |
9856 | ||
9857 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9858 | for ncn_progname in c++ g++ cxx gxx; do | |
9859 | if test -n "$ncn_target_tool_prefix"; then | |
9860 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9861 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9863 | $as_echo_n "checking for $ac_word... " >&6; } | |
9864 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9865 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9866 | else |
9867 | if test -n "$CXX_FOR_TARGET"; then | |
9868 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9869 | else | |
c6b750e1 DJ |
9870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9871 | for as_dir in $PATH | |
9872 | do | |
9873 | IFS=$as_save_IFS | |
9874 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9875 | for ac_exec_ext in '' $ac_executable_extensions; do |
9876 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9877 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9879 | break 2 |
9880 | fi | |
9881 | done | |
81ecdfbb RW |
9882 | done |
9883 | IFS=$as_save_IFS | |
c6b750e1 | 9884 | |
55db4b87 PB |
9885 | fi |
9886 | fi | |
c6b750e1 | 9887 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 9888 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9890 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9891 | else |
81ecdfbb RW |
9892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9893 | $as_echo "no" >&6; } | |
55db4b87 PB |
9894 | fi |
9895 | ||
81ecdfbb | 9896 | |
2429c060 PB |
9897 | fi |
9898 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9899 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9900 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9902 | $as_echo_n "checking for $ac_word... " >&6; } | |
9903 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9904 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9905 | else |
05cbd757 PB |
9906 | if test -n "$CXX_FOR_TARGET"; then |
9907 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9908 | else |
c6b750e1 DJ |
9909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9910 | for as_dir in $PATH | |
9911 | do | |
9912 | IFS=$as_save_IFS | |
9913 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9914 | for ac_exec_ext in '' $ac_executable_extensions; do |
9915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9916 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9918 | break 2 |
9919 | fi | |
9920 | done | |
81ecdfbb RW |
9921 | done |
9922 | IFS=$as_save_IFS | |
c6b750e1 | 9923 | |
55db4b87 PB |
9924 | fi |
9925 | fi | |
c6b750e1 | 9926 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 9927 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9929 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9930 | else |
81ecdfbb RW |
9931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9932 | $as_echo "no" >&6; } | |
55db4b87 | 9933 | fi |
c6b750e1 | 9934 | |
81ecdfbb | 9935 | |
2429c060 PB |
9936 | fi |
9937 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9938 | done | |
9939 | fi | |
c6b750e1 | 9940 | |
05cbd757 PB |
9941 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9942 | set dummy c++ g++ cxx gxx | |
9943 | if test $build = $target ; then | |
9944 | CXX_FOR_TARGET="$2" | |
55db4b87 | 9945 | else |
05cbd757 | 9946 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9947 | fi |
d3f5afc4 MS |
9948 | else |
9949 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
9950 | fi |
9951 | ||
9a819804 AO |
9952 | |
9953 | ||
9954 | if test -n "$GCC_FOR_TARGET"; then | |
9955 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9956 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9957 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9958 | fi | |
9959 | ||
9960 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9961 | for ncn_progname in gcc; do | |
9962 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9963 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9965 | $as_echo_n "checking for $ac_word... " >&6; } | |
9966 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9967 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9968 | else |
9969 | if test -n "$GCC_FOR_TARGET"; then | |
9970 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9971 | else | |
9972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9973 | for as_dir in $PATH | |
9974 | do | |
9975 | IFS=$as_save_IFS | |
9976 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9977 | for ac_exec_ext in '' $ac_executable_extensions; do |
9978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9979 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9981 | break 2 |
9982 | fi | |
9983 | done | |
81ecdfbb RW |
9984 | done |
9985 | IFS=$as_save_IFS | |
9a819804 AO |
9986 | |
9987 | fi | |
9988 | fi | |
9989 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9990 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
9991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9992 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 9993 | else |
81ecdfbb RW |
9994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9995 | $as_echo "no" >&6; } | |
9a819804 AO |
9996 | fi |
9997 | ||
81ecdfbb | 9998 | |
9a819804 AO |
9999 | done |
10000 | fi | |
10001 | ||
10002 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10003 | for ncn_progname in gcc; do |
81ecdfbb RW |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10005 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10006 | if test -x $with_build_time_tools/${ncn_progname}; then |
10007 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10009 | $as_echo "yes" >&6; } | |
2429c060 PB |
10010 | break |
10011 | else | |
81ecdfbb RW |
10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10013 | $as_echo "no" >&6; } | |
2429c060 PB |
10014 | fi |
10015 | done | |
10016 | fi | |
10017 | ||
10018 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10019 | for ncn_progname in gcc; do | |
10020 | if test -n "$ncn_target_tool_prefix"; then | |
10021 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10022 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10024 | $as_echo_n "checking for $ac_word... " >&6; } | |
10025 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10026 | $as_echo_n "(cached) " >&6 | |
859789af | 10027 | else |
2429c060 PB |
10028 | if test -n "$GCC_FOR_TARGET"; then |
10029 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10030 | else |
c6b750e1 DJ |
10031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10032 | for as_dir in $PATH | |
10033 | do | |
10034 | IFS=$as_save_IFS | |
10035 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10036 | for ac_exec_ext in '' $ac_executable_extensions; do |
10037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10038 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10040 | break 2 |
10041 | fi | |
10042 | done | |
81ecdfbb RW |
10043 | done |
10044 | IFS=$as_save_IFS | |
c6b750e1 | 10045 | |
55db4b87 PB |
10046 | fi |
10047 | fi | |
c6b750e1 | 10048 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10049 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10051 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10052 | else |
81ecdfbb RW |
10053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10054 | $as_echo "no" >&6; } | |
55db4b87 PB |
10055 | fi |
10056 | ||
81ecdfbb | 10057 | |
2429c060 PB |
10058 | fi |
10059 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10061 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10063 | $as_echo_n "checking for $ac_word... " >&6; } | |
10064 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10065 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10066 | else |
05cbd757 PB |
10067 | if test -n "$GCC_FOR_TARGET"; then |
10068 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10069 | else |
c6b750e1 DJ |
10070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10071 | for as_dir in $PATH | |
10072 | do | |
10073 | IFS=$as_save_IFS | |
10074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10075 | for ac_exec_ext in '' $ac_executable_extensions; do |
10076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10077 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10079 | break 2 |
10080 | fi | |
10081 | done | |
81ecdfbb RW |
10082 | done |
10083 | IFS=$as_save_IFS | |
c6b750e1 | 10084 | |
55db4b87 PB |
10085 | fi |
10086 | fi | |
c6b750e1 | 10087 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10088 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10090 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10091 | else |
81ecdfbb RW |
10092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10093 | $as_echo "no" >&6; } | |
55db4b87 | 10094 | fi |
c6b750e1 | 10095 | |
81ecdfbb | 10096 | |
2429c060 PB |
10097 | fi |
10098 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10099 | done | |
10100 | fi | |
c6b750e1 | 10101 | |
05cbd757 PB |
10102 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10103 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10104 | else |
10105 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10106 | fi |
10107 | ||
9a819804 AO |
10108 | |
10109 | ||
10110 | if test -n "$GCJ_FOR_TARGET"; then | |
10111 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10112 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10113 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10114 | fi | |
10115 | ||
10116 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10117 | for ncn_progname in gcj; do | |
10118 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10119 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10121 | $as_echo_n "checking for $ac_word... " >&6; } | |
10122 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10123 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10124 | else |
10125 | if test -n "$GCJ_FOR_TARGET"; then | |
10126 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10127 | else | |
10128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10129 | for as_dir in $PATH | |
10130 | do | |
10131 | IFS=$as_save_IFS | |
10132 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10133 | for ac_exec_ext in '' $ac_executable_extensions; do |
10134 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10135 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10137 | break 2 |
10138 | fi | |
10139 | done | |
81ecdfbb RW |
10140 | done |
10141 | IFS=$as_save_IFS | |
9a819804 AO |
10142 | |
10143 | fi | |
10144 | fi | |
10145 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10146 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10148 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10149 | else |
81ecdfbb RW |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10151 | $as_echo "no" >&6; } | |
9a819804 AO |
10152 | fi |
10153 | ||
81ecdfbb | 10154 | |
9a819804 AO |
10155 | done |
10156 | fi | |
10157 | ||
10158 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10159 | for ncn_progname in gcj; do |
81ecdfbb RW |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10161 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10162 | if test -x $with_build_time_tools/${ncn_progname}; then |
10163 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10165 | $as_echo "yes" >&6; } | |
2429c060 PB |
10166 | break |
10167 | else | |
81ecdfbb RW |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10169 | $as_echo "no" >&6; } | |
2429c060 PB |
10170 | fi |
10171 | done | |
10172 | fi | |
10173 | ||
10174 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10175 | for ncn_progname in gcj; do | |
10176 | if test -n "$ncn_target_tool_prefix"; then | |
10177 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10178 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10180 | $as_echo_n "checking for $ac_word... " >&6; } | |
10181 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10182 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10183 | else |
10184 | if test -n "$GCJ_FOR_TARGET"; then | |
10185 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10186 | else | |
c6b750e1 DJ |
10187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10188 | for as_dir in $PATH | |
10189 | do | |
10190 | IFS=$as_save_IFS | |
10191 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10192 | for ac_exec_ext in '' $ac_executable_extensions; do |
10193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10194 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10195 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10196 | break 2 |
10197 | fi | |
10198 | done | |
81ecdfbb RW |
10199 | done |
10200 | IFS=$as_save_IFS | |
c6b750e1 | 10201 | |
55db4b87 PB |
10202 | fi |
10203 | fi | |
9a819804 AO |
10204 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10205 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10207 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10208 | else |
81ecdfbb RW |
10209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10210 | $as_echo "no" >&6; } | |
9a819804 AO |
10211 | fi |
10212 | ||
81ecdfbb | 10213 | |
9a819804 AO |
10214 | fi |
10215 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10216 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10217 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10219 | $as_echo_n "checking for $ac_word... " >&6; } | |
10220 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10221 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10222 | else |
10223 | if test -n "$GCJ_FOR_TARGET"; then | |
10224 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10225 | else | |
10226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10227 | for as_dir in $PATH | |
10228 | do | |
10229 | IFS=$as_save_IFS | |
10230 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10231 | for ac_exec_ext in '' $ac_executable_extensions; do |
10232 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10233 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10235 | break 2 |
10236 | fi | |
10237 | done | |
81ecdfbb RW |
10238 | done |
10239 | IFS=$as_save_IFS | |
9a819804 AO |
10240 | |
10241 | fi | |
10242 | fi | |
10243 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10244 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10246 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10247 | else |
81ecdfbb RW |
10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10249 | $as_echo "no" >&6; } | |
9a819804 AO |
10250 | fi |
10251 | ||
81ecdfbb | 10252 | |
9a819804 AO |
10253 | fi |
10254 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10255 | done | |
10256 | fi | |
10257 | ||
10258 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10259 | set dummy gcj | |
10260 | if test $build = $target ; then | |
10261 | GCJ_FOR_TARGET="$2" | |
10262 | else | |
10263 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10264 | fi | |
d3f5afc4 MS |
10265 | else |
10266 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10267 | fi |
10268 | ||
10269 | ||
10270 | ||
10271 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10272 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10273 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10274 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10275 | fi |
10276 | ||
9a819804 AO |
10277 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10278 | for ncn_progname in gfortran; do | |
10279 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10280 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10282 | $as_echo_n "checking for $ac_word... " >&6; } | |
10283 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10284 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10285 | else |
9a819804 AO |
10286 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10287 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10288 | else |
c6b750e1 DJ |
10289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10290 | for as_dir in $PATH | |
10291 | do | |
10292 | IFS=$as_save_IFS | |
10293 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10294 | for ac_exec_ext in '' $ac_executable_extensions; do |
10295 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10296 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10297 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10298 | break 2 |
10299 | fi | |
10300 | done | |
81ecdfbb RW |
10301 | done |
10302 | IFS=$as_save_IFS | |
c6b750e1 | 10303 | |
55db4b87 PB |
10304 | fi |
10305 | fi | |
9a819804 AO |
10306 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10307 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10309 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10310 | else |
81ecdfbb RW |
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10312 | $as_echo "no" >&6; } | |
55db4b87 | 10313 | fi |
c6b750e1 | 10314 | |
81ecdfbb | 10315 | |
2429c060 PB |
10316 | done |
10317 | fi | |
c6b750e1 | 10318 | |
9a819804 | 10319 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10320 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10322 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10323 | if test -x $with_build_time_tools/${ncn_progname}; then |
10324 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10326 | $as_echo "yes" >&6; } | |
2429c060 PB |
10327 | break |
10328 | else | |
81ecdfbb RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10330 | $as_echo "no" >&6; } | |
2429c060 PB |
10331 | fi |
10332 | done | |
10333 | fi | |
10334 | ||
10335 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10336 | for ncn_progname in gfortran; do | |
10337 | if test -n "$ncn_target_tool_prefix"; then | |
10338 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10339 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10341 | $as_echo_n "checking for $ac_word... " >&6; } | |
10342 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10343 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10344 | else |
10345 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10346 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10347 | else | |
c6b750e1 DJ |
10348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10349 | for as_dir in $PATH | |
10350 | do | |
10351 | IFS=$as_save_IFS | |
10352 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10353 | for ac_exec_ext in '' $ac_executable_extensions; do |
10354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10355 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10357 | break 2 |
10358 | fi | |
10359 | done | |
81ecdfbb RW |
10360 | done |
10361 | IFS=$as_save_IFS | |
c6b750e1 | 10362 | |
55db4b87 PB |
10363 | fi |
10364 | fi | |
c6b750e1 | 10365 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10366 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10368 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10369 | else |
81ecdfbb RW |
10370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10371 | $as_echo "no" >&6; } | |
55db4b87 PB |
10372 | fi |
10373 | ||
81ecdfbb | 10374 | |
2429c060 PB |
10375 | fi |
10376 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10377 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10378 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10380 | $as_echo_n "checking for $ac_word... " >&6; } | |
10381 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10382 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10383 | else |
05cbd757 | 10384 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10385 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10386 | else | |
10387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10388 | for as_dir in $PATH | |
10389 | do | |
10390 | IFS=$as_save_IFS | |
10391 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10392 | for ac_exec_ext in '' $ac_executable_extensions; do |
10393 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10394 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10395 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10396 | break 2 |
10397 | fi | |
10398 | done | |
81ecdfbb RW |
10399 | done |
10400 | IFS=$as_save_IFS | |
c6b750e1 | 10401 | |
55db4b87 PB |
10402 | fi |
10403 | fi | |
c6b750e1 | 10404 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10405 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10407 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10408 | else |
81ecdfbb RW |
10409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10410 | $as_echo "no" >&6; } | |
55db4b87 | 10411 | fi |
c6b750e1 | 10412 | |
81ecdfbb | 10413 | |
2429c060 PB |
10414 | fi |
10415 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10416 | done | |
10417 | fi | |
c6b750e1 | 10418 | |
05cbd757 PB |
10419 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10420 | set dummy gfortran | |
10421 | if test $build = $target ; then | |
10422 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10423 | else |
05cbd757 | 10424 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10425 | fi |
d3f5afc4 MS |
10426 | else |
10427 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10428 | fi |
10429 | ||
2429c060 PB |
10430 | |
10431 | ||
e552509b ILT |
10432 | if test -n "$GOC_FOR_TARGET"; then |
10433 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10434 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10435 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10436 | fi | |
10437 | ||
10438 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10439 | for ncn_progname in gccgo; do | |
10440 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10441 | set dummy ${ncn_progname}; ac_word=$2 | |
10442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10443 | $as_echo_n "checking for $ac_word... " >&6; } | |
10444 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10445 | $as_echo_n "(cached) " >&6 | |
10446 | else | |
10447 | if test -n "$GOC_FOR_TARGET"; then | |
10448 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10449 | else | |
10450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10451 | for as_dir in $PATH | |
10452 | do | |
10453 | IFS=$as_save_IFS | |
10454 | test -z "$as_dir" && as_dir=. | |
10455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10457 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10459 | break 2 | |
10460 | fi | |
10461 | done | |
10462 | done | |
10463 | IFS=$as_save_IFS | |
10464 | ||
10465 | fi | |
10466 | fi | |
10467 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10468 | if test -n "$GOC_FOR_TARGET"; then | |
10469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10470 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10471 | else | |
10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10473 | $as_echo "no" >&6; } | |
10474 | fi | |
10475 | ||
10476 | ||
10477 | done | |
10478 | fi | |
10479 | ||
10480 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10481 | for ncn_progname in gccgo; do | |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10483 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10484 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10485 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10487 | $as_echo "yes" >&6; } | |
10488 | break | |
10489 | else | |
10490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10491 | $as_echo "no" >&6; } | |
10492 | fi | |
10493 | done | |
10494 | fi | |
10495 | ||
10496 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10497 | for ncn_progname in gccgo; do | |
10498 | if test -n "$ncn_target_tool_prefix"; then | |
10499 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10500 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10502 | $as_echo_n "checking for $ac_word... " >&6; } | |
10503 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10504 | $as_echo_n "(cached) " >&6 | |
10505 | else | |
10506 | if test -n "$GOC_FOR_TARGET"; then | |
10507 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10508 | else | |
10509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10510 | for as_dir in $PATH | |
10511 | do | |
10512 | IFS=$as_save_IFS | |
10513 | test -z "$as_dir" && as_dir=. | |
10514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10516 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10518 | break 2 | |
10519 | fi | |
10520 | done | |
10521 | done | |
10522 | IFS=$as_save_IFS | |
10523 | ||
10524 | fi | |
10525 | fi | |
10526 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10527 | if test -n "$GOC_FOR_TARGET"; then | |
10528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10529 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10530 | else | |
10531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10532 | $as_echo "no" >&6; } | |
10533 | fi | |
10534 | ||
10535 | ||
10536 | fi | |
10537 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10538 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10539 | set dummy ${ncn_progname}; ac_word=$2 | |
10540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10541 | $as_echo_n "checking for $ac_word... " >&6; } | |
10542 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10543 | $as_echo_n "(cached) " >&6 | |
10544 | else | |
10545 | if test -n "$GOC_FOR_TARGET"; then | |
10546 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10547 | else | |
10548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10549 | for as_dir in $PATH | |
10550 | do | |
10551 | IFS=$as_save_IFS | |
10552 | test -z "$as_dir" && as_dir=. | |
10553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10555 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10557 | break 2 | |
10558 | fi | |
10559 | done | |
10560 | done | |
10561 | IFS=$as_save_IFS | |
10562 | ||
10563 | fi | |
10564 | fi | |
10565 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10566 | if test -n "$GOC_FOR_TARGET"; then | |
10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10568 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10569 | else | |
10570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10571 | $as_echo "no" >&6; } | |
10572 | fi | |
10573 | ||
10574 | ||
10575 | fi | |
10576 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10577 | done | |
10578 | fi | |
10579 | ||
10580 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10581 | set dummy gccgo | |
10582 | if test $build = $target ; then | |
10583 | GOC_FOR_TARGET="$2" | |
10584 | else | |
10585 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10586 | fi | |
10587 | else | |
10588 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10589 | fi | |
10590 | ||
10591 | ||
10592 | ||
2429c060 PB |
10593 | cat > conftest.c << \EOF |
10594 | #ifdef __GNUC__ | |
10595 | gcc_yay; | |
10596 | #endif | |
10597 | EOF | |
10598 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10599 | have_gcc_for_target=yes | |
859789af | 10600 | else |
2429c060 PB |
10601 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10602 | have_gcc_for_target=no | |
859789af | 10603 | fi |
2429c060 PB |
10604 | rm conftest.c |
10605 | ||
10606 | ||
10607 | ||
859789af | 10608 | |
2429c060 PB |
10609 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10610 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10612 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10613 | if test -x $with_build_time_tools/ar; then |
10614 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10615 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10617 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10618 | else |
81ecdfbb RW |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10620 | $as_echo "no" >&6; } | |
3a35eeb3 | 10621 | fi |
2429c060 PB |
10622 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10623 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10624 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10625 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10626 | fi |
2429c060 | 10627 | fi |
c6b750e1 | 10628 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10629 | # Extract the first word of "ar", so it can be a program name with args. |
10630 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10632 | $as_echo_n "checking for $ac_word... " >&6; } | |
10633 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10634 | $as_echo_n "(cached) " >&6 | |
859789af | 10635 | else |
c6b750e1 DJ |
10636 | case $AR_FOR_TARGET in |
10637 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10638 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10639 | ;; | |
2429c060 | 10640 | *) |
c6b750e1 DJ |
10641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10642 | for as_dir in $gcc_cv_tool_dirs | |
10643 | do | |
10644 | IFS=$as_save_IFS | |
10645 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10646 | for ac_exec_ext in '' $ac_executable_extensions; do |
10647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10648 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10650 | break 2 |
10651 | fi | |
10652 | done | |
81ecdfbb RW |
10653 | done |
10654 | IFS=$as_save_IFS | |
c6b750e1 | 10655 | |
2429c060 PB |
10656 | ;; |
10657 | esac | |
859789af | 10658 | fi |
c6b750e1 | 10659 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10660 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10662 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10663 | else |
81ecdfbb RW |
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10665 | $as_echo "no" >&6; } | |
859789af | 10666 | fi |
05cbd757 | 10667 | |
81ecdfbb | 10668 | |
2429c060 PB |
10669 | fi |
10670 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10671 | |
10672 | ||
10673 | if test -n "$AR_FOR_TARGET"; then | |
10674 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10675 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10676 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10677 | fi | |
10678 | ||
10679 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10680 | for ncn_progname in ar; do | |
10681 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10682 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10684 | $as_echo_n "checking for $ac_word... " >&6; } | |
10685 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10686 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10687 | else |
10688 | if test -n "$AR_FOR_TARGET"; then | |
10689 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10690 | else | |
10691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10692 | for as_dir in $PATH | |
10693 | do | |
10694 | IFS=$as_save_IFS | |
10695 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10696 | for ac_exec_ext in '' $ac_executable_extensions; do |
10697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10698 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10700 | break 2 |
10701 | fi | |
10702 | done | |
81ecdfbb RW |
10703 | done |
10704 | IFS=$as_save_IFS | |
9a819804 AO |
10705 | |
10706 | fi | |
10707 | fi | |
10708 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10709 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10711 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10712 | else |
81ecdfbb RW |
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10714 | $as_echo "no" >&6; } | |
9a819804 AO |
10715 | fi |
10716 | ||
81ecdfbb | 10717 | |
9a819804 AO |
10718 | done |
10719 | fi | |
10720 | ||
10721 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10722 | for ncn_progname in ar; do |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10724 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10725 | if test -x $with_build_time_tools/${ncn_progname}; then |
10726 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10728 | $as_echo "yes" >&6; } | |
2429c060 PB |
10729 | break |
10730 | else | |
81ecdfbb RW |
10731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10732 | $as_echo "no" >&6; } | |
2429c060 PB |
10733 | fi |
10734 | done | |
859789af AC |
10735 | fi |
10736 | ||
2429c060 PB |
10737 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10738 | for ncn_progname in ar; do | |
10739 | if test -n "$ncn_target_tool_prefix"; then | |
10740 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10741 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10743 | $as_echo_n "checking for $ac_word... " >&6; } | |
10744 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10745 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10746 | else |
2429c060 PB |
10747 | if test -n "$AR_FOR_TARGET"; then |
10748 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10749 | else |
c6b750e1 DJ |
10750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10751 | for as_dir in $PATH | |
10752 | do | |
10753 | IFS=$as_save_IFS | |
10754 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10755 | for ac_exec_ext in '' $ac_executable_extensions; do |
10756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10757 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10758 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10759 | break 2 |
10760 | fi | |
10761 | done | |
81ecdfbb RW |
10762 | done |
10763 | IFS=$as_save_IFS | |
c6b750e1 | 10764 | |
7e0f7140 GK |
10765 | fi |
10766 | fi | |
c6b750e1 | 10767 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10768 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10770 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10771 | else |
81ecdfbb RW |
10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10773 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10774 | fi |
10775 | ||
81ecdfbb | 10776 | |
2429c060 PB |
10777 | fi |
10778 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10779 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10780 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10782 | $as_echo_n "checking for $ac_word... " >&6; } | |
10783 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10784 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10785 | else |
2429c060 PB |
10786 | if test -n "$AR_FOR_TARGET"; then |
10787 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10788 | else |
c6b750e1 DJ |
10789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10790 | for as_dir in $PATH | |
10791 | do | |
10792 | IFS=$as_save_IFS | |
10793 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10794 | for ac_exec_ext in '' $ac_executable_extensions; do |
10795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10796 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10798 | break 2 |
10799 | fi | |
10800 | done | |
81ecdfbb RW |
10801 | done |
10802 | IFS=$as_save_IFS | |
c6b750e1 | 10803 | |
7e0f7140 GK |
10804 | fi |
10805 | fi | |
c6b750e1 | 10806 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10807 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10809 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10810 | else |
81ecdfbb RW |
10811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10812 | $as_echo "no" >&6; } | |
7e0f7140 | 10813 | fi |
c6b750e1 | 10814 | |
81ecdfbb | 10815 | |
2429c060 PB |
10816 | fi |
10817 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10818 | done | |
10819 | fi | |
c6b750e1 | 10820 | |
2429c060 PB |
10821 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10822 | set dummy ar | |
7e0f7140 | 10823 | if test $build = $target ; then |
2429c060 | 10824 | AR_FOR_TARGET="$2" |
7e0f7140 | 10825 | else |
2429c060 | 10826 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10827 | fi |
d3f5afc4 MS |
10828 | else |
10829 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10830 | fi |
10831 | ||
3a35eeb3 PB |
10832 | else |
10833 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10834 | fi |
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10840 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10842 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10843 | if test -x $with_build_time_tools/as; then |
10844 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10845 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10847 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10848 | else |
81ecdfbb RW |
10849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10850 | $as_echo "no" >&6; } | |
3a35eeb3 | 10851 | fi |
2429c060 PB |
10852 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10853 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10854 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10855 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10856 | fi |
10857 | fi | |
c6b750e1 | 10858 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10859 | # Extract the first word of "as", so it can be a program name with args. |
10860 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10862 | $as_echo_n "checking for $ac_word... " >&6; } | |
10863 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10864 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10865 | else |
c6b750e1 DJ |
10866 | case $AS_FOR_TARGET in |
10867 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10868 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10869 | ;; | |
2429c060 | 10870 | *) |
c6b750e1 DJ |
10871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10872 | for as_dir in $gcc_cv_tool_dirs | |
10873 | do | |
10874 | IFS=$as_save_IFS | |
10875 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10876 | for ac_exec_ext in '' $ac_executable_extensions; do |
10877 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10878 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10879 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10880 | break 2 |
10881 | fi | |
10882 | done | |
81ecdfbb RW |
10883 | done |
10884 | IFS=$as_save_IFS | |
c6b750e1 | 10885 | |
2429c060 PB |
10886 | ;; |
10887 | esac | |
10888 | fi | |
c6b750e1 | 10889 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10890 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10892 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10893 | else |
81ecdfbb RW |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10895 | $as_echo "no" >&6; } | |
2429c060 PB |
10896 | fi |
10897 | ||
81ecdfbb | 10898 | |
2429c060 PB |
10899 | fi |
10900 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
10901 | |
10902 | ||
10903 | if test -n "$AS_FOR_TARGET"; then | |
10904 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10905 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10906 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10907 | fi | |
10908 | ||
10909 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10910 | for ncn_progname in as; do | |
10911 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10912 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10914 | $as_echo_n "checking for $ac_word... " >&6; } | |
10915 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10916 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10917 | else |
10918 | if test -n "$AS_FOR_TARGET"; then | |
10919 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10920 | else | |
10921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10922 | for as_dir in $PATH | |
10923 | do | |
10924 | IFS=$as_save_IFS | |
10925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10926 | for ac_exec_ext in '' $ac_executable_extensions; do |
10927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10928 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10930 | break 2 |
10931 | fi | |
10932 | done | |
81ecdfbb RW |
10933 | done |
10934 | IFS=$as_save_IFS | |
9a819804 AO |
10935 | |
10936 | fi | |
10937 | fi | |
10938 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10939 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
10940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10941 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 10942 | else |
81ecdfbb RW |
10943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10944 | $as_echo "no" >&6; } | |
9a819804 AO |
10945 | fi |
10946 | ||
81ecdfbb | 10947 | |
9a819804 AO |
10948 | done |
10949 | fi | |
10950 | ||
10951 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10952 | for ncn_progname in as; do |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10954 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10955 | if test -x $with_build_time_tools/${ncn_progname}; then |
10956 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10958 | $as_echo "yes" >&6; } | |
2429c060 PB |
10959 | break |
10960 | else | |
81ecdfbb RW |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10962 | $as_echo "no" >&6; } | |
2429c060 PB |
10963 | fi |
10964 | done | |
10965 | fi | |
10966 | ||
10967 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10968 | for ncn_progname in as; do | |
10969 | if test -n "$ncn_target_tool_prefix"; then | |
10970 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10971 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10973 | $as_echo_n "checking for $ac_word... " >&6; } | |
10974 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10975 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10976 | else |
10977 | if test -n "$AS_FOR_TARGET"; then | |
10978 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10979 | else | |
c6b750e1 DJ |
10980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10981 | for as_dir in $PATH | |
10982 | do | |
10983 | IFS=$as_save_IFS | |
10984 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10985 | for ac_exec_ext in '' $ac_executable_extensions; do |
10986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10987 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10989 | break 2 |
10990 | fi | |
10991 | done | |
81ecdfbb RW |
10992 | done |
10993 | IFS=$as_save_IFS | |
c6b750e1 | 10994 | |
2429c060 PB |
10995 | fi |
10996 | fi | |
c6b750e1 | 10997 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 10998 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11000 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11001 | else |
81ecdfbb RW |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11003 | $as_echo "no" >&6; } | |
2429c060 PB |
11004 | fi |
11005 | ||
81ecdfbb | 11006 | |
2429c060 PB |
11007 | fi |
11008 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11009 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11010 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11012 | $as_echo_n "checking for $ac_word... " >&6; } | |
11013 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11014 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11015 | else |
11016 | if test -n "$AS_FOR_TARGET"; then | |
11017 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11018 | else | |
c6b750e1 DJ |
11019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11020 | for as_dir in $PATH | |
11021 | do | |
11022 | IFS=$as_save_IFS | |
11023 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11024 | for ac_exec_ext in '' $ac_executable_extensions; do |
11025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11026 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11028 | break 2 |
11029 | fi | |
11030 | done | |
81ecdfbb RW |
11031 | done |
11032 | IFS=$as_save_IFS | |
c6b750e1 | 11033 | |
2429c060 PB |
11034 | fi |
11035 | fi | |
c6b750e1 | 11036 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11037 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11039 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11040 | else |
81ecdfbb RW |
11041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11042 | $as_echo "no" >&6; } | |
2429c060 | 11043 | fi |
c6b750e1 | 11044 | |
81ecdfbb | 11045 | |
2429c060 PB |
11046 | fi |
11047 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11048 | done | |
11049 | fi | |
c6b750e1 | 11050 | |
2429c060 PB |
11051 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11052 | set dummy as | |
11053 | if test $build = $target ; then | |
11054 | AS_FOR_TARGET="$2" | |
11055 | else | |
11056 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11057 | fi | |
d3f5afc4 MS |
11058 | else |
11059 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11060 | fi |
11061 | ||
3a35eeb3 PB |
11062 | else |
11063 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11064 | fi |
11065 | ||
11066 | ||
11067 | ||
11068 | ||
11069 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11070 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11072 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11073 | if test -x $with_build_time_tools/dlltool; then |
11074 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11075 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11077 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11078 | else |
81ecdfbb RW |
11079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11080 | $as_echo "no" >&6; } | |
3a35eeb3 | 11081 | fi |
2429c060 PB |
11082 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11083 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11084 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11085 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11086 | fi |
11087 | fi | |
c6b750e1 | 11088 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11089 | # Extract the first word of "dlltool", so it can be a program name with args. |
11090 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11092 | $as_echo_n "checking for $ac_word... " >&6; } | |
11093 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11094 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11095 | else |
c6b750e1 DJ |
11096 | case $DLLTOOL_FOR_TARGET in |
11097 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11098 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11099 | ;; | |
2429c060 | 11100 | *) |
c6b750e1 DJ |
11101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11102 | for as_dir in $gcc_cv_tool_dirs | |
11103 | do | |
11104 | IFS=$as_save_IFS | |
11105 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11106 | for ac_exec_ext in '' $ac_executable_extensions; do |
11107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11108 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11110 | break 2 |
11111 | fi | |
11112 | done | |
81ecdfbb RW |
11113 | done |
11114 | IFS=$as_save_IFS | |
c6b750e1 | 11115 | |
2429c060 PB |
11116 | ;; |
11117 | esac | |
11118 | fi | |
c6b750e1 | 11119 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11120 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11122 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11123 | else |
81ecdfbb RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11125 | $as_echo "no" >&6; } | |
2429c060 PB |
11126 | fi |
11127 | ||
81ecdfbb | 11128 | |
2429c060 PB |
11129 | fi |
11130 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11131 | |
11132 | ||
11133 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11134 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11135 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11136 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11137 | fi | |
11138 | ||
11139 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11140 | for ncn_progname in dlltool; do | |
11141 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11142 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11144 | $as_echo_n "checking for $ac_word... " >&6; } | |
11145 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11146 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11147 | else |
11148 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11149 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11150 | else | |
11151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11152 | for as_dir in $PATH | |
11153 | do | |
11154 | IFS=$as_save_IFS | |
11155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11156 | for ac_exec_ext in '' $ac_executable_extensions; do |
11157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11158 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11160 | break 2 |
11161 | fi | |
11162 | done | |
81ecdfbb RW |
11163 | done |
11164 | IFS=$as_save_IFS | |
9a819804 AO |
11165 | |
11166 | fi | |
11167 | fi | |
11168 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11169 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11171 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11172 | else |
81ecdfbb RW |
11173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11174 | $as_echo "no" >&6; } | |
9a819804 AO |
11175 | fi |
11176 | ||
81ecdfbb | 11177 | |
9a819804 AO |
11178 | done |
11179 | fi | |
11180 | ||
11181 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11182 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11184 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11185 | if test -x $with_build_time_tools/${ncn_progname}; then |
11186 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11188 | $as_echo "yes" >&6; } | |
2429c060 PB |
11189 | break |
11190 | else | |
81ecdfbb RW |
11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11192 | $as_echo "no" >&6; } | |
2429c060 PB |
11193 | fi |
11194 | done | |
11195 | fi | |
11196 | ||
11197 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11198 | for ncn_progname in dlltool; do | |
11199 | if test -n "$ncn_target_tool_prefix"; then | |
11200 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11201 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11203 | $as_echo_n "checking for $ac_word... " >&6; } | |
11204 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11205 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11206 | else |
11207 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11208 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11209 | else | |
c6b750e1 DJ |
11210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11211 | for as_dir in $PATH | |
11212 | do | |
11213 | IFS=$as_save_IFS | |
11214 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11215 | for ac_exec_ext in '' $ac_executable_extensions; do |
11216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11217 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11219 | break 2 |
11220 | fi | |
11221 | done | |
81ecdfbb RW |
11222 | done |
11223 | IFS=$as_save_IFS | |
c6b750e1 | 11224 | |
2429c060 PB |
11225 | fi |
11226 | fi | |
c6b750e1 | 11227 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11228 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11230 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11231 | else |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11233 | $as_echo "no" >&6; } | |
2429c060 PB |
11234 | fi |
11235 | ||
81ecdfbb | 11236 | |
2429c060 PB |
11237 | fi |
11238 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11239 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11240 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11242 | $as_echo_n "checking for $ac_word... " >&6; } | |
11243 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11244 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11245 | else |
11246 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11247 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11248 | else | |
c6b750e1 DJ |
11249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11250 | for as_dir in $PATH | |
11251 | do | |
11252 | IFS=$as_save_IFS | |
11253 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11254 | for ac_exec_ext in '' $ac_executable_extensions; do |
11255 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11256 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11257 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11258 | break 2 |
11259 | fi | |
11260 | done | |
81ecdfbb RW |
11261 | done |
11262 | IFS=$as_save_IFS | |
c6b750e1 | 11263 | |
2429c060 PB |
11264 | fi |
11265 | fi | |
c6b750e1 | 11266 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11267 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11269 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11270 | else |
81ecdfbb RW |
11271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11272 | $as_echo "no" >&6; } | |
2429c060 | 11273 | fi |
c6b750e1 | 11274 | |
81ecdfbb | 11275 | |
2429c060 PB |
11276 | fi |
11277 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11278 | done | |
11279 | fi | |
c6b750e1 | 11280 | |
2429c060 PB |
11281 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11282 | set dummy dlltool | |
11283 | if test $build = $target ; then | |
11284 | DLLTOOL_FOR_TARGET="$2" | |
11285 | else | |
11286 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11287 | fi | |
d3f5afc4 MS |
11288 | else |
11289 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11290 | fi |
11291 | ||
3a35eeb3 PB |
11292 | else |
11293 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11294 | fi |
11295 | ||
11296 | ||
11297 | ||
11298 | ||
11299 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11300 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11302 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11303 | if test -x $with_build_time_tools/ld; then |
11304 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11305 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11307 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11308 | else |
81ecdfbb RW |
11309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11310 | $as_echo "no" >&6; } | |
3a35eeb3 | 11311 | fi |
2429c060 PB |
11312 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11313 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11314 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11315 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11316 | fi |
11317 | fi | |
c6b750e1 | 11318 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11319 | # Extract the first word of "ld", so it can be a program name with args. |
11320 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11322 | $as_echo_n "checking for $ac_word... " >&6; } | |
11323 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11324 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11325 | else |
c6b750e1 DJ |
11326 | case $LD_FOR_TARGET in |
11327 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11328 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11329 | ;; | |
2429c060 | 11330 | *) |
c6b750e1 DJ |
11331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11332 | for as_dir in $gcc_cv_tool_dirs | |
11333 | do | |
11334 | IFS=$as_save_IFS | |
11335 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11336 | for ac_exec_ext in '' $ac_executable_extensions; do |
11337 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11338 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11340 | break 2 |
11341 | fi | |
11342 | done | |
81ecdfbb RW |
11343 | done |
11344 | IFS=$as_save_IFS | |
c6b750e1 | 11345 | |
2429c060 PB |
11346 | ;; |
11347 | esac | |
11348 | fi | |
c6b750e1 | 11349 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11350 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11352 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11353 | else |
81ecdfbb RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11355 | $as_echo "no" >&6; } | |
2429c060 PB |
11356 | fi |
11357 | ||
81ecdfbb | 11358 | |
2429c060 PB |
11359 | fi |
11360 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11361 | |
11362 | ||
11363 | if test -n "$LD_FOR_TARGET"; then | |
11364 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11365 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11366 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11367 | fi | |
11368 | ||
11369 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11370 | for ncn_progname in ld; do | |
11371 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11372 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11374 | $as_echo_n "checking for $ac_word... " >&6; } | |
11375 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11376 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11377 | else |
11378 | if test -n "$LD_FOR_TARGET"; then | |
11379 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11380 | else | |
11381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11382 | for as_dir in $PATH | |
11383 | do | |
11384 | IFS=$as_save_IFS | |
11385 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11386 | for ac_exec_ext in '' $ac_executable_extensions; do |
11387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11388 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11389 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11390 | break 2 |
11391 | fi | |
11392 | done | |
81ecdfbb RW |
11393 | done |
11394 | IFS=$as_save_IFS | |
9a819804 AO |
11395 | |
11396 | fi | |
11397 | fi | |
11398 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11399 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11401 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11402 | else |
81ecdfbb RW |
11403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11404 | $as_echo "no" >&6; } | |
9a819804 AO |
11405 | fi |
11406 | ||
81ecdfbb | 11407 | |
9a819804 AO |
11408 | done |
11409 | fi | |
11410 | ||
11411 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11412 | for ncn_progname in ld; do |
81ecdfbb RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11414 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11415 | if test -x $with_build_time_tools/${ncn_progname}; then |
11416 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11418 | $as_echo "yes" >&6; } | |
2429c060 PB |
11419 | break |
11420 | else | |
81ecdfbb RW |
11421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11422 | $as_echo "no" >&6; } | |
2429c060 PB |
11423 | fi |
11424 | done | |
11425 | fi | |
11426 | ||
11427 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11428 | for ncn_progname in ld; do | |
11429 | if test -n "$ncn_target_tool_prefix"; then | |
11430 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11431 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11433 | $as_echo_n "checking for $ac_word... " >&6; } | |
11434 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11435 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11436 | else |
11437 | if test -n "$LD_FOR_TARGET"; then | |
11438 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11439 | else | |
c6b750e1 DJ |
11440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11441 | for as_dir in $PATH | |
11442 | do | |
11443 | IFS=$as_save_IFS | |
11444 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11445 | for ac_exec_ext in '' $ac_executable_extensions; do |
11446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11447 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11448 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11449 | break 2 |
11450 | fi | |
11451 | done | |
81ecdfbb RW |
11452 | done |
11453 | IFS=$as_save_IFS | |
c6b750e1 | 11454 | |
2429c060 PB |
11455 | fi |
11456 | fi | |
c6b750e1 | 11457 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11458 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11460 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11461 | else |
81ecdfbb RW |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11463 | $as_echo "no" >&6; } | |
2429c060 PB |
11464 | fi |
11465 | ||
81ecdfbb | 11466 | |
2429c060 PB |
11467 | fi |
11468 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11469 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11470 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11472 | $as_echo_n "checking for $ac_word... " >&6; } | |
11473 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11474 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11475 | else |
11476 | if test -n "$LD_FOR_TARGET"; then | |
11477 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11478 | else | |
c6b750e1 DJ |
11479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11480 | for as_dir in $PATH | |
11481 | do | |
11482 | IFS=$as_save_IFS | |
11483 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11484 | for ac_exec_ext in '' $ac_executable_extensions; do |
11485 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11486 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11487 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11488 | break 2 |
11489 | fi | |
11490 | done | |
81ecdfbb RW |
11491 | done |
11492 | IFS=$as_save_IFS | |
c6b750e1 | 11493 | |
2429c060 PB |
11494 | fi |
11495 | fi | |
c6b750e1 | 11496 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11497 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11499 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11500 | else |
81ecdfbb RW |
11501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11502 | $as_echo "no" >&6; } | |
2429c060 | 11503 | fi |
c6b750e1 | 11504 | |
81ecdfbb | 11505 | |
2429c060 PB |
11506 | fi |
11507 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11508 | done | |
11509 | fi | |
c6b750e1 | 11510 | |
2429c060 PB |
11511 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11512 | set dummy ld | |
11513 | if test $build = $target ; then | |
11514 | LD_FOR_TARGET="$2" | |
11515 | else | |
11516 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11517 | fi | |
d3f5afc4 MS |
11518 | else |
11519 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11520 | fi |
11521 | ||
3a35eeb3 PB |
11522 | else |
11523 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11524 | fi |
11525 | ||
11526 | ||
11527 | ||
11528 | ||
11529 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11530 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11532 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11533 | if test -x $with_build_time_tools/lipo; then |
11534 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11535 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11537 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11538 | else |
81ecdfbb RW |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11540 | $as_echo "no" >&6; } | |
3a35eeb3 | 11541 | fi |
2429c060 PB |
11542 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11543 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11544 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11545 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11546 | fi |
11547 | fi | |
9a819804 AO |
11548 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11549 | # Extract the first word of "lipo", so it can be a program name with args. | |
11550 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11552 | $as_echo_n "checking for $ac_word... " >&6; } | |
11553 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11554 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11555 | else |
11556 | case $LIPO_FOR_TARGET in | |
11557 | [\\/]* | ?:[\\/]*) | |
11558 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11559 | ;; | |
11560 | *) | |
11561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11562 | for as_dir in $gcc_cv_tool_dirs | |
11563 | do | |
11564 | IFS=$as_save_IFS | |
11565 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11566 | for ac_exec_ext in '' $ac_executable_extensions; do |
11567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11568 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11569 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11570 | break 2 |
11571 | fi | |
11572 | done | |
81ecdfbb RW |
11573 | done |
11574 | IFS=$as_save_IFS | |
9a819804 AO |
11575 | |
11576 | ;; | |
11577 | esac | |
11578 | fi | |
11579 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11580 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11582 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11583 | else |
81ecdfbb RW |
11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11585 | $as_echo "no" >&6; } | |
9a819804 AO |
11586 | fi |
11587 | ||
81ecdfbb | 11588 | |
9a819804 AO |
11589 | fi |
11590 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11591 | ||
11592 | ||
11593 | if test -n "$LIPO_FOR_TARGET"; then | |
11594 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11595 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11596 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11597 | fi | |
11598 | ||
11599 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11600 | for ncn_progname in lipo; do | |
11601 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11602 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11604 | $as_echo_n "checking for $ac_word... " >&6; } | |
11605 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11606 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11607 | else |
9a819804 AO |
11608 | if test -n "$LIPO_FOR_TARGET"; then |
11609 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11610 | else | |
11611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11612 | for as_dir in $PATH | |
c6b750e1 DJ |
11613 | do |
11614 | IFS=$as_save_IFS | |
11615 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11616 | for ac_exec_ext in '' $ac_executable_extensions; do |
11617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11618 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11620 | break 2 |
11621 | fi | |
11622 | done | |
81ecdfbb RW |
11623 | done |
11624 | IFS=$as_save_IFS | |
c6b750e1 | 11625 | |
2429c060 | 11626 | fi |
9a819804 AO |
11627 | fi |
11628 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11629 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11631 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11632 | else |
81ecdfbb RW |
11633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11634 | $as_echo "no" >&6; } | |
2429c060 PB |
11635 | fi |
11636 | ||
81ecdfbb | 11637 | |
9a819804 | 11638 | done |
2429c060 | 11639 | fi |
9a819804 AO |
11640 | |
11641 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11642 | for ncn_progname in lipo; do |
81ecdfbb RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11644 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11645 | if test -x $with_build_time_tools/${ncn_progname}; then |
11646 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11648 | $as_echo "yes" >&6; } | |
2429c060 PB |
11649 | break |
11650 | else | |
81ecdfbb RW |
11651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11652 | $as_echo "no" >&6; } | |
2429c060 PB |
11653 | fi |
11654 | done | |
11655 | fi | |
11656 | ||
11657 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11658 | for ncn_progname in lipo; do | |
11659 | if test -n "$ncn_target_tool_prefix"; then | |
11660 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11661 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11663 | $as_echo_n "checking for $ac_word... " >&6; } | |
11664 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11665 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11666 | else |
11667 | if test -n "$LIPO_FOR_TARGET"; then | |
11668 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11669 | else | |
c6b750e1 DJ |
11670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11671 | for as_dir in $PATH | |
11672 | do | |
11673 | IFS=$as_save_IFS | |
11674 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11675 | for ac_exec_ext in '' $ac_executable_extensions; do |
11676 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11677 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11679 | break 2 |
11680 | fi | |
11681 | done | |
81ecdfbb RW |
11682 | done |
11683 | IFS=$as_save_IFS | |
c6b750e1 | 11684 | |
2429c060 PB |
11685 | fi |
11686 | fi | |
c6b750e1 | 11687 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11688 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11690 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11691 | else |
81ecdfbb RW |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11693 | $as_echo "no" >&6; } | |
2429c060 PB |
11694 | fi |
11695 | ||
81ecdfbb | 11696 | |
2429c060 PB |
11697 | fi |
11698 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11699 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11700 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11702 | $as_echo_n "checking for $ac_word... " >&6; } | |
11703 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11704 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11705 | else |
11706 | if test -n "$LIPO_FOR_TARGET"; then | |
11707 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11708 | else | |
c6b750e1 DJ |
11709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11710 | for as_dir in $PATH | |
11711 | do | |
11712 | IFS=$as_save_IFS | |
11713 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11714 | for ac_exec_ext in '' $ac_executable_extensions; do |
11715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11716 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11717 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11718 | break 2 |
11719 | fi | |
11720 | done | |
81ecdfbb RW |
11721 | done |
11722 | IFS=$as_save_IFS | |
c6b750e1 | 11723 | |
2429c060 PB |
11724 | fi |
11725 | fi | |
c6b750e1 | 11726 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11727 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11729 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11730 | else |
81ecdfbb RW |
11731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11732 | $as_echo "no" >&6; } | |
2429c060 | 11733 | fi |
c6b750e1 | 11734 | |
81ecdfbb | 11735 | |
2429c060 PB |
11736 | fi |
11737 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11738 | done | |
11739 | fi | |
c6b750e1 | 11740 | |
2429c060 PB |
11741 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11742 | set dummy lipo | |
11743 | if test $build = $target ; then | |
11744 | LIPO_FOR_TARGET="$2" | |
11745 | else | |
11746 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11747 | fi | |
d3f5afc4 MS |
11748 | else |
11749 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11750 | fi |
11751 | ||
3a35eeb3 PB |
11752 | else |
11753 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11754 | fi |
11755 | ||
11756 | ||
11757 | ||
11758 | ||
11759 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11760 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11762 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11763 | if test -x $with_build_time_tools/nm; then |
11764 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11765 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11767 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11768 | else |
81ecdfbb RW |
11769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11770 | $as_echo "no" >&6; } | |
3a35eeb3 | 11771 | fi |
2429c060 PB |
11772 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11773 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11774 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11775 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11776 | fi |
11777 | fi | |
c6b750e1 | 11778 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11779 | # Extract the first word of "nm", so it can be a program name with args. |
11780 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11782 | $as_echo_n "checking for $ac_word... " >&6; } | |
11783 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11784 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11785 | else |
c6b750e1 DJ |
11786 | case $NM_FOR_TARGET in |
11787 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11788 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11789 | ;; | |
2429c060 | 11790 | *) |
c6b750e1 DJ |
11791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11792 | for as_dir in $gcc_cv_tool_dirs | |
11793 | do | |
11794 | IFS=$as_save_IFS | |
11795 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11796 | for ac_exec_ext in '' $ac_executable_extensions; do |
11797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11798 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11800 | break 2 |
11801 | fi | |
11802 | done | |
81ecdfbb RW |
11803 | done |
11804 | IFS=$as_save_IFS | |
c6b750e1 | 11805 | |
2429c060 PB |
11806 | ;; |
11807 | esac | |
11808 | fi | |
c6b750e1 | 11809 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11810 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11812 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11813 | else |
81ecdfbb RW |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11815 | $as_echo "no" >&6; } | |
2429c060 PB |
11816 | fi |
11817 | ||
81ecdfbb | 11818 | |
2429c060 PB |
11819 | fi |
11820 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11821 | |
11822 | ||
11823 | if test -n "$NM_FOR_TARGET"; then | |
11824 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11825 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11826 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11827 | fi | |
11828 | ||
11829 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11830 | for ncn_progname in nm; do | |
11831 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11832 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11834 | $as_echo_n "checking for $ac_word... " >&6; } | |
11835 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11836 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11837 | else |
11838 | if test -n "$NM_FOR_TARGET"; then | |
11839 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11840 | else | |
11841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11842 | for as_dir in $PATH | |
11843 | do | |
11844 | IFS=$as_save_IFS | |
11845 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11846 | for ac_exec_ext in '' $ac_executable_extensions; do |
11847 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11848 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11849 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11850 | break 2 |
11851 | fi | |
11852 | done | |
81ecdfbb RW |
11853 | done |
11854 | IFS=$as_save_IFS | |
9a819804 AO |
11855 | |
11856 | fi | |
11857 | fi | |
11858 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11859 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11861 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 11862 | else |
81ecdfbb RW |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11864 | $as_echo "no" >&6; } | |
9a819804 AO |
11865 | fi |
11866 | ||
81ecdfbb | 11867 | |
9a819804 AO |
11868 | done |
11869 | fi | |
11870 | ||
11871 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11872 | for ncn_progname in nm; do |
81ecdfbb RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11874 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11875 | if test -x $with_build_time_tools/${ncn_progname}; then |
11876 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11878 | $as_echo "yes" >&6; } | |
2429c060 PB |
11879 | break |
11880 | else | |
81ecdfbb RW |
11881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11882 | $as_echo "no" >&6; } | |
2429c060 PB |
11883 | fi |
11884 | done | |
11885 | fi | |
11886 | ||
11887 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11888 | for ncn_progname in nm; do | |
11889 | if test -n "$ncn_target_tool_prefix"; then | |
11890 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11891 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11893 | $as_echo_n "checking for $ac_word... " >&6; } | |
11894 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11895 | $as_echo_n "(cached) " >&6 | |
859789af | 11896 | else |
55db4b87 PB |
11897 | if test -n "$NM_FOR_TARGET"; then |
11898 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11899 | else |
c6b750e1 DJ |
11900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11901 | for as_dir in $PATH | |
11902 | do | |
11903 | IFS=$as_save_IFS | |
11904 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11905 | for ac_exec_ext in '' $ac_executable_extensions; do |
11906 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11907 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11909 | break 2 |
11910 | fi | |
11911 | done | |
81ecdfbb RW |
11912 | done |
11913 | IFS=$as_save_IFS | |
c6b750e1 | 11914 | |
859789af AC |
11915 | fi |
11916 | fi | |
c6b750e1 | 11917 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 11918 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11920 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11921 | else |
81ecdfbb RW |
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11923 | $as_echo "no" >&6; } | |
859789af AC |
11924 | fi |
11925 | ||
81ecdfbb | 11926 | |
2429c060 PB |
11927 | fi |
11928 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11929 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11930 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11932 | $as_echo_n "checking for $ac_word... " >&6; } | |
11933 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11934 | $as_echo_n "(cached) " >&6 | |
859789af | 11935 | else |
05cbd757 PB |
11936 | if test -n "$NM_FOR_TARGET"; then |
11937 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11938 | else |
c6b750e1 DJ |
11939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11940 | for as_dir in $PATH | |
11941 | do | |
11942 | IFS=$as_save_IFS | |
11943 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11944 | for ac_exec_ext in '' $ac_executable_extensions; do |
11945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11946 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11948 | break 2 |
11949 | fi | |
11950 | done | |
81ecdfbb RW |
11951 | done |
11952 | IFS=$as_save_IFS | |
c6b750e1 | 11953 | |
859789af AC |
11954 | fi |
11955 | fi | |
c6b750e1 | 11956 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 11957 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11959 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11960 | else |
81ecdfbb RW |
11961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11962 | $as_echo "no" >&6; } | |
859789af | 11963 | fi |
c6b750e1 | 11964 | |
81ecdfbb | 11965 | |
2429c060 PB |
11966 | fi |
11967 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11968 | done | |
11969 | fi | |
c6b750e1 | 11970 | |
05cbd757 PB |
11971 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11972 | set dummy nm | |
11973 | if test $build = $target ; then | |
11974 | NM_FOR_TARGET="$2" | |
859789af | 11975 | else |
05cbd757 | 11976 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 11977 | fi |
d3f5afc4 MS |
11978 | else |
11979 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
11980 | fi |
11981 | ||
3a35eeb3 PB |
11982 | else |
11983 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
11984 | fi |
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11990 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11992 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11993 | if test -x $with_build_time_tools/objdump; then |
11994 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11995 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
11996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11997 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 11998 | else |
81ecdfbb RW |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12000 | $as_echo "no" >&6; } | |
3a35eeb3 | 12001 | fi |
2429c060 PB |
12002 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12003 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12004 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12005 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12006 | fi |
12007 | fi | |
c6b750e1 | 12008 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12009 | # Extract the first word of "objdump", so it can be a program name with args. |
12010 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12012 | $as_echo_n "checking for $ac_word... " >&6; } | |
12013 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12014 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12015 | else |
c6b750e1 DJ |
12016 | case $OBJDUMP_FOR_TARGET in |
12017 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12018 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12019 | ;; | |
2429c060 | 12020 | *) |
c6b750e1 DJ |
12021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12022 | for as_dir in $gcc_cv_tool_dirs | |
12023 | do | |
12024 | IFS=$as_save_IFS | |
12025 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12026 | for ac_exec_ext in '' $ac_executable_extensions; do |
12027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12028 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12030 | break 2 |
12031 | fi | |
12032 | done | |
81ecdfbb RW |
12033 | done |
12034 | IFS=$as_save_IFS | |
c6b750e1 | 12035 | |
2429c060 PB |
12036 | ;; |
12037 | esac | |
12038 | fi | |
c6b750e1 | 12039 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12040 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12042 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12043 | else |
81ecdfbb RW |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12045 | $as_echo "no" >&6; } | |
2429c060 PB |
12046 | fi |
12047 | ||
81ecdfbb | 12048 | |
2429c060 PB |
12049 | fi |
12050 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12051 | |
12052 | ||
12053 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12054 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12055 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12056 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12057 | fi | |
12058 | ||
12059 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12060 | for ncn_progname in objdump; do | |
12061 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12062 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12064 | $as_echo_n "checking for $ac_word... " >&6; } | |
12065 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12066 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12067 | else |
12068 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12069 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12070 | else | |
12071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12072 | for as_dir in $PATH | |
12073 | do | |
12074 | IFS=$as_save_IFS | |
12075 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12076 | for ac_exec_ext in '' $ac_executable_extensions; do |
12077 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12078 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12080 | break 2 |
12081 | fi | |
12082 | done | |
81ecdfbb RW |
12083 | done |
12084 | IFS=$as_save_IFS | |
9a819804 AO |
12085 | |
12086 | fi | |
12087 | fi | |
12088 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12089 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12091 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12092 | else |
81ecdfbb RW |
12093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12094 | $as_echo "no" >&6; } | |
9a819804 AO |
12095 | fi |
12096 | ||
81ecdfbb | 12097 | |
9a819804 AO |
12098 | done |
12099 | fi | |
12100 | ||
12101 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12102 | for ncn_progname in objdump; do |
81ecdfbb RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12104 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12105 | if test -x $with_build_time_tools/${ncn_progname}; then |
12106 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12108 | $as_echo "yes" >&6; } | |
2429c060 PB |
12109 | break |
12110 | else | |
81ecdfbb RW |
12111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12112 | $as_echo "no" >&6; } | |
2429c060 PB |
12113 | fi |
12114 | done | |
12115 | fi | |
12116 | ||
12117 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12118 | for ncn_progname in objdump; do | |
12119 | if test -n "$ncn_target_tool_prefix"; then | |
12120 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12121 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12123 | $as_echo_n "checking for $ac_word... " >&6; } | |
12124 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12125 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12126 | else |
12127 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12128 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12129 | else | |
c6b750e1 DJ |
12130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12131 | for as_dir in $PATH | |
12132 | do | |
12133 | IFS=$as_save_IFS | |
12134 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12135 | for ac_exec_ext in '' $ac_executable_extensions; do |
12136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12137 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12139 | break 2 |
12140 | fi | |
12141 | done | |
81ecdfbb RW |
12142 | done |
12143 | IFS=$as_save_IFS | |
c6b750e1 | 12144 | |
5ae72758 DJ |
12145 | fi |
12146 | fi | |
c6b750e1 | 12147 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12148 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12150 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12151 | else |
81ecdfbb RW |
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12153 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12154 | fi |
12155 | ||
81ecdfbb | 12156 | |
2429c060 PB |
12157 | fi |
12158 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12159 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12160 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12162 | $as_echo_n "checking for $ac_word... " >&6; } | |
12163 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12164 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12165 | else |
12166 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12167 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12168 | else | |
c6b750e1 DJ |
12169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12170 | for as_dir in $PATH | |
12171 | do | |
12172 | IFS=$as_save_IFS | |
12173 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12174 | for ac_exec_ext in '' $ac_executable_extensions; do |
12175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12176 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12178 | break 2 |
12179 | fi | |
12180 | done | |
81ecdfbb RW |
12181 | done |
12182 | IFS=$as_save_IFS | |
c6b750e1 | 12183 | |
5ae72758 DJ |
12184 | fi |
12185 | fi | |
c6b750e1 | 12186 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12187 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12189 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12190 | else |
81ecdfbb RW |
12191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12192 | $as_echo "no" >&6; } | |
5ae72758 | 12193 | fi |
c6b750e1 | 12194 | |
81ecdfbb | 12195 | |
2429c060 PB |
12196 | fi |
12197 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12198 | done | |
12199 | fi | |
c6b750e1 | 12200 | |
5ae72758 DJ |
12201 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12202 | set dummy objdump | |
12203 | if test $build = $target ; then | |
12204 | OBJDUMP_FOR_TARGET="$2" | |
12205 | else | |
12206 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12207 | fi | |
d3f5afc4 MS |
12208 | else |
12209 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12210 | fi |
12211 | ||
3a35eeb3 PB |
12212 | else |
12213 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12214 | fi |
12215 | ||
12216 | ||
12217 | ||
12218 | ||
12219 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12220 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12222 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12223 | if test -x $with_build_time_tools/ranlib; then |
12224 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12225 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12227 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12228 | else |
81ecdfbb RW |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12230 | $as_echo "no" >&6; } | |
3a35eeb3 | 12231 | fi |
2429c060 PB |
12232 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12233 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12234 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12235 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12236 | fi |
12237 | fi | |
c6b750e1 | 12238 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12239 | # Extract the first word of "ranlib", so it can be a program name with args. |
12240 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12242 | $as_echo_n "checking for $ac_word... " >&6; } | |
12243 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12244 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12245 | else |
c6b750e1 DJ |
12246 | case $RANLIB_FOR_TARGET in |
12247 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12248 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12249 | ;; | |
2429c060 | 12250 | *) |
c6b750e1 DJ |
12251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12252 | for as_dir in $gcc_cv_tool_dirs | |
12253 | do | |
12254 | IFS=$as_save_IFS | |
12255 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12256 | for ac_exec_ext in '' $ac_executable_extensions; do |
12257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12258 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12260 | break 2 |
12261 | fi | |
12262 | done | |
81ecdfbb RW |
12263 | done |
12264 | IFS=$as_save_IFS | |
c6b750e1 | 12265 | |
2429c060 PB |
12266 | ;; |
12267 | esac | |
12268 | fi | |
c6b750e1 | 12269 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12270 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12272 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12273 | else |
81ecdfbb RW |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12275 | $as_echo "no" >&6; } | |
2429c060 PB |
12276 | fi |
12277 | ||
81ecdfbb | 12278 | |
2429c060 PB |
12279 | fi |
12280 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12281 | |
12282 | ||
12283 | if test -n "$RANLIB_FOR_TARGET"; then | |
12284 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12285 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12286 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12287 | fi | |
12288 | ||
12289 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12290 | for ncn_progname in ranlib; do | |
12291 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12292 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12294 | $as_echo_n "checking for $ac_word... " >&6; } | |
12295 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12296 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12297 | else |
12298 | if test -n "$RANLIB_FOR_TARGET"; then | |
12299 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12300 | else | |
12301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12302 | for as_dir in $PATH | |
12303 | do | |
12304 | IFS=$as_save_IFS | |
12305 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12306 | for ac_exec_ext in '' $ac_executable_extensions; do |
12307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12308 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12310 | break 2 |
12311 | fi | |
12312 | done | |
81ecdfbb RW |
12313 | done |
12314 | IFS=$as_save_IFS | |
9a819804 AO |
12315 | |
12316 | fi | |
12317 | fi | |
12318 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12319 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12321 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12322 | else |
81ecdfbb RW |
12323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12324 | $as_echo "no" >&6; } | |
9a819804 AO |
12325 | fi |
12326 | ||
81ecdfbb | 12327 | |
9a819804 AO |
12328 | done |
12329 | fi | |
12330 | ||
12331 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12332 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12334 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12335 | if test -x $with_build_time_tools/${ncn_progname}; then |
12336 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12338 | $as_echo "yes" >&6; } | |
2429c060 PB |
12339 | break |
12340 | else | |
81ecdfbb RW |
12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12342 | $as_echo "no" >&6; } | |
2429c060 PB |
12343 | fi |
12344 | done | |
12345 | fi | |
12346 | ||
12347 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12348 | for ncn_progname in ranlib; do | |
12349 | if test -n "$ncn_target_tool_prefix"; then | |
12350 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12351 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12353 | $as_echo_n "checking for $ac_word... " >&6; } | |
12354 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12355 | $as_echo_n "(cached) " >&6 | |
859789af | 12356 | else |
55db4b87 PB |
12357 | if test -n "$RANLIB_FOR_TARGET"; then |
12358 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12359 | else |
c6b750e1 DJ |
12360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12361 | for as_dir in $PATH | |
12362 | do | |
12363 | IFS=$as_save_IFS | |
12364 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12365 | for ac_exec_ext in '' $ac_executable_extensions; do |
12366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12367 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12369 | break 2 |
12370 | fi | |
12371 | done | |
81ecdfbb RW |
12372 | done |
12373 | IFS=$as_save_IFS | |
c6b750e1 | 12374 | |
859789af AC |
12375 | fi |
12376 | fi | |
c6b750e1 | 12377 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12378 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12380 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12381 | else |
81ecdfbb RW |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12383 | $as_echo "no" >&6; } | |
859789af AC |
12384 | fi |
12385 | ||
81ecdfbb | 12386 | |
2429c060 PB |
12387 | fi |
12388 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12389 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12390 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12392 | $as_echo_n "checking for $ac_word... " >&6; } | |
12393 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12394 | $as_echo_n "(cached) " >&6 | |
859789af | 12395 | else |
05cbd757 PB |
12396 | if test -n "$RANLIB_FOR_TARGET"; then |
12397 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12398 | else |
c6b750e1 DJ |
12399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12400 | for as_dir in $PATH | |
12401 | do | |
12402 | IFS=$as_save_IFS | |
12403 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12404 | for ac_exec_ext in '' $ac_executable_extensions; do |
12405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12406 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12407 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12408 | break 2 |
12409 | fi | |
12410 | done | |
81ecdfbb RW |
12411 | done |
12412 | IFS=$as_save_IFS | |
c6b750e1 | 12413 | |
859789af AC |
12414 | fi |
12415 | fi | |
c6b750e1 | 12416 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12417 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12419 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12420 | else |
81ecdfbb RW |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12422 | $as_echo "no" >&6; } | |
859789af | 12423 | fi |
c6b750e1 | 12424 | |
81ecdfbb | 12425 | |
2429c060 PB |
12426 | fi |
12427 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12428 | done | |
12429 | fi | |
c6b750e1 | 12430 | |
2429c060 PB |
12431 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12432 | set dummy ranlib | |
12433 | if test $build = $target ; then | |
12434 | RANLIB_FOR_TARGET="$2" | |
12435 | else | |
12436 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12437 | fi |
d3f5afc4 MS |
12438 | else |
12439 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12440 | fi |
05cbd757 | 12441 | |
3a35eeb3 PB |
12442 | else |
12443 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12444 | fi |
12445 | ||
2429c060 PB |
12446 | |
12447 | ||
12448 | ||
12449 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12450 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12452 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12453 | if test -x $with_build_time_tools/strip; then |
12454 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12455 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12457 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12458 | else |
81ecdfbb RW |
12459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12460 | $as_echo "no" >&6; } | |
3a35eeb3 | 12461 | fi |
2429c060 PB |
12462 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12463 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12464 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12465 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
12466 | fi |
12467 | fi | |
c6b750e1 | 12468 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12469 | # Extract the first word of "strip", so it can be a program name with args. |
12470 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
12471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12472 | $as_echo_n "checking for $ac_word... " >&6; } | |
12473 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12474 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12475 | else |
c6b750e1 DJ |
12476 | case $STRIP_FOR_TARGET in |
12477 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12478 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12479 | ;; | |
2429c060 | 12480 | *) |
c6b750e1 DJ |
12481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12482 | for as_dir in $gcc_cv_tool_dirs | |
12483 | do | |
12484 | IFS=$as_save_IFS | |
12485 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12486 | for ac_exec_ext in '' $ac_executable_extensions; do |
12487 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12488 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12490 | break 2 |
12491 | fi | |
12492 | done | |
81ecdfbb RW |
12493 | done |
12494 | IFS=$as_save_IFS | |
c6b750e1 | 12495 | |
2429c060 PB |
12496 | ;; |
12497 | esac | |
12498 | fi | |
c6b750e1 | 12499 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 12500 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12502 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 12503 | else |
81ecdfbb RW |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12505 | $as_echo "no" >&6; } | |
2429c060 PB |
12506 | fi |
12507 | ||
81ecdfbb | 12508 | |
2429c060 PB |
12509 | fi |
12510 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
12511 | |
12512 | ||
12513 | if test -n "$STRIP_FOR_TARGET"; then | |
12514 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12515 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12516 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12517 | fi | |
12518 | ||
12519 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12520 | for ncn_progname in strip; do | |
12521 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12522 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12524 | $as_echo_n "checking for $ac_word... " >&6; } | |
12525 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12526 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12527 | else |
12528 | if test -n "$STRIP_FOR_TARGET"; then | |
12529 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12530 | else | |
12531 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12532 | for as_dir in $PATH | |
12533 | do | |
12534 | IFS=$as_save_IFS | |
12535 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12536 | for ac_exec_ext in '' $ac_executable_extensions; do |
12537 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12538 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12539 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12540 | break 2 |
12541 | fi | |
12542 | done | |
81ecdfbb RW |
12543 | done |
12544 | IFS=$as_save_IFS | |
9a819804 AO |
12545 | |
12546 | fi | |
12547 | fi | |
12548 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12549 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
12550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12551 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 12552 | else |
81ecdfbb RW |
12553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12554 | $as_echo "no" >&6; } | |
9a819804 AO |
12555 | fi |
12556 | ||
81ecdfbb | 12557 | |
9a819804 AO |
12558 | done |
12559 | fi | |
12560 | ||
12561 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12562 | for ncn_progname in strip; do |
81ecdfbb RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12564 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12565 | if test -x $with_build_time_tools/${ncn_progname}; then |
12566 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12568 | $as_echo "yes" >&6; } | |
2429c060 PB |
12569 | break |
12570 | else | |
81ecdfbb RW |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12572 | $as_echo "no" >&6; } | |
2429c060 PB |
12573 | fi |
12574 | done | |
12575 | fi | |
12576 | ||
12577 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12578 | for ncn_progname in strip; do | |
12579 | if test -n "$ncn_target_tool_prefix"; then | |
12580 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12581 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12583 | $as_echo_n "checking for $ac_word... " >&6; } | |
12584 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12585 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12586 | else |
12587 | if test -n "$STRIP_FOR_TARGET"; then | |
12588 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
12589 | else |
12590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12591 | for as_dir in $PATH | |
12592 | do | |
12593 | IFS=$as_save_IFS | |
12594 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12595 | for ac_exec_ext in '' $ac_executable_extensions; do |
12596 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12597 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12598 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12599 | break 2 |
12600 | fi | |
12601 | done | |
81ecdfbb RW |
12602 | done |
12603 | IFS=$as_save_IFS | |
c6b750e1 | 12604 | |
7e0f7140 GK |
12605 | fi |
12606 | fi | |
c6b750e1 | 12607 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12608 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12610 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12611 | else |
81ecdfbb RW |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12613 | $as_echo "no" >&6; } | |
7e0f7140 GK |
12614 | fi |
12615 | ||
81ecdfbb | 12616 | |
2429c060 PB |
12617 | fi |
12618 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12619 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12620 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12622 | $as_echo_n "checking for $ac_word... " >&6; } | |
12623 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12624 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12625 | else |
12626 | if test -n "$STRIP_FOR_TARGET"; then | |
12627 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12628 | else | |
c6b750e1 DJ |
12629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12630 | for as_dir in $PATH | |
12631 | do | |
12632 | IFS=$as_save_IFS | |
12633 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12634 | for ac_exec_ext in '' $ac_executable_extensions; do |
12635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12636 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12638 | break 2 |
12639 | fi | |
12640 | done | |
81ecdfbb RW |
12641 | done |
12642 | IFS=$as_save_IFS | |
c6b750e1 | 12643 | |
7e0f7140 GK |
12644 | fi |
12645 | fi | |
c6b750e1 | 12646 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12647 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12649 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12650 | else |
81ecdfbb RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12652 | $as_echo "no" >&6; } | |
7e0f7140 | 12653 | fi |
c6b750e1 | 12654 | |
81ecdfbb | 12655 | |
2429c060 PB |
12656 | fi |
12657 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12658 | done | |
12659 | fi | |
c6b750e1 | 12660 | |
7e0f7140 GK |
12661 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12662 | set dummy strip | |
12663 | if test $build = $target ; then | |
12664 | STRIP_FOR_TARGET="$2" | |
12665 | else | |
12666 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12667 | fi | |
d3f5afc4 MS |
12668 | else |
12669 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
12670 | fi |
12671 | ||
3a35eeb3 PB |
12672 | else |
12673 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
12674 | fi |
12675 | ||
12676 | ||
12677 | ||
12678 | ||
12679 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12680 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12682 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12683 | if test -x $with_build_time_tools/windres; then |
12684 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12685 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
12686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12687 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 12688 | else |
81ecdfbb RW |
12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12690 | $as_echo "no" >&6; } | |
3a35eeb3 | 12691 | fi |
2429c060 PB |
12692 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12693 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
12694 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12695 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
12696 | fi |
12697 | fi | |
c6b750e1 | 12698 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12699 | # Extract the first word of "windres", so it can be a program name with args. |
12700 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12702 | $as_echo_n "checking for $ac_word... " >&6; } | |
12703 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12704 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12705 | else |
c6b750e1 DJ |
12706 | case $WINDRES_FOR_TARGET in |
12707 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12708 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12709 | ;; | |
2429c060 | 12710 | *) |
c6b750e1 DJ |
12711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12712 | for as_dir in $gcc_cv_tool_dirs | |
12713 | do | |
12714 | IFS=$as_save_IFS | |
12715 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12716 | for ac_exec_ext in '' $ac_executable_extensions; do |
12717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12718 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12720 | break 2 |
12721 | fi | |
12722 | done | |
81ecdfbb RW |
12723 | done |
12724 | IFS=$as_save_IFS | |
c6b750e1 | 12725 | |
2429c060 PB |
12726 | ;; |
12727 | esac | |
12728 | fi | |
c6b750e1 | 12729 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 12730 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12732 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 12733 | else |
81ecdfbb RW |
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12735 | $as_echo "no" >&6; } | |
2429c060 PB |
12736 | fi |
12737 | ||
81ecdfbb | 12738 | |
2429c060 PB |
12739 | fi |
12740 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
12741 | |
12742 | ||
12743 | if test -n "$WINDRES_FOR_TARGET"; then | |
12744 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12745 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12746 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12747 | fi | |
12748 | ||
12749 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12750 | for ncn_progname in windres; do | |
12751 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12752 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12754 | $as_echo_n "checking for $ac_word... " >&6; } | |
12755 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12756 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12757 | else |
12758 | if test -n "$WINDRES_FOR_TARGET"; then | |
12759 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12760 | else | |
12761 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12762 | for as_dir in $PATH | |
12763 | do | |
12764 | IFS=$as_save_IFS | |
12765 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12766 | for ac_exec_ext in '' $ac_executable_extensions; do |
12767 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12768 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12769 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12770 | break 2 |
12771 | fi | |
12772 | done | |
81ecdfbb RW |
12773 | done |
12774 | IFS=$as_save_IFS | |
9a819804 AO |
12775 | |
12776 | fi | |
12777 | fi | |
12778 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12779 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
12780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12781 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 12782 | else |
81ecdfbb RW |
12783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12784 | $as_echo "no" >&6; } | |
9a819804 AO |
12785 | fi |
12786 | ||
81ecdfbb | 12787 | |
9a819804 AO |
12788 | done |
12789 | fi | |
12790 | ||
12791 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12792 | for ncn_progname in windres; do |
81ecdfbb RW |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12794 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12795 | if test -x $with_build_time_tools/${ncn_progname}; then |
12796 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12798 | $as_echo "yes" >&6; } | |
2429c060 PB |
12799 | break |
12800 | else | |
81ecdfbb RW |
12801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12802 | $as_echo "no" >&6; } | |
2429c060 PB |
12803 | fi |
12804 | done | |
12805 | fi | |
12806 | ||
12807 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12808 | for ncn_progname in windres; do | |
12809 | if test -n "$ncn_target_tool_prefix"; then | |
12810 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12811 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12813 | $as_echo_n "checking for $ac_word... " >&6; } | |
12814 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12815 | $as_echo_n "(cached) " >&6 | |
859789af | 12816 | else |
55db4b87 PB |
12817 | if test -n "$WINDRES_FOR_TARGET"; then |
12818 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12819 | else |
c6b750e1 DJ |
12820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12821 | for as_dir in $PATH | |
12822 | do | |
12823 | IFS=$as_save_IFS | |
12824 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12825 | for ac_exec_ext in '' $ac_executable_extensions; do |
12826 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12827 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12829 | break 2 |
12830 | fi | |
12831 | done | |
81ecdfbb RW |
12832 | done |
12833 | IFS=$as_save_IFS | |
c6b750e1 | 12834 | |
859789af AC |
12835 | fi |
12836 | fi | |
c6b750e1 | 12837 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 12838 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12840 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12841 | else |
81ecdfbb RW |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12843 | $as_echo "no" >&6; } | |
859789af AC |
12844 | fi |
12845 | ||
81ecdfbb | 12846 | |
2429c060 PB |
12847 | fi |
12848 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12849 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12850 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12852 | $as_echo_n "checking for $ac_word... " >&6; } | |
12853 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12854 | $as_echo_n "(cached) " >&6 | |
859789af | 12855 | else |
05cbd757 PB |
12856 | if test -n "$WINDRES_FOR_TARGET"; then |
12857 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12858 | else |
c6b750e1 DJ |
12859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12860 | for as_dir in $PATH | |
12861 | do | |
12862 | IFS=$as_save_IFS | |
12863 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12864 | for ac_exec_ext in '' $ac_executable_extensions; do |
12865 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12866 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12868 | break 2 |
12869 | fi | |
12870 | done | |
81ecdfbb RW |
12871 | done |
12872 | IFS=$as_save_IFS | |
c6b750e1 | 12873 | |
859789af AC |
12874 | fi |
12875 | fi | |
c6b750e1 | 12876 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 12877 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12879 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12880 | else |
81ecdfbb RW |
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12882 | $as_echo "no" >&6; } | |
859789af | 12883 | fi |
c6b750e1 | 12884 | |
81ecdfbb | 12885 | |
2429c060 PB |
12886 | fi |
12887 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
12888 | done | |
12889 | fi | |
c6b750e1 | 12890 | |
05cbd757 PB |
12891 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
12892 | set dummy windres | |
12893 | if test $build = $target ; then | |
12894 | WINDRES_FOR_TARGET="$2" | |
859789af | 12895 | else |
05cbd757 | 12896 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12897 | fi |
d3f5afc4 MS |
12898 | else |
12899 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
12900 | fi |
12901 | ||
3a35eeb3 PB |
12902 | else |
12903 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
12904 | fi |
12905 | ||
852e5f18 | 12906 | |
0c24b341 NC |
12907 | |
12908 | ||
12909 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12910 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
12912 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
12913 | if test -x $with_build_time_tools/windmc; then |
12914 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
12915 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
12916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
12917 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12918 | else |
81ecdfbb RW |
12919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12920 | $as_echo "no" >&6; } | |
0c24b341 NC |
12921 | fi |
12922 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12923 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
12924 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
12925 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12926 | fi | |
12927 | fi | |
12928 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12929 | # Extract the first word of "windmc", so it can be a program name with args. | |
12930 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
12931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12932 | $as_echo_n "checking for $ac_word... " >&6; } | |
12933 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
12934 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12935 | else |
12936 | case $WINDMC_FOR_TARGET in | |
12937 | [\\/]* | ?:[\\/]*) | |
12938 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
12939 | ;; | |
12940 | *) | |
12941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12942 | for as_dir in $gcc_cv_tool_dirs | |
12943 | do | |
12944 | IFS=$as_save_IFS | |
12945 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12946 | for ac_exec_ext in '' $ac_executable_extensions; do |
12947 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12948 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12950 | break 2 |
12951 | fi | |
12952 | done | |
81ecdfbb RW |
12953 | done |
12954 | IFS=$as_save_IFS | |
0c24b341 NC |
12955 | |
12956 | ;; | |
12957 | esac | |
12958 | fi | |
12959 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 12960 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
12961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12962 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12963 | else |
81ecdfbb RW |
12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12965 | $as_echo "no" >&6; } | |
0c24b341 NC |
12966 | fi |
12967 | ||
81ecdfbb | 12968 | |
0c24b341 NC |
12969 | fi |
12970 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12971 | ||
12972 | ||
12973 | if test -n "$WINDMC_FOR_TARGET"; then | |
12974 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12975 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12976 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12977 | fi | |
12978 | ||
12979 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12980 | for ncn_progname in windmc; do | |
12981 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12982 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12984 | $as_echo_n "checking for $ac_word... " >&6; } | |
12985 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12986 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12987 | else |
12988 | if test -n "$WINDMC_FOR_TARGET"; then | |
12989 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
12990 | else | |
12991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12992 | for as_dir in $PATH | |
12993 | do | |
12994 | IFS=$as_save_IFS | |
12995 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12996 | for ac_exec_ext in '' $ac_executable_extensions; do |
12997 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12998 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13000 | break 2 |
13001 | fi | |
13002 | done | |
81ecdfbb RW |
13003 | done |
13004 | IFS=$as_save_IFS | |
0c24b341 NC |
13005 | |
13006 | fi | |
13007 | fi | |
13008 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13009 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13011 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13012 | else |
81ecdfbb RW |
13013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13014 | $as_echo "no" >&6; } | |
0c24b341 NC |
13015 | fi |
13016 | ||
81ecdfbb | 13017 | |
0c24b341 NC |
13018 | done |
13019 | fi | |
13020 | ||
13021 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13022 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13024 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13025 | if test -x $with_build_time_tools/${ncn_progname}; then |
13026 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13028 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13029 | break |
13030 | else | |
81ecdfbb RW |
13031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13032 | $as_echo "no" >&6; } | |
0c24b341 NC |
13033 | fi |
13034 | done | |
13035 | fi | |
13036 | ||
13037 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13038 | for ncn_progname in windmc; do | |
13039 | if test -n "$ncn_target_tool_prefix"; then | |
13040 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13041 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13043 | $as_echo_n "checking for $ac_word... " >&6; } | |
13044 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13045 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13046 | else |
13047 | if test -n "$WINDMC_FOR_TARGET"; then | |
13048 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13049 | else | |
13050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13051 | for as_dir in $PATH | |
13052 | do | |
13053 | IFS=$as_save_IFS | |
13054 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13055 | for ac_exec_ext in '' $ac_executable_extensions; do |
13056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13057 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13058 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13059 | break 2 |
13060 | fi | |
13061 | done | |
81ecdfbb RW |
13062 | done |
13063 | IFS=$as_save_IFS | |
0c24b341 NC |
13064 | |
13065 | fi | |
13066 | fi | |
13067 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13068 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13070 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13071 | else |
81ecdfbb RW |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13073 | $as_echo "no" >&6; } | |
0c24b341 NC |
13074 | fi |
13075 | ||
81ecdfbb | 13076 | |
0c24b341 NC |
13077 | fi |
13078 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13079 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13080 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13082 | $as_echo_n "checking for $ac_word... " >&6; } | |
13083 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13084 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13085 | else |
13086 | if test -n "$WINDMC_FOR_TARGET"; then | |
13087 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13088 | else | |
13089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13090 | for as_dir in $PATH | |
13091 | do | |
13092 | IFS=$as_save_IFS | |
13093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13094 | for ac_exec_ext in '' $ac_executable_extensions; do |
13095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13096 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13098 | break 2 |
13099 | fi | |
13100 | done | |
81ecdfbb RW |
13101 | done |
13102 | IFS=$as_save_IFS | |
0c24b341 NC |
13103 | |
13104 | fi | |
13105 | fi | |
13106 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13107 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13109 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13110 | else |
81ecdfbb RW |
13111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13112 | $as_echo "no" >&6; } | |
0c24b341 NC |
13113 | fi |
13114 | ||
81ecdfbb | 13115 | |
0c24b341 NC |
13116 | fi |
13117 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13118 | done | |
13119 | fi | |
13120 | ||
13121 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13122 | set dummy windmc | |
13123 | if test $build = $target ; then | |
13124 | WINDMC_FOR_TARGET="$2" | |
13125 | else | |
13126 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13127 | fi | |
13128 | else | |
13129 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13130 | fi | |
13131 | ||
13132 | else | |
13133 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13134 | fi | |
13135 | ||
13136 | ||
be01d343 PB |
13137 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13138 | ||
81ecdfbb RW |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13140 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13141 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13142 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13143 | # We already found the complete path | |
b8025f34 | 13144 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13146 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13147 | else |
13148 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13150 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13151 | fi |
be01d343 PB |
13152 | else |
13153 | ok=yes | |
13154 | case " ${configdirs} " in | |
13155 | *" binutils "*) ;; | |
13156 | *) ok=no ;; | |
13157 | esac | |
c6b750e1 | 13158 | |
be01d343 PB |
13159 | if test $ok = yes; then |
13160 | # An in-tree tool is available and we can use it | |
13161 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13163 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13164 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13165 | # We already found the complete path | |
b8025f34 | 13166 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13168 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13169 | elif test "x$target" = "x$host"; then |
13170 | # We can use an host tool | |
13171 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13173 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13174 | else |
13175 | # We need a cross tool | |
81ecdfbb RW |
13176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13177 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13178 | fi |
13179 | fi | |
4b900473 | 13180 | |
81ecdfbb RW |
13181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13182 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13183 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13184 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13185 | # We already found the complete path | |
b8025f34 | 13186 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13188 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13189 | else |
13190 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13192 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13193 | fi |
be01d343 PB |
13194 | else |
13195 | ok=yes | |
13196 | case " ${configdirs} " in | |
13197 | *" gas "*) ;; | |
13198 | *) ok=no ;; | |
13199 | esac | |
c6b750e1 | 13200 | |
be01d343 PB |
13201 | if test $ok = yes; then |
13202 | # An in-tree tool is available and we can use it | |
13203 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13205 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13206 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13207 | # We already found the complete path | |
b8025f34 | 13208 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13210 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13211 | elif test "x$target" = "x$host"; then |
13212 | # We can use an host tool | |
13213 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13215 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13216 | else |
13217 | # We need a cross tool | |
81ecdfbb RW |
13218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13219 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13220 | fi |
13221 | fi | |
4b900473 | 13222 | |
81ecdfbb RW |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13224 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13225 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13226 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13227 | # We already found the complete path | |
b8025f34 | 13228 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13230 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13231 | else |
13232 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13234 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13235 | fi |
be01d343 PB |
13236 | else |
13237 | ok=yes | |
13238 | case " ${configdirs} " in | |
13239 | *" gcc "*) ;; | |
13240 | *) ok=no ;; | |
13241 | esac | |
c6b750e1 | 13242 | |
be01d343 PB |
13243 | if test $ok = yes; then |
13244 | # An in-tree tool is available and we can use it | |
13245 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13247 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13248 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13249 | # We already found the complete path | |
b8025f34 | 13250 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13252 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13253 | elif test "x$target" = "x$host"; then |
13254 | # We can use an host tool | |
13255 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13257 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13258 | else |
13259 | # We need a cross tool | |
81ecdfbb RW |
13260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13261 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13262 | fi |
13263 | fi | |
4b900473 | 13264 | |
81ecdfbb RW |
13265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13266 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13267 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13268 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13269 | # We already found the complete path | |
b8025f34 | 13270 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13272 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13273 | else |
13274 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13276 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13277 | fi |
be01d343 PB |
13278 | else |
13279 | ok=yes | |
13280 | case " ${configdirs} " in | |
13281 | *" gcc "*) ;; | |
13282 | *) ok=no ;; | |
13283 | esac | |
13284 | case ,${enable_languages}, in | |
13285 | *,c++,*) ;; | |
13286 | *) ok=no ;; | |
13287 | esac | |
13288 | if test $ok = yes; then | |
13289 | # An in-tree tool is available and we can use it | |
87cda2cf | 13290 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
81ecdfbb RW |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13292 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13293 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13294 | # We already found the complete path | |
b8025f34 | 13295 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13297 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13298 | elif test "x$target" = "x$host"; then |
13299 | # We can use an host tool | |
13300 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13302 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13303 | else |
13304 | # We need a cross tool | |
81ecdfbb RW |
13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13306 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13307 | fi |
13308 | fi | |
4b900473 | 13309 | |
81ecdfbb RW |
13310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13311 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13312 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13313 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13314 | # We already found the complete path | |
b8025f34 | 13315 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13317 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13318 | else |
13319 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13321 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13322 | fi |
be01d343 PB |
13323 | else |
13324 | ok=yes | |
13325 | case " ${configdirs} " in | |
13326 | *" gcc "*) ;; | |
13327 | *) ok=no ;; | |
13328 | esac | |
13329 | case ,${enable_languages}, in | |
13330 | *,c++,*) ;; | |
13331 | *) ok=no ;; | |
13332 | esac | |
13333 | if test $ok = yes; then | |
13334 | # An in-tree tool is available and we can use it | |
13335 | 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' | |
81ecdfbb RW |
13336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13337 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13338 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13339 | # We already found the complete path | |
b8025f34 | 13340 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13342 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13343 | elif test "x$target" = "x$host"; then |
13344 | # We can use an host tool | |
13345 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13347 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13348 | else |
13349 | # We need a cross tool | |
81ecdfbb RW |
13350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13351 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13352 | fi |
13353 | fi | |
4b900473 | 13354 | |
81ecdfbb RW |
13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13356 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13357 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13358 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13359 | # We already found the complete path | |
b8025f34 | 13360 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13362 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13363 | else |
13364 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13366 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13367 | fi |
be01d343 PB |
13368 | else |
13369 | ok=yes | |
13370 | case " ${configdirs} " in | |
13371 | *" binutils "*) ;; | |
13372 | *) ok=no ;; | |
13373 | esac | |
c6b750e1 | 13374 | |
be01d343 PB |
13375 | if test $ok = yes; then |
13376 | # An in-tree tool is available and we can use it | |
13377 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13379 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13380 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13381 | # We already found the complete path | |
b8025f34 | 13382 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13384 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13385 | elif test "x$target" = "x$host"; then |
13386 | # We can use an host tool | |
13387 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13389 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13390 | else |
13391 | # We need a cross tool | |
81ecdfbb RW |
13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13393 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13394 | fi |
13395 | fi | |
4b900473 | 13396 | |
81ecdfbb RW |
13397 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13398 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13399 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13400 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13401 | # We already found the complete path | |
b8025f34 | 13402 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13404 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13405 | else |
13406 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13408 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13409 | fi |
be01d343 PB |
13410 | else |
13411 | ok=yes | |
13412 | case " ${configdirs} " in | |
13413 | *" gcc "*) ;; | |
13414 | *) ok=no ;; | |
13415 | esac | |
c6b750e1 | 13416 | |
be01d343 PB |
13417 | if test $ok = yes; then |
13418 | # An in-tree tool is available and we can use it | |
13419 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13421 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13422 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13423 | # We already found the complete path | |
b8025f34 | 13424 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13426 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13427 | elif test "x$target" = "x$host"; then |
13428 | # We can use an host tool | |
13429 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13431 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13432 | else |
13433 | # We need a cross tool | |
81ecdfbb RW |
13434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13435 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13436 | fi |
13437 | fi | |
4b900473 | 13438 | |
81ecdfbb RW |
13439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13440 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13441 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13442 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13443 | # We already found the complete path | |
b8025f34 | 13444 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13446 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13447 | else |
13448 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13450 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13451 | fi |
be01d343 PB |
13452 | else |
13453 | ok=yes | |
13454 | case " ${configdirs} " in | |
13455 | *" gcc "*) ;; | |
13456 | *) ok=no ;; | |
13457 | esac | |
13458 | case ,${enable_languages}, in | |
13459 | *,java,*) ;; | |
13460 | *) ok=no ;; | |
13461 | esac | |
13462 | if test $ok = yes; then | |
13463 | # An in-tree tool is available and we can use it | |
13464 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13466 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13467 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13468 | # We already found the complete path | |
b8025f34 | 13469 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13471 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13472 | elif test "x$target" = "x$host"; then |
13473 | # We can use an host tool | |
13474 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13476 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13477 | else |
13478 | # We need a cross tool | |
81ecdfbb RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13480 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13481 | fi |
13482 | fi | |
4b900473 | 13483 | |
81ecdfbb RW |
13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13485 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13486 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13487 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13488 | # We already found the complete path | |
b8025f34 | 13489 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13491 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13492 | else |
13493 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13495 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13496 | fi |
be01d343 PB |
13497 | else |
13498 | ok=yes | |
13499 | case " ${configdirs} " in | |
13500 | *" gcc "*) ;; | |
13501 | *) ok=no ;; | |
13502 | esac | |
13503 | case ,${enable_languages}, in | |
13504 | *,fortran,*) ;; | |
13505 | *) ok=no ;; | |
13506 | esac | |
13507 | if test $ok = yes; then | |
13508 | # An in-tree tool is available and we can use it | |
13509 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13511 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13512 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13513 | # We already found the complete path | |
b8025f34 | 13514 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13516 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13517 | elif test "x$target" = "x$host"; then |
13518 | # We can use an host tool | |
13519 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13521 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13522 | else |
13523 | # We need a cross tool | |
81ecdfbb RW |
13524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13525 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13526 | fi |
13527 | fi | |
4b900473 | 13528 | |
e552509b ILT |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13530 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13531 | if test "x${build}" != "x${host}" ; then | |
13532 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13533 | # We already found the complete path | |
13534 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13536 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13537 | else | |
13538 | # Canadian cross, just use what we found | |
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13540 | $as_echo "pre-installed" >&6; } | |
13541 | fi | |
13542 | else | |
13543 | ok=yes | |
13544 | case " ${configdirs} " in | |
13545 | *" gcc "*) ;; | |
13546 | *) ok=no ;; | |
13547 | esac | |
13548 | case ,${enable_languages}, in | |
13549 | *,go,*) ;; | |
13550 | *) ok=no ;; | |
13551 | esac | |
13552 | if test $ok = yes; then | |
13553 | # An in-tree tool is available and we can use it | |
13554 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13556 | $as_echo "just compiled" >&6; } | |
13557 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13558 | # We already found the complete path | |
13559 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13561 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13562 | elif test "x$target" = "x$host"; then | |
13563 | # We can use an host tool | |
13564 | GOC_FOR_TARGET='$(GOC)' | |
13565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13566 | $as_echo "host tool" >&6; } | |
13567 | else | |
13568 | # We need a cross tool | |
13569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13570 | $as_echo "pre-installed" >&6; } | |
13571 | fi | |
13572 | fi | |
13573 | ||
81ecdfbb RW |
13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13575 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 13576 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13577 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13578 | # We already found the complete path | |
b8025f34 | 13579 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13581 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13582 | else |
13583 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13585 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13586 | fi |
be01d343 PB |
13587 | else |
13588 | ok=yes | |
13589 | case " ${configdirs} " in | |
13590 | *" ld "*) ;; | |
13591 | *) ok=no ;; | |
13592 | esac | |
c6b750e1 | 13593 | |
be01d343 PB |
13594 | if test $ok = yes; then |
13595 | # An in-tree tool is available and we can use it | |
13596 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13598 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13599 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13600 | # We already found the complete path | |
b8025f34 | 13601 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13603 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13604 | elif test "x$target" = "x$host"; then |
13605 | # We can use an host tool | |
13606 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13608 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13609 | else |
13610 | # We need a cross tool | |
81ecdfbb RW |
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13612 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13613 | fi |
13614 | fi | |
4b900473 | 13615 | |
81ecdfbb RW |
13616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13617 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 13618 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13619 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13620 | # We already found the complete path | |
b8025f34 | 13621 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13623 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13624 | else |
13625 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13627 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13628 | fi |
be01d343 | 13629 | else |
2429c060 PB |
13630 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13631 | # We already found the complete path | |
b8025f34 | 13632 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13634 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 13635 | elif test "x$target" = "x$host"; then |
be01d343 PB |
13636 | # We can use an host tool |
13637 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13639 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13640 | else |
13641 | # We need a cross tool | |
81ecdfbb RW |
13642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13643 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13644 | fi |
13645 | fi | |
4b900473 | 13646 | |
81ecdfbb RW |
13647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13648 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 13649 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13650 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13651 | # We already found the complete path | |
b8025f34 | 13652 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13654 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13655 | else |
13656 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13658 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13659 | fi |
be01d343 PB |
13660 | else |
13661 | ok=yes | |
13662 | case " ${configdirs} " in | |
13663 | *" binutils "*) ;; | |
13664 | *) ok=no ;; | |
13665 | esac | |
c6b750e1 | 13666 | |
be01d343 PB |
13667 | if test $ok = yes; then |
13668 | # An in-tree tool is available and we can use it | |
13669 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13671 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13672 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13673 | # We already found the complete path | |
b8025f34 | 13674 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13676 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13677 | elif test "x$target" = "x$host"; then |
13678 | # We can use an host tool | |
13679 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
13680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13681 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13682 | else |
13683 | # We need a cross tool | |
81ecdfbb RW |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13685 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13686 | fi |
13687 | fi | |
4b900473 | 13688 | |
81ecdfbb RW |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13690 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 13691 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13692 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13693 | # We already found the complete path | |
b8025f34 | 13694 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13696 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13697 | else |
13698 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13700 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13701 | fi |
be01d343 PB |
13702 | else |
13703 | ok=yes | |
13704 | case " ${configdirs} " in | |
13705 | *" binutils "*) ;; | |
13706 | *) ok=no ;; | |
13707 | esac | |
c6b750e1 | 13708 | |
be01d343 PB |
13709 | if test $ok = yes; then |
13710 | # An in-tree tool is available and we can use it | |
13711 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
13712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13713 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13714 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13715 | # We already found the complete path | |
b8025f34 | 13716 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13718 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13719 | elif test "x$target" = "x$host"; then |
13720 | # We can use an host tool | |
13721 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13723 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13724 | else |
13725 | # We need a cross tool | |
81ecdfbb RW |
13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13727 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13728 | fi |
13729 | fi | |
4b900473 | 13730 | |
81ecdfbb RW |
13731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13732 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 13733 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13734 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13735 | # We already found the complete path | |
b8025f34 | 13736 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13738 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13739 | else |
13740 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13742 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13743 | fi |
be01d343 PB |
13744 | else |
13745 | ok=yes | |
13746 | case " ${configdirs} " in | |
13747 | *" binutils "*) ;; | |
13748 | *) ok=no ;; | |
13749 | esac | |
c6b750e1 | 13750 | |
be01d343 PB |
13751 | if test $ok = yes; then |
13752 | # An in-tree tool is available and we can use it | |
13753 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
13754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13755 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13756 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13757 | # We already found the complete path | |
b8025f34 | 13758 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13760 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13761 | elif test "x$target" = "x$host"; then |
13762 | # We can use an host tool | |
13763 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13765 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13766 | else |
13767 | # We need a cross tool | |
81ecdfbb RW |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13769 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13770 | fi |
13771 | fi | |
4b900473 | 13772 | |
81ecdfbb RW |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13774 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 13775 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13776 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13777 | # We already found the complete path | |
b8025f34 | 13778 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13780 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13781 | else |
13782 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13784 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13785 | fi |
be01d343 PB |
13786 | else |
13787 | ok=yes | |
13788 | case " ${configdirs} " in | |
13789 | *" binutils "*) ;; | |
13790 | *) ok=no ;; | |
13791 | esac | |
c6b750e1 | 13792 | |
be01d343 PB |
13793 | if test $ok = yes; then |
13794 | # An in-tree tool is available and we can use it | |
9b980aa1 | 13795 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
13796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13797 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13798 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13799 | # We already found the complete path | |
b8025f34 | 13800 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13802 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13803 | elif test "x$target" = "x$host"; then |
13804 | # We can use an host tool | |
13805 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
13806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13807 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13808 | else |
13809 | # We need a cross tool | |
81ecdfbb RW |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13811 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13812 | fi |
13813 | fi | |
4b900473 | 13814 | |
81ecdfbb RW |
13815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13816 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 13817 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13818 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13819 | # We already found the complete path | |
b8025f34 | 13820 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13822 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13823 | else |
13824 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13826 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13827 | fi |
be01d343 PB |
13828 | else |
13829 | ok=yes | |
13830 | case " ${configdirs} " in | |
13831 | *" binutils "*) ;; | |
13832 | *) ok=no ;; | |
13833 | esac | |
c6b750e1 | 13834 | |
be01d343 PB |
13835 | if test $ok = yes; then |
13836 | # An in-tree tool is available and we can use it | |
13837 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13839 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13840 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13841 | # We already found the complete path | |
b8025f34 | 13842 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13844 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13845 | elif test "x$target" = "x$host"; then |
13846 | # We can use an host tool | |
13847 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13849 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13850 | else |
13851 | # We need a cross tool | |
81ecdfbb RW |
13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13853 | $as_echo "pre-installed" >&6; } | |
be01d343 | 13854 | fi |
a0da8069 | 13855 | fi |
54752a6b | 13856 | |
81ecdfbb RW |
13857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
13858 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
13859 | if test "x${build}" != "x${host}" ; then |
13860 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
13861 | # We already found the complete path | |
13862 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13864 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13865 | else |
13866 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13868 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13869 | fi |
13870 | else | |
13871 | ok=yes | |
13872 | case " ${configdirs} " in | |
13873 | *" binutils "*) ;; | |
13874 | *) ok=no ;; | |
13875 | esac | |
13876 | ||
13877 | if test $ok = yes; then | |
13878 | # An in-tree tool is available and we can use it | |
13879 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13881 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
13882 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
13883 | # We already found the complete path | |
13884 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13886 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13887 | elif test "x$target" = "x$host"; then |
13888 | # We can use an host tool | |
13889 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13891 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
13892 | else |
13893 | # We need a cross tool | |
81ecdfbb RW |
13894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13895 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13896 | fi |
13897 | fi | |
13898 | ||
54752a6b NN |
13899 | |
13900 | ||
be01d343 | 13901 | |
4b900473 | 13902 | |
a0da8069 NN |
13903 | # Certain tools may need extra flags. |
13904 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
13905 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
13906 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
13907 | ||
be01d343 PB |
13908 | # When building target libraries, except in a Canadian cross, we use |
13909 | # the same toolchain as the compiler we just built. | |
13910 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
13911 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
13912 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
13913 | if test $host = $build; then | |
13914 | case " $configdirs " in | |
13915 | *" gcc "*) | |
13916 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
13917 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
13918 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
13919 | ;; | |
13920 | esac | |
13921 | fi | |
13922 | ||
13923 | ||
13924 | ||
13925 | ||
13926 | ||
81ecdfbb RW |
13927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13928 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13929 | # Check whether --enable-maintainer-mode was given. | |
13930 | if test "${enable_maintainer_mode+set}" = set; then : | |
13931 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
13932 | else |
13933 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
13934 | fi |
13935 | ||
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13937 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
13938 | |
13939 | ||
13940 | if test "$USE_MAINTAINER_MODE" = yes; then | |
13941 | MAINTAINER_MODE_TRUE= | |
13942 | MAINTAINER_MODE_FALSE='#' | |
13943 | else | |
13944 | MAINTAINER_MODE_TRUE='#' | |
13945 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 13946 | fi |
3d5e36ae AO |
13947 | MAINT=$MAINTAINER_MODE_TRUE |
13948 | ||
1d39f329 NN |
13949 | # --------------------- |
13950 | # GCC bootstrap support | |
13951 | # --------------------- | |
13952 | ||
13953 | # Stage specific cflags for build. | |
13954 | stage1_cflags="-g" | |
13955 | case $build in | |
13956 | vax-*-*) | |
13957 | case ${GCC} in | |
13958 | yes) stage1_cflags="-g -Wa,-J" ;; | |
13959 | *) stage1_cflags="-g -J" ;; | |
13960 | esac ;; | |
1d39f329 NN |
13961 | esac |
13962 | ||
1d89b610 | 13963 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
e8a5fa9c | 13964 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
1d89b610 PB |
13965 | saved_CFLAGS="$CFLAGS" |
13966 | ||
13967 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
13968 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
81ecdfbb RW |
13969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
13970 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
13971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
13972 | /* end confdefs.h. */ |
13973 | ||
2038f525 PB |
13974 | #if (__GNUC__ < 3) \ |
13975 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
13976 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
13977 | #error http://gcc.gnu.org/PR29382 | |
13978 | #endif | |
13979 | ||
c6b750e1 DJ |
13980 | int |
13981 | main () | |
13982 | { | |
13983 | ||
13984 | ; | |
13985 | return 0; | |
13986 | } | |
13987 | _ACEOF | |
81ecdfbb RW |
13988 | if ac_fn_c_try_compile "$LINENO"; then : |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13990 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
c6b750e1 | 13991 | else |
81ecdfbb RW |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13993 | $as_echo "no" >&6; } | |
c6b750e1 | 13994 | fi |
81ecdfbb | 13995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1d89b610 PB |
13996 | |
13997 | CFLAGS="$saved_CFLAGS" | |
13998 | fi | |
13999 | ||
14000 | ||
1d39f329 | 14001 | |
8a0d8a5c | 14002 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14003 | # Check whether --enable-stage1-checking was given. |
14004 | if test "${enable_stage1_checking+set}" = set; then : | |
14005 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14006 | else |
5566c1fa | 14007 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14008 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14009 | else |
5566c1fa | 14010 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14011 | fi |
81ecdfbb | 14012 | fi |
8a0d8a5c PB |
14013 | |
14014 | ||
c6b750e1 | 14015 | |
81ecdfbb RW |
14016 | # Enable -Werror in bootstrap stage2 and later. |
14017 | # Check whether --enable-werror was given. | |
14018 | if test "${enable_werror+set}" = set; then : | |
14019 | enableval=$enable_werror; | |
1d39f329 | 14020 | else |
a0323144 | 14021 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14022 | enable_werror=yes |
79fcd0ec PB |
14023 | else |
14024 | enable_werror=no | |
14025 | fi | |
81ecdfbb RW |
14026 | fi |
14027 | ||
1a6f2dc7 NN |
14028 | case ${enable_werror} in |
14029 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14030 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14031 | esac |
14032 | ||
14033 | ||
e8a5fa9c RW |
14034 | # Specify what files to not compare during bootstrap. |
14035 | ||
14036 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14037 | case "$target" in | |
14038 | hppa*64*-*-hpux*) ;; | |
14039 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14040 | esac | |
1f53ca9a AO |
14041 | case " $configdirs " in |
14042 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
14043 | esac | |
e8a5fa9c RW |
14044 | |
14045 | ||
81ecdfbb RW |
14046 | ac_config_files="$ac_config_files Makefile" |
14047 | ||
c6b750e1 | 14048 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14049 | # This file is a shell script that caches the results of configure |
14050 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14051 | # scripts and configure runs, see configure's option --config-cache. |
14052 | # It is not useful on other systems. If it contains results you don't | |
14053 | # want to keep, you may remove or edit it. | |
a0da8069 | 14054 | # |
c6b750e1 DJ |
14055 | # config.status only pays attention to the cache file if you give it |
14056 | # the --recheck option to rerun configure. | |
a0da8069 | 14057 | # |
c6b750e1 DJ |
14058 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14059 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14060 | # following values. | |
14061 | ||
14062 | _ACEOF | |
14063 | ||
a0da8069 NN |
14064 | # The following way of writing the cache mishandles newlines in values, |
14065 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14066 | # So, we kill variables containing newlines. |
a0da8069 NN |
14067 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14068 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14069 | ( |
14070 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14071 | eval ac_val=\$$ac_var | |
14072 | case $ac_val in #( | |
14073 | *${as_nl}*) | |
14074 | case $ac_var in #( | |
14075 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14076 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14077 | esac | |
14078 | case $ac_var in #( | |
14079 | _ | IFS | as_nl) ;; #( | |
14080 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14081 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14082 | esac ;; | |
14083 | esac | |
14084 | done | |
14085 | ||
c6b750e1 | 14086 | (set) 2>&1 | |
81ecdfbb RW |
14087 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14088 | *${as_nl}ac_space=\ *) | |
14089 | # `set' does not quote correctly, so add quotes: double-quote | |
14090 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14091 | sed -n \ |
14092 | "s/'/'\\\\''/g; | |
14093 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14094 | ;; #( |
c6b750e1 DJ |
14095 | *) |
14096 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14097 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14098 | ;; |
81ecdfbb RW |
14099 | esac | |
14100 | sort | |
14101 | ) | | |
c6b750e1 | 14102 | sed ' |
81ecdfbb | 14103 | /^ac_cv_env_/b end |
c6b750e1 | 14104 | t clear |
81ecdfbb | 14105 | :clear |
c6b750e1 DJ |
14106 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14107 | t end | |
81ecdfbb RW |
14108 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14109 | :end' >>confcache | |
14110 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14111 | if test -w "$cache_file"; then | |
14112 | test "x$cache_file" != "x/dev/null" && | |
14113 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14114 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14115 | cat confcache >$cache_file |
a0da8069 | 14116 | else |
81ecdfbb RW |
14117 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14118 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14119 | fi |
852e5f18 | 14120 | fi |
a0da8069 | 14121 | rm -f confcache |
852e5f18 | 14122 | |
a0da8069 NN |
14123 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14124 | # Let make expand exec_prefix. | |
14125 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14126 | |
a0da8069 NN |
14127 | # Transform confdefs.h into DEFS. |
14128 | # Protect against shell expansion while executing Makefile rules. | |
14129 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14130 | # |
14131 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14132 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14133 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14134 | ac_script=' |
14135 | :mline | |
14136 | /\\$/{ | |
14137 | N | |
14138 | s,\\\n,, | |
14139 | b mline | |
14140 | } | |
c6b750e1 | 14141 | t clear |
81ecdfbb RW |
14142 | :clear |
14143 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14144 | t quote |
81ecdfbb | 14145 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14146 | t quote |
81ecdfbb RW |
14147 | b any |
14148 | :quote | |
14149 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14150 | s/\[/\\&/g | |
14151 | s/\]/\\&/g | |
14152 | s/\$/$$/g | |
14153 | H | |
14154 | :any | |
14155 | ${ | |
14156 | g | |
14157 | s/^\n// | |
14158 | s/\n/ /g | |
14159 | p | |
14160 | } | |
14161 | ' | |
14162 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14163 | |
14164 | ||
14165 | ac_libobjs= | |
14166 | ac_ltlibobjs= | |
14167 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14168 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14169 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14170 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14171 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14172 | # will be set to the directory where LIBOBJS objects are built. | |
14173 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14174 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14175 | done |
14176 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14177 | |
c6b750e1 | 14178 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14179 | |
cac3d6c4 | 14180 | |
c6b750e1 DJ |
14181 | |
14182 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14183 | ac_write_fail=0 |
c6b750e1 DJ |
14184 | ac_clean_files_save=$ac_clean_files |
14185 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14187 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14188 | as_write_fail=0 | |
14189 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14190 | #! $SHELL |
14191 | # Generated by $as_me. | |
a0da8069 | 14192 | # Run this file to recreate the current configuration. |
a0da8069 | 14193 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14194 | # configure, is in config.log if it exists. |
376a0e54 | 14195 | |
c6b750e1 DJ |
14196 | debug=false |
14197 | ac_cs_recheck=false | |
14198 | ac_cs_silent=false | |
c6b750e1 | 14199 | |
81ecdfbb RW |
14200 | SHELL=\${CONFIG_SHELL-$SHELL} |
14201 | export SHELL | |
14202 | _ASEOF | |
14203 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14204 | ## -------------------- ## | |
14205 | ## M4sh Initialization. ## | |
14206 | ## -------------------- ## | |
14207 | ||
14208 | # Be more Bourne compatible | |
14209 | DUALCASE=1; export DUALCASE # for MKS sh | |
14210 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14211 | emulate sh |
14212 | NULLCMD=: | |
81ecdfbb | 14213 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14214 | # is contrary to our usage. Disable this feature. |
14215 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14216 | setopt NO_GLOB_SUBST |
14217 | else | |
14218 | case `(set -o) 2>/dev/null` in #( | |
14219 | *posix*) : | |
14220 | set -o posix ;; #( | |
14221 | *) : | |
14222 | ;; | |
14223 | esac | |
c6b750e1 | 14224 | fi |
c6b750e1 | 14225 | |
81ecdfbb RW |
14226 | |
14227 | as_nl=' | |
14228 | ' | |
14229 | export as_nl | |
14230 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14231 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14232 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14233 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14234 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14235 | # but without wasting forks for bash or zsh. | |
14236 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14237 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14238 | as_echo='print -r --' | |
14239 | as_echo_n='print -rn --' | |
14240 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14241 | as_echo='printf %s\n' | |
14242 | as_echo_n='printf %s' | |
14243 | else | |
14244 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14245 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14246 | as_echo_n='/usr/ucb/echo -n' | |
14247 | else | |
14248 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14249 | as_echo_n_body='eval | |
14250 | arg=$1; | |
14251 | case $arg in #( | |
14252 | *"$as_nl"*) | |
14253 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14254 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14255 | esac; | |
14256 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14257 | ' | |
14258 | export as_echo_n_body | |
14259 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14260 | fi | |
14261 | export as_echo_body | |
14262 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14263 | fi |
14264 | ||
81ecdfbb RW |
14265 | # The user is always right. |
14266 | if test "${PATH_SEPARATOR+set}" != set; then | |
14267 | PATH_SEPARATOR=: | |
14268 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14269 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14270 | PATH_SEPARATOR=';' | |
14271 | } | |
14272 | fi | |
14273 | ||
14274 | ||
14275 | # IFS | |
14276 | # We need space, tab and new line, in precisely that order. Quoting is | |
14277 | # there to prevent editors from complaining about space-tab. | |
14278 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14279 | # splitting by setting IFS to empty value.) | |
14280 | IFS=" "" $as_nl" | |
14281 | ||
14282 | # Find who we are. Look in the path if we contain no directory separator. | |
14283 | case $0 in #(( | |
14284 | *[\\/]* ) as_myself=$0 ;; | |
14285 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14286 | for as_dir in $PATH | |
14287 | do | |
14288 | IFS=$as_save_IFS | |
14289 | test -z "$as_dir" && as_dir=. | |
14290 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14291 | done | |
14292 | IFS=$as_save_IFS | |
14293 | ||
14294 | ;; | |
14295 | esac | |
14296 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14297 | # in which case we are not to be found in the path. | |
14298 | if test "x$as_myself" = x; then | |
14299 | as_myself=$0 | |
14300 | fi | |
14301 | if test ! -f "$as_myself"; then | |
14302 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14303 | exit 1 | |
14304 | fi | |
c6b750e1 | 14305 | |
81ecdfbb RW |
14306 | # Unset variables that we do not need and which cause bugs (e.g. in |
14307 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14308 | # suppresses any "Segmentation fault" message there. '((' could | |
14309 | # trigger a bug in pdksh 5.2.14. | |
14310 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14311 | do eval test x\${$as_var+set} = xset \ | |
14312 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14313 | done | |
c6b750e1 DJ |
14314 | PS1='$ ' |
14315 | PS2='> ' | |
14316 | PS4='+ ' | |
14317 | ||
14318 | # NLS nuisances. | |
81ecdfbb RW |
14319 | LC_ALL=C |
14320 | export LC_ALL | |
14321 | LANGUAGE=C | |
14322 | export LANGUAGE | |
14323 | ||
14324 | # CDPATH. | |
14325 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14326 | ||
14327 | ||
14328 | # as_fn_error ERROR [LINENO LOG_FD] | |
14329 | # --------------------------------- | |
14330 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14331 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14332 | # script with status $?, using 1 if that was 0. | |
14333 | as_fn_error () | |
14334 | { | |
14335 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14336 | if test "$3"; then | |
14337 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14338 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14339 | fi |
81ecdfbb RW |
14340 | $as_echo "$as_me: error: $1" >&2 |
14341 | as_fn_exit $as_status | |
14342 | } # as_fn_error | |
14343 | ||
14344 | ||
14345 | # as_fn_set_status STATUS | |
14346 | # ----------------------- | |
14347 | # Set $? to STATUS, without forking. | |
14348 | as_fn_set_status () | |
14349 | { | |
14350 | return $1 | |
14351 | } # as_fn_set_status | |
14352 | ||
14353 | # as_fn_exit STATUS | |
14354 | # ----------------- | |
14355 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14356 | as_fn_exit () | |
14357 | { | |
14358 | set +e | |
14359 | as_fn_set_status $1 | |
14360 | exit $1 | |
14361 | } # as_fn_exit | |
14362 | ||
14363 | # as_fn_unset VAR | |
14364 | # --------------- | |
14365 | # Portably unset VAR. | |
14366 | as_fn_unset () | |
14367 | { | |
14368 | { eval $1=; unset $1;} | |
14369 | } | |
14370 | as_unset=as_fn_unset | |
14371 | # as_fn_append VAR VALUE | |
14372 | # ---------------------- | |
14373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14374 | # advantage of any shell optimizations that allow amortized linear growth over | |
14375 | # repeated appends, instead of the typical quadratic growth present in naive | |
14376 | # implementations. | |
14377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14378 | eval 'as_fn_append () | |
14379 | { | |
14380 | eval $1+=\$2 | |
14381 | }' | |
14382 | else | |
14383 | as_fn_append () | |
14384 | { | |
14385 | eval $1=\$$1\$2 | |
14386 | } | |
14387 | fi # as_fn_append | |
14388 | ||
14389 | # as_fn_arith ARG... | |
14390 | # ------------------ | |
14391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14393 | # must be portable across $(()) and expr. | |
14394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14395 | eval 'as_fn_arith () | |
14396 | { | |
14397 | as_val=$(( $* )) | |
14398 | }' | |
14399 | else | |
14400 | as_fn_arith () | |
14401 | { | |
14402 | as_val=`expr "$@" || test $? -eq 1` | |
14403 | } | |
14404 | fi # as_fn_arith | |
14405 | ||
c6b750e1 | 14406 | |
81ecdfbb RW |
14407 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14408 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14409 | as_expr=expr |
14410 | else | |
14411 | as_expr=false | |
14412 | fi | |
14413 | ||
81ecdfbb | 14414 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14415 | as_basename=basename |
14416 | else | |
14417 | as_basename=false | |
14418 | fi | |
14419 | ||
81ecdfbb RW |
14420 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14421 | as_dirname=dirname | |
14422 | else | |
14423 | as_dirname=false | |
14424 | fi | |
c6b750e1 | 14425 | |
81ecdfbb | 14426 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14427 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14428 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14429 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14430 | $as_echo X/"$0" | | |
14431 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14432 | s//\1/ | |
14433 | q | |
14434 | } | |
14435 | /^X\/\(\/\/\)$/{ | |
14436 | s//\1/ | |
14437 | q | |
14438 | } | |
14439 | /^X\/\(\/\).*/{ | |
14440 | s//\1/ | |
14441 | q | |
14442 | } | |
14443 | s/.*/./; q'` | |
c6b750e1 | 14444 | |
c6b750e1 DJ |
14445 | # Avoid depending upon Character Ranges. |
14446 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14447 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14448 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14449 | as_cr_digits='0123456789' | |
14450 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14451 | ||
81ecdfbb RW |
14452 | ECHO_C= ECHO_N= ECHO_T= |
14453 | case `echo -n x` in #((((( | |
14454 | -n*) | |
14455 | case `echo 'xy\c'` in | |
14456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14457 | xy) ECHO_C='\c';; | |
14458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14459 | ECHO_T=' ';; | |
14460 | esac;; | |
14461 | *) | |
14462 | ECHO_N='-n';; | |
c6b750e1 DJ |
14463 | esac |
14464 | ||
81ecdfbb RW |
14465 | rm -f conf$$ conf$$.exe conf$$.file |
14466 | if test -d conf$$.dir; then | |
14467 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 14468 | else |
81ecdfbb RW |
14469 | rm -f conf$$.dir |
14470 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 14471 | fi |
81ecdfbb RW |
14472 | if (echo >conf$$.file) 2>/dev/null; then |
14473 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 14474 | as_ln_s='ln -s' |
81ecdfbb RW |
14475 | # ... but there are two gotchas: |
14476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14478 | # In both cases, we have to default to `cp -p'. | |
14479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14480 | as_ln_s='cp -p' | |
14481 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14482 | as_ln_s=ln | |
14483 | else | |
14484 | as_ln_s='cp -p' | |
c6b750e1 | 14485 | fi |
c6b750e1 DJ |
14486 | else |
14487 | as_ln_s='cp -p' | |
14488 | fi | |
81ecdfbb RW |
14489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14490 | rmdir conf$$.dir 2>/dev/null | |
14491 | ||
14492 | ||
14493 | # as_fn_mkdir_p | |
14494 | # ------------- | |
14495 | # Create "$as_dir" as a directory, including parents if necessary. | |
14496 | as_fn_mkdir_p () | |
14497 | { | |
14498 | ||
14499 | case $as_dir in #( | |
14500 | -*) as_dir=./$as_dir;; | |
14501 | esac | |
14502 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14503 | as_dirs= | |
14504 | while :; do | |
14505 | case $as_dir in #( | |
14506 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14507 | *) as_qdir=$as_dir;; | |
14508 | esac | |
14509 | as_dirs="'$as_qdir' $as_dirs" | |
14510 | as_dir=`$as_dirname -- "$as_dir" || | |
14511 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14512 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14513 | X"$as_dir" : 'X\(//\)$' \| \ | |
14514 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14515 | $as_echo X"$as_dir" | | |
14516 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14517 | s//\1/ | |
14518 | q | |
14519 | } | |
14520 | /^X\(\/\/\)[^/].*/{ | |
14521 | s//\1/ | |
14522 | q | |
14523 | } | |
14524 | /^X\(\/\/\)$/{ | |
14525 | s//\1/ | |
14526 | q | |
14527 | } | |
14528 | /^X\(\/\).*/{ | |
14529 | s//\1/ | |
14530 | q | |
14531 | } | |
14532 | s/.*/./; q'` | |
14533 | test -d "$as_dir" && break | |
14534 | done | |
14535 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14536 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14537 | ||
c6b750e1 | 14538 | |
81ecdfbb | 14539 | } # as_fn_mkdir_p |
c6b750e1 | 14540 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14541 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
14542 | else |
14543 | test -d ./-p && rmdir ./-p | |
14544 | as_mkdir_p=false | |
14545 | fi | |
14546 | ||
81ecdfbb RW |
14547 | if test -x / >/dev/null 2>&1; then |
14548 | as_test_x='test -x' | |
14549 | else | |
14550 | if ls -dL / >/dev/null 2>&1; then | |
14551 | as_ls_L_option=L | |
14552 | else | |
14553 | as_ls_L_option= | |
14554 | fi | |
14555 | as_test_x=' | |
14556 | eval sh -c '\'' | |
14557 | if test -d "$1"; then | |
14558 | test -d "$1/."; | |
14559 | else | |
14560 | case $1 in #( | |
14561 | -*)set "./$1";; | |
14562 | esac; | |
14563 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14564 | ???[sx]*):;;*)false;;esac;fi | |
14565 | '\'' sh | |
14566 | ' | |
14567 | fi | |
14568 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
14569 | |
14570 | # Sed expression to map a string onto a valid CPP name. | |
14571 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14572 | ||
14573 | # Sed expression to map a string onto a valid variable name. | |
14574 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14575 | ||
14576 | ||
c6b750e1 | 14577 | exec 6>&1 |
81ecdfbb RW |
14578 | ## ----------------------------------- ## |
14579 | ## Main body of $CONFIG_STATUS script. ## | |
14580 | ## ----------------------------------- ## | |
14581 | _ASEOF | |
14582 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14583 | ||
14584 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14585 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 14586 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14587 | # values after options handling. |
14588 | ac_log=" | |
c6b750e1 | 14589 | This file was extended by $as_me, which was |
81ecdfbb | 14590 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
14591 | |
14592 | CONFIG_FILES = $CONFIG_FILES | |
14593 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14594 | CONFIG_LINKS = $CONFIG_LINKS | |
14595 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14596 | $ $0 $@ | |
14597 | ||
81ecdfbb RW |
14598 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14599 | " | |
14600 | ||
c6b750e1 DJ |
14601 | _ACEOF |
14602 | ||
81ecdfbb RW |
14603 | case $ac_config_files in *" |
14604 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14605 | esac | |
c6b750e1 | 14606 | |
c6b750e1 | 14607 | |
c6b750e1 | 14608 | |
81ecdfbb RW |
14609 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14610 | # Files that config.status was made for. | |
14611 | config_files="$ac_config_files" | |
c6b750e1 | 14612 | |
81ecdfbb | 14613 | _ACEOF |
c6b750e1 | 14614 | |
81ecdfbb | 14615 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14616 | ac_cs_usage="\ |
81ecdfbb RW |
14617 | \`$as_me' instantiates files and other configuration actions |
14618 | from templates according to the current configuration. Unless the files | |
14619 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 14620 | |
81ecdfbb | 14621 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
14622 | |
14623 | -h, --help print this help, then exit | |
81ecdfbb RW |
14624 | -V, --version print version number and configuration settings, then exit |
14625 | -q, --quiet, --silent | |
14626 | do not print progress messages | |
c6b750e1 DJ |
14627 | -d, --debug don't remove temporary files |
14628 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14629 | --file=FILE[:TEMPLATE] |
14630 | instantiate the configuration file FILE | |
c6b750e1 DJ |
14631 | |
14632 | Configuration files: | |
14633 | $config_files | |
14634 | ||
81ecdfbb | 14635 | Report bugs to the package provider." |
c6b750e1 | 14636 | |
81ecdfbb RW |
14637 | _ACEOF |
14638 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
14639 | ac_cs_version="\\ |
14640 | config.status | |
81ecdfbb RW |
14641 | configured by $0, generated by GNU Autoconf 2.64, |
14642 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 14643 | |
81ecdfbb | 14644 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
14645 | This config.status script is free software; the Free Software Foundation |
14646 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14647 | |
14648 | ac_pwd='$ac_pwd' | |
14649 | srcdir='$srcdir' | |
14650 | INSTALL='$INSTALL' | |
8e957354 | 14651 | AWK='$AWK' |
81ecdfbb | 14652 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
14653 | _ACEOF |
14654 | ||
81ecdfbb RW |
14655 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14656 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
14657 | ac_need_defaults=: |
14658 | while test $# != 0 | |
a0da8069 | 14659 | do |
c6b750e1 DJ |
14660 | case $1 in |
14661 | --*=*) | |
81ecdfbb RW |
14662 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14663 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
14664 | ac_shift=: |
14665 | ;; | |
81ecdfbb | 14666 | *) |
c6b750e1 DJ |
14667 | ac_option=$1 |
14668 | ac_optarg=$2 | |
14669 | ac_shift=shift | |
14670 | ;; | |
c6b750e1 DJ |
14671 | esac |
14672 | ||
14673 | case $ac_option in | |
14674 | # Handling of the options. | |
a0da8069 | 14675 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 14676 | ac_cs_recheck=: ;; |
81ecdfbb RW |
14677 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14678 | $as_echo "$ac_cs_version"; exit ;; | |
14679 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
14680 | debug=: ;; |
14681 | --file | --fil | --fi | --f ) | |
14682 | $ac_shift | |
81ecdfbb RW |
14683 | case $ac_optarg in |
14684 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14685 | esac | |
14686 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 14687 | ac_need_defaults=false;; |
81ecdfbb RW |
14688 | --he | --h | --help | --hel | -h ) |
14689 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
14690 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14691 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14692 | ac_cs_silent=: ;; | |
14693 | ||
14694 | # This is an error. | |
81ecdfbb RW |
14695 | -*) as_fn_error "unrecognized option: \`$1' |
14696 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 14697 | |
81ecdfbb RW |
14698 | *) as_fn_append ac_config_targets " $1" |
14699 | ac_need_defaults=false ;; | |
c6b750e1 | 14700 | |
376a0e54 | 14701 | esac |
c6b750e1 | 14702 | shift |
376a0e54 CM |
14703 | done |
14704 | ||
c6b750e1 | 14705 | ac_configure_extra_args= |
376a0e54 | 14706 | |
c6b750e1 DJ |
14707 | if $ac_cs_silent; then |
14708 | exec 6>/dev/null | |
14709 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14710 | fi | |
376a0e54 | 14711 | |
c6b750e1 | 14712 | _ACEOF |
81ecdfbb | 14713 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 14714 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14715 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14716 | shift | |
14717 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14718 | CONFIG_SHELL='$SHELL' | |
14719 | export CONFIG_SHELL | |
14720 | exec "\$@" | |
c6b750e1 DJ |
14721 | fi |
14722 | ||
14723 | _ACEOF | |
81ecdfbb RW |
14724 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14725 | exec 5>>config.log | |
14726 | { | |
14727 | echo | |
14728 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14729 | ## Running $as_me. ## | |
14730 | _ASBOX | |
14731 | $as_echo "$ac_log" | |
14732 | } >&5 | |
c6b750e1 | 14733 | |
81ecdfbb RW |
14734 | _ACEOF |
14735 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
14736 | # |
14737 | # INIT-COMMANDS | |
14738 | # | |
14739 | extrasub_build="$extrasub_build" | |
14740 | extrasub_host="$extrasub_host" | |
14741 | extrasub_target="$extrasub_target" | |
14742 | ||
81ecdfbb | 14743 | _ACEOF |
c6b750e1 | 14744 | |
81ecdfbb | 14745 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14746 | |
81ecdfbb | 14747 | # Handling of arguments. |
c6b750e1 DJ |
14748 | for ac_config_target in $ac_config_targets |
14749 | do | |
81ecdfbb RW |
14750 | case $ac_config_target in |
14751 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14752 | ||
14753 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
14754 | esac |
14755 | done | |
14756 | ||
81ecdfbb | 14757 | |
c6b750e1 DJ |
14758 | # If the user did not use the arguments to specify the items to instantiate, |
14759 | # then the envvar interface is used. Set only those that are not. | |
14760 | # We use the long form for the default assignment because of an extremely | |
14761 | # bizarre bug on SunOS 4.1.3. | |
14762 | if $ac_need_defaults; then | |
14763 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14764 | fi | |
14765 | ||
14766 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14767 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 14768 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14769 | # Hook for its removal unless debugging. |
14770 | # Note that there is a small window in which the directory will not be cleaned: | |
14771 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
14772 | $debug || |
14773 | { | |
81ecdfbb RW |
14774 | tmp= |
14775 | trap 'exit_status=$? | |
14776 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14777 | ' 0 | |
14778 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 14779 | } |
c6b750e1 DJ |
14780 | # Create a (secure) tmp directory for tmp files. |
14781 | ||
14782 | { | |
81ecdfbb | 14783 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
14784 | test -n "$tmp" && test -d "$tmp" |
14785 | } || | |
14786 | { | |
81ecdfbb RW |
14787 | tmp=./conf$$-$RANDOM |
14788 | (umask 077 && mkdir "$tmp") | |
14789 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14790 | ||
14791 | # Set up the scripts for CONFIG_FILES section. | |
14792 | # No need to generate them if there are no CONFIG_FILES. | |
14793 | # This happens for instance with `./config.status config.h'. | |
14794 | if test -n "$CONFIG_FILES"; then | |
14795 | ||
14796 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14797 | ac_cs_awk_getline=: | |
14798 | ac_cs_awk_pipe_init= | |
14799 | ac_cs_awk_read_file=' | |
14800 | while ((getline aline < (F[key])) > 0) | |
14801 | print(aline) | |
14802 | close(F[key])' | |
14803 | ac_cs_awk_pipe_fini= | |
14804 | else | |
14805 | ac_cs_awk_getline=false | |
14806 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14807 | ac_cs_awk_read_file=' | |
14808 | print "|#_!!_#|" | |
14809 | print "cat " F[key] " &&" | |
14810 | '$ac_cs_awk_pipe_init | |
14811 | # The final `:' finishes the AND list. | |
14812 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14813 | fi | |
14814 | ac_cr=`echo X | tr X '\015'` | |
14815 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14816 | # But we know of no other shell where ac_cr would be empty at this | |
14817 | # point, so we can use a bashism as a fallback. | |
14818 | if test "x$ac_cr" = x; then | |
14819 | eval ac_cr=\$\'\\r\' | |
14820 | fi | |
14821 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14822 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14823 | ac_cs_awk_cr='\r' | |
14824 | else | |
14825 | ac_cs_awk_cr=$ac_cr | |
14826 | fi | |
14827 | ||
14828 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14829 | _ACEOF | |
14830 | ||
14831 | # Create commands to substitute file output variables. | |
c6b750e1 | 14832 | { |
81ecdfbb RW |
14833 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14834 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14835 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14836 | echo "_ACAWK" && | |
14837 | echo "_ACEOF" | |
14838 | } >conf$$files.sh && | |
14839 | . ./conf$$files.sh || | |
14840 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14841 | rm -f conf$$files.sh | |
c6b750e1 | 14842 | |
81ecdfbb RW |
14843 | { |
14844 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14845 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14846 | echo "_ACEOF" | |
14847 | } >conf$$subs.sh || | |
14848 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14849 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14850 | ac_delim='%!_!# ' | |
14851 | for ac_last_try in false false false false false :; do | |
14852 | . ./conf$$subs.sh || | |
14853 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14854 | ||
14855 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14856 | if test $ac_delim_n = $ac_delim_num; then | |
14857 | break | |
14858 | elif $ac_last_try; then | |
14859 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14860 | else | |
14861 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14862 | fi | |
14863 | done | |
14864 | rm -f conf$$subs.sh | |
14865 | ||
14866 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14867 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 14868 | _ACEOF |
81ecdfbb RW |
14869 | sed -n ' |
14870 | h | |
14871 | s/^/S["/; s/!.*/"]=/ | |
14872 | p | |
14873 | g | |
14874 | s/^[^!]*!// | |
14875 | :repl | |
14876 | t repl | |
14877 | s/'"$ac_delim"'$// | |
14878 | t delim | |
14879 | :nl | |
14880 | h | |
14881 | s/\(.\{148\}\).*/\1/ | |
14882 | t more1 | |
14883 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14884 | p | |
14885 | n | |
14886 | b repl | |
14887 | :more1 | |
14888 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14889 | p | |
14890 | g | |
14891 | s/.\{148\}// | |
14892 | t nl | |
14893 | :delim | |
14894 | h | |
14895 | s/\(.\{148\}\).*/\1/ | |
14896 | t more2 | |
14897 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14898 | p | |
14899 | b | |
14900 | :more2 | |
14901 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14902 | p | |
14903 | g | |
14904 | s/.\{148\}// | |
14905 | t delim | |
14906 | ' <conf$$subs.awk | sed ' | |
14907 | /^[^""]/{ | |
14908 | N | |
14909 | s/\n// | |
14910 | } | |
14911 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14912 | rm -f conf$$subs.awk | |
14913 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14914 | _ACAWK | |
14915 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14916 | for (key in S) S_is_set[key] = 1 | |
14917 | FS = "\a" | |
14918 | \$ac_cs_awk_pipe_init | |
14919 | } | |
14920 | { | |
14921 | line = $ 0 | |
14922 | nfields = split(line, field, "@") | |
14923 | substed = 0 | |
14924 | len = length(field[1]) | |
14925 | for (i = 2; i < nfields; i++) { | |
14926 | key = field[i] | |
14927 | keylen = length(key) | |
14928 | if (S_is_set[key]) { | |
14929 | value = S[key] | |
14930 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14931 | len += length(value) + length(field[++i]) | |
14932 | substed = 1 | |
14933 | } else | |
14934 | len += 1 + keylen | |
14935 | } | |
14936 | if (nfields == 3 && !substed) { | |
14937 | key = field[2] | |
14938 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14939 | \$ac_cs_awk_read_file | |
14940 | next | |
14941 | } | |
14942 | } | |
14943 | print line | |
14944 | } | |
14945 | \$ac_cs_awk_pipe_fini | |
14946 | _ACAWK | |
14947 | _ACEOF | |
14948 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14949 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14950 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14951 | else | |
14952 | cat | |
14953 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14954 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
14955 | _ACEOF | |
14956 | ||
14957 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14958 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14959 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14960 | # (actually we leave an empty line to preserve line numbers). | |
14961 | if test "x$srcdir" = x.; then | |
14962 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14963 | s/:*\$(srcdir):*/:/ | |
14964 | s/:*\${srcdir}:*/:/ | |
14965 | s/:*@srcdir@:*/:/ | |
14966 | s/^\([^=]*=[ ]*\):*/\1/ | |
14967 | s/:*$// | |
14968 | s/^[^=]*=[ ]*$// | |
14969 | }' | |
14970 | fi | |
c6b750e1 | 14971 | |
81ecdfbb RW |
14972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14973 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 14974 | |
c6b750e1 | 14975 | |
81ecdfbb RW |
14976 | eval set X " :F $CONFIG_FILES " |
14977 | shift | |
14978 | for ac_tag | |
14979 | do | |
14980 | case $ac_tag in | |
14981 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14982 | esac | |
14983 | case $ac_mode$ac_tag in | |
14984 | :[FHL]*:*);; | |
14985 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14986 | :[FH]-) ac_tag=-:-;; | |
14987 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14988 | esac | |
14989 | ac_save_IFS=$IFS | |
14990 | IFS=: | |
14991 | set x $ac_tag | |
14992 | IFS=$ac_save_IFS | |
14993 | shift | |
14994 | ac_file=$1 | |
14995 | shift | |
252b5132 | 14996 | |
81ecdfbb RW |
14997 | case $ac_mode in |
14998 | :L) ac_source=$1;; | |
14999 | :[FH]) | |
15000 | ac_file_inputs= | |
15001 | for ac_f | |
15002 | do | |
15003 | case $ac_f in | |
15004 | -) ac_f="$tmp/stdin";; | |
15005 | *) # Look for the file first in the build tree, then in the source tree | |
15006 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15007 | # because $ac_f cannot contain `:'. | |
15008 | test -f "$ac_f" || | |
15009 | case $ac_f in | |
15010 | [\\/$]*) false;; | |
15011 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15012 | esac || | |
15013 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15014 | esac | |
15015 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15016 | as_fn_append ac_file_inputs " '$ac_f'" | |
15017 | done | |
c6b750e1 | 15018 | |
81ecdfbb RW |
15019 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15020 | # use $as_me), people would be surprised to read: | |
15021 | # /* config.h. Generated by config.status. */ | |
15022 | configure_input='Generated from '` | |
15023 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15024 | `' by configure.' | |
15025 | if test x"$ac_file" != x-; then | |
15026 | configure_input="$ac_file. $configure_input" | |
15027 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15028 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15029 | fi |
81ecdfbb RW |
15030 | # Neutralize special characters interpreted by sed in replacement strings. |
15031 | case $configure_input in #( | |
15032 | *\&* | *\|* | *\\* ) | |
15033 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15034 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15035 | *) ac_sed_conf_input=$configure_input;; | |
15036 | esac | |
cac3d6c4 | 15037 | |
81ecdfbb RW |
15038 | case $ac_tag in |
15039 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15040 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15041 | esac | |
15042 | ;; | |
a0da8069 | 15043 | esac |
252b5132 | 15044 | |
81ecdfbb | 15045 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15046 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15047 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15048 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15049 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15050 | $as_echo X"$ac_file" | | |
15051 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15052 | s//\1/ | |
15053 | q | |
15054 | } | |
15055 | /^X\(\/\/\)[^/].*/{ | |
15056 | s//\1/ | |
15057 | q | |
15058 | } | |
15059 | /^X\(\/\/\)$/{ | |
15060 | s//\1/ | |
15061 | q | |
15062 | } | |
15063 | /^X\(\/\).*/{ | |
15064 | s//\1/ | |
15065 | q | |
15066 | } | |
15067 | s/.*/./; q'` | |
15068 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15069 | ac_builddir=. |
252b5132 | 15070 | |
81ecdfbb RW |
15071 | case "$ac_dir" in |
15072 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15073 | *) | |
15074 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15075 | # A ".." for each directory in $ac_dir_suffix. | |
15076 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15077 | case $ac_top_builddir_sub in | |
15078 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15079 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15080 | esac ;; | |
15081 | esac | |
15082 | ac_abs_top_builddir=$ac_pwd | |
15083 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15084 | # for backward compatibility: | |
15085 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15086 | |
15087 | case $srcdir in | |
81ecdfbb | 15088 | .) # We are building in place. |
c6b750e1 | 15089 | ac_srcdir=. |
81ecdfbb RW |
15090 | ac_top_srcdir=$ac_top_builddir_sub |
15091 | ac_abs_top_srcdir=$ac_pwd ;; | |
15092 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15093 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15094 | ac_top_srcdir=$srcdir |
15095 | ac_abs_top_srcdir=$srcdir ;; | |
15096 | *) # Relative name. | |
15097 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15098 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15099 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15100 | esac |
81ecdfbb | 15101 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15102 | |
252b5132 | 15103 | |
81ecdfbb RW |
15104 | case $ac_mode in |
15105 | :F) | |
15106 | # | |
15107 | # CONFIG_FILE | |
15108 | # | |
c6b750e1 DJ |
15109 | |
15110 | case $INSTALL in | |
15111 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15112 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15113 | esac |
81ecdfbb | 15114 | _ACEOF |
252b5132 | 15115 | |
81ecdfbb RW |
15116 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15117 | # If the template does not know about datarootdir, expand it. | |
15118 | # FIXME: This hack should be removed a few years after 2.60. | |
15119 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15120 | ac_sed_dataroot=' | |
15121 | /datarootdir/ { | |
15122 | p | |
15123 | q | |
15124 | } | |
15125 | /@datadir@/p | |
15126 | /@docdir@/p | |
15127 | /@infodir@/p | |
15128 | /@localedir@/p | |
15129 | /@mandir@/p' | |
15130 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15131 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15132 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15133 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15134 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15135 | _ACEOF |
81ecdfbb RW |
15136 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15137 | ac_datarootdir_hack=' | |
15138 | s&@datadir@&$datadir&g | |
15139 | s&@docdir@&$docdir&g | |
15140 | s&@infodir@&$infodir&g | |
15141 | s&@localedir@&$localedir&g | |
15142 | s&@mandir@&$mandir&g | |
15143 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15144 | esac | |
15145 | _ACEOF | |
15146 | ||
15147 | # Neutralize VPATH when `$srcdir' = `.'. | |
15148 | # Shell code in configure.ac might set extrasub. | |
15149 | # FIXME: do we really want to maintain this feature? | |
15150 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15151 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15152 | $extrasub |
15153 | _ACEOF | |
81ecdfbb | 15154 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15155 | :t |
15156 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15157 | s|@configure_input@|$ac_sed_conf_input|;t t |
15158 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15159 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15160 | s&@srcdir@&$ac_srcdir&;t t | |
15161 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15162 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15163 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15164 | s&@builddir@&$ac_builddir&;t t | |
15165 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15166 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15167 | s&@INSTALL@&$ac_INSTALL&;t t | |
15168 | $ac_datarootdir_hack | |
15169 | " | |
15170 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15171 | if $ac_cs_awk_getline; then | |
15172 | $AWK -f "$tmp/subs.awk" | |
15173 | else | |
15174 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15175 | fi >$tmp/out \ | |
15176 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15177 | ||
15178 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15179 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15180 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15181 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15182 | which seems to be undefined. Please make sure it is defined." >&5 | |
15183 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15184 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15185 | ||
15186 | rm -f "$tmp/stdin" | |
15187 | case $ac_file in | |
15188 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15189 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15190 | esac \ | |
15191 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15192 | ;; | |
c148b4cb | 15193 | |
c148b4cb | 15194 | |
c148b4cb | 15195 | |
81ecdfbb RW |
15196 | esac |
15197 | ||
06a51eac RW |
15198 | |
15199 | case $ac_file$ac_mode in | |
15200 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15201 | sed "$extrasub_host" | | |
15202 | sed "$extrasub_target" > mf$$ | |
15203 | mv -f mf$$ Makefile ;; | |
15204 | ||
15205 | esac | |
81ecdfbb RW |
15206 | done # for ac_tag |
15207 | ||
15208 | ||
15209 | as_fn_exit 0 | |
c6b750e1 | 15210 | _ACEOF |
c6b750e1 DJ |
15211 | ac_clean_files=$ac_clean_files_save |
15212 | ||
81ecdfbb RW |
15213 | test $ac_write_fail = 0 || |
15214 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15215 | ||
c6b750e1 DJ |
15216 | |
15217 | # configure is writing to config.log, and then calls config.status. | |
15218 | # config.status does its own redirection, appending to config.log. | |
15219 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15220 | # by configure, so config.status won't be able to write to it; its | |
15221 | # output is simply discarded. So we exec the FD to /dev/null, | |
15222 | # effectively closing config.log, so it can be properly (re)opened and | |
15223 | # appended to by config.status. When coming back to configure, we | |
15224 | # need to make the FD available again. | |
15225 | if test "$no_create" != yes; then | |
15226 | ac_cs_success=: | |
15227 | ac_config_status_args= | |
15228 | test "$silent" = yes && | |
15229 | ac_config_status_args="$ac_config_status_args --quiet" | |
15230 | exec 5>/dev/null | |
15231 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15232 | exec 5>>config.log | |
15233 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15234 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15235 | $ac_cs_success || as_fn_exit $? |
15236 | fi | |
15237 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15239 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15240 | fi |
c148b4cb | 15241 |