]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell [email protected] about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
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 | ||
691bb5a1 DD |
3114 | # Default libgloss CPU subdirectory. |
3115 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3116 | |
a0da8069 NN |
3117 | case "${target}" in |
3118 | *-*-chorusos) | |
b2f14e4a | 3119 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3120 | ;; |
24741ab2 | 3121 | powerpc-*-darwin*) |
9d39db92 | 3122 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3123 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3124 | ;; |
85bd1942 TG |
3125 | i[3456789]86-*-darwin*) |
3126 | noconfigdirs="$noconfigdirs ld gprof" | |
3127 | noconfigdirs="$noconfigdirs sim target-rda" | |
3128 | ;; | |
e8a5fa9c | 3129 | x86_64-*-darwin[912]*) |
652dec25 TG |
3130 | noconfigdirs="$noconfigdirs ld gas gprof" |
3131 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3132 | ;; |
04d1ab34 | 3133 | *-*-darwin*) |
d320aacb | 3134 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3135 | noconfigdirs="$noconfigdirs sim target-rda" |
54d1c879 | 3136 | noconfigdirs="$noconfigdirs ${libgcj}" |
04d1ab34 | 3137 | ;; |
5b806d27 NC |
3138 | *-*-dragonfly*) |
3139 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3140 | ;; | |
de0b4a87 | 3141 | *-*-freebsd*) |
4b1cb4fe DD |
3142 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
3143 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
3144 | && test -f /usr/local/include/gmp.h; then | |
3145 | with_gmp=/usr/local | |
3146 | fi | |
3147 | ||
3148 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
3149 | case "${target}" in | |
3150 | i*86-*-*) ;; | |
3151 | alpha*-*-*) ;; | |
143754cd | 3152 | x86_64-*-*) ;; |
4b1cb4fe | 3153 | *) |
54d1c879 | 3154 | noconfigdirs="$noconfigdirs ${libgcj}" |
4b1cb4fe DD |
3155 | ;; |
3156 | esac | |
3157 | ;; | |
f8a495c8 NC |
3158 | *-*-kaos*) |
3159 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3160 | noconfigdirs="$noconfigdirs target-libgloss" |
3161 | ;; | |
a0da8069 NN |
3162 | *-*-netbsd*) |
3163 | # Skip some stuff on all NetBSD configurations. | |
065a5627 | 3164 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 NN |
3165 | |
3166 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
3167 | case "${target}" in | |
3168 | i*86-*-netbsdelf*) ;; | |
5b474aa8 | 3169 | arm*-*-netbsdelf*) ;; |
a0da8069 | 3170 | *) |
54d1c879 | 3171 | noconfigdirs="$noconfigdirs ${libgcj}" |
a0da8069 NN |
3172 | ;; |
3173 | esac | |
3174 | ;; | |
2a3124ca | 3175 | *-*-netware*) |
065a5627 | 3176 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
a0da8069 NN |
3177 | ;; |
3178 | *-*-rtems*) | |
54d1c879 | 3179 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
a0da8069 | 3180 | ;; |
1587117a EC |
3181 | # The tpf target doesn't support gdb yet. |
3182 | *-*-tpf*) | |
065a5627 | 3183 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj} gdb tcl tk libgui itcl" |
1587117a | 3184 | ;; |
c1968181 | 3185 | *-*-uclinux*) |
54d1c879 | 3186 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" |
c1968181 | 3187 | ;; |
a0da8069 | 3188 | *-*-vxworks*) |
065a5627 | 3189 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
a0da8069 NN |
3190 | ;; |
3191 | alpha*-dec-osf*) | |
3192 | # ld works, but does not support shared libraries. | |
0377a422 | 3193 | # newlib is not 64 bit ready. |
a0da8069 | 3194 | # gas doesn't generate exception information. |
0377a422 | 3195 | noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss" |
a0da8069 NN |
3196 | ;; |
3197 | alpha*-*-*vms*) | |
d594eacc | 3198 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
a0da8069 NN |
3199 | ;; |
3200 | alpha*-*-linux*) | |
3201 | # newlib is not 64 bit ready | |
3202 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3203 | ;; | |
a0da8069 NN |
3204 | alpha*-*-*) |
3205 | # newlib is not 64 bit ready | |
54d1c879 | 3206 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
a0da8069 | 3207 | ;; |
4a18bd6b | 3208 | am33_2.0-*-linux*) |
54d1c879 | 3209 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
4a18bd6b | 3210 | ;; |
a0da8069 | 3211 | sh-*-linux*) |
54d1c879 | 3212 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
c6b750e1 | 3213 | ;; |
a0da8069 | 3214 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
54d1c879 | 3215 | noconfigdirs="$noconfigdirs ${libgcj}" |
675c6968 | 3216 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3217 | noconfigdirs="$noconfigdirs target-newlib" |
691bb5a1 | 3218 | libgloss_dir=wince |
a0da8069 NN |
3219 | ;; |
3220 | arc-*-*) | |
782cb41f | 3221 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3222 | ;; |
93cc359e | 3223 | arm-*-coff) |
691bb5a1 | 3224 | libgloss_dir=arm |
a0da8069 | 3225 | ;; |
93cc359e | 3226 | arm-*-elf* | arm*-*-eabi* ) |
0377a422 | 3227 | noconfigdirs="$noconfigdirs target-libffi" |
691bb5a1 | 3228 | libgloss_dir=arm |
a0da8069 | 3229 | ;; |
bd70a46f | 3230 | arm*-*-linux-gnueabi) |
a5b3b4dd DD |
3231 | case ${with_newlib} in |
3232 | no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3233 | esac | |
691bb5a1 | 3234 | libgloss_dir=arm |
bd70a46f | 3235 | ;; |
df4a6958 | 3236 | arm*-*-symbianelf*) |
065a5627 | 3237 | noconfigdirs="$noconfigdirs ${libgcj}" |
691bb5a1 | 3238 | libgloss_dir=arm |
df4a6958 | 3239 | ;; |
a0da8069 | 3240 | arm-*-pe*) |
54d1c879 | 3241 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
a0da8069 | 3242 | ;; |
a0da8069 | 3243 | arm-*-riscix*) |
b2f14e4a | 3244 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 NN |
3245 | ;; |
3246 | avr-*-*) | |
065a5627 | 3247 | noconfigdirs="$noconfigdirs ${libgcj}" |
a0da8069 | 3248 | ;; |
376a0e54 | 3249 | bfin-*-*) |
df51e4e1 | 3250 | unsupported_languages="$unsupported_languages java" |
7837304f | 3251 | noconfigdirs="$noconfigdirs target-boehm-gc" |
376a0e54 | 3252 | ;; |
a0da8069 | 3253 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3254 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3255 | ;; |
b2f14e4a JM |
3256 | tic54x-*-*) |
3257 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3258 | ;; |
52310858 NC |
3259 | cr16-*-*) |
3260 | noconfigdirs="$noconfigdirs ${libgcj} gdb" | |
3261 | ;; | |
c7e66c6d | 3262 | cris-*-* | crisv32-*-*) |
59f7ec45 | 3263 | unsupported_languages="$unsupported_languages java" |
c7e66c6d | 3264 | case "${target}" in |
2faa2958 | 3265 | *-*-linux*) |
5e818318 | 3266 | noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
b2f14e4a JM |
3267 | *) # See PR46792 regarding target-libffi. |
3268 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
c7e66c6d | 3269 | esac |
691bb5a1 | 3270 | libgloss_dir=cris |
a0da8069 NN |
3271 | ;; |
3272 | d10v-*-*) | |
b2f14e4a | 3273 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3274 | ;; |
3275 | d30v-*-*) | |
b2f14e4a | 3276 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3277 | ;; |
3278 | fr30-*-elf*) | |
54d1c879 | 3279 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
a0da8069 NN |
3280 | ;; |
3281 | frv-*-*) | |
54d1c879 | 3282 | noconfigdirs="$noconfigdirs ${libgcj}" |
a0da8069 | 3283 | ;; |
20135e4c NC |
3284 | moxie-*-*) |
3285 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3286 | noconfigdirs="$noconfigdirs gprof" | |
3287 | ;; | |
a0da8069 | 3288 | h8300*-*-*) |
54d1c879 | 3289 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
a0da8069 NN |
3290 | ;; |
3291 | h8500-*-*) | |
b2f14e4a | 3292 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3293 | ;; |
caeba88f | 3294 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3295 | ;; |
93cc359e | 3296 | hppa*64*-*-linux*) |
a0da8069 NN |
3297 | # In this case, it's because the hppa64-linux target is for |
3298 | # the kernel only at this point and has no libc, and thus no | |
3299 | # headers, crt*.o, etc., all of which are needed by these. | |
3300 | noconfigdirs="$noconfigdirs target-zlib" | |
3301 | ;; | |
f0ff0f90 | 3302 | hppa*-*-linux*) |
5dcac624 | 3303 | ;; |
a0da8069 | 3304 | hppa*-*-*elf* | \ |
a0da8069 NN |
3305 | hppa*-*-lites* | \ |
3306 | hppa*-*-openbsd* | \ | |
3307 | hppa*64*-*-*) | |
54d1c879 | 3308 | noconfigdirs="$noconfigdirs ${libgcj}" |
4f0ef2d8 CD |
3309 | ;; |
3310 | hppa*-hp-hpux11*) | |
0377a422 | 3311 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3312 | ;; |
691bb5a1 DD |
3313 | hppa*-*-pro*) |
3314 | libgloss_dir=pa | |
3315 | ;; | |
a0da8069 NN |
3316 | hppa*-*-*) |
3317 | # According to Alexandre Oliva <[email protected]>, libjava won't | |
3318 | # build on HP-UX 10.20. | |
0377a422 | 3319 | noconfigdirs="$noconfigdirs ld ${libgcj}" |
a0da8069 | 3320 | ;; |
b07c2aad | 3321 | i960-*-*) |
b2f14e4a | 3322 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3323 | ;; |
a0da8069 NN |
3324 | ia64*-*-elf*) |
3325 | # No gdb support yet. | |
0377a422 | 3326 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3327 | ;; |
3328 | ia64*-**-hpux*) | |
92c9a463 JB |
3329 | # No ld support yet. |
3330 | noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld" | |
a0da8069 | 3331 | ;; |
19e99079 NC |
3332 | ia64*-*-*vms*) |
3333 | # No gdb or ld support yet. | |
0377a422 | 3334 | noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld" |
19e99079 | 3335 | ;; |
ec11bdc6 | 3336 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
54d1c879 | 3337 | noconfigdirs="$noconfigdirs ${libgcj}" |
691bb5a1 | 3338 | libgloss_dir=i386 |
a0da8069 | 3339 | ;; |
ec11bdc6 | 3340 | i[3456789]86-*-linux*) |
a0da8069 NN |
3341 | # This section makes it possible to build newlib natively on linux. |
3342 | # If we are using a cross compiler then don't configure newlib. | |
3343 | if test x${is_cross_compiler} != xno ; then | |
bba45b8b | 3344 | noconfigdirs="$noconfigdirs target-newlib" |
a0da8069 NN |
3345 | fi |
3346 | noconfigdirs="$noconfigdirs target-libgloss" | |
3347 | # If we are not using a cross compiler, do configure newlib. | |
3348 | # Note however, that newlib will only be configured in this situation | |
3349 | # if the --with-newlib option has been given, because otherwise | |
3350 | # 'target-newlib' will appear in skipdirs. | |
3351 | ;; | |
1f53ca9a | 3352 | i[3456789]86-w64-mingw*) |
0377a422 | 3353 | noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}" |
1f53ca9a AO |
3354 | ;; |
3355 | i[3456789]86-*-mingw*) | |
45055374 | 3356 | target_configdirs="$target_configdirs target-winsup" |
0377a422 | 3357 | noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}" |
c6b750e1 | 3358 | ;; |
2d1e8239 | 3359 | x86_64-*-mingw*) |
0377a422 | 3360 | noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}" |
c6b750e1 | 3361 | ;; |
a0da8069 NN |
3362 | *-*-cygwin*) |
3363 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3364 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3365 | # always build newlib if winsup directory is present. |
45055374 | 3366 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3367 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3368 | elif test -d "$srcdir/newlib"; then |
45055374 | 3369 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3370 | fi |
c6b750e1 | 3371 | ;; |
f0ff0f90 | 3372 | i[3456789]86-*-interix* ) |
caeba88f | 3373 | ;; |
ec11bdc6 | 3374 | i[3456789]86-*-pe) |
782cb41f | 3375 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3376 | ;; |
ec11bdc6 | 3377 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3378 | # The linker does not yet know about weak symbols in COFF, |
3379 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3380 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3381 | ;; |
ec11bdc6 | 3382 | i[3456789]86-*-sco*) |
b2f14e4a | 3383 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3384 | ;; |
ec11bdc6 | 3385 | i[3456789]86-*-solaris2*) |
a0da8069 NN |
3386 | noconfigdirs="$noconfigdirs target-libgloss" |
3387 | ;; | |
ec11bdc6 | 3388 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3389 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3390 | ;; |
ec11bdc6 | 3391 | i[3456789]86-*-beos*) |
b2f14e4a | 3392 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
bba45b8b | 3393 | ;; |
b59bea8a | 3394 | i[3456789]86-*-rdos*) |
2429c060 PB |
3395 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
3396 | ;; | |
b07c2aad | 3397 | m32r-*-*) |
54d1c879 | 3398 | noconfigdirs="$noconfigdirs ${libgcj}" |
b07c2aad | 3399 | ;; |
a0da8069 | 3400 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
691bb5a1 | 3401 | libgloss_dir=m68hc11 |
a0da8069 NN |
3402 | ;; |
3403 | m68k-*-elf*) | |
54d1c879 | 3404 | noconfigdirs="$noconfigdirs ${libgcj}" |
a0da8069 | 3405 | ;; |
691bb5a1 DD |
3406 | m68*-*-* | fido-*-*) |
3407 | libgloss_dir=m68k | |
3408 | ;; | |
a0da8069 | 3409 | mmix-*-*) |
b2f14e4a | 3410 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb" |
065a5627 | 3411 | unsupported_languages="$unsupported_languages java" |
a0da8069 | 3412 | ;; |
4970f871 | 3413 | mt-*-*) |
cdb9b172 AH |
3414 | noconfigdirs="$noconfigdirs sim" |
3415 | ;; | |
a0da8069 NN |
3416 | powerpc-*-aix*) |
3417 | # copied from rs6000-*-* entry | |
065a5627 | 3418 | noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}" |
a0da8069 | 3419 | ;; |
93cc359e | 3420 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3421 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3422 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3423 | # always build newlib. |
3424 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3425 | ;; | |
3426 | # This is temporary until we can link against shared libraries | |
3427 | powerpcle-*-solaris*) | |
b2f14e4a | 3428 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
691bb5a1 | 3429 | libgloss_dir=rs6000 |
a0da8069 NN |
3430 | ;; |
3431 | powerpc-*-beos*) | |
b2f14e4a | 3432 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3433 | ;; |
a0da8069 | 3434 | powerpc-*-eabi) |
54d1c879 | 3435 | noconfigdirs="$noconfigdirs ${libgcj}" |
691bb5a1 | 3436 | libgloss_dir=rs6000 |
caeba88f AL |
3437 | ;; |
3438 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
691bb5a1 | 3439 | libgloss_dir=rs6000 |
a0da8069 | 3440 | ;; |
a0da8069 | 3441 | rs6000-*-lynxos*) |
54d1c879 | 3442 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" |
a0da8069 NN |
3443 | ;; |
3444 | rs6000-*-aix*) | |
065a5627 | 3445 | noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib ${libgcj}" |
a0da8069 NN |
3446 | ;; |
3447 | rs6000-*-*) | |
54d1c879 | 3448 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
a0da8069 NN |
3449 | ;; |
3450 | m68k-apollo-*) | |
b2f14e4a | 3451 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3452 | ;; |
25a07265 | 3453 | microblaze*) |
065a5627 | 3454 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
25a07265 | 3455 | ;; |
5bd8be13 | 3456 | mips*-sde-elf*) |
5bd8be13 RS |
3457 | noconfigdirs="$noconfigdirs ${libgcj}" |
3458 | if test x$with_newlib = xyes; then | |
3459 | noconfigdirs="$noconfigdirs gprof" | |
3460 | fi | |
3461 | libgloss_dir=mips | |
3462 | ;; | |
a0da8069 | 3463 | mips*-*-irix5*) |
b2f14e4a | 3464 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3465 | ;; |
3466 | mips*-*-irix6*) | |
a0da8069 NN |
3467 | # Linking libjava exceeds command-line length limits on at least |
3468 | # IRIX 6.2, but not on IRIX 6.5. | |
3469 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3470 | # <[email protected]> | |
54d1c879 | 3471 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
a0da8069 | 3472 | ;; |
a0da8069 | 3473 | mips*-*-bsd*) |
b2f14e4a | 3474 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3475 | ;; |
a0da8069 NN |
3476 | mips*-*-linux*) |
3477 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3478 | ;; | |
3479 | mips*-*-*) | |
54d1c879 | 3480 | noconfigdirs="$noconfigdirs gprof ${libgcj}" |
691bb5a1 | 3481 | libgloss_dir=mips |
a0da8069 | 3482 | ;; |
dbf85af7 | 3483 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3484 | case "${target}" in |
3485 | sh*-*-elf) | |
3486 | noconfigdirs="$noconfigdirs ${libgcj}" ;; | |
3487 | *) | |
3488 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;; | |
3489 | esac | |
a0da8069 | 3490 | ;; |
691bb5a1 DD |
3491 | sparclet-*-aout* | sparc86x-*-*) |
3492 | libgloss_dir=sparc | |
3493 | ;; | |
a0da8069 | 3494 | sparc-*-elf*) |
54d1c879 | 3495 | noconfigdirs="$noconfigdirs ${libgcj}" |
a0da8069 NN |
3496 | ;; |
3497 | sparc64-*-elf*) | |
54d1c879 | 3498 | noconfigdirs="$noconfigdirs ${libgcj}" |
691bb5a1 | 3499 | libgloss_dir=sparc |
a0da8069 NN |
3500 | ;; |
3501 | sparclite-*-*) | |
691bb5a1 | 3502 | libgloss_dir=sparc |
a0da8069 NN |
3503 | ;; |
3504 | sparc-*-sunos4*) | |
a0da8069 NN |
3505 | if test x${is_cross_compiler} != xno ; then |
3506 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
3507 | else | |
3508 | use_gnu_ld=no | |
3509 | fi | |
3510 | ;; | |
3511 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) | |
3512 | ;; | |
619a3713 JM |
3513 | tic6x-*-*) |
3514 | noconfigdirs="$noconfigdirs gdb sim ${libgcj}" | |
3515 | ;; | |
a0da8069 | 3516 | v810-*-*) |
b2f14e4a | 3517 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3518 | ;; |
3519 | vax-*-*) | |
54d1c879 | 3520 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
a0da8069 | 3521 | ;; |
29383458 | 3522 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
a0da8069 NN |
3523 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
3524 | ;; | |
3525 | *-*-lynxos*) | |
54d1c879 | 3526 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" |
c6b750e1 | 3527 | ;; |
a0da8069 | 3528 | *-*-*) |
54d1c879 | 3529 | noconfigdirs="$noconfigdirs ${libgcj}" |
a0da8069 NN |
3530 | ;; |
3531 | esac | |
252b5132 | 3532 | |
a0da8069 NN |
3533 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3534 | # depends upon some newlib header files. | |
3535 | case "${noconfigdirs}" in | |
3536 | *target-libgloss*) ;; | |
3537 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3538 | esac | |
3539 | ||
a0da8069 | 3540 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3541 | host_makefile_frag=/dev/null |
3542 | if test -d ${srcdir}/config ; then | |
3543 | case "${host}" in | |
ec11bdc6 | 3544 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3545 | host_makefile_frag="config/mh-djgpp" |
3546 | ;; | |
3547 | *-cygwin*) | |
e33b51a6 | 3548 | |
81ecdfbb RW |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3550 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3551 | echo a >cygwin-cat-check |
1f53ca9a | 3552 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3553 | rm cygwin-cat-check |
81ecdfbb RW |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3555 | $as_echo "yes" >&6; } | |
e33b51a6 | 3556 | else |
8ade07e9 | 3557 | rm cygwin-cat-check |
81ecdfbb RW |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3559 | $as_echo "no" >&6; } | |
3560 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3561 | Please either mount the build directory in binary mode or run the following |
3562 | commands before running any configure script: | |
3563 | set -o igncr | |
3564 | export SHELLOPTS | |
81ecdfbb | 3565 | " "$LINENO" 5 |
e33b51a6 | 3566 | fi |
e33b51a6 | 3567 | |
a0da8069 NN |
3568 | host_makefile_frag="config/mh-cygwin" |
3569 | ;; | |
8a1599ab | 3570 | *-mingw*) |
84e7906e | 3571 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3572 | ;; |
a0da8069 NN |
3573 | *-interix*) |
3574 | host_makefile_frag="config/mh-interix" | |
3575 | ;; | |
da888c87 | 3576 | hppa*-hp-hpux10*) |
da888c87 | 3577 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3578 | ;; |
3516a403 | 3579 | hppa*-hp-hpux*) |
da888c87 PB |
3580 | host_makefile_frag="config/mh-pa" |
3581 | ;; | |
3582 | hppa*-*) | |
3583 | host_makefile_frag="config/mh-pa" | |
3584 | ;; | |
e552509b ILT |
3585 | *-*-darwin*) |
3586 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3587 | ;; |
f6d183c0 PB |
3588 | powerpc-*-aix*) |
3589 | host_makefile_frag="config/mh-ppc-aix" | |
3590 | ;; | |
3591 | rs6000-*-aix*) | |
3592 | host_makefile_frag="config/mh-ppc-aix" | |
3593 | ;; | |
a0da8069 NN |
3594 | esac |
3595 | fi | |
3596 | ||
9e07f89d | 3597 | if test "${build}" != "${host}" ; then |
1576798e PB |
3598 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3599 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3600 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3601 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3602 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3603 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3604 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3605 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3606 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3607 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3608 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3609 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3610 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3611 | else | |
3612 | AR_FOR_BUILD="\$(AR)" | |
3613 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3614 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3615 | CXX_FOR_BUILD="\$(CXX)" |
3616 | GCJ_FOR_BUILD="\$(GCJ)" | |
3617 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3618 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3619 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3620 | LD_FOR_BUILD="\$(LD)" | |
3621 | NM_FOR_BUILD="\$(NM)" | |
3622 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3623 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3624 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3625 | fi |
3626 | ||
3627 | ac_ext=c | |
c6b750e1 DJ |
3628 | ac_cpp='$CPP $CPPFLAGS' |
3629 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3630 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3631 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3632 | if test -n "$ac_tool_prefix"; then | |
3633 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3634 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3636 | $as_echo_n "checking for $ac_word... " >&6; } | |
3637 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3638 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3639 | else |
3640 | if test -n "$CC"; then | |
3641 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3642 | else | |
3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3644 | for as_dir in $PATH | |
3645 | do | |
3646 | IFS=$as_save_IFS | |
3647 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3648 | for ac_exec_ext in '' $ac_executable_extensions; do |
3649 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3650 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3652 | break 2 |
3653 | fi | |
3654 | done | |
81ecdfbb RW |
3655 | done |
3656 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3657 | |
3658 | fi | |
3659 | fi | |
3660 | CC=$ac_cv_prog_CC | |
3661 | if test -n "$CC"; then | |
81ecdfbb RW |
3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3663 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3664 | else |
81ecdfbb RW |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3666 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3667 | fi |
3668 | ||
81ecdfbb | 3669 | |
c6b750e1 DJ |
3670 | fi |
3671 | if test -z "$ac_cv_prog_CC"; then | |
3672 | ac_ct_CC=$CC | |
6a9cf61e | 3673 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3674 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3676 | $as_echo_n "checking for $ac_word... " >&6; } | |
3677 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3678 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3679 | else |
3680 | if test -n "$ac_ct_CC"; then | |
3681 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3682 | else | |
3683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3684 | for as_dir in $PATH | |
3685 | do | |
3686 | IFS=$as_save_IFS | |
3687 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3688 | for ac_exec_ext in '' $ac_executable_extensions; do |
3689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3690 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3692 | break 2 |
3693 | fi | |
3694 | done | |
81ecdfbb RW |
3695 | done |
3696 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3697 | |
3698 | fi | |
3699 | fi | |
3700 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3701 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3703 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3704 | else |
81ecdfbb RW |
3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3706 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3707 | fi |
3708 | ||
81ecdfbb RW |
3709 | if test "x$ac_ct_CC" = x; then |
3710 | CC="" | |
3711 | else | |
3712 | case $cross_compiling:$ac_tool_warned in | |
3713 | yes:) | |
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3715 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3716 | ac_tool_warned=yes ;; | |
3717 | esac | |
3718 | CC=$ac_ct_CC | |
3719 | fi | |
c6b750e1 DJ |
3720 | else |
3721 | CC="$ac_cv_prog_CC" | |
3722 | fi | |
3723 | ||
3724 | if test -z "$CC"; then | |
81ecdfbb RW |
3725 | if test -n "$ac_tool_prefix"; then |
3726 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 3727 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3729 | $as_echo_n "checking for $ac_word... " >&6; } | |
3730 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3731 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3732 | else |
3733 | if test -n "$CC"; then | |
3734 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3735 | else | |
c6b750e1 DJ |
3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3737 | for as_dir in $PATH | |
3738 | do | |
3739 | IFS=$as_save_IFS | |
3740 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3741 | for ac_exec_ext in '' $ac_executable_extensions; do |
3742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3743 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3745 | break 2 |
3746 | fi | |
3747 | done | |
81ecdfbb RW |
3748 | done |
3749 | IFS=$as_save_IFS | |
c6b750e1 | 3750 | |
9e07f89d NN |
3751 | fi |
3752 | fi | |
c6b750e1 | 3753 | CC=$ac_cv_prog_CC |
9e07f89d | 3754 | if test -n "$CC"; then |
81ecdfbb RW |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3756 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3757 | else |
81ecdfbb RW |
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3759 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3760 | fi |
3761 | ||
c6b750e1 | 3762 | |
81ecdfbb | 3763 | fi |
c6b750e1 | 3764 | fi |
9e07f89d NN |
3765 | if test -z "$CC"; then |
3766 | # Extract the first word of "cc", so it can be a program name with args. | |
3767 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3769 | $as_echo_n "checking for $ac_word... " >&6; } | |
3770 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3771 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3772 | else |
3773 | if test -n "$CC"; then | |
3774 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3775 | else | |
9e07f89d | 3776 | ac_prog_rejected=no |
c6b750e1 DJ |
3777 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3778 | for as_dir in $PATH | |
3779 | do | |
3780 | IFS=$as_save_IFS | |
3781 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3782 | for ac_exec_ext in '' $ac_executable_extensions; do |
3783 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
3784 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3785 | ac_prog_rejected=yes | |
3786 | continue | |
3787 | fi | |
3788 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3790 | break 2 |
3791 | fi | |
3792 | done | |
81ecdfbb RW |
3793 | done |
3794 | IFS=$as_save_IFS | |
c6b750e1 | 3795 | |
9e07f89d NN |
3796 | if test $ac_prog_rejected = yes; then |
3797 | # We found a bogon in the path, so make sure we never use it. | |
3798 | set dummy $ac_cv_prog_CC | |
3799 | shift | |
c6b750e1 | 3800 | if test $# != 0; then |
9e07f89d NN |
3801 | # We chose a different compiler from the bogus one. |
3802 | # However, it has the same basename, so the bogon will be chosen | |
3803 | # first if we set CC to just the basename; use the full file name. | |
3804 | shift | |
c6b750e1 | 3805 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
3806 | fi |
3807 | fi | |
3808 | fi | |
3809 | fi | |
c6b750e1 | 3810 | CC=$ac_cv_prog_CC |
9e07f89d | 3811 | if test -n "$CC"; then |
81ecdfbb RW |
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3813 | $as_echo "$CC" >&6; } | |
9e07f89d | 3814 | else |
81ecdfbb RW |
3815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3816 | $as_echo "no" >&6; } | |
9e07f89d NN |
3817 | fi |
3818 | ||
81ecdfbb | 3819 | |
c6b750e1 DJ |
3820 | fi |
3821 | if test -z "$CC"; then | |
3822 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3823 | for ac_prog in cl.exe |
c6b750e1 DJ |
3824 | do |
3825 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3826 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3828 | $as_echo_n "checking for $ac_word... " >&6; } | |
3829 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3830 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3831 | else |
3832 | if test -n "$CC"; then | |
3833 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3834 | else | |
c6b750e1 DJ |
3835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3836 | for as_dir in $PATH | |
3837 | do | |
3838 | IFS=$as_save_IFS | |
3839 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3840 | for ac_exec_ext in '' $ac_executable_extensions; do |
3841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3842 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 3844 | break 2 |
376a0e54 | 3845 | fi |
c6b750e1 | 3846 | done |
81ecdfbb RW |
3847 | done |
3848 | IFS=$as_save_IFS | |
cac3d6c4 | 3849 | |
c6b750e1 DJ |
3850 | fi |
3851 | fi | |
3852 | CC=$ac_cv_prog_CC | |
3853 | if test -n "$CC"; then | |
81ecdfbb RW |
3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3855 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 3856 | else |
81ecdfbb RW |
3857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3858 | $as_echo "no" >&6; } | |
9e07f89d | 3859 | fi |
cac3d6c4 | 3860 | |
81ecdfbb | 3861 | |
c6b750e1 DJ |
3862 | test -n "$CC" && break |
3863 | done | |
cac3d6c4 | 3864 | fi |
c6b750e1 DJ |
3865 | if test -z "$CC"; then |
3866 | ac_ct_CC=$CC | |
81ecdfbb | 3867 | for ac_prog in cl.exe |
c6b750e1 DJ |
3868 | do |
3869 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3870 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3872 | $as_echo_n "checking for $ac_word... " >&6; } | |
3873 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3874 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 3875 | else |
c6b750e1 DJ |
3876 | if test -n "$ac_ct_CC"; then |
3877 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 3878 | else |
c6b750e1 DJ |
3879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3880 | for as_dir in $PATH | |
3881 | do | |
3882 | IFS=$as_save_IFS | |
3883 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3884 | for ac_exec_ext in '' $ac_executable_extensions; do |
3885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3886 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3888 | break 2 |
3889 | fi | |
3890 | done | |
81ecdfbb RW |
3891 | done |
3892 | IFS=$as_save_IFS | |
c6b750e1 | 3893 | |
cac3d6c4 CM |
3894 | fi |
3895 | fi | |
c6b750e1 DJ |
3896 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3897 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3899 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 3900 | else |
81ecdfbb RW |
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3902 | $as_echo "no" >&6; } | |
cac3d6c4 | 3903 | fi |
376a0e54 | 3904 | |
81ecdfbb | 3905 | |
c6b750e1 DJ |
3906 | test -n "$ac_ct_CC" && break |
3907 | done | |
3908 | ||
81ecdfbb RW |
3909 | if test "x$ac_ct_CC" = x; then |
3910 | CC="" | |
3911 | else | |
3912 | case $cross_compiling:$ac_tool_warned in | |
3913 | yes:) | |
3914 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3915 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3916 | ac_tool_warned=yes ;; | |
3917 | esac | |
3918 | CC=$ac_ct_CC | |
3919 | fi | |
c6b750e1 DJ |
3920 | fi |
3921 | ||
3922 | fi | |
3923 | ||
3924 | ||
81ecdfbb RW |
3925 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3926 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3927 | as_fn_error "no acceptable C compiler found in \$PATH | |
3928 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
3929 | |
3930 | # Provide some information about the compiler. | |
81ecdfbb RW |
3931 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3932 | set X $ac_compile | |
3933 | ac_compiler=$2 | |
3934 | for ac_option in --version -v -V -qversion; do | |
3935 | { { ac_try="$ac_compiler $ac_option >&5" | |
3936 | case "(($ac_try" in | |
3937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3938 | *) ac_try_echo=$ac_try;; | |
3939 | esac | |
3940 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3941 | $as_echo "$ac_try_echo"; } >&5 | |
3942 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 3943 | ac_status=$? |
81ecdfbb RW |
3944 | if test -s conftest.err; then |
3945 | sed '10a\ | |
3946 | ... rest of stderr output deleted ... | |
3947 | 10q' conftest.err >conftest.er1 | |
3948 | cat conftest.er1 >&5 | |
3949 | rm -f conftest.er1 conftest.err | |
3950 | fi | |
3951 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3952 | test $ac_status = 0; } | |
3953 | done | |
c6b750e1 | 3954 | |
81ecdfbb | 3955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
3956 | /* end confdefs.h. */ |
3957 | ||
3958 | int | |
3959 | main () | |
3960 | { | |
3961 | ||
3962 | ; | |
3963 | return 0; | |
3964 | } | |
3965 | _ACEOF | |
3966 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 3967 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
3968 | # Try to create an executable without -o first, disregard a.out. |
3969 | # It will help us diagnose broken compilers, and finding out an intuition | |
3970 | # of exeext. | |
81ecdfbb RW |
3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3972 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3973 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3974 | ||
3975 | # The possible output files: | |
3976 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3977 | ||
3978 | ac_rmfiles= | |
3979 | for ac_file in $ac_files | |
3980 | do | |
3981 | case $ac_file in | |
3982 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3983 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3984 | esac | |
3985 | done | |
3986 | rm -f $ac_rmfiles | |
3987 | ||
3988 | if { { ac_try="$ac_link_default" | |
3989 | case "(($ac_try" in | |
3990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3991 | *) ac_try_echo=$ac_try;; | |
3992 | esac | |
3993 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3994 | $as_echo "$ac_try_echo"; } >&5 | |
3995 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 3996 | ac_status=$? |
81ecdfbb RW |
3997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3998 | test $ac_status = 0; }; then : | |
3999 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4000 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4001 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4002 | # so that the user can short-circuit this test for compilers unknown to | |
4003 | # Autoconf. | |
4004 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4005 | do |
4006 | test -f "$ac_file" || continue | |
4007 | case $ac_file in | |
81ecdfbb | 4008 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4009 | ;; |
4010 | [ab].out ) | |
4011 | # We found the default executable, but exeext='' is most | |
4012 | # certainly right. | |
4013 | break;; | |
4014 | *.* ) | |
81ecdfbb RW |
4015 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4016 | then :; else | |
4017 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4018 | fi | |
4019 | # We set ac_cv_exeext here because the later test for it is not | |
4020 | # safe: cross compilers may not add the suffix if given an `-o' | |
4021 | # argument, so we may need to know it at that point already. | |
4022 | # Even if this section looks crufty: it has the advantage of | |
4023 | # actually working. | |
c6b750e1 DJ |
4024 | break;; |
4025 | * ) | |
4026 | break;; | |
4027 | esac | |
4028 | done | |
81ecdfbb RW |
4029 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4030 | ||
c6b750e1 | 4031 | else |
81ecdfbb RW |
4032 | ac_file='' |
4033 | fi | |
4034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4035 | $as_echo "$ac_file" >&6; } | |
4036 | if test -z "$ac_file"; then : | |
4037 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4038 | sed 's/^/| /' conftest.$ac_ext >&5 |
4039 | ||
81ecdfbb RW |
4040 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4041 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4042 | { as_fn_set_status 77 | |
4043 | as_fn_error "C compiler cannot create executables | |
4044 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4045 | fi |
c6b750e1 | 4046 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4047 | |
81ecdfbb | 4048 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4049 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4051 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4052 | # If not cross compiling, check that we can run a simple program. |
4053 | if test "$cross_compiling" != yes; then | |
4054 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4055 | { { case "(($ac_try" in |
4056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4057 | *) ac_try_echo=$ac_try;; | |
4058 | esac | |
4059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4060 | $as_echo "$ac_try_echo"; } >&5 | |
4061 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4062 | ac_status=$? |
81ecdfbb RW |
4063 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4064 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4065 | cross_compiling=no |
4066 | else | |
4067 | if test "$cross_compiling" = maybe; then | |
4068 | cross_compiling=yes | |
4069 | else | |
81ecdfbb RW |
4070 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4072 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4073 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4074 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4075 | fi |
4076 | fi | |
4077 | fi | |
81ecdfbb RW |
4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4079 | $as_echo "yes" >&6; } | |
c6b750e1 | 4080 | |
81ecdfbb | 4081 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4082 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4083 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4084 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4086 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4088 | $as_echo "$cross_compiling" >&6; } | |
4089 | ||
4090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4091 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4092 | if { { ac_try="$ac_link" | |
4093 | case "(($ac_try" in | |
4094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4095 | *) ac_try_echo=$ac_try;; | |
4096 | esac | |
4097 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4098 | $as_echo "$ac_try_echo"; } >&5 | |
4099 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4100 | ac_status=$? |
81ecdfbb RW |
4101 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4102 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4103 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4104 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4105 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4106 | # `rm'. | |
4107 | for ac_file in conftest.exe conftest conftest.*; do | |
4108 | test -f "$ac_file" || continue | |
4109 | case $ac_file in | |
81ecdfbb | 4110 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4111 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4112 | break;; |
4113 | * ) break;; | |
4114 | esac | |
4115 | done | |
4116 | else | |
81ecdfbb RW |
4117 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4118 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4119 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4120 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4121 | fi |
c6b750e1 | 4122 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4124 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4125 | |
4126 | rm -f conftest.$ac_ext | |
4127 | EXEEXT=$ac_cv_exeext | |
4128 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4130 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4131 | if test "${ac_cv_objext+set}" = set; then : | |
4132 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4133 | else |
81ecdfbb | 4134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4135 | /* end confdefs.h. */ |
4136 | ||
4137 | int | |
4138 | main () | |
4139 | { | |
4140 | ||
4141 | ; | |
4142 | return 0; | |
4143 | } | |
4144 | _ACEOF | |
4145 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4146 | if { { ac_try="$ac_compile" |
4147 | case "(($ac_try" in | |
4148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4149 | *) ac_try_echo=$ac_try;; | |
4150 | esac | |
4151 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4152 | $as_echo "$ac_try_echo"; } >&5 | |
4153 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4154 | ac_status=$? |
81ecdfbb RW |
4155 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4156 | test $ac_status = 0; }; then : | |
4157 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4158 | test -f "$ac_file" || continue; | |
c6b750e1 | 4159 | case $ac_file in |
81ecdfbb | 4160 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4161 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4162 | break;; | |
4163 | esac | |
4164 | done | |
cac3d6c4 | 4165 | else |
81ecdfbb | 4166 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4167 | sed 's/^/| /' conftest.$ac_ext >&5 |
4168 | ||
81ecdfbb RW |
4169 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4170 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4171 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4172 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4173 | fi |
c6b750e1 DJ |
4174 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4175 | fi | |
81ecdfbb RW |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4177 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4178 | OBJEXT=$ac_cv_objext |
4179 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4181 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4182 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4183 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4184 | else |
81ecdfbb | 4185 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4186 | /* end confdefs.h. */ |
4187 | ||
4188 | int | |
4189 | main () | |
4190 | { | |
4191 | #ifndef __GNUC__ | |
4192 | choke me | |
4193 | #endif | |
4194 | ||
4195 | ; | |
4196 | return 0; | |
4197 | } | |
4198 | _ACEOF | |
81ecdfbb | 4199 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4200 | ac_compiler_gnu=yes |
4201 | else | |
81ecdfbb | 4202 | ac_compiler_gnu=no |
c6b750e1 | 4203 | fi |
81ecdfbb | 4204 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4205 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4206 | ||
4207 | fi | |
81ecdfbb RW |
4208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4209 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4210 | if test $ac_compiler_gnu = yes; then | |
4211 | GCC=yes | |
4212 | else | |
4213 | GCC= | |
4214 | fi | |
c6b750e1 DJ |
4215 | ac_test_CFLAGS=${CFLAGS+set} |
4216 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4218 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4219 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4220 | $as_echo_n "(cached) " >&6 | |
4221 | else | |
4222 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4223 | ac_c_werror_flag=yes | |
4224 | ac_cv_prog_cc_g=no | |
4225 | CFLAGS="-g" | |
4226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4227 | /* end confdefs.h. */ |
4228 | ||
4229 | int | |
4230 | main () | |
4231 | { | |
4232 | ||
4233 | ; | |
4234 | return 0; | |
4235 | } | |
4236 | _ACEOF | |
81ecdfbb | 4237 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4238 | ac_cv_prog_cc_g=yes |
4239 | else | |
81ecdfbb RW |
4240 | CFLAGS="" |
4241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4242 | /* end confdefs.h. */ | |
4243 | ||
4244 | int | |
4245 | main () | |
4246 | { | |
4247 | ||
4248 | ; | |
4249 | return 0; | |
4250 | } | |
4251 | _ACEOF | |
4252 | if ac_fn_c_try_compile "$LINENO"; then : | |
4253 | ||
4254 | else | |
4255 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4256 | CFLAGS="-g" | |
4257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4258 | /* end confdefs.h. */ | |
cac3d6c4 | 4259 | |
81ecdfbb RW |
4260 | int |
4261 | main () | |
4262 | { | |
4263 | ||
4264 | ; | |
4265 | return 0; | |
4266 | } | |
4267 | _ACEOF | |
4268 | if ac_fn_c_try_compile "$LINENO"; then : | |
4269 | ac_cv_prog_cc_g=yes | |
4270 | fi | |
4271 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4272 | fi |
81ecdfbb | 4273 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4274 | fi |
81ecdfbb RW |
4275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4276 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4277 | fi | |
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4279 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4280 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4281 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4282 | elif test $ac_cv_prog_cc_g = yes; then |
4283 | if test "$GCC" = yes; then | |
4284 | CFLAGS="-g -O2" | |
4285 | else | |
4286 | CFLAGS="-g" | |
4287 | fi | |
4288 | else | |
4289 | if test "$GCC" = yes; then | |
4290 | CFLAGS="-O2" | |
4291 | else | |
4292 | CFLAGS= | |
4293 | fi | |
4294 | fi | |
81ecdfbb RW |
4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4296 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4297 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4298 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4299 | else |
81ecdfbb | 4300 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4301 | ac_save_CC=$CC |
81ecdfbb | 4302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4303 | /* end confdefs.h. */ |
4304 | #include <stdarg.h> | |
4305 | #include <stdio.h> | |
4306 | #include <sys/types.h> | |
4307 | #include <sys/stat.h> | |
4308 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4309 | struct buf { int x; }; | |
4310 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4311 | static char *e (p, i) | |
4312 | char **p; | |
4313 | int i; | |
4314 | { | |
4315 | return p[i]; | |
4316 | } | |
4317 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4318 | { | |
4319 | char *s; | |
4320 | va_list v; | |
4321 | va_start (v,p); | |
4322 | s = g (p, va_arg (v,int)); | |
4323 | va_end (v); | |
4324 | return s; | |
4325 | } | |
4326 | ||
4327 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4328 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4329 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4330 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4331 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4332 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4333 | that's true only with -std. */ |
c6b750e1 DJ |
4334 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4335 | ||
81ecdfbb RW |
4336 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4337 | inside strings and character constants. */ | |
4338 | #define FOO(x) 'x' | |
4339 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4340 | ||
c6b750e1 DJ |
4341 | int test (int i, double x); |
4342 | struct s1 {int (*f) (int a);}; | |
4343 | struct s2 {int (*f) (double a);}; | |
4344 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4345 | int argc; | |
4346 | char **argv; | |
4347 | int | |
4348 | main () | |
4349 | { | |
4350 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4351 | ; | |
4352 | return 0; | |
4353 | } | |
4354 | _ACEOF | |
81ecdfbb RW |
4355 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4356 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4357 | do |
4358 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4359 | if ac_fn_c_try_compile "$LINENO"; then : |
4360 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4361 | fi |
81ecdfbb RW |
4362 | rm -f core conftest.err conftest.$ac_objext |
4363 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4364 | done |
81ecdfbb | 4365 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4366 | CC=$ac_save_CC |
4367 | ||
4368 | fi | |
81ecdfbb RW |
4369 | # AC_CACHE_VAL |
4370 | case "x$ac_cv_prog_cc_c89" in | |
4371 | x) | |
4372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4373 | $as_echo "none needed" >&6; } ;; | |
4374 | xno) | |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4376 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4377 | *) |
81ecdfbb RW |
4378 | CC="$CC $ac_cv_prog_cc_c89" |
4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4380 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4381 | esac |
81ecdfbb | 4382 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4383 | |
c6b750e1 DJ |
4384 | fi |
4385 | ||
c6b750e1 DJ |
4386 | ac_ext=c |
4387 | ac_cpp='$CPP $CPPFLAGS' | |
4388 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4389 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4390 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4391 | |
81ecdfbb | 4392 | ac_ext=cpp |
18f6b6ee PB |
4393 | ac_cpp='$CXXCPP $CPPFLAGS' |
4394 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4395 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4396 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4397 | if test -z "$CXX"; then |
4398 | if test -n "$CCC"; then | |
4399 | CXX=$CCC | |
4400 | else | |
4401 | if test -n "$ac_tool_prefix"; then | |
4402 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4403 | do |
4404 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4405 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4407 | $as_echo_n "checking for $ac_word... " >&6; } | |
4408 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4409 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4410 | else |
4411 | if test -n "$CXX"; then | |
4412 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4413 | else | |
4414 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 | for as_dir in $PATH | |
4416 | do | |
4417 | IFS=$as_save_IFS | |
4418 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4419 | for ac_exec_ext in '' $ac_executable_extensions; do |
4420 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4421 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4422 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4423 | break 2 |
4424 | fi | |
4425 | done | |
81ecdfbb RW |
4426 | done |
4427 | IFS=$as_save_IFS | |
512b7dfb | 4428 | |
18f6b6ee PB |
4429 | fi |
4430 | fi | |
4431 | CXX=$ac_cv_prog_CXX | |
4432 | if test -n "$CXX"; then | |
81ecdfbb RW |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4434 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4435 | else |
81ecdfbb RW |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4437 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4438 | fi |
4439 | ||
81ecdfbb | 4440 | |
18f6b6ee PB |
4441 | test -n "$CXX" && break |
4442 | done | |
4443 | fi | |
4444 | if test -z "$CXX"; then | |
4445 | ac_ct_CXX=$CXX | |
81ecdfbb | 4446 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4447 | do |
4448 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4449 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4451 | $as_echo_n "checking for $ac_word... " >&6; } | |
4452 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4453 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4454 | else |
4455 | if test -n "$ac_ct_CXX"; then | |
4456 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4457 | else | |
4458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4459 | for as_dir in $PATH | |
4460 | do | |
4461 | IFS=$as_save_IFS | |
4462 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4463 | for ac_exec_ext in '' $ac_executable_extensions; do |
4464 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4465 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4466 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4467 | break 2 |
512b7dfb | 4468 | fi |
18f6b6ee | 4469 | done |
81ecdfbb RW |
4470 | done |
4471 | IFS=$as_save_IFS | |
512b7dfb | 4472 | |
18f6b6ee PB |
4473 | fi |
4474 | fi | |
4475 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4476 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4478 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4479 | else |
81ecdfbb RW |
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4481 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4482 | fi |
4483 | ||
81ecdfbb | 4484 | |
18f6b6ee PB |
4485 | test -n "$ac_ct_CXX" && break |
4486 | done | |
18f6b6ee | 4487 | |
81ecdfbb RW |
4488 | if test "x$ac_ct_CXX" = x; then |
4489 | CXX="g++" | |
4490 | else | |
4491 | case $cross_compiling:$ac_tool_warned in | |
4492 | yes:) | |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4494 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4495 | ac_tool_warned=yes ;; | |
4496 | esac | |
4497 | CXX=$ac_ct_CXX | |
4498 | fi | |
18f6b6ee PB |
4499 | fi |
4500 | ||
81ecdfbb RW |
4501 | fi |
4502 | fi | |
18f6b6ee | 4503 | # Provide some information about the compiler. |
81ecdfbb RW |
4504 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4505 | set X $ac_compile | |
4506 | ac_compiler=$2 | |
4507 | for ac_option in --version -v -V -qversion; do | |
4508 | { { ac_try="$ac_compiler $ac_option >&5" | |
4509 | case "(($ac_try" in | |
4510 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4511 | *) ac_try_echo=$ac_try;; | |
4512 | esac | |
4513 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4514 | $as_echo "$ac_try_echo"; } >&5 | |
4515 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4516 | ac_status=$? |
81ecdfbb RW |
4517 | if test -s conftest.err; then |
4518 | sed '10a\ | |
4519 | ... rest of stderr output deleted ... | |
4520 | 10q' conftest.err >conftest.er1 | |
4521 | cat conftest.er1 >&5 | |
4522 | rm -f conftest.er1 conftest.err | |
4523 | fi | |
4524 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4525 | test $ac_status = 0; } | |
4526 | done | |
18f6b6ee | 4527 | |
81ecdfbb RW |
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4529 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4530 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4531 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4532 | else |
81ecdfbb | 4533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4534 | /* end confdefs.h. */ |
4535 | ||
4536 | int | |
4537 | main () | |
4538 | { | |
4539 | #ifndef __GNUC__ | |
4540 | choke me | |
4541 | #endif | |
4542 | ||
4543 | ; | |
4544 | return 0; | |
4545 | } | |
4546 | _ACEOF | |
81ecdfbb | 4547 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4548 | ac_compiler_gnu=yes |
4549 | else | |
81ecdfbb | 4550 | ac_compiler_gnu=no |
18f6b6ee | 4551 | fi |
81ecdfbb | 4552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4553 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4554 | ||
4555 | fi | |
81ecdfbb RW |
4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4557 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4558 | if test $ac_compiler_gnu = yes; then | |
4559 | GXX=yes | |
4560 | else | |
4561 | GXX= | |
4562 | fi | |
18f6b6ee PB |
4563 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4564 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4566 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4567 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4568 | $as_echo_n "(cached) " >&6 | |
4569 | else | |
4570 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4571 | ac_cxx_werror_flag=yes | |
4572 | ac_cv_prog_cxx_g=no | |
4573 | CXXFLAGS="-g" | |
4574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4575 | /* end confdefs.h. */ |
4576 | ||
4577 | int | |
4578 | main () | |
4579 | { | |
4580 | ||
4581 | ; | |
4582 | return 0; | |
4583 | } | |
4584 | _ACEOF | |
81ecdfbb | 4585 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4586 | ac_cv_prog_cxx_g=yes |
4587 | else | |
81ecdfbb RW |
4588 | CXXFLAGS="" |
4589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4590 | /* end confdefs.h. */ |
81ecdfbb | 4591 | |
18f6b6ee PB |
4592 | int |
4593 | main () | |
4594 | { | |
81ecdfbb | 4595 | |
18f6b6ee PB |
4596 | ; |
4597 | return 0; | |
4598 | } | |
4599 | _ACEOF | |
81ecdfbb | 4600 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4601 | |
81ecdfbb RW |
4602 | else |
4603 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4604 | CXXFLAGS="-g" | |
4605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4606 | /* end confdefs.h. */ |
81ecdfbb | 4607 | |
18f6b6ee PB |
4608 | int |
4609 | main () | |
4610 | { | |
81ecdfbb | 4611 | |
18f6b6ee PB |
4612 | ; |
4613 | return 0; | |
4614 | } | |
4615 | _ACEOF | |
81ecdfbb RW |
4616 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4617 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4618 | fi |
81ecdfbb RW |
4619 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4620 | fi | |
4621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4622 | fi | |
4623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4624 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4625 | fi | |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4627 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4628 | if test "$ac_test_CXXFLAGS" = set; then | |
4629 | CXXFLAGS=$ac_save_CXXFLAGS | |
4630 | elif test $ac_cv_prog_cxx_g = yes; then | |
4631 | if test "$GXX" = yes; then | |
4632 | CXXFLAGS="-g -O2" | |
4633 | else | |
4634 | CXXFLAGS="-g" | |
4635 | fi | |
4636 | else | |
4637 | if test "$GXX" = yes; then | |
4638 | CXXFLAGS="-O2" | |
4639 | else | |
4640 | CXXFLAGS= | |
4641 | fi | |
18f6b6ee | 4642 | fi |
18f6b6ee PB |
4643 | ac_ext=c |
4644 | ac_cpp='$CPP $CPPFLAGS' | |
4645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4648 | ||
4649 | ||
4650 | # We must set the default linker to the linker used by gcc for the correct | |
4651 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4652 | # set the LD default to the ld used by gcc. | |
4653 | if test -z "$LD"; then | |
4654 | if test "$GCC" = yes; then | |
4655 | case $build in | |
4656 | *-*-mingw*) | |
4657 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4658 | *) | |
4659 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4660 | esac | |
4661 | case $gcc_prog_ld in | |
4662 | # Accept absolute paths. | |
4663 | [\\/]* | [A-Za-z]:[\\/]*) | |
4664 | LD="$gcc_prog_ld" ;; | |
4665 | esac | |
4666 | fi | |
512b7dfb PB |
4667 | fi |
4668 | ||
4669 | ||
4670 | ||
4671 | ||
c6b750e1 | 4672 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4673 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4674 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4676 | $as_echo_n "checking for $ac_word... " >&6; } | |
4677 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4678 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4679 | else |
512b7dfb PB |
4680 | if test -n "$GNATBIND"; then |
4681 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 4682 | else |
c6b750e1 DJ |
4683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4684 | for as_dir in $PATH | |
4685 | do | |
4686 | IFS=$as_save_IFS | |
4687 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4688 | for ac_exec_ext in '' $ac_executable_extensions; do |
4689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4690 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 4691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4692 | break 2 |
4693 | fi | |
4694 | done | |
81ecdfbb RW |
4695 | done |
4696 | IFS=$as_save_IFS | |
c6b750e1 | 4697 | |
9e07f89d NN |
4698 | fi |
4699 | fi | |
512b7dfb PB |
4700 | GNATBIND=$ac_cv_prog_GNATBIND |
4701 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
4702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4703 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 4704 | else |
81ecdfbb RW |
4705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4706 | $as_echo "no" >&6; } | |
9e07f89d NN |
4707 | fi |
4708 | ||
81ecdfbb | 4709 | |
c6b750e1 | 4710 | fi |
512b7dfb PB |
4711 | if test -z "$ac_cv_prog_GNATBIND"; then |
4712 | ac_ct_GNATBIND=$GNATBIND | |
4713 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4714 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4716 | $as_echo_n "checking for $ac_word... " >&6; } | |
4717 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4718 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4719 | else |
512b7dfb PB |
4720 | if test -n "$ac_ct_GNATBIND"; then |
4721 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 4722 | else |
c6b750e1 DJ |
4723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4724 | for as_dir in $PATH | |
4725 | do | |
4726 | IFS=$as_save_IFS | |
4727 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4728 | for ac_exec_ext in '' $ac_executable_extensions; do |
4729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4730 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 4731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4732 | break 2 |
4733 | fi | |
4734 | done | |
81ecdfbb RW |
4735 | done |
4736 | IFS=$as_save_IFS | |
c6b750e1 | 4737 | |
9e07f89d NN |
4738 | fi |
4739 | fi | |
512b7dfb PB |
4740 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4741 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4743 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 4744 | else |
81ecdfbb RW |
4745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4746 | $as_echo "no" >&6; } | |
9e07f89d NN |
4747 | fi |
4748 | ||
81ecdfbb RW |
4749 | if test "x$ac_ct_GNATBIND" = x; then |
4750 | GNATBIND="no" | |
4751 | else | |
4752 | case $cross_compiling:$ac_tool_warned in | |
4753 | yes:) | |
4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4756 | ac_tool_warned=yes ;; | |
4757 | esac | |
4758 | GNATBIND=$ac_ct_GNATBIND | |
4759 | fi | |
24ff9987 | 4760 | else |
512b7dfb | 4761 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
4762 | fi |
4763 | ||
7df2cd5d | 4764 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4765 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4766 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
4767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4768 | $as_echo_n "checking for $ac_word... " >&6; } | |
4769 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4770 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4771 | else |
512b7dfb PB |
4772 | if test -n "$GNATMAKE"; then |
4773 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4774 | else |
4775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4776 | for as_dir in $PATH | |
4777 | do | |
4778 | IFS=$as_save_IFS | |
4779 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4780 | for ac_exec_ext in '' $ac_executable_extensions; do |
4781 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4782 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 4783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4784 | break 2 |
4785 | fi | |
4786 | done | |
81ecdfbb RW |
4787 | done |
4788 | IFS=$as_save_IFS | |
7df2cd5d PB |
4789 | |
4790 | fi | |
4791 | fi | |
512b7dfb PB |
4792 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4793 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
4794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4795 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 4796 | else |
81ecdfbb RW |
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4798 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4799 | fi |
4800 | ||
81ecdfbb | 4801 | |
7df2cd5d | 4802 | fi |
512b7dfb PB |
4803 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4804 | ac_ct_GNATMAKE=$GNATMAKE | |
4805 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4806 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4808 | $as_echo_n "checking for $ac_word... " >&6; } | |
4809 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
4810 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4811 | else |
512b7dfb PB |
4812 | if test -n "$ac_ct_GNATMAKE"; then |
4813 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4814 | else |
4815 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4816 | for as_dir in $PATH | |
4817 | do | |
4818 | IFS=$as_save_IFS | |
4819 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4820 | for ac_exec_ext in '' $ac_executable_extensions; do |
4821 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4822 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 4823 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4824 | break 2 |
4825 | fi | |
4826 | done | |
81ecdfbb RW |
4827 | done |
4828 | IFS=$as_save_IFS | |
7df2cd5d | 4829 | |
7df2cd5d PB |
4830 | fi |
4831 | fi | |
512b7dfb PB |
4832 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
4833 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
4834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
4835 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 4836 | else |
81ecdfbb RW |
4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4838 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4839 | fi |
4840 | ||
81ecdfbb RW |
4841 | if test "x$ac_ct_GNATMAKE" = x; then |
4842 | GNATMAKE="no" | |
4843 | else | |
4844 | case $cross_compiling:$ac_tool_warned in | |
4845 | yes:) | |
4846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4847 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4848 | ac_tool_warned=yes ;; | |
4849 | esac | |
4850 | GNATMAKE=$ac_ct_GNATMAKE | |
4851 | fi | |
7df2cd5d | 4852 | else |
512b7dfb | 4853 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
4854 | fi |
4855 | ||
81ecdfbb RW |
4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
4857 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
4858 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
4859 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4860 | else |
4861 | cat >conftest.adb <<EOF | |
4862 | procedure conftest is begin null; end conftest; | |
4863 | EOF | |
4864 | acx_cv_cc_gcc_supports_ada=no | |
4865 | # There is a bug in old released versions of GCC which causes the | |
4866 | # driver to exit successfully when the appropriate language module | |
4867 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
4868 | # Therefore we must check for the error message as well as an | |
4869 | # unsuccessful exit. | |
b8908782 DD |
4870 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
4871 | # given a .adb file, but produce no object file. So we must check | |
4872 | # if an object file was really produced to guard against this. | |
9e07f89d | 4873 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 4874 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 4875 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
4876 | fi |
4877 | rm -f conftest.* | |
4878 | fi | |
81ecdfbb RW |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
4880 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 4881 | |
512b7dfb | 4882 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
4883 | have_gnat=yes |
4884 | else | |
4885 | have_gnat=no | |
4886 | fi | |
4887 | ||
81ecdfbb RW |
4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
4889 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
4890 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
4891 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
4892 | else |
4893 | echo abfoo >t1 | |
4894 | echo cdfoo >t2 | |
4895 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
4896 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
4897 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
4898 | : | |
4899 | else | |
4900 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
4901 | fi | |
4902 | fi | |
b8908782 DD |
4903 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
4904 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 4905 | : |
b8908782 DD |
4906 | else |
4907 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
4908 | fi | |
4909 | fi | |
4910 | rm t1 t2 | |
4911 | ||
4912 | fi | |
81ecdfbb RW |
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
4914 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
4915 | do_compare="$gcc_cv_prog_cmp_skip" |
4916 | ||
4917 | ||
9e07f89d | 4918 | |
e8a5fa9c | 4919 | # See if we are building gcc with C++. |
81ecdfbb RW |
4920 | # Check whether --enable-build-with-cxx was given. |
4921 | if test "${enable_build_with_cxx+set}" = set; then : | |
4922 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
e8a5fa9c RW |
4923 | else |
4924 | ENABLE_BUILD_WITH_CXX=no | |
81ecdfbb RW |
4925 | fi |
4926 | ||
e8a5fa9c | 4927 | |
d5f2ee2e KG |
4928 | # Used for setting $lt_cv_objdir |
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
4930 | $as_echo_n "checking for objdir... " >&6; } | |
4931 | if test "${lt_cv_objdir+set}" = set; then : | |
4932 | $as_echo_n "(cached) " >&6 | |
4933 | else | |
4934 | rm -f .libs 2>/dev/null | |
4935 | mkdir .libs 2>/dev/null | |
4936 | if test -d .libs; then | |
4937 | lt_cv_objdir=.libs | |
4938 | else | |
4939 | # MS-DOS does not allow filenames that begin with a dot. | |
4940 | lt_cv_objdir=_libs | |
4941 | fi | |
4942 | rmdir .libs 2>/dev/null | |
4943 | fi | |
4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
4945 | $as_echo "$lt_cv_objdir" >&6; } | |
4946 | objdir=$lt_cv_objdir | |
4947 | ||
4948 | ||
4949 | ||
4950 | ||
4951 | ||
4952 | cat >>confdefs.h <<_ACEOF | |
4953 | #define LT_OBJDIR "$lt_cv_objdir/" | |
4954 | _ACEOF | |
4955 | ||
4956 | ||
4957 | ||
e8a5fa9c | 4958 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 4959 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 4960 | gmpinc= |
4b900473 | 4961 | have_gmp=no |
e8a5fa9c RW |
4962 | |
4963 | # Specify a location for mpc | |
4964 | # check for this first so it ends up on the link line before mpfr. | |
4965 | ||
81ecdfbb RW |
4966 | # Check whether --with-mpc was given. |
4967 | if test "${with_mpc+set}" = set; then : | |
4968 | withval=$with_mpc; | |
4969 | fi | |
e8a5fa9c | 4970 | |
e8a5fa9c | 4971 | |
e552509b | 4972 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
4973 | if test "${with_mpc_include+set}" = set; then : |
4974 | withval=$with_mpc_include; | |
4975 | fi | |
e8a5fa9c | 4976 | |
e8a5fa9c | 4977 | |
e552509b | 4978 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
4979 | if test "${with_mpc_lib+set}" = set; then : |
4980 | withval=$with_mpc_lib; | |
4981 | fi | |
e8a5fa9c | 4982 | |
e8a5fa9c RW |
4983 | |
4984 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
4985 | gmplibs="-L$with_mpc/lib $gmplibs" |
4986 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
4987 | fi |
4988 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 4989 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
4990 | fi |
4991 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 4992 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
4993 | fi |
4994 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 4995 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 4996 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
4997 | # Do not test the mpc version. Assume that it is sufficient, since |
4998 | # it is in the source tree, and the library has not been built yet | |
4999 | # but it would be included on the link line in the version check below | |
5000 | # hence making the test fail. | |
d9b76ff9 | 5001 | have_gmp=yes |
e8a5fa9c | 5002 | fi |
4b900473 | 5003 | |
11b04d1f DD |
5004 | # Specify a location for mpfr |
5005 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5006 | |
81ecdfbb RW |
5007 | # Check whether --with-mpfr-dir was given. |
5008 | if test "${with_mpfr_dir+set}" = set; then : | |
5009 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5010 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5011 | fi | |
5012 | ||
11b04d1f DD |
5013 | |
5014 | ||
81ecdfbb RW |
5015 | # Check whether --with-mpfr was given. |
5016 | if test "${with_mpfr+set}" = set; then : | |
5017 | withval=$with_mpfr; | |
5018 | fi | |
c6b750e1 | 5019 | |
11b04d1f | 5020 | |
e552509b | 5021 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5022 | if test "${with_mpfr_include+set}" = set; then : |
5023 | withval=$with_mpfr_include; | |
5024 | fi | |
c6b750e1 | 5025 | |
8a0d8a5c | 5026 | |
e552509b | 5027 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5028 | if test "${with_mpfr_lib+set}" = set; then : |
5029 | withval=$with_mpfr_lib; | |
5030 | fi | |
8a0d8a5c | 5031 | |
11b04d1f DD |
5032 | |
5033 | if test "x$with_mpfr" != x; then | |
5034 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5035 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5036 | fi |
8a0d8a5c | 5037 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5038 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5039 | fi |
5040 | if test "x$with_mpfr_lib" != x; then | |
5041 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5042 | fi | |
4b900473 | 5043 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5f2ee2e | 5044 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5045 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
d5f2ee2e | 5046 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
4b900473 PB |
5047 | # Do not test the mpfr version. Assume that it is sufficient, since |
5048 | # it is in the source tree, and the library has not been built yet | |
5049 | # but it would be included on the link line in the version check below | |
5050 | # hence making the test fail. | |
5051 | have_gmp=yes | |
5052 | fi | |
11b04d1f | 5053 | |
4b1cb4fe | 5054 | # Specify a location for gmp |
c6b750e1 | 5055 | |
81ecdfbb RW |
5056 | # Check whether --with-gmp-dir was given. |
5057 | if test "${with_gmp_dir+set}" = set; then : | |
5058 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5059 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5060 | fi | |
5061 | ||
4b1cb4fe DD |
5062 | |
5063 | ||
81ecdfbb RW |
5064 | # Check whether --with-gmp was given. |
5065 | if test "${with_gmp+set}" = set; then : | |
5066 | withval=$with_gmp; | |
5067 | fi | |
c6b750e1 | 5068 | |
4b1cb4fe | 5069 | |
e552509b | 5070 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5071 | if test "${with_gmp_include+set}" = set; then : |
5072 | withval=$with_gmp_include; | |
5073 | fi | |
c6b750e1 | 5074 | |
8a0d8a5c | 5075 | |
e552509b | 5076 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5077 | if test "${with_gmp_lib+set}" = set; then : |
5078 | withval=$with_gmp_lib; | |
5079 | fi | |
8a0d8a5c PB |
5080 | |
5081 | ||
4b1cb4fe | 5082 | |
11b04d1f DD |
5083 | if test "x$with_gmp" != x; then |
5084 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5085 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5086 | fi |
8a0d8a5c PB |
5087 | if test "x$with_gmp_include" != x; then |
5088 | gmpinc="-I$with_gmp_include $gmpinc" | |
5089 | fi | |
5090 | if test "x$with_gmp_lib" != x; then | |
5091 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5092 | fi | |
4b900473 | 5093 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5094 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5095 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5096 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5097 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
4b900473 PB |
5098 | # Do not test the gmp version. Assume that it is sufficient, since |
5099 | # it is in the source tree, and the library has not been built yet | |
5100 | # but it would be included on the link line in the version check below | |
5101 | # hence making the test fail. | |
5102 | have_gmp=yes | |
5103 | fi | |
4b1cb4fe | 5104 | |
ceb92e78 | 5105 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5106 | have_gmp=yes |
5107 | saved_CFLAGS="$CFLAGS" | |
5108 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5109 | # Check for the recommended and required versions of GMP. |
5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5111 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5112 | |
5113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5114 | /* end confdefs.h. */ |
5115 | #include "gmp.h" | |
5116 | int | |
5117 | main () | |
5118 | { | |
5119 | ||
5120 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5121 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5122 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5123 | choke me | |
5124 | #endif | |
5125 | ||
5126 | ; | |
5127 | return 0; | |
5128 | } | |
5129 | _ACEOF | |
5130 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5132 | /* end confdefs.h. */ |
a6b5846e | 5133 | #include <gmp.h> |
c6b750e1 DJ |
5134 | int |
5135 | main () | |
5136 | { | |
4b1cb4fe | 5137 | |
a6b5846e KG |
5138 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5139 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5140 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5141 | choke me |
5142 | #endif | |
c6b750e1 DJ |
5143 | |
5144 | ; | |
5145 | return 0; | |
5146 | } | |
5147 | _ACEOF | |
81ecdfbb RW |
5148 | if ac_fn_c_try_compile "$LINENO"; then : |
5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5150 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5151 | else |
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5153 | $as_echo "buggy but acceptable" >&6; } | |
5154 | fi | |
5155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5156 | else |
81ecdfbb RW |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5158 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5159 | fi |
81ecdfbb | 5160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5161 | |
e8a5fa9c | 5162 | # If we have GMP, check the MPFR version. |
4b900473 | 5163 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5164 | # Check for the recommended and required versions of MPFR. |
5165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5166 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5168 | /* end confdefs.h. */ |
9b134994 | 5169 | #include <gmp.h> |
4b900473 | 5170 | #include <mpfr.h> |
c6b750e1 DJ |
5171 | int |
5172 | main () | |
5173 | { | |
9b134994 | 5174 | |
ef699244 | 5175 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
4b900473 PB |
5176 | choke me |
5177 | #endif | |
c6b750e1 DJ |
5178 | |
5179 | ; | |
5180 | return 0; | |
5181 | } | |
5182 | _ACEOF | |
81ecdfbb RW |
5183 | if ac_fn_c_try_compile "$LINENO"; then : |
5184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5185 | /* end confdefs.h. */ |
4b1cb4fe | 5186 | #include <gmp.h> |
4b900473 | 5187 | #include <mpfr.h> |
c6b750e1 DJ |
5188 | int |
5189 | main () | |
5190 | { | |
9dbaa842 | 5191 | |
a6b5846e | 5192 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5193 | choke me |
5194 | #endif | |
e8a5fa9c RW |
5195 | |
5196 | ; | |
5197 | return 0; | |
5198 | } | |
5199 | _ACEOF | |
81ecdfbb RW |
5200 | if ac_fn_c_try_compile "$LINENO"; then : |
5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5202 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5203 | else |
81ecdfbb RW |
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5205 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5206 | fi |
81ecdfbb | 5207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5208 | else |
81ecdfbb RW |
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5210 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5211 | fi |
81ecdfbb | 5212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5213 | fi |
5214 | ||
5215 | # Check for the MPC header version. | |
d9b76ff9 | 5216 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5217 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5219 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5220 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5221 | /* end confdefs.h. */ |
5222 | #include <mpc.h> | |
5223 | int | |
5224 | main () | |
5225 | { | |
5226 | ||
a6b5846e KG |
5227 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5228 | choke me | |
5229 | #endif | |
5230 | ||
5231 | ; | |
5232 | return 0; | |
5233 | } | |
5234 | _ACEOF | |
5235 | if ac_fn_c_try_compile "$LINENO"; then : | |
5236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5237 | /* end confdefs.h. */ | |
5238 | #include <mpc.h> | |
5239 | int | |
5240 | main () | |
5241 | { | |
5242 | ||
5243 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5244 | choke me |
5245 | #endif | |
5246 | ||
5247 | ; | |
5248 | return 0; | |
5249 | } | |
5250 | _ACEOF | |
81ecdfbb RW |
5251 | if ac_fn_c_try_compile "$LINENO"; then : |
5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5253 | $as_echo "yes" >&6; } |
a6b5846e KG |
5254 | else |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5256 | $as_echo "buggy but acceptable" >&6; } | |
5257 | fi | |
5258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5259 | else |
81ecdfbb | 5260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5261 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5262 | fi |
81ecdfbb | 5263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5264 | fi |
5265 | ||
5266 | # Now check the MPFR library. | |
5267 | if test x"$have_gmp" = xyes; then | |
5268 | saved_LIBS="$LIBS" | |
5269 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5271 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5273 | /* end confdefs.h. */ |
d9b76ff9 | 5274 | #include <mpc.h> |
e8a5fa9c RW |
5275 | int |
5276 | main () | |
5277 | { | |
5278 | ||
5279 | mpfr_t n; | |
5280 | mpfr_t x; | |
d9b76ff9 | 5281 | mpc_t c; |
e8a5fa9c RW |
5282 | int t; |
5283 | mpfr_init (n); | |
5284 | mpfr_init (x); | |
5285 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5286 | mpfr_erfc (n, x, GMP_RNDN); | |
5287 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5288 | mpfr_clear(n); |
5289 | mpfr_clear(x); | |
5290 | mpc_init2 (c, 53); | |
5291 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5292 | mpc_cosh (c, c, MPC_RNDNN); | |
5293 | mpc_pow (c, c, c, MPC_RNDNN); | |
5294 | mpc_acosh (c, c, MPC_RNDNN); | |
5295 | mpc_clear (c); | |
c6b750e1 DJ |
5296 | |
5297 | ; | |
5298 | return 0; | |
5299 | } | |
5300 | _ACEOF | |
81ecdfbb RW |
5301 | if ac_fn_c_try_link "$LINENO"; then : |
5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5303 | $as_echo "yes" >&6; } | |
c6b750e1 | 5304 | else |
81ecdfbb RW |
5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5306 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5307 | fi |
81ecdfbb RW |
5308 | rm -f core conftest.err conftest.$ac_objext \ |
5309 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5310 | LIBS="$saved_LIBS" |
5311 | fi | |
5312 | ||
4b900473 | 5313 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5314 | |
a6b5846e KG |
5315 | # The library versions listed in the error message below should match |
5316 | # the HARD-minimums enforced above. | |
4b900473 | 5317 | if test x$have_gmp != xyes; then |
a6b5846e | 5318 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
d9b76ff9 KG |
5319 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5320 | their locations. Source code for these libraries can be found at | |
5321 | their respective hosting sites as well as at | |
5322 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5323 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5324 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5325 | make sure that you have installed both the libraries and the header | |
5326 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5327 | fi |
9dbaa842 DD |
5328 | fi |
5329 | ||
e8a5fa9c RW |
5330 | # Flags needed for both GMP, MPFR and/or MPC. |
5331 | ||
5332 | ||
5333 | ||
4b1cb4fe DD |
5334 | |
5335 | ||
5336 | ||
29383458 JM |
5337 | # Allow host libstdc++ to be specified for static linking with PPL. |
5338 | ||
81ecdfbb RW |
5339 | # Check whether --with-host-libstdcxx was given. |
5340 | if test "${with_host_libstdcxx+set}" = set; then : | |
5341 | withval=$with_host_libstdcxx; | |
5342 | fi | |
29383458 | 5343 | |
29383458 JM |
5344 | |
5345 | case $with_host_libstdcxx in | |
5346 | no|yes) | |
81ecdfbb | 5347 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5348 | ;; |
5349 | esac | |
e28c595f | 5350 | |
e8a5fa9c RW |
5351 | # Linker flags to use for stage1 or when not boostrapping. |
5352 | ||
81ecdfbb RW |
5353 | # Check whether --with-stage1-ldflags was given. |
5354 | if test "${with_stage1_ldflags+set}" = set; then : | |
5355 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5356 | stage1_ldflags= |
5357 | else | |
5358 | stage1_ldflags=$withval | |
5359 | fi | |
5360 | else | |
5361 | stage1_ldflags= | |
81ecdfbb RW |
5362 | fi |
5363 | ||
e8a5fa9c RW |
5364 | |
5365 | ||
5366 | # Libraries to use for stage1 or when not bootstrapping. | |
5367 | ||
81ecdfbb RW |
5368 | # Check whether --with-stage1-libs was given. |
5369 | if test "${with_stage1_libs+set}" = set; then : | |
5370 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5371 | stage1_libs= |
5372 | else | |
5373 | stage1_libs=$withval | |
5374 | fi | |
5375 | else | |
5376 | stage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5377 | fi |
5378 | ||
e8a5fa9c RW |
5379 | |
5380 | ||
e8a5fa9c RW |
5381 | # Libraries to use for stage2 and later builds. This defaults to the |
5382 | # argument passed to --with-host-libstdcxx. | |
5383 | ||
81ecdfbb RW |
5384 | # Check whether --with-boot-libs was given. |
5385 | if test "${with_boot_libs+set}" = set; then : | |
5386 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5387 | poststage1_libs= |
5388 | else | |
5389 | poststage1_libs=$withval | |
5390 | fi | |
5391 | else | |
5392 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5393 | fi |
5394 | ||
e8a5fa9c RW |
5395 | |
5396 | ||
143754cd NC |
5397 | # Linker flags to use for stage2 and later builds. |
5398 | ||
5399 | # Check whether --with-boot-ldflags was given. | |
5400 | if test "${with_boot_ldflags+set}" = set; then : | |
5401 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5402 | poststage1_ldflags= | |
5403 | else | |
5404 | poststage1_ldflags=$withval | |
5405 | fi | |
5406 | else | |
5407 | poststage1_ldflags= | |
4f11b223 ILT |
5408 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5409 | # statically. But if the user explicitly specified the libraries to | |
5410 | # use, trust that they are doing what they want. | |
5411 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5412 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5413 | fi | |
5414 | fi | |
5415 | ||
5416 | ||
5417 | ||
e28c595f | 5418 | # Check for PPL |
b123da99 | 5419 | ppllibs= |
e28c595f | 5420 | pplinc= |
b123da99 | 5421 | pwllib= |
e28c595f JM |
5422 | |
5423 | ||
81ecdfbb RW |
5424 | # Check whether --with-ppl was given. |
5425 | if test "${with_ppl+set}" = set; then : | |
5426 | withval=$with_ppl; | |
81ecdfbb | 5427 | fi |
e28c595f | 5428 | |
e28c595f | 5429 | |
e552509b | 5430 | # Check whether --with-ppl-include was given. |
81ecdfbb RW |
5431 | if test "${with_ppl_include+set}" = set; then : |
5432 | withval=$with_ppl_include; | |
5433 | fi | |
5434 | ||
e28c595f | 5435 | |
e552509b | 5436 | # Check whether --with-ppl-lib was given. |
81ecdfbb RW |
5437 | if test "${with_ppl_lib+set}" = set; then : |
5438 | withval=$with_ppl_lib; | |
5439 | fi | |
e28c595f | 5440 | |
e28c595f | 5441 | |
b123da99 SP |
5442 | # Check whether --enable-ppl-version-check was given. |
5443 | if test "${enable_ppl_version_check+set}" = set; then : | |
5444 | enableval=$enable_ppl_version_check; | |
5445 | fi | |
5446 | ||
5447 | ||
29383458 | 5448 | case $with_ppl in |
b123da99 | 5449 | yes | no | "") |
1f53ca9a | 5450 | ;; |
29383458 | 5451 | *) |
b123da99 | 5452 | ppllibs="-L$with_ppl/lib" |
29383458 | 5453 | pplinc="-I$with_ppl/include $pplinc" |
b123da99 SP |
5454 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5455 | with_ppl=yes | |
5456 | else | |
5457 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5458 | fi | |
29383458 JM |
5459 | ;; |
5460 | esac | |
b123da99 SP |
5461 | |
5462 | if test x"$with_ppl_include" != x; then | |
e28c595f | 5463 | pplinc="-I$with_ppl_include $pplinc" |
b123da99 | 5464 | with_ppl=yes |
e28c595f | 5465 | fi |
b123da99 | 5466 | |
e28c595f | 5467 | if test "x$with_ppl_lib" != x; then |
b123da99 SP |
5468 | ppllibs="-L$with_ppl_lib" |
5469 | with_ppl=yes | |
e28c595f | 5470 | fi |
b123da99 SP |
5471 | |
5472 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5473 | if test x"$enable_watchdog" = xyes; then | |
5474 | pwllib="-lpwl" | |
5475 | fi | |
5476 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
1f53ca9a AO |
5477 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5478 | enable_ppl_version_check=no | |
b123da99 | 5479 | with_ppl=yes |
e28c595f JM |
5480 | fi |
5481 | ||
86ed8cf6 | 5482 | if test "x$with_ppl" != xno; then |
b123da99 | 5483 | if test "x$pwllib" = x; then |
0e8ad34f RO |
5484 | saved_LIBS="$LIBS" |
5485 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
b123da99 SP |
5486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5487 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5488 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5489 | $as_echo_n "(cached) " >&6 | |
5490 | else | |
5491 | ac_check_lib_save_LIBS=$LIBS | |
5492 | LIBS="-lpwl $LIBS" | |
5493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5494 | /* end confdefs.h. */ | |
5495 | ||
5496 | /* Override any GCC internal prototype to avoid an error. | |
5497 | Use char because int might match the return type of a GCC | |
5498 | builtin and then its argument prototype would still apply. */ | |
5499 | #ifdef __cplusplus | |
5500 | extern "C" | |
5501 | #endif | |
5502 | char PWL_handle_timeout (); | |
5503 | int | |
5504 | main () | |
5505 | { | |
5506 | return PWL_handle_timeout (); | |
5507 | ; | |
5508 | return 0; | |
5509 | } | |
5510 | _ACEOF | |
5511 | if ac_fn_c_try_link "$LINENO"; then : | |
5512 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
e28c595f | 5513 | else |
b123da99 SP |
5514 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5515 | fi | |
5516 | rm -f core conftest.err conftest.$ac_objext \ | |
5517 | conftest$ac_exeext conftest.$ac_ext | |
5518 | LIBS=$ac_check_lib_save_LIBS | |
5519 | fi | |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5521 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5522 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5523 | pwllib="-lpwl" | |
81ecdfbb RW |
5524 | fi |
5525 | ||
0e8ad34f | 5526 | LIBS="$saved_LIBS" |
b123da99 | 5527 | fi |
e28c595f | 5528 | |
b123da99 SP |
5529 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5530 | ||
5531 | if test "$enable_ppl_version_check" != no; then | |
5532 | saved_CFLAGS="$CFLAGS" | |
5533 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5535 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e28c595f JM |
5537 | /* end confdefs.h. */ |
5538 | #include "ppl_c.h" | |
5539 | int | |
5540 | main () | |
5541 | { | |
5542 | ||
b123da99 SP |
5543 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5544 | choke me | |
5545 | #endif | |
e28c595f JM |
5546 | |
5547 | ; | |
5548 | return 0; | |
5549 | } | |
5550 | _ACEOF | |
81ecdfbb RW |
5551 | if ac_fn_c_try_compile "$LINENO"; then : |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5553 | $as_echo "yes" >&6; } | |
e28c595f | 5554 | else |
81ecdfbb | 5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1f53ca9a | 5556 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
e28c595f | 5557 | fi |
81ecdfbb | 5558 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b123da99 SP |
5559 | CFLAGS="$saved_CFLAGS" |
5560 | fi | |
e28c595f JM |
5561 | fi |
5562 | ||
5563 | # Flags needed for PPL | |
5564 | ||
5565 | ||
5566 | ||
5567 | ||
5568 | # Check for CLOOG | |
e552509b | 5569 | |
e28c595f JM |
5570 | |
5571 | ||
81ecdfbb RW |
5572 | # Check whether --with-cloog was given. |
5573 | if test "${with_cloog+set}" = set; then : | |
5574 | withval=$with_cloog; | |
81ecdfbb RW |
5575 | fi |
5576 | ||
e28c595f | 5577 | |
e552509b | 5578 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
5579 | if test "${with_cloog_include+set}" = set; then : |
5580 | withval=$with_cloog_include; | |
5581 | fi | |
e28c595f | 5582 | |
e28c595f | 5583 | |
e552509b | 5584 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
5585 | if test "${with_cloog_lib+set}" = set; then : |
5586 | withval=$with_cloog_lib; | |
5587 | fi | |
e28c595f | 5588 | |
e28c595f | 5589 | |
e552509b ILT |
5590 | # Check whether --enable-cloog-backend was given. |
5591 | if test "${enable_cloog_backend+set}" = set; then : | |
5592 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5593 | cloog_backend=isl | |
5594 | elif test "x${enableval}" = "xppl"; then | |
5595 | cloog_backend=ppl | |
5596 | else | |
5597 | cloog_backend=ppl-legacy | |
5598 | fi | |
5599 | else | |
5600 | cloog_backend=ppl-legacy | |
5601 | fi | |
5602 | ||
5603 | # Check whether --enable-cloog-version-check was given. | |
5604 | if test "${enable_cloog_version_check+set}" = set; then : | |
5605 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5606 | else | |
5607 | ENABLE_CLOOG_CHECK=yes | |
5608 | fi | |
5609 | ||
5610 | ||
5611 | # Initialize clooglibs and clooginc. | |
5612 | case $with_cloog in | |
5613 | no) | |
5614 | clooglibs= | |
5615 | clooginc= | |
5616 | ;; | |
5617 | "" | yes) | |
5618 | ;; | |
5619 | *) | |
5620 | clooglibs="-L$with_cloog/lib" | |
5621 | clooginc="-I$with_cloog/include" | |
5622 | ;; | |
5623 | esac | |
5624 | if test "x${with_cloog_include}" != x ; then | |
5625 | clooginc="-I$with_cloog_include" | |
5626 | fi | |
5627 | if test "x${with_cloog_lib}" != x; then | |
5628 | clooglibs="-L$with_cloog_lib" | |
5629 | fi | |
5630 | ||
5631 | ||
5632 | ||
5633 | ||
5634 | ||
1f53ca9a | 5635 | if test "x$with_ppl" = "xno"; then |
8d8eef9a RW |
5636 | |
5637 | ||
5638 | ||
5639 | if test "x${with_cloog}" = xno; then | |
5640 | graphite_requested=no | |
5641 | elif test "x${with_cloog}" != x \ | |
5642 | || test "x${with_cloog_include}" != x \ | |
5643 | || test "x${with_cloog_lib}" != x ; then | |
5644 | graphite_requested=yes | |
5645 | else | |
5646 | graphite_requested=no | |
5647 | fi | |
5648 | ||
5649 | ||
5650 | if test "${graphite_requested}" = yes; then | |
5651 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 | |
5652 | fi | |
1f53ca9a AO |
5653 | with_cloog=no |
5654 | fi | |
e552509b ILT |
5655 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5656 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5657 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5658 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5659 | fi | |
5660 | if test "x$with_cloog" != "xno"; then | |
1f53ca9a | 5661 | |
e552509b ILT |
5662 | |
5663 | ||
5664 | _cloog_saved_CFLAGS=$CFLAGS | |
5665 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5666 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5667 | _cloog_saved_LIBS=$LIBS | |
5668 | ||
5669 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" | |
5670 | ||
5671 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" | |
5672 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" | |
5673 | LDFLAGS="${LDFLAGS} ${clooglibs}" | |
5674 | ||
5675 | case $cloog_backend in | |
5676 | "ppl-legacy") | |
5677 | CFLAGS="${CFLAGS} ${pplinc}" | |
5678 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5680 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
5681 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5682 | $as_echo_n "(cached) " >&6 | |
5683 | else | |
5684 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
5685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5686 | /* end confdefs.h. */ | |
5687 | #include "cloog/cloog.h" | |
5688 | int | |
5689 | main () | |
5690 | { | |
5691 | #ifndef CLOOG_PPL_BACKEND | |
5692 | choke me | |
5693 | #endif | |
5694 | ; | |
5695 | return 0; | |
5696 | } | |
5697 | _ACEOF | |
5698 | if ac_fn_c_try_link "$LINENO"; then : | |
5699 | gcc_cv_cloog_type="PPL Legacy" | |
5700 | else | |
5701 | gcc_cv_cloog_type=no | |
5702 | fi | |
5703 | rm -f core conftest.err conftest.$ac_objext \ | |
5704 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5705 | fi |
e552509b ILT |
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5707 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5708 | ;; | |
5709 | "isl") | |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5711 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5712 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5713 | $as_echo_n "(cached) " >&6 | |
5714 | else | |
5715 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5717 | /* end confdefs.h. */ | |
5718 | #include "cloog/cloog.h" | |
5719 | int | |
5720 | main () | |
5721 | { | |
5722 | cloog_version () | |
5723 | ; | |
5724 | return 0; | |
5725 | } | |
5726 | _ACEOF | |
5727 | if ac_fn_c_try_link "$LINENO"; then : | |
5728 | gcc_cv_cloog_type="ISL" | |
5729 | else | |
5730 | gcc_cv_cloog_type=no | |
e28c595f | 5731 | fi |
e552509b ILT |
5732 | rm -f core conftest.err conftest.$ac_objext \ |
5733 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5734 | fi |
e552509b ILT |
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5736 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5737 | ;; | |
5738 | "ppl") | |
5739 | CFLAGS="${CFLAGS} ${pplinc}" | |
5740 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5742 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5743 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5744 | $as_echo_n "(cached) " >&6 | |
e28c595f | 5745 | else |
e552509b ILT |
5746 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" |
5747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5748 | /* end confdefs.h. */ | |
5749 | #include "cloog/cloog.h" | |
5750 | #include "cloog/ppl/cloog.h" | |
5751 | int | |
5752 | main () | |
5753 | { | |
5754 | cloog_version () | |
5755 | ; | |
5756 | return 0; | |
5757 | } | |
5758 | _ACEOF | |
5759 | if ac_fn_c_try_link "$LINENO"; then : | |
5760 | gcc_cv_cloog_type="PPL" | |
5761 | else | |
5762 | gcc_cv_cloog_type=no | |
81ecdfbb | 5763 | fi |
e552509b ILT |
5764 | rm -f core conftest.err conftest.$ac_objext \ |
5765 | conftest$ac_exeext conftest.$ac_ext | |
5766 | fi | |
5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5768 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5769 | ;; | |
5770 | *) | |
5771 | gcc_cv_cloog_type="" | |
5772 | esac | |
5773 | ||
5774 | case $gcc_cv_cloog_type in | |
5775 | "PPL Legacy") | |
5776 | clooginc="${clooginc}" | |
5777 | clooglibs="${clooglibs} -lcloog" | |
5778 | cloog_org=no | |
5779 | ;; | |
5780 | "ISL") | |
5781 | clooginc="${clooginc} ${_cloogorginc}" | |
b123da99 | 5782 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
e552509b ILT |
5783 | cloog_org=yes |
5784 | ;; | |
5785 | "PPL") | |
5786 | clooginc="${clooginc} ${_cloogorginc}" | |
5787 | clooglibs="${clooglibs} -lcloog-ppl" | |
5788 | cloog_org=yes | |
5789 | ;; | |
5790 | *) | |
5791 | clooglibs= | |
5792 | clooginc= | |
5793 | cloog_org= | |
5794 | ;; | |
5795 | esac | |
81ecdfbb | 5796 | |
e552509b ILT |
5797 | LIBS=$_cloog_saved_LIBS |
5798 | CFLAGS=$_cloog_saved_CFLAGS | |
5799 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5800 | LDFLAGS=$_cloog_saved_LDFLAGS | |
e28c595f | 5801 | |
e552509b ILT |
5802 | |
5803 | ||
5804 | ||
5805 | ||
5806 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5807 | _cloog_saved_CFLAGS=$CFLAGS | |
5808 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5809 | ||
5810 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
5811 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" | |
5812 | ||
5813 | if test "${cloog_org}" = yes ; then | |
8d8eef9a RW |
5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
5815 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
e552509b ILT |
5816 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
5817 | $as_echo_n "(cached) " >&6 | |
5818 | else | |
5819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5820 | /* end confdefs.h. */ | |
5821 | #include "cloog/cloog.h" | |
5822 | int | |
5823 | main () | |
5824 | { | |
5825 | #if CLOOG_VERSION_MAJOR != 0 \ | |
8d8eef9a RW |
5826 | || CLOOG_VERSION_MINOR != 16 \ |
5827 | || CLOOG_VERSION_REVISION < 1 | |
e552509b ILT |
5828 | choke me |
5829 | #endif | |
5830 | ; | |
5831 | return 0; | |
5832 | } | |
5833 | _ACEOF | |
5834 | if ac_fn_c_try_compile "$LINENO"; then : | |
5835 | gcc_cv_cloog_ct_0_14_0=yes | |
5836 | else | |
5837 | gcc_cv_cloog_ct_0_14_0=no | |
5838 | fi | |
5839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5840 | fi | |
5841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
5842 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
5843 | elif test "${cloog_org}" = no ; then | |
5844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
143754cd | 5845 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
e552509b ILT |
5846 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
5847 | $as_echo_n "(cached) " >&6 | |
5848 | else | |
81ecdfbb | 5849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e28c595f JM |
5850 | /* end confdefs.h. */ |
5851 | #include "cloog/cloog.h" | |
5852 | int | |
5853 | main () | |
5854 | { | |
e552509b ILT |
5855 | #if CLOOG_VERSION_MAJOR != 0 \ |
5856 | || CLOOG_VERSION_MINOR != 15 \ | |
5857 | || CLOOG_VERSION_REVISION < 5 | |
5858 | choke me | |
5859 | #endif | |
e28c595f JM |
5860 | ; |
5861 | return 0; | |
5862 | } | |
5863 | _ACEOF | |
a009f2e7 RW |
5864 | if ac_fn_c_try_compile "$LINENO"; then : |
5865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5866 | /* end confdefs.h. */ | |
5867 | #include "cloog/cloog.h" | |
5868 | int | |
5869 | main () | |
5870 | { | |
e552509b ILT |
5871 | #if CLOOG_VERSION_MAJOR != 0 \ |
5872 | || CLOOG_VERSION_MINOR != 15 \ | |
5873 | || CLOOG_VERSION_REVISION < 9 | |
5874 | choke me | |
5875 | #endif | |
a009f2e7 RW |
5876 | ; |
5877 | return 0; | |
5878 | } | |
5879 | _ACEOF | |
81ecdfbb | 5880 | if ac_fn_c_try_compile "$LINENO"; then : |
e552509b | 5881 | gcc_cv_cloog_ct_0_15_5=yes |
a009f2e7 | 5882 | else |
e552509b | 5883 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
a009f2e7 RW |
5884 | fi |
5885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e28c595f | 5886 | else |
e552509b | 5887 | gcc_cv_cloog_ct_0_15_5=no |
e28c595f | 5888 | fi |
81ecdfbb | 5889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e28c595f | 5890 | fi |
e552509b ILT |
5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
5892 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
5893 | fi | |
5894 | ||
5895 | CFLAGS=$_cloog_saved_CFLAGS | |
5896 | LDFLAGS=$_cloog_saved_LDFLAGS | |
5897 | fi | |
5898 | ||
5899 | ||
5900 | ||
e28c595f | 5901 | |
e28c595f JM |
5902 | |
5903 | ||
5904 | ||
8d8eef9a RW |
5905 | if test "x${with_cloog}" = xno; then |
5906 | graphite_requested=no | |
5907 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
5908 | || test "x${with_cloog_include}" != x \ |
5909 | || test "x${with_cloog_lib}" != x ; then | |
5910 | graphite_requested=yes | |
5911 | else | |
5912 | graphite_requested=no | |
5913 | fi | |
5914 | ||
5915 | ||
5916 | ||
5917 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
5918 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
5919 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
5920 | clooglibs= | |
5921 | clooginc= | |
5922 | fi | |
5923 | ||
5924 | if test "${graphite_requested}" = yes \ | |
5925 | && test "x${clooglibs}" = x \ | |
5926 | && test "x${clooginc}" = x ; then | |
5927 | ||
8d8eef9a | 5928 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
5929 | fi |
5930 | ||
5931 | ||
5932 | fi | |
5933 | ||
700d40ca ILT |
5934 | # Check for LTO support. |
5935 | # Check whether --enable-lto was given. | |
5936 | if test "${enable_lto+set}" = set; then : | |
5937 | enableval=$enable_lto; enable_lto=$enableval | |
5938 | else | |
5939 | enable_lto=yes; default_enable_lto=yes | |
5940 | fi | |
5941 | ||
5942 | ||
143754cd | 5943 | |
e49e5c92 DK |
5944 | |
5945 | ||
5946 | target_elf=no | |
5947 | case $target in | |
5948 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
5949 | *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \ | |
a009f2e7 | 5950 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
5951 | target_elf=no |
5952 | ;; | |
5953 | *) | |
5954 | target_elf=yes | |
5955 | ;; | |
5956 | esac | |
5957 | ||
5958 | if test $target_elf = yes; then : | |
74cea91b DK |
5959 | # ELF platforms build the lto-plugin always. |
5960 | build_lto_plugin=yes | |
e49e5c92 | 5961 | |
e49e5c92 DK |
5962 | else |
5963 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 5964 | case $target in |
dbbe5f95 | 5965 | *-apple-darwin9 | *-cygwin* | *-mingw*) ;; |
74cea91b | 5966 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
5967 | *) enable_lto=no ;; |
5968 | esac | |
e49e5c92 | 5969 | else |
29821356 RW |
5970 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
5971 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
5972 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
5973 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
5974 | # -flto it won't be needed until after installation anyway. | |
5975 | case $target in | |
a8eb3f0a | 5976 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
5977 | *) if test x"$enable_lto" = x"yes"; then |
5978 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
5979 | fi | |
5980 | ;; | |
5981 | esac | |
5982 | fi | |
a8eb3f0a | 5983 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 5984 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 5985 | case $target in |
74cea91b | 5986 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
5987 | *) ;; |
5988 | esac | |
74cea91b | 5989 | |
e49e5c92 DK |
5990 | fi |
5991 | ||
700d40ca | 5992 | |
e28c595f | 5993 | |
947f426e | 5994 | # By default, C is the only stage 1 language. |
9b134994 | 5995 | stage1_languages=,c, |
1d39f329 | 5996 | |
e8a5fa9c | 5997 | # Target libraries that we bootstrap. |
2aa2364a | 5998 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 5999 | |
9e07f89d NN |
6000 | # Figure out what language subdirectories are present. |
6001 | # Look if the user specified --enable-languages="..."; if not, use | |
6002 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6003 | # go away some day. | |
6004 | # NB: embedded tabs in this IF block -- do not untabify | |
6005 | if test -d ${srcdir}/gcc; then | |
6006 | if test x"${enable_languages+set}" != xset; then | |
6007 | if test x"${LANGUAGES+set}" = xset; then | |
6008 | enable_languages="${LANGUAGES}" | |
6009 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6010 | else | |
6011 | enable_languages=all | |
6012 | fi | |
6013 | else | |
6014 | if test x"${enable_languages}" = x || | |
6015 | test x"${enable_languages}" = xyes; | |
6016 | then | |
6017 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6018 | exit 1 | |
6019 | fi | |
6020 | fi | |
6021 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6022 | ||
096f7d00 DE |
6023 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6024 | # and make the substitution. | |
6025 | case ,${enable_languages}, in | |
6026 | *,f95,*) | |
6027 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6028 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6029 | ;; | |
6030 | esac | |
6031 | ||
9e07f89d NN |
6032 | # First scan to see if an enabled language requires some other language. |
6033 | # We assume that a given config-lang.in will list all the language | |
6034 | # front ends it requires, even if some are required indirectly. | |
6035 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6036 | case ${lang_frag} in | |
6037 | ..) ;; | |
6038 | # The odd quoting in the next line works around | |
6039 | # an apparent bug in bash 1.12 on linux. | |
6040 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6041 | *) | |
e552509b ILT |
6042 | # From the config-lang.in, get $language, $lang_requires, and |
6043 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6044 | language= |
6045 | lang_requires= | |
e552509b | 6046 | lang_requires_boot_languages= |
9e07f89d | 6047 | . ${lang_frag} |
e552509b | 6048 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6049 | case ,${enable_languages}, in |
6050 | *,$other,*) ;; | |
6051 | *,all,*) ;; | |
6052 | *,$language,*) | |
6053 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6054 | enable_languages="${enable_languages},${other}" | |
6055 | ;; | |
6056 | esac | |
6057 | done | |
e552509b ILT |
6058 | for other in ${lang_requires_boot_languages} ; do |
6059 | if test "$other" != "c"; then | |
6060 | case ,${enable_stage1_languages}, in | |
6061 | *,$other,*) ;; | |
6062 | *,all,*) ;; | |
6063 | *) | |
6064 | case ,${enable_languages}, in | |
6065 | *,$language,*) | |
6066 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6067 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6068 | ;; | |
6069 | esac | |
6070 | ;; | |
6071 | esac | |
6072 | fi | |
6073 | done | |
9e07f89d NN |
6074 | ;; |
6075 | esac | |
6076 | done | |
6077 | ||
9b134994 | 6078 | new_enable_languages=,c, |
700d40ca ILT |
6079 | |
6080 | # If LTO is enabled, add the LTO front end. | |
6081 | extra_host_libiberty_configure_flags= | |
6082 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6083 | case ,${enable_languages}, in |
6084 | *,lto,*) ;; | |
6085 | *) enable_languages="${enable_languages},lto" ;; | |
6086 | esac | |
a8eb3f0a | 6087 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6088 | configdirs="$configdirs lto-plugin" |
6089 | extra_host_libiberty_configure_flags=--enable-shared | |
6090 | fi | |
6091 | fi | |
6092 | ||
6093 | ||
9e07f89d | 6094 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6095 | potential_languages=,c, |
9e07f89d | 6096 | |
9e1a94f4 ILT |
6097 | enabled_target_libs= |
6098 | disabled_target_libs= | |
6099 | ||
9e07f89d NN |
6100 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6101 | case ${lang_frag} in | |
6102 | ..) ;; | |
6103 | # The odd quoting in the next line works around | |
6104 | # an apparent bug in bash 1.12 on linux. | |
6105 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6106 | *) | |
c6b750e1 | 6107 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6108 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6109 | language= |
6110 | target_libs= | |
6111 | lang_dirs= | |
64ce424c | 6112 | subdir_requires= |
9b134994 PB |
6113 | boot_language=no |
6114 | build_by_default=yes | |
9e07f89d | 6115 | . ${lang_frag} |
9b134994 PB |
6116 | if test x${language} = x; then |
6117 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6118 | exit 1 | |
6119 | fi | |
6120 | ||
1f53ca9a AO |
6121 | if test "$language" = "c++" \ |
6122 | && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then | |
e8a5fa9c RW |
6123 | boot_language=yes |
6124 | fi | |
6125 | ||
9b134994 PB |
6126 | case ,${enable_languages}, in |
6127 | *,${language},*) | |
9e07f89d NN |
6128 | # Language was explicitly selected; include it. |
6129 | add_this_lang=yes | |
6130 | ;; | |
9b134994 PB |
6131 | *,all,*) |
6132 | # 'all' was selected, select it if it is a default language | |
6133 | add_this_lang=${build_by_default} | |
9e07f89d NN |
6134 | ;; |
6135 | *) | |
6136 | add_this_lang=no | |
6137 | ;; | |
6138 | esac | |
4b1cb4fe | 6139 | |
64ce424c | 6140 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6141 | for i in $subdir_requires; do |
3d3adb43 | 6142 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6143 | case ,${enable_languages}, in |
6144 | *,${language},*) | |
6145 | # Specifically requested language; tell them. | |
81ecdfbb | 6146 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6147 | ;; |
6148 | *) | |
6149 | # Silently disable. | |
9b134994 | 6150 | add_this_lang=unsupported |
64ce424c PB |
6151 | ;; |
6152 | esac | |
6153 | done | |
6154 | ||
9b134994 PB |
6155 | # Disable Ada if no preexisting GNAT is available. |
6156 | case ,${enable_languages},:${language}:${have_gnat} in | |
6157 | *,${language},*:ada:no) | |
6158 | # Specifically requested language; tell them. | |
81ecdfbb | 6159 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6160 | ;; |
6161 | *:ada:no) | |
6162 | # Silently disable. | |
6163 | add_this_lang=unsupported | |
6164 | ;; | |
6165 | esac | |
6166 | ||
59f7ec45 HPN |
6167 | # Disable a language that is unsupported by the target. |
6168 | case " $unsupported_languages " in | |
6169 | *" $language "*) | |
9b134994 | 6170 | add_this_lang=unsupported |
59f7ec45 HPN |
6171 | ;; |
6172 | esac | |
6173 | ||
4b1cb4fe | 6174 | case $add_this_lang in |
9b134994 | 6175 | unsupported) |
9e07f89d | 6176 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6177 | disabled_target_libs="$disabled_target_libs $target_libs" |
6178 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6179 | ;; |
9b134994 PB |
6180 | no) |
6181 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6182 | disabled_target_libs="$disabled_target_libs $target_libs" |
6183 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6184 | potential_languages="${potential_languages}${language}," |
6185 | ;; | |
6186 | yes) | |
6187 | new_enable_languages="${new_enable_languages}${language}," | |
6188 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6189 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6190 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6191 | case "${boot_language}:,$enable_stage1_languages," in |
6192 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6193 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6194 | case ",$stage1_languages," in |
6195 | *,$language,* | ,yes, | ,all,) ;; | |
6196 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6197 | esac | |
e8a5fa9c RW |
6198 | # We need to bootstrap any supporting libraries. |
6199 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6200 | ;; |
6201 | esac | |
6202 | ;; | |
9e07f89d NN |
6203 | esac |
6204 | ;; | |
6205 | esac | |
6206 | done | |
6207 | ||
9e1a94f4 ILT |
6208 | # Add target libraries which are only needed for disabled languages |
6209 | # to noconfigdirs. | |
6210 | if test -n "$disabled_target_libs"; then | |
6211 | for dir in $disabled_target_libs; do | |
6212 | case " $enabled_target_libs " in | |
6213 | *" ${dir} "*) ;; | |
6214 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6215 | esac | |
6216 | done | |
6217 | fi | |
6218 | ||
81ecdfbb RW |
6219 | # Check whether --enable-stage1-languages was given. |
6220 | if test "${enable_stage1_languages+set}" = set; then : | |
6221 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6222 | ,no,|,,) |
6223 | # Set it to something that will have no effect in the loop below | |
6224 | enable_stage1_languages=c ;; | |
6225 | ,yes,) | |
6226 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6227 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6228 | *,all,*) | |
6229 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6230 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6231 | esac | |
6232 | ||
6233 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6234 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6235 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6236 | case $potential_languages in | |
6237 | *,$i,*) | |
6238 | case $stage1_languages in | |
6239 | *,$i,*) ;; | |
6240 | *) stage1_languages="$stage1_languages$i," ;; | |
6241 | esac ;; | |
6242 | *) | |
6243 | case $missing_languages in | |
6244 | *,$i,*) ;; | |
6245 | *) missing_languages="$missing_languages$i," ;; | |
6246 | esac ;; | |
6247 | esac | |
6248 | done | |
81ecdfbb RW |
6249 | fi |
6250 | ||
9b134994 PB |
6251 | |
6252 | # Remove leading/trailing commas that were added for simplicity | |
6253 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6254 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6255 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6256 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6257 | ||
9e07f89d | 6258 | if test "x$missing_languages" != x; then |
81ecdfbb | 6259 | as_fn_error " |
27258dd4 | 6260 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6261 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6262 | fi |
9e07f89d NN |
6263 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6264 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6265 | enable_languages="$new_enable_languages" |
9e07f89d | 6266 | fi |
9b134994 | 6267 | |
c6b750e1 | 6268 | |
81ec575a | 6269 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6270 | fi |
6271 | ||
a6df5a19 PB |
6272 | # Handle --disable-<component> generically. |
6273 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6274 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6275 | varname=`echo $dirname | sed -e s/+/_/g` |
6276 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6277 | noconfigdirs="$noconfigdirs $dir" |
6278 | fi | |
6279 | done | |
6280 | ||
4f0ef2d8 | 6281 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6282 | # Check whether --enable-objc-gc was given. |
6283 | if test "${enable_objc_gc+set}" = set; then : | |
6284 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6285 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6286 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6287 | ;; |
6288 | esac | |
81ecdfbb RW |
6289 | fi |
6290 | ||
4f0ef2d8 CD |
6291 | |
6292 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6293 | case ,${enable_languages},:${enable_objc_gc} in |
6294 | *,objc,*:yes) | |
4f0ef2d8 CD |
6295 | # Keep target-boehm-gc if requested for Objective-C. |
6296 | ;; | |
4f0ef2d8 | 6297 | *) |
d42c4017 DA |
6298 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6299 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6300 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6301 | fi | |
4f0ef2d8 CD |
6302 | ;; |
6303 | esac | |
6304 | ||
caeba88f AL |
6305 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6306 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6307 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6308 | ||
6309 | notsupp="" | |
6310 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6311 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6312 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6313 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6314 | if test -r $srcdir/$dirname/configure ; then | |
6315 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6316 | true | |
6317 | else | |
6318 | notsupp="$notsupp $dir" | |
6319 | fi | |
6320 | fi | |
6321 | fi | |
caeba88f AL |
6322 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6323 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6324 | if test -r $srcdir/$dirname/configure ; then | |
6325 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6326 | true | |
6327 | else | |
6328 | notsupp="$notsupp $dir" | |
6329 | fi | |
6330 | fi | |
6331 | fi | |
9e07f89d NN |
6332 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6333 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6334 | if test -r $srcdir/$dirname/configure ; then | |
6335 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6336 | true | |
6337 | else | |
6338 | notsupp="$notsupp $dir" | |
6339 | fi | |
6340 | fi | |
6341 | fi | |
6342 | done | |
6343 | ||
6344 | # Sometimes the tools are distributed with libiberty but with no other | |
6345 | # libraries. In that case, we don't want to build target-libiberty. | |
f86e35b8 | 6346 | # Don't let libgcc imply libiberty either. |
9e07f89d | 6347 | if test -n "${target_configdirs}" ; then |
f86e35b8 | 6348 | libgcc= |
9e07f89d NN |
6349 | others= |
6350 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
f86e35b8 NC |
6351 | if test "$i" = "libgcc"; then |
6352 | libgcc=target-libgcc | |
6353 | elif test "$i" != "libiberty" ; then | |
9e07f89d NN |
6354 | if test -r $srcdir/$i/configure ; then |
6355 | others=yes; | |
6356 | break; | |
6357 | fi | |
6358 | fi | |
6359 | done | |
6360 | if test -z "${others}" ; then | |
f86e35b8 | 6361 | target_configdirs=$libgcc |
9e07f89d NN |
6362 | fi |
6363 | fi | |
6364 | ||
6365 | # Quietly strip out all directories which aren't configurable in this tree. | |
6366 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6367 | # is now the case. | |
6a9cf61e PB |
6368 | build_configdirs_all="$build_configdirs" |
6369 | build_configdirs= | |
6370 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6371 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6372 | if test -f ${srcdir}/$j/configure ; then |
6373 | build_configdirs="${build_configdirs} $i" | |
6374 | fi | |
6375 | done | |
6376 | ||
9e07f89d NN |
6377 | configdirs_all="$configdirs" |
6378 | configdirs= | |
6379 | for i in ${configdirs_all} ; do | |
6380 | if test -f ${srcdir}/$i/configure ; then | |
6381 | configdirs="${configdirs} $i" | |
6382 | fi | |
6383 | done | |
6a9cf61e | 6384 | |
9e07f89d NN |
6385 | target_configdirs_all="$target_configdirs" |
6386 | target_configdirs= | |
6387 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6388 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6389 | if test -f ${srcdir}/$j/configure ; then |
6390 | target_configdirs="${target_configdirs} $i" | |
6391 | fi | |
6392 | done | |
6393 | ||
6394 | # Produce a warning message for the subdirs we can't configure. | |
6395 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6396 | # FSF releases, it's important to let people know when their machine isn't | |
6397 | # supported by the one or two programs in a package. | |
6398 | ||
6399 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6400 | # If $appdirs is non-empty, at least one of those directories must still | |
6401 | # be configured, or we error out. (E.g., if the gas release supports a | |
6402 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6403 | # pretend that all is well.) | |
6404 | if test -n "$appdirs" ; then | |
6405 | for dir in $appdirs ; do | |
6406 | if test -r $dir/Makefile.in ; then | |
6407 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6408 | appdirs="" | |
6409 | break | |
6410 | fi | |
6a9cf61e | 6411 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6412 | appdirs="" |
6413 | break | |
6414 | fi | |
6415 | fi | |
6416 | done | |
6417 | if test -n "$appdirs" ; then | |
6418 | echo "*** This configuration is not supported by this package." 1>&2 | |
6419 | exit 1 | |
6420 | fi | |
6421 | fi | |
6422 | # Okay, some application will build, or we don't care to check. Still | |
6423 | # notify of subdirs not getting built. | |
6424 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6425 | echo " ${notsupp}" 1>&2 | |
6426 | echo " (Any other directories should still work fine.)" 1>&2 | |
6427 | fi | |
6428 | ||
6429 | case "$host" in | |
6430 | *msdosdjgpp*) | |
6431 | enable_gdbtk=no ;; | |
6432 | esac | |
6433 | ||
18f6b6ee PB |
6434 | # To find our prefix, in gcc_cv_tool_prefix. |
6435 | ||
6436 | # The user is always right. | |
6437 | if test "${PATH_SEPARATOR+set}" != set; then | |
6438 | echo "#! /bin/sh" >conf$$.sh | |
6439 | echo "exit 0" >>conf$$.sh | |
6440 | chmod +x conf$$.sh | |
6441 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6442 | PATH_SEPARATOR=';' | |
6443 | else | |
6444 | PATH_SEPARATOR=: | |
6445 | fi | |
6446 | rm -f conf$$.sh | |
6447 | fi | |
6448 | ||
6449 | ||
6450 | ||
6451 | if test "x$exec_prefix" = xNONE; then | |
6452 | if test "x$prefix" = xNONE; then | |
6453 | gcc_cv_tool_prefix=$ac_default_prefix | |
6454 | else | |
6455 | gcc_cv_tool_prefix=$prefix | |
6456 | fi | |
6457 | else | |
6458 | gcc_cv_tool_prefix=$exec_prefix | |
6459 | fi | |
6460 | ||
6461 | # If there is no compiler in the tree, use the PATH only. In any | |
6462 | # case, if there is no compiler in the tree nobody should use | |
6463 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6464 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6465 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6466 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6467 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6468 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6469 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6470 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6471 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6472 | else | |
6473 | gcc_cv_tool_dirs= | |
6474 | fi | |
6475 | ||
6476 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6477 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6478 | fi | |
6479 | ||
6480 | ||
6481 | ||
9e07f89d NN |
6482 | copy_dirs= |
6483 | ||
c6b750e1 | 6484 | |
81ecdfbb RW |
6485 | # Check whether --with-build-sysroot was given. |
6486 | if test "${with_build_sysroot+set}" = set; then : | |
6487 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6488 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6489 | fi | |
6490 | else | |
6491 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6492 | fi |
a19b6204 MM |
6493 | |
6494 | ||
8a6ee3ab | 6495 | |
81ecdfbb RW |
6496 | |
6497 | # Check whether --with-debug-prefix-map was given. | |
6498 | if test "${with_debug_prefix_map+set}" = set; then : | |
6499 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6500 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6501 | for debug_map in $withval; do | |
6502 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6503 | done | |
6504 | fi | |
6505 | else | |
6506 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6507 | fi |
6508 | ||
8a6ee3ab JM |
6509 | |
6510 | ||
7f6ef0c0 PB |
6511 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6512 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6513 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6514 | # We want to ensure that TARGET libraries (which we know are built with | |
6515 | # gcc) are built with "-O2 -g", so include those options when setting | |
6516 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6517 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6518 | CFLAGS_FOR_TARGET=$CFLAGS | |
6519 | case " $CFLAGS " in | |
6520 | *" -O2 "*) ;; | |
6521 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6522 | esac | |
6523 | case " $CFLAGS " in | |
6524 | *" -g "* | *" -g3 "*) ;; | |
6525 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6526 | esac | |
6527 | fi | |
6528 | ||
6529 | ||
6530 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6531 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6532 | case " $CXXFLAGS " in | |
6533 | *" -O2 "*) ;; | |
6534 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6535 | esac | |
6536 | case " $CXXFLAGS " in | |
6537 | *" -g "* | *" -g3 "*) ;; | |
6538 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6539 | esac | |
6540 | fi | |
6541 | ||
6542 | ||
9e07f89d NN |
6543 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6544 | # the named directory are copied to $(tooldir)/sys-include. | |
6545 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6546 | if test x${is_cross_compiler} = xno ; then | |
6547 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6548 | exit 1 | |
6549 | fi | |
6550 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6551 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6552 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6553 | fi |
6554 | fi | |
6555 | ||
6556 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6557 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6558 | # are permitted. | |
6559 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6560 | if test x${is_cross_compiler} = xno ; then | |
6561 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6562 | exit 1 | |
6563 | fi | |
6564 | if test x"${with_libs}" != xyes ; then | |
6565 | # Copy the libraries in reverse order, so that files in the first named | |
6566 | # library override files in subsequent libraries. | |
18f6b6ee | 6567 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6568 | for l in ${with_libs}; do |
c6b750e1 | 6569 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6570 | done |
6571 | fi | |
6572 | fi | |
6573 | ||
700d40ca | 6574 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6575 | # |
6576 | # This is done by determining whether or not the appropriate directory | |
6577 | # is available, and by checking whether or not specific configurations | |
6578 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6579 | # |
6580 | # The command line options always override the explicit settings in | |
2429c060 PB |
6581 | # configure.in, and the settings in configure.in override this magic. |
6582 | # | |
c6b750e1 | 6583 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6584 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6585 | # --without-gnu-ld options for the configure script. Similarly, if |
6586 | # the default is to use the included zlib and you don't want to do that, | |
6587 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6588 | |
6589 | if test x${use_gnu_as} = x && | |
6590 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6591 | with_gnu_as=yes | |
6592 | extra_host_args="$extra_host_args --with-gnu-as" | |
6593 | fi | |
6594 | ||
6595 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6596 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6597 | with_gnu_ld=yes |
6598 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6599 | fi | |
6600 | ||
700d40ca ILT |
6601 | if test x${use_included_zlib} = x && |
6602 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6603 | : | |
6604 | else | |
6605 | with_system_zlib=yes | |
6606 | extra_host_args="$extra_host_args --with-system-zlib" | |
6607 | fi | |
6608 | ||
2429c060 PB |
6609 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6610 | # can detect this case. | |
6611 | ||
6612 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6613 | with_newlib=yes | |
6614 | extra_host_args="$extra_host_args --with-newlib" | |
6615 | fi | |
6616 | ||
9e07f89d NN |
6617 | # Handle ${copy_dirs} |
6618 | set fnord ${copy_dirs} | |
6619 | shift | |
6620 | while test $# != 0 ; do | |
6621 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6622 | : | |
6623 | else | |
6624 | echo Copying $1 to $2 | |
6625 | ||
6626 | # Use the install script to create the directory and all required | |
6627 | # parent directories. | |
6628 | if test -d $2 ; then | |
6629 | : | |
6630 | else | |
6631 | echo >config.temp | |
6632 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6633 | fi | |
6634 | ||
6635 | # Copy the directory, assuming we have tar. | |
6636 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6637 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6638 | ||
6639 | # It is the responsibility of the user to correctly adjust all | |
6640 | # symlinks. If somebody can figure out how to handle them correctly | |
6641 | # here, feel free to add the code. | |
6642 | ||
6643 | echo $1 > $2/COPIED | |
6644 | fi | |
6645 | shift; shift | |
6646 | done | |
6647 | ||
2429c060 PB |
6648 | # Determine a target-dependent exec_prefix that the installed |
6649 | # gcc will search in. Keep this list sorted by triplet, with | |
6650 | # the *-*-osname triplets last. | |
6651 | md_exec_prefix= | |
6652 | case "${target}" in | |
521ec477 | 6653 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6654 | md_exec_prefix=/dev/env/DJDIR/bin |
6655 | ;; | |
2429c060 | 6656 | *-*-hpux* | \ |
2429c060 | 6657 | *-*-nto-qnx* | \ |
1f111696 | 6658 | *-*-solaris2*) |
2429c060 PB |
6659 | md_exec_prefix=/usr/ccs/bin |
6660 | ;; | |
6661 | esac | |
6662 | ||
a0da8069 NN |
6663 | extra_arflags_for_target= |
6664 | extra_nmflags_for_target= | |
6665 | extra_ranlibflags_for_target= | |
6666 | target_makefile_frag=/dev/null | |
6667 | case "${target}" in | |
77d7106f AM |
6668 | spu-*-*) |
6669 | target_makefile_frag="config/mt-spu" | |
6670 | ;; | |
429acdec RS |
6671 | mips*-sde-elf*) |
6672 | target_makefile_frag="config/mt-sde" | |
6673 | ;; | |
f3b1e08e RS |
6674 | mipsisa*-*-elfoabi*) |
6675 | target_makefile_frag="config/mt-mips-elfoabi" | |
6676 | ;; | |
e7c8859c RS |
6677 | mips*-*-*linux* | mips*-*-gnu*) |
6678 | target_makefile_frag="config/mt-mips-gnu" | |
6679 | ;; | |
29383458 | 6680 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6681 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6682 | ;; |
6683 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6684 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6685 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6686 | # harmless if we're using GNU nm or ar. | |
6687 | extra_arflags_for_target=" -X32_64" | |
6688 | extra_nmflags_for_target=" -B -X32_64" | |
6689 | ;; | |
92f4e989 JM |
6690 | *-*-darwin[3-9]*) |
6691 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
a0da8069 NN |
6692 | extra_ranlibflags_for_target=" -c" |
6693 | ;; | |
a0da8069 NN |
6694 | esac |
6695 | ||
6696 | alphaieee_frag=/dev/null | |
6697 | case $target in | |
6698 | alpha*-*-*) | |
6699 | # This just makes sure to use the -mieee option to build target libs. | |
6700 | # This should probably be set individually by each library. | |
6701 | alphaieee_frag="config/mt-alphaieee" | |
6702 | ;; | |
6703 | esac | |
6704 | ||
6705 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6706 | # the target libraries, similarly if it is not specified, use -Os | |
6707 | # on selected platforms. | |
6708 | ospace_frag=/dev/null | |
6709 | case "${enable_target_optspace}:${target}" in | |
6710 | yes:*) | |
6711 | ospace_frag="config/mt-ospace" | |
6712 | ;; | |
6713 | :d30v-*) | |
6714 | ospace_frag="config/mt-d30v" | |
6715 | ;; | |
6716 | :m32r-* | :d10v-* | :fr30-*) | |
6717 | ospace_frag="config/mt-ospace" | |
6718 | ;; | |
6719 | no:* | :*) | |
6720 | ;; | |
6721 | *) | |
6722 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6723 | ;; | |
6724 | esac | |
6725 | ||
a0da8069 NN |
6726 | # Default to using --with-stabs for certain targets. |
6727 | if test x${with_stabs} = x ; then | |
6728 | case "${target}" in | |
e31d1ea3 | 6729 | mips*-*-irix[56]*) |
a0da8069 NN |
6730 | ;; |
6731 | mips*-*-* | alpha*-*-osf*) | |
6732 | with_stabs=yes; | |
6733 | extra_host_args="${extra_host_args} --with-stabs" | |
6734 | ;; | |
6735 | esac | |
6736 | fi | |
6737 | ||
6738 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
6739 | # them automatically. | |
6740 | case "${host}" in | |
c6b750e1 | 6741 | hppa*64*-*-hpux11*) |
a0da8069 NN |
6742 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" |
6743 | ;; | |
6744 | esac | |
6745 | ||
a0da8069 NN |
6746 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6747 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6748 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6749 | build_tooldir=${tooldir} |
6750 | ||
a0da8069 NN |
6751 | # Create a .gdbinit file which runs the one in srcdir |
6752 | # and tells GDB to look there for source files. | |
6753 | ||
6754 | if test -r ${srcdir}/.gdbinit ; then | |
6755 | case ${srcdir} in | |
6756 | .) ;; | |
6757 | *) cat > ./.gdbinit <<EOF | |
6758 | # ${NO_EDIT} | |
6759 | dir ${srcdir} | |
6760 | dir . | |
6761 | source ${srcdir}/.gdbinit | |
6762 | EOF | |
6763 | ;; | |
6764 | esac | |
6765 | fi | |
6766 | ||
a0da8069 NN |
6767 | # Make sure that the compiler is able to generate an executable. If it |
6768 | # can't, we are probably in trouble. We don't care whether we can run the | |
6769 | # executable--we might be using a cross compiler--we only care whether it | |
6770 | # can be created. At this point the main configure script has set CC. | |
6771 | we_are_ok=no | |
6772 | echo "int main () { return 0; }" > conftest.c | |
6773 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6774 | if test $? = 0 ; then | |
6775 | if test -s conftest || test -s conftest.exe ; then | |
6776 | we_are_ok=yes | |
6777 | fi | |
c6b750e1 | 6778 | fi |
a0da8069 NN |
6779 | case $we_are_ok in |
6780 | no) | |
6781 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6782 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6783 | rm -f conftest* | |
6784 | exit 1 | |
6785 | ;; | |
6786 | esac | |
6787 | rm -f conftest* | |
6788 | ||
6789 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
6790 | case "${host}" in | |
6791 | sparc-sun-solaris2*) | |
6792 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
6793 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
6794 | could_use= | |
6795 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
6796 | if test -d /opt/cygnus/bin ; then | |
6797 | if test "$could_use" = "" ; then | |
6798 | could_use="/opt/cygnus/bin" | |
6799 | else | |
6800 | could_use="$could_use or /opt/cygnus/bin" | |
6801 | fi | |
6802 | fi | |
6803 | if test "$could_use" = "" ; then | |
6804 | echo "Warning: compilation may fail because you're using" | |
6805 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
6806 | echo "variable and rerun configure." | |
6807 | else | |
6808 | echo "Warning: compilation may fail because you're using" | |
6809 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
6810 | echo "$could_use. You should change your" | |
6811 | echo "PATH or CC variable and rerun configure." | |
6812 | fi | |
6813 | fi | |
6814 | ;; | |
6815 | esac | |
6816 | ||
3bbd2f8f | 6817 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
6818 | case "${host}" in |
6819 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 6820 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 6821 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
6822 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
6823 | esac | |
6824 | ||
3bbd2f8f | 6825 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
6826 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
6827 | # built executables to PATH. | |
3bbd2f8f AL |
6828 | if test "$RPATH_ENVVAR" = PATH; then |
6829 | GCC_SHLIB_SUBDIR=/shlib | |
6830 | else | |
6831 | GCC_SHLIB_SUBDIR= | |
6832 | fi | |
6833 | ||
a0da8069 NN |
6834 | # Record target_configdirs and the configure arguments for target and |
6835 | # build configuration in Makefile. | |
6836 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 6837 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 6838 | |
2aa2364a JR |
6839 | # If we are building libgomp, bootstrap it. |
6840 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
6841 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
6842 | fi | |
6843 | ||
a0da8069 NN |
6844 | # Determine whether gdb needs tk/tcl or not. |
6845 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
6846 | # and in that case we want gdb to be built without tk. Ugh! | |
6847 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
6848 | # so we should be able to put the 'maybe's in unconditionally and | |
6849 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
6850 | # 100% sure that that's safe though. | |
c180f501 | 6851 | |
675c6968 | 6852 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
6853 | case "$enable_gdbtk" in |
6854 | no) | |
6855 | GDB_TK="" ;; | |
c180f501 AC |
6856 | yes) |
6857 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 6858 | *) |
c180f501 AC |
6859 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
6860 | # distro. Eventually someone will fix this and move Insight, nee | |
6861 | # gdbtk to a separate directory. | |
6862 | if test -d ${srcdir}/gdb/gdbtk ; then | |
6863 | GDB_TK="${gdb_tk}" | |
6864 | else | |
6865 | GDB_TK="" | |
6866 | fi | |
6867 | ;; | |
a0da8069 | 6868 | esac |
907be67c DJ |
6869 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
6870 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 6871 | |
6bd3dfaa | 6872 | # Strip out unwanted targets. |
dd12c3a8 NN |
6873 | |
6874 | # While at that, we remove Makefiles if we were started for recursive | |
6875 | # configuration, so that the top-level Makefile reconfigures them, | |
6876 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 6877 | |
06a51eac RW |
6878 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
6879 | # but now we're fixing up the Makefile ourselves with the additional | |
6880 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
6881 | # extrasub-{build,host,target} not because there is any reason to split | |
6882 | # the substitutions up that way, but only to remain below the limit of | |
6883 | # 99 commands in a script, for HP-UX sed. | |
6884 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 6885 | |
81ecdfbb RW |
6886 | # Check whether --enable-bootstrap was given. |
6887 | if test "${enable_bootstrap+set}" = set; then : | |
6888 | enableval=$enable_bootstrap; | |
319cab08 | 6889 | else |
9cb3fa6f | 6890 | enable_bootstrap=default |
81ecdfbb RW |
6891 | fi |
6892 | ||
319cab08 | 6893 | |
9cb3fa6f PB |
6894 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
6895 | case "$configdirs" in | |
6896 | *gcc*) have_compiler=yes ;; | |
6897 | *) have_compiler=no ;; | |
6898 | esac | |
6899 | ||
6900 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
6901 | *:*:*:no) ;; | |
6902 | ||
0aed8855 | 6903 | # Default behavior. Enable bootstrap if we have a compiler |
9cb3fa6f PB |
6904 | # and we are in a native configuration. |
6905 | yes:$build:$build:default) | |
0aed8855 | 6906 | enable_bootstrap=yes ;; |
9cb3fa6f PB |
6907 | |
6908 | *:*:*:default) | |
6909 | enable_bootstrap=no ;; | |
6910 | ||
6911 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
80911fe1 | 6912 | yes:$build:$build:yes) |
9cb3fa6f PB |
6913 | ;; |
6914 | ||
6915 | # Other configurations, but we have a compiler. Assume the user knows | |
6916 | # what he's doing. | |
80911fe1 | 6917 | yes:*:*:yes) |
81ecdfbb RW |
6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 |
6919 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
9cb3fa6f PB |
6920 | ;; |
6921 | ||
6922 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
80911fe1 | 6923 | no:*:*:yes) |
81ecdfbb | 6924 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
9cb3fa6f PB |
6925 | |
6926 | # Fail if wrong command line | |
6927 | *) | |
81ecdfbb | 6928 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 |
9cb3fa6f PB |
6929 | ;; |
6930 | esac | |
6931 | ||
4385ad3c RW |
6932 | case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in |
6933 | *,c++,*:yes:yes) ;; | |
6934 | *:yes:yes) | |
6935 | as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5 | |
6936 | ;; | |
6937 | esac | |
6938 | ||
16b1ad29 RW |
6939 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
6940 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
6941 | yes:yes:*\ gold\ *:*) | |
6942 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
6943 | ;; | |
6944 | esac | |
6945 | ||
9cb3fa6f | 6946 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 6947 | case $enable_bootstrap in |
319cab08 | 6948 | yes) |
96655cc4 AO |
6949 | bootstrap_suffix=bootstrap |
6950 | BUILD_CONFIG=bootstrap-debug | |
6951 | ;; | |
319cab08 | 6952 | no) |
96655cc4 AO |
6953 | bootstrap_suffix=no-bootstrap |
6954 | BUILD_CONFIG= | |
6955 | ;; | |
319cab08 PB |
6956 | esac |
6957 | ||
96655cc4 AO |
6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
6959 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
6960 | ||
6961 | ||
6962 | # Check whether --with-build-config was given. | |
6963 | if test "${with_build_config+set}" = set; then : | |
6964 | withval=$with_build_config; case $with_build_config in | |
6965 | yes) with_build_config= ;; | |
6966 | no) with_build_config= BUILD_CONFIG= ;; | |
6967 | esac | |
6968 | fi | |
6969 | ||
6970 | ||
6971 | if test "x${with_build_config}" != x; then | |
6972 | BUILD_CONFIG=$with_build_config | |
6973 | else | |
6974 | case $BUILD_CONFIG in | |
6975 | bootstrap-debug) | |
6976 | if echo "int f (void) { return 0; }" > conftest.c && | |
6977 | ${CC} -c conftest.c && | |
6978 | mv conftest.o conftest.o.g0 && | |
6979 | ${CC} -c -g conftest.c && | |
6980 | mv conftest.o conftest.o.g && | |
a009f2e7 | 6981 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
6982 | : |
6983 | else | |
6984 | BUILD_CONFIG= | |
6985 | fi | |
6986 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
6987 | ;; | |
6988 | esac | |
6989 | fi | |
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
6991 | $as_echo "$BUILD_CONFIG" >&6; } | |
6992 | ||
6993 | ||
06a51eac | 6994 | extrasub_build= |
6a9cf61e | 6995 | for module in ${build_configdirs} ; do |
498d4a71 CF |
6996 | if test -z "${no_recursion}" \ |
6997 | && test -f ${build_subdir}/${module}/Makefile; then | |
6998 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
6999 | rm -f ${build_subdir}/${module}/Makefile | |
7000 | fi | |
06a51eac | 7001 | extrasub_build="$extrasub_build |
498d4a71 CF |
7002 | /^@if build-$module\$/d |
7003 | /^@endif build-$module\$/d | |
7004 | /^@if build-$module-$bootstrap_suffix\$/d | |
7005 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7006 | done | |
06a51eac | 7007 | extrasub_host= |
498d4a71 | 7008 | for module in ${configdirs} ; do |
80911fe1 | 7009 | if test -z "${no_recursion}"; then |
8cf39b1b | 7010 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7011 | if test -f ${file}; then |
7012 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7013 | rm -f ${file} | |
7014 | fi | |
7015 | done | |
498d4a71 | 7016 | fi |
06a51eac | 7017 | extrasub_host="$extrasub_host |
498d4a71 CF |
7018 | /^@if $module\$/d |
7019 | /^@endif $module\$/d | |
7020 | /^@if $module-$bootstrap_suffix\$/d | |
7021 | /^@endif $module-$bootstrap_suffix\$/d" | |
7022 | done | |
06a51eac | 7023 | extrasub_target= |
498d4a71 CF |
7024 | for module in ${target_configdirs} ; do |
7025 | if test -z "${no_recursion}" \ | |
7026 | && test -f ${target_subdir}/${module}/Makefile; then | |
7027 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7028 | rm -f ${target_subdir}/${module}/Makefile | |
7029 | fi | |
e8a5fa9c RW |
7030 | |
7031 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7032 | case $bootstrap_target_libs in | |
7033 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7034 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7035 | esac | |
7036 | ||
06a51eac | 7037 | extrasub_target="$extrasub_target |
498d4a71 CF |
7038 | /^@if target-$module\$/d |
7039 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7040 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7041 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7042 | done |
7043 | ||
06a51eac RW |
7044 | # Do the final fixup along with target modules. |
7045 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7046 | /^@if /,/^@endif /d" |
a0da8069 NN |
7047 | |
7048 | # Create the serialization dependencies. This uses a temporary file. | |
7049 | ||
81ecdfbb RW |
7050 | # Check whether --enable-serial-configure was given. |
7051 | if test "${enable_serial_configure+set}" = set; then : | |
7052 | enableval=$enable_serial_configure; | |
7053 | fi | |
e6bfb94a AO |
7054 | |
7055 | ||
1047cb91 DD |
7056 | case ${enable_serial_configure} in |
7057 | yes) | |
7058 | enable_serial_build_configure=yes | |
7059 | enable_serial_host_configure=yes | |
7060 | enable_serial_target_configure=yes | |
7061 | ;; | |
7062 | esac | |
7063 | ||
a0da8069 NN |
7064 | # These force 'configure's to be done one at a time, to avoid problems |
7065 | # with contention over a shared config.cache. | |
7066 | rm -f serdep.tmp | |
e6bfb94a | 7067 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7068 | olditem= |
1047cb91 | 7069 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7070 | for item in ${build_configdirs} ; do |
7071 | case ${olditem} in | |
7072 | "") ;; | |
e6bfb94a | 7073 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7074 | esac |
7075 | olditem=${item} | |
7076 | done | |
7077 | olditem= | |
1047cb91 | 7078 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7079 | for item in ${configdirs} ; do |
7080 | case ${olditem} in | |
7081 | "") ;; | |
e6bfb94a | 7082 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7083 | esac |
7084 | olditem=${item} | |
7085 | done | |
7086 | olditem= | |
1047cb91 | 7087 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7088 | for item in ${target_configdirs} ; do |
7089 | case ${olditem} in | |
7090 | "") ;; | |
e6bfb94a | 7091 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7092 | esac |
7093 | olditem=${item} | |
7094 | done | |
7095 | serialization_dependencies=serdep.tmp | |
7096 | ||
7097 | ||
e6bfb94a | 7098 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7099 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7100 | # might not want to pass down to subconfigures. The exception being |
7101 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7102 | # files altogether, and which should be passed on to subconfigures. | |
7103 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7104 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7105 | baseargs= |
65b4571a | 7106 | tbaseargs= |
c6b750e1 DJ |
7107 | keep_next=no |
7108 | skip_next=no | |
7109 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7110 | for ac_arg |
7111 | do | |
c6b750e1 DJ |
7112 | if test X"$skip_next" = X"yes"; then |
7113 | skip_next=no | |
7114 | continue | |
7115 | fi | |
7116 | if test X"$keep_next" = X"yes"; then | |
7117 | case $ac_arg in | |
7118 | *\'*) | |
7119 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7120 | esac | |
7121 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7122 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7123 | keep_next=no |
7124 | continue | |
7125 | fi | |
7126 | ||
7127 | # Handle separated arguments. Based on the logic generated by | |
7128 | # autoconf 2.59. | |
7129 | case $ac_arg in | |
7130 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7131 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7132 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7133 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7134 | separate_arg=no | |
7135 | ;; | |
7136 | -*) | |
7137 | separate_arg=yes | |
7138 | ;; | |
7139 | *) | |
7140 | separate_arg=no | |
7141 | ;; | |
7142 | esac | |
7143 | ||
65b4571a AO |
7144 | skip_targ=no |
7145 | case $ac_arg in | |
7146 | ||
7147 | --with-* | --without-*) | |
7148 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7149 | ||
7150 | case $libopt in | |
7151 | *[-_]include) | |
7152 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7153 | ;; | |
7154 | *[-_]lib) | |
7155 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7156 | ;; | |
7157 | *) | |
7158 | lib=$libopt | |
7159 | ;; | |
7160 | esac | |
7161 | ||
7162 | ||
7163 | case $lib in | |
7164 | mpc | mpfr | gmp | ppl | cloog) | |
7165 | # If we're processing --with-$lib, --with-$lib-include or | |
7166 | # --with-$lib-lib, for one of the libs above, and target is | |
7167 | # different from host, don't pass the current argument to any | |
7168 | # target library's configure. | |
7169 | if test x$is_cross_compiler = xyes; then | |
7170 | skip_targ=yes | |
7171 | fi | |
7172 | ;; | |
7173 | esac | |
7174 | ;; | |
7175 | esac | |
7176 | ||
c6b750e1 | 7177 | case "$ac_arg" in |
30167e0a NC |
7178 | --cache-file=/dev/null | \ |
7179 | -cache-file=/dev/null ) | |
7180 | # Handled here to avoid the test to skip args below. | |
7181 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7182 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7183 | # Assert: $separate_arg should always be no. |
7184 | keep_next=$separate_arg | |
7185 | ;; | |
c6b750e1 DJ |
7186 | --no*) |
7187 | continue | |
7188 | ;; | |
7189 | --c* | \ | |
7190 | --sr* | \ | |
7191 | --ho* | \ | |
7192 | --bu* | \ | |
7193 | --t* | \ | |
7194 | --program-* | \ | |
7195 | -cache_file* | \ | |
7196 | -srcdir* | \ | |
7197 | -host* | \ | |
7198 | -build* | \ | |
7199 | -target* | \ | |
7200 | -program-prefix* | \ | |
7201 | -program-suffix* | \ | |
7202 | -program-transform-name* ) | |
7203 | skip_next=$separate_arg | |
7204 | continue | |
7205 | ;; | |
7206 | -*) | |
7207 | # An option. Add it. | |
7208 | case $ac_arg in | |
7209 | *\'*) | |
7210 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7211 | esac | |
7212 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7213 | if test X"$skip_targ" = Xno; then |
7214 | tbaseargs="$tbaseargs '$ac_arg'" | |
7215 | fi | |
c6b750e1 DJ |
7216 | keep_next=$separate_arg |
7217 | ;; | |
7218 | *) | |
7219 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7220 | # pass it down; let the Makefile handle this. | |
7221 | continue | |
7222 | ;; | |
7223 | esac | |
7224 | done | |
7225 | # Remove the initial space we just introduced and, as these will be | |
7226 | # expanded by make, quote '$'. | |
7227 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7228 | |
f27d4f92 DJ |
7229 | # Add in --program-transform-name, after --program-prefix and |
7230 | # --program-suffix have been applied to it. Autoconf has already | |
7231 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7232 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7233 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7234 | # Also, because we want to override the logic in subdir configure scripts to |
7235 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7236 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7237 | ${program_transform_name} | |
7238 | EOF_SED | |
7239 | gcc_transform_name=`cat conftestsed.out` | |
7240 | rm -f conftestsed.out | |
7241 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7242 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7243 | if test "$silent" = yes; then |
7244 | baseargs="$baseargs --silent" | |
65b4571a | 7245 | tbaseargs="$tbaseargs --silent" |
2444379b | 7246 | fi |
34a0f3cf | 7247 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7248 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7249 | |
4074d5f2 RW |
7250 | # Record and document user additions to sub configure arguments. |
7251 | ||
7252 | ||
7253 | ||
7254 | ||
a0da8069 NN |
7255 | # For the build-side libraries, we just need to pretend we're native, |
7256 | # and not use the same cache file. Multilibs are neither needed nor | |
7257 | # desired. | |
4074d5f2 | 7258 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7259 | |
7260 | # For host modules, accept cache file option, or specification as blank. | |
7261 | case "${cache_file}" in | |
7262 | "") # empty | |
7263 | cache_file_option="" ;; | |
7264 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7265 | cache_file_option="--cache-file=${cache_file}" ;; | |
7266 | *) # relative path | |
7267 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7268 | esac | |
7269 | ||
82252c06 NN |
7270 | # Host dirs don't like to share a cache file either, horribly enough. |
7271 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7272 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7273 | |
65b4571a | 7274 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7275 | |
7276 | # Passing a --with-cross-host argument lets the target libraries know | |
7277 | # whether they are being built with a cross-compiler or being built | |
7278 | # native. However, it would be better to use other mechanisms to make the | |
7279 | # sorts of decisions they want to make on this basis. Please consider | |
7280 | # this option to be deprecated. FIXME. | |
7281 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7282 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7283 | fi |
7284 | ||
938d2b74 RW |
7285 | # Default to --enable-multilib. |
7286 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7287 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7288 | fi |
a0da8069 NN |
7289 | |
7290 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7291 | # changed from the earlier setting of with_newlib. | |
7292 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7293 | target_configargs="--with-newlib ${target_configargs}" | |
7294 | fi | |
7295 | ||
95036d20 NN |
7296 | # Different target subdirs use different values of certain variables |
7297 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7298 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7299 | # it doesn't automatically accept command-line overrides of them. | |
7300 | # This means it's not safe for target subdirs to share a cache file, | |
7301 | # which is disgusting, but there you have it. Hopefully this can be | |
7302 | # fixed in future. It's still worthwhile to use a cache file for each | |
7303 | # directory. I think. | |
7304 | ||
ae380b45 MS |
7305 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7306 | # We need to pass --target, as newer autoconf's requires consistency | |
7307 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7308 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7309 | |
a0da8069 NN |
7310 | FLAGS_FOR_TARGET= |
7311 | case " $target_configdirs " in | |
7312 | *" newlib "*) | |
7313 | case " $target_configargs " in | |
7314 | *" --with-newlib "*) | |
7315 | case "$target" in | |
1f53ca9a AO |
7316 | *-cygwin*) |
7317 | 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' | |
7318 | ;; | |
a0da8069 NN |
7319 | esac |
7320 | ||
7321 | # If we're not building GCC, don't discard standard headers. | |
7322 | if test -d ${srcdir}/gcc; then | |
7323 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7324 | ||
7325 | if test "${build}" != "${host}"; then | |
7326 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7327 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7328 | # to it. This is right: we don't want to search that directory | |
7329 | # for binaries, but we want the header files in there, so add | |
7330 | # them explicitly. | |
e552509b | 7331 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7332 | |
7333 | # Someone might think of using the pre-installed headers on | |
7334 | # Canadian crosses, in case the installed compiler is not fully | |
7335 | # compatible with the compiler being built. In this case, it | |
7336 | # would be better to flag an error than risking having | |
7337 | # incompatible object files being constructed. We can't | |
7338 | # guarantee that an error will be flagged, but let's hope the | |
7339 | # compiler will do it, when presented with incompatible header | |
7340 | # files. | |
7341 | fi | |
7342 | fi | |
7343 | ||
7344 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7345 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7346 | # Here host == target, so we don't need to build gcc, |
7347 | # so we don't want to discard standard headers. | |
7348 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7349 | ;; | |
7350 | *) | |
7351 | # If we're building newlib, use its generic headers last, but search | |
7352 | # for any libc-related directories first (so make it the last -B | |
7353 | # switch). | |
7354 | 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 |
7355 | |
7356 | # If we're building libgloss, find the startup file, simulator library | |
7357 | # and linker script. | |
7358 | case " $target_configdirs " in | |
7359 | *" libgloss "*) | |
7360 | # Look for startup file, simulator library and maybe linker script. | |
7361 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7362 | # Look for libnosys.a in case the target needs it. | |
7363 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7364 | # Most targets have the linker script in the source directory. | |
7365 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7366 | ;; | |
7367 | esac | |
a0da8069 NN |
7368 | ;; |
7369 | esac | |
7370 | ;; | |
7371 | esac | |
7372 | ;; | |
7373 | esac | |
1f53ca9a | 7374 | |
45055374 | 7375 | case "$target" in |
1f53ca9a AO |
7376 | x86_64-*mingw* | *-w64-mingw*) |
7377 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7378 | # however, use a symlink named 'mingw' in ${prefix} . | |
7379 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7380 | ;; | |
7381 | *-mingw*) | |
7382 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7383 | 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' | |
7384 | ;; | |
45055374 | 7385 | esac |
a0da8069 | 7386 | |
5fbad20a DD |
7387 | # Allow the user to override the flags for |
7388 | # our build compiler if desired. | |
c66487f8 NC |
7389 | if test x"${build}" = x"${host}" ; then |
7390 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7391 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7392 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7393 | fi | |
5fbad20a | 7394 | |
a0da8069 NN |
7395 | # On Canadian crosses, we'll be searching the right directories for |
7396 | # the previously-installed cross compiler, so don't bother to add | |
7397 | # flags for directories within the install tree of the compiler | |
7398 | # being built; programs in there won't even run. | |
7399 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7400 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7401 | 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 |
7402 | fi |
7403 | ||
7404 | if test "x${use_gnu_ld}" = x && | |
7405 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7406 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7407 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7408 | fi |
7409 | ||
a481dbb7 DD |
7410 | # Search for other target-specific linker scripts and such. |
7411 | case "${target}" in | |
4e206d7e DB |
7412 | mep*) |
7413 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7414 | ;; | |
7415 | esac | |
7416 | ||
a0da8069 | 7417 | # Makefile fragments. |
3e707e94 PB |
7418 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7419 | do | |
7420 | eval fragval=\$$frag | |
7421 | if test $fragval != /dev/null; then | |
7422 | eval $frag=${srcdir}/$fragval | |
7423 | fi | |
7424 | done | |
a0da8069 NN |
7425 | |
7426 | ||
7427 | ||
7428 | ||
7429 | ||
7430 | # Miscellanea: directories, flags, etc. | |
7431 | ||
7432 | ||
7433 | ||
7434 | ||
7435 | ||
7436 | ||
7437 | ||
3bbd2f8f | 7438 | |
6a9cf61e | 7439 | # Build module lists & subconfigure args. |
a0da8069 NN |
7440 | |
7441 | ||
7442 | ||
be01d343 PB |
7443 | # Host module lists & subconfigure args. |
7444 | ||
7445 | ||
7446 | ||
911e63d0 | 7447 | |
be01d343 PB |
7448 | # Target module lists & subconfigure args. |
7449 | ||
7450 | ||
7451 | ||
7452 | # Build tools. | |
7453 | ||
7454 | ||
7455 | ||
1576798e PB |
7456 | |
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
be01d343 PB |
7470 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7471 | # on the build machine. These are used if the Makefile can't locate these | |
7472 | # programs in objdir. | |
7473 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7474 | ||
7475 | for ac_prog in 'bison -y' byacc yacc | |
7476 | do | |
c6b750e1 | 7477 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7478 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7480 | $as_echo_n "checking for $ac_word... " >&6; } | |
7481 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7482 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7483 | else |
7484 | if test -n "$YACC"; then | |
7485 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7486 | else | |
c6b750e1 DJ |
7487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7488 | for as_dir in $PATH | |
7489 | do | |
7490 | IFS=$as_save_IFS | |
7491 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7492 | for ac_exec_ext in '' $ac_executable_extensions; do |
7493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7494 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7496 | break 2 |
7497 | fi | |
7498 | done | |
81ecdfbb RW |
7499 | done |
7500 | IFS=$as_save_IFS | |
c6b750e1 | 7501 | |
be01d343 PB |
7502 | fi |
7503 | fi | |
c6b750e1 | 7504 | YACC=$ac_cv_prog_YACC |
be01d343 | 7505 | if test -n "$YACC"; then |
81ecdfbb RW |
7506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7507 | $as_echo "$YACC" >&6; } | |
be01d343 | 7508 | else |
81ecdfbb RW |
7509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7510 | $as_echo "no" >&6; } | |
be01d343 PB |
7511 | fi |
7512 | ||
81ecdfbb | 7513 | |
c6b750e1 | 7514 | test -n "$YACC" && break |
be01d343 PB |
7515 | done |
7516 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7517 | ||
7518 | case " $build_configdirs " in | |
7519 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7520 | esac |
7521 | ||
7522 | for ac_prog in bison | |
7523 | do | |
c6b750e1 | 7524 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7525 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7527 | $as_echo_n "checking for $ac_word... " >&6; } | |
7528 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7529 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7530 | else |
7531 | if test -n "$BISON"; then | |
7532 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7533 | else | |
c6b750e1 DJ |
7534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7535 | for as_dir in $PATH | |
7536 | do | |
7537 | IFS=$as_save_IFS | |
7538 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7539 | for ac_exec_ext in '' $ac_executable_extensions; do |
7540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7541 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7543 | break 2 |
7544 | fi | |
7545 | done | |
81ecdfbb RW |
7546 | done |
7547 | IFS=$as_save_IFS | |
c6b750e1 | 7548 | |
be01d343 PB |
7549 | fi |
7550 | fi | |
c6b750e1 | 7551 | BISON=$ac_cv_prog_BISON |
be01d343 | 7552 | if test -n "$BISON"; then |
81ecdfbb RW |
7553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7554 | $as_echo "$BISON" >&6; } | |
be01d343 | 7555 | else |
81ecdfbb RW |
7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7557 | $as_echo "no" >&6; } | |
be01d343 PB |
7558 | fi |
7559 | ||
81ecdfbb | 7560 | |
c6b750e1 | 7561 | test -n "$BISON" && break |
be01d343 PB |
7562 | done |
7563 | test -n "$BISON" || BISON="$MISSING bison" | |
7564 | ||
7565 | case " $build_configdirs " in | |
7566 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7567 | esac | |
7568 | ||
7569 | for ac_prog in gm4 gnum4 m4 | |
7570 | do | |
c6b750e1 | 7571 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7572 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7574 | $as_echo_n "checking for $ac_word... " >&6; } | |
7575 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7576 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7577 | else |
7578 | if test -n "$M4"; then | |
7579 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7580 | else | |
c6b750e1 DJ |
7581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7582 | for as_dir in $PATH | |
7583 | do | |
7584 | IFS=$as_save_IFS | |
7585 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7586 | for ac_exec_ext in '' $ac_executable_extensions; do |
7587 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7588 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7589 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7590 | break 2 |
7591 | fi | |
7592 | done | |
81ecdfbb RW |
7593 | done |
7594 | IFS=$as_save_IFS | |
c6b750e1 | 7595 | |
be01d343 PB |
7596 | fi |
7597 | fi | |
c6b750e1 | 7598 | M4=$ac_cv_prog_M4 |
be01d343 | 7599 | if test -n "$M4"; then |
81ecdfbb RW |
7600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7601 | $as_echo "$M4" >&6; } | |
be01d343 | 7602 | else |
81ecdfbb RW |
7603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7604 | $as_echo "no" >&6; } | |
be01d343 PB |
7605 | fi |
7606 | ||
81ecdfbb | 7607 | |
c6b750e1 | 7608 | test -n "$M4" && break |
be01d343 PB |
7609 | done |
7610 | test -n "$M4" || M4="$MISSING m4" | |
7611 | ||
7612 | case " $build_configdirs " in | |
7613 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7614 | esac | |
7615 | ||
7616 | for ac_prog in flex lex | |
7617 | do | |
c6b750e1 | 7618 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7619 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7621 | $as_echo_n "checking for $ac_word... " >&6; } | |
7622 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7623 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7624 | else |
7625 | if test -n "$LEX"; then | |
7626 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7627 | else | |
c6b750e1 DJ |
7628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7629 | for as_dir in $PATH | |
7630 | do | |
7631 | IFS=$as_save_IFS | |
7632 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7633 | for ac_exec_ext in '' $ac_executable_extensions; do |
7634 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7635 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7636 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7637 | break 2 |
7638 | fi | |
7639 | done | |
81ecdfbb RW |
7640 | done |
7641 | IFS=$as_save_IFS | |
c6b750e1 | 7642 | |
be01d343 PB |
7643 | fi |
7644 | fi | |
c6b750e1 | 7645 | LEX=$ac_cv_prog_LEX |
be01d343 | 7646 | if test -n "$LEX"; then |
81ecdfbb RW |
7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7648 | $as_echo "$LEX" >&6; } | |
be01d343 | 7649 | else |
81ecdfbb RW |
7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7651 | $as_echo "no" >&6; } | |
be01d343 PB |
7652 | fi |
7653 | ||
81ecdfbb | 7654 | |
c6b750e1 | 7655 | test -n "$LEX" && break |
be01d343 PB |
7656 | done |
7657 | test -n "$LEX" || LEX="$MISSING flex" | |
7658 | ||
7659 | case " $build_configdirs " in | |
7660 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7661 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7662 | esac | |
7663 | ||
7664 | for ac_prog in flex | |
7665 | do | |
c6b750e1 | 7666 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7667 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7669 | $as_echo_n "checking for $ac_word... " >&6; } | |
7670 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7671 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7672 | else |
7673 | if test -n "$FLEX"; then | |
7674 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7675 | else | |
c6b750e1 DJ |
7676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7677 | for as_dir in $PATH | |
7678 | do | |
7679 | IFS=$as_save_IFS | |
7680 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7681 | for ac_exec_ext in '' $ac_executable_extensions; do |
7682 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7683 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7685 | break 2 |
7686 | fi | |
7687 | done | |
81ecdfbb RW |
7688 | done |
7689 | IFS=$as_save_IFS | |
c6b750e1 | 7690 | |
be01d343 PB |
7691 | fi |
7692 | fi | |
c6b750e1 | 7693 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7694 | if test -n "$FLEX"; then |
81ecdfbb RW |
7695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7696 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7697 | else |
81ecdfbb RW |
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7699 | $as_echo "no" >&6; } | |
be01d343 PB |
7700 | fi |
7701 | ||
81ecdfbb | 7702 | |
c6b750e1 | 7703 | test -n "$FLEX" && break |
be01d343 PB |
7704 | done |
7705 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7706 | ||
7707 | case " $build_configdirs " in | |
7708 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7709 | esac | |
7710 | ||
7711 | for ac_prog in makeinfo | |
7712 | do | |
c6b750e1 | 7713 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7714 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7716 | $as_echo_n "checking for $ac_word... " >&6; } | |
7717 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7718 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7719 | else |
7720 | if test -n "$MAKEINFO"; then | |
7721 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7722 | else | |
c6b750e1 DJ |
7723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7724 | for as_dir in $PATH | |
7725 | do | |
7726 | IFS=$as_save_IFS | |
7727 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7728 | for ac_exec_ext in '' $ac_executable_extensions; do |
7729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7730 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7732 | break 2 |
7733 | fi | |
7734 | done | |
81ecdfbb RW |
7735 | done |
7736 | IFS=$as_save_IFS | |
c6b750e1 | 7737 | |
be01d343 PB |
7738 | fi |
7739 | fi | |
c6b750e1 | 7740 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7741 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7743 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7744 | else |
81ecdfbb RW |
7745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7746 | $as_echo "no" >&6; } | |
be01d343 PB |
7747 | fi |
7748 | ||
81ecdfbb | 7749 | |
c6b750e1 | 7750 | test -n "$MAKEINFO" && break |
be01d343 PB |
7751 | done |
7752 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7753 | ||
7754 | case " $build_configdirs " in | |
7755 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7756 | *) | |
7757 | ||
10ad8ef3 | 7758 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7759 | # higher, else we use the "missing" dummy. |
7760 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7761 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7762 | : |
7763 | else | |
7764 | MAKEINFO="$MISSING makeinfo" | |
7765 | fi | |
7766 | ;; | |
7767 | ||
7768 | esac | |
a0da8069 | 7769 | |
be01d343 | 7770 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7771 | |
be01d343 PB |
7772 | for ac_prog in expect |
7773 | do | |
c6b750e1 | 7774 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7775 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7777 | $as_echo_n "checking for $ac_word... " >&6; } | |
7778 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7779 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7780 | else |
7781 | if test -n "$EXPECT"; then | |
7782 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7783 | else | |
c6b750e1 DJ |
7784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7785 | for as_dir in $PATH | |
7786 | do | |
7787 | IFS=$as_save_IFS | |
7788 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7789 | for ac_exec_ext in '' $ac_executable_extensions; do |
7790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7791 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7793 | break 2 |
7794 | fi | |
7795 | done | |
81ecdfbb RW |
7796 | done |
7797 | IFS=$as_save_IFS | |
c6b750e1 | 7798 | |
be01d343 PB |
7799 | fi |
7800 | fi | |
c6b750e1 | 7801 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7802 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7804 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7805 | else |
81ecdfbb RW |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7807 | $as_echo "no" >&6; } | |
be01d343 | 7808 | fi |
a0da8069 | 7809 | |
81ecdfbb | 7810 | |
c6b750e1 | 7811 | test -n "$EXPECT" && break |
be01d343 PB |
7812 | done |
7813 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 7814 | |
be01d343 PB |
7815 | case " $configdirs " in |
7816 | *" expect "*) | |
7817 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
7818 | ;; | |
7819 | esac | |
a0da8069 | 7820 | |
be01d343 PB |
7821 | for ac_prog in runtest |
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_RUNTEST+set}" = set; then : | |
7828 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7829 | else |
7830 | if test -n "$RUNTEST"; then | |
7831 | ac_cv_prog_RUNTEST="$RUNTEST" # 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_RUNTEST="$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 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 7851 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
7853 | $as_echo "$RUNTEST" >&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 "$RUNTEST" && break |
be01d343 PB |
7861 | done |
7862 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 7863 | |
be01d343 PB |
7864 | case " $configdirs " in |
7865 | *" dejagnu "*) | |
6b89cc21 | 7866 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
7867 | ;; |
7868 | esac | |
a0da8069 NN |
7869 | |
7870 | ||
a0da8069 | 7871 | # Host tools. |
859789af AC |
7872 | ncn_tool_prefix= |
7873 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
7874 | ncn_target_tool_prefix= | |
7875 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
7876 | ||
9a819804 AO |
7877 | |
7878 | ||
7879 | if test -n "$AR"; then | |
7880 | ac_cv_prog_AR=$AR | |
7881 | elif test -n "$ac_cv_prog_AR"; then | |
7882 | AR=$ac_cv_prog_AR | |
7883 | fi | |
7884 | ||
7885 | if test -n "$ac_cv_prog_AR"; then | |
7886 | for ncn_progname in ar; do | |
7887 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7888 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7890 | $as_echo_n "checking for $ac_word... " >&6; } | |
7891 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7892 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
7893 | else |
7894 | if test -n "$AR"; then | |
7895 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7896 | else | |
7897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7898 | for as_dir in $PATH | |
7899 | do | |
7900 | IFS=$as_save_IFS | |
7901 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7902 | for ac_exec_ext in '' $ac_executable_extensions; do |
7903 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 7904 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
7906 | break 2 |
7907 | fi | |
7908 | done | |
81ecdfbb RW |
7909 | done |
7910 | IFS=$as_save_IFS | |
9a819804 AO |
7911 | |
7912 | fi | |
7913 | fi | |
7914 | AR=$ac_cv_prog_AR | |
7915 | if test -n "$AR"; then | |
81ecdfbb RW |
7916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7917 | $as_echo "$AR" >&6; } | |
9a819804 | 7918 | else |
81ecdfbb RW |
7919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7920 | $as_echo "no" >&6; } | |
9a819804 AO |
7921 | fi |
7922 | ||
81ecdfbb | 7923 | |
9a819804 AO |
7924 | done |
7925 | fi | |
7926 | ||
7927 | for ncn_progname in ar; do | |
05cbd757 PB |
7928 | if test -n "$ncn_tool_prefix"; then |
7929 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7930 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7932 | $as_echo_n "checking for $ac_word... " >&6; } | |
7933 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7934 | $as_echo_n "(cached) " >&6 | |
859789af AC |
7935 | else |
7936 | if test -n "$AR"; then | |
7937 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7938 | else | |
c6b750e1 DJ |
7939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7940 | for as_dir in $PATH | |
7941 | do | |
7942 | IFS=$as_save_IFS | |
7943 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7944 | for ac_exec_ext in '' $ac_executable_extensions; do |
7945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7946 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 7947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7948 | break 2 |
7949 | fi | |
7950 | done | |
81ecdfbb RW |
7951 | done |
7952 | IFS=$as_save_IFS | |
c6b750e1 | 7953 | |
859789af AC |
7954 | fi |
7955 | fi | |
c6b750e1 | 7956 | AR=$ac_cv_prog_AR |
859789af | 7957 | if test -n "$AR"; then |
81ecdfbb RW |
7958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7959 | $as_echo "$AR" >&6; } | |
859789af | 7960 | else |
81ecdfbb RW |
7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7962 | $as_echo "no" >&6; } | |
859789af AC |
7963 | fi |
7964 | ||
81ecdfbb | 7965 | |
05cbd757 PB |
7966 | fi |
7967 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
7968 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7969 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
7970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7971 | $as_echo_n "checking for $ac_word... " >&6; } | |
7972 | if test "${ac_cv_prog_AR+set}" = set; then : | |
7973 | $as_echo_n "(cached) " >&6 | |
859789af | 7974 | else |
05cbd757 PB |
7975 | if test -n "$AR"; then |
7976 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 7977 | else |
c6b750e1 DJ |
7978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7979 | for as_dir in $PATH | |
7980 | do | |
7981 | IFS=$as_save_IFS | |
7982 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7983 | for ac_exec_ext in '' $ac_executable_extensions; do |
7984 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7985 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 7986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7987 | break 2 |
7988 | fi | |
7989 | done | |
81ecdfbb RW |
7990 | done |
7991 | IFS=$as_save_IFS | |
c6b750e1 | 7992 | |
859789af AC |
7993 | fi |
7994 | fi | |
c6b750e1 | 7995 | AR=$ac_cv_prog_AR |
05cbd757 | 7996 | if test -n "$AR"; then |
81ecdfbb RW |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
7998 | $as_echo "$AR" >&6; } | |
859789af | 7999 | else |
81ecdfbb RW |
8000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8001 | $as_echo "no" >&6; } | |
859789af | 8002 | fi |
c6b750e1 | 8003 | |
81ecdfbb | 8004 | |
05cbd757 PB |
8005 | fi |
8006 | test -n "$ac_cv_prog_AR" && break | |
8007 | done | |
8008 | ||
8009 | if test -z "$ac_cv_prog_AR" ; then | |
8010 | set dummy ar | |
8011 | if test $build = $host ; then | |
8012 | AR="$2" | |
859789af | 8013 | else |
05cbd757 | 8014 | AR="${ncn_tool_prefix}$2" |
859789af | 8015 | fi |
859789af AC |
8016 | fi |
8017 | ||
9a819804 AO |
8018 | |
8019 | ||
8020 | if test -n "$AS"; then | |
8021 | ac_cv_prog_AS=$AS | |
8022 | elif test -n "$ac_cv_prog_AS"; then | |
8023 | AS=$ac_cv_prog_AS | |
8024 | fi | |
8025 | ||
8026 | if test -n "$ac_cv_prog_AS"; then | |
8027 | for ncn_progname in as; do | |
8028 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8029 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8031 | $as_echo_n "checking for $ac_word... " >&6; } | |
8032 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8033 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8034 | else |
8035 | if test -n "$AS"; then | |
8036 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8037 | else | |
8038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8039 | for as_dir in $PATH | |
8040 | do | |
8041 | IFS=$as_save_IFS | |
8042 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8043 | for ac_exec_ext in '' $ac_executable_extensions; do |
8044 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8045 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8047 | break 2 |
8048 | fi | |
8049 | done | |
81ecdfbb RW |
8050 | done |
8051 | IFS=$as_save_IFS | |
9a819804 AO |
8052 | |
8053 | fi | |
8054 | fi | |
8055 | AS=$ac_cv_prog_AS | |
8056 | if test -n "$AS"; then | |
81ecdfbb RW |
8057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8058 | $as_echo "$AS" >&6; } | |
9a819804 | 8059 | else |
81ecdfbb RW |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8061 | $as_echo "no" >&6; } | |
9a819804 AO |
8062 | fi |
8063 | ||
81ecdfbb | 8064 | |
9a819804 AO |
8065 | done |
8066 | fi | |
8067 | ||
8068 | for ncn_progname in as; do | |
05cbd757 PB |
8069 | if test -n "$ncn_tool_prefix"; then |
8070 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8071 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8073 | $as_echo_n "checking for $ac_word... " >&6; } | |
8074 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8075 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8076 | else |
8077 | if test -n "$AS"; then | |
8078 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8079 | else |
8080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8081 | for as_dir in $PATH | |
8082 | do | |
8083 | IFS=$as_save_IFS | |
8084 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8085 | for ac_exec_ext in '' $ac_executable_extensions; do |
8086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8087 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8089 | break 2 |
8090 | fi | |
8091 | done | |
81ecdfbb RW |
8092 | done |
8093 | IFS=$as_save_IFS | |
c6b750e1 | 8094 | |
859789af AC |
8095 | fi |
8096 | fi | |
c6b750e1 | 8097 | AS=$ac_cv_prog_AS |
859789af | 8098 | if test -n "$AS"; then |
81ecdfbb RW |
8099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8100 | $as_echo "$AS" >&6; } | |
859789af | 8101 | else |
81ecdfbb RW |
8102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8103 | $as_echo "no" >&6; } | |
859789af AC |
8104 | fi |
8105 | ||
81ecdfbb | 8106 | |
05cbd757 PB |
8107 | fi |
8108 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8109 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8110 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8112 | $as_echo_n "checking for $ac_word... " >&6; } | |
8113 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8114 | $as_echo_n "(cached) " >&6 | |
859789af | 8115 | else |
05cbd757 PB |
8116 | if test -n "$AS"; then |
8117 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8118 | else |
c6b750e1 DJ |
8119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8120 | for as_dir in $PATH | |
8121 | do | |
8122 | IFS=$as_save_IFS | |
8123 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8124 | for ac_exec_ext in '' $ac_executable_extensions; do |
8125 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8126 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8127 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8128 | break 2 |
8129 | fi | |
8130 | done | |
81ecdfbb RW |
8131 | done |
8132 | IFS=$as_save_IFS | |
c6b750e1 | 8133 | |
859789af AC |
8134 | fi |
8135 | fi | |
c6b750e1 | 8136 | AS=$ac_cv_prog_AS |
05cbd757 | 8137 | if test -n "$AS"; then |
81ecdfbb RW |
8138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8139 | $as_echo "$AS" >&6; } | |
859789af | 8140 | else |
81ecdfbb RW |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8142 | $as_echo "no" >&6; } | |
859789af | 8143 | fi |
c6b750e1 | 8144 | |
81ecdfbb | 8145 | |
05cbd757 PB |
8146 | fi |
8147 | test -n "$ac_cv_prog_AS" && break | |
8148 | done | |
8149 | ||
8150 | if test -z "$ac_cv_prog_AS" ; then | |
8151 | set dummy as | |
8152 | if test $build = $host ; then | |
8153 | AS="$2" | |
859789af | 8154 | else |
05cbd757 | 8155 | AS="${ncn_tool_prefix}$2" |
859789af | 8156 | fi |
859789af AC |
8157 | fi |
8158 | ||
9a819804 AO |
8159 | |
8160 | ||
8161 | if test -n "$DLLTOOL"; then | |
8162 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8163 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8164 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8165 | fi | |
8166 | ||
8167 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8168 | for ncn_progname in dlltool; do | |
8169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8170 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8172 | $as_echo_n "checking for $ac_word... " >&6; } | |
8173 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8174 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8175 | else |
8176 | if test -n "$DLLTOOL"; then | |
8177 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8178 | else | |
8179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8180 | for as_dir in $PATH | |
8181 | do | |
8182 | IFS=$as_save_IFS | |
8183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8184 | for ac_exec_ext in '' $ac_executable_extensions; do |
8185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8186 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8188 | break 2 |
8189 | fi | |
8190 | done | |
81ecdfbb RW |
8191 | done |
8192 | IFS=$as_save_IFS | |
9a819804 AO |
8193 | |
8194 | fi | |
8195 | fi | |
8196 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8197 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8199 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8200 | else |
81ecdfbb RW |
8201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8202 | $as_echo "no" >&6; } | |
9a819804 AO |
8203 | fi |
8204 | ||
81ecdfbb | 8205 | |
9a819804 AO |
8206 | done |
8207 | fi | |
8208 | ||
8209 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8210 | if test -n "$ncn_tool_prefix"; then |
8211 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8212 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8214 | $as_echo_n "checking for $ac_word... " >&6; } | |
8215 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8216 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8217 | else |
8218 | if test -n "$DLLTOOL"; then | |
8219 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8220 | else | |
c6b750e1 DJ |
8221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8222 | for as_dir in $PATH | |
8223 | do | |
8224 | IFS=$as_save_IFS | |
8225 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8226 | for ac_exec_ext in '' $ac_executable_extensions; do |
8227 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8228 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8230 | break 2 |
8231 | fi | |
8232 | done | |
81ecdfbb RW |
8233 | done |
8234 | IFS=$as_save_IFS | |
c6b750e1 | 8235 | |
859789af AC |
8236 | fi |
8237 | fi | |
c6b750e1 | 8238 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8239 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8241 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8242 | else |
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8244 | $as_echo "no" >&6; } | |
859789af AC |
8245 | fi |
8246 | ||
81ecdfbb | 8247 | |
05cbd757 PB |
8248 | fi |
8249 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8250 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8251 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8253 | $as_echo_n "checking for $ac_word... " >&6; } | |
8254 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8255 | $as_echo_n "(cached) " >&6 | |
859789af | 8256 | else |
05cbd757 PB |
8257 | if test -n "$DLLTOOL"; then |
8258 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8259 | else |
c6b750e1 DJ |
8260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8261 | for as_dir in $PATH | |
8262 | do | |
8263 | IFS=$as_save_IFS | |
8264 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8265 | for ac_exec_ext in '' $ac_executable_extensions; do |
8266 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8267 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8268 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8269 | break 2 |
8270 | fi | |
8271 | done | |
81ecdfbb RW |
8272 | done |
8273 | IFS=$as_save_IFS | |
c6b750e1 | 8274 | |
859789af AC |
8275 | fi |
8276 | fi | |
c6b750e1 | 8277 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8278 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8280 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8281 | else |
81ecdfbb RW |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8283 | $as_echo "no" >&6; } | |
859789af | 8284 | fi |
c6b750e1 | 8285 | |
81ecdfbb | 8286 | |
05cbd757 PB |
8287 | fi |
8288 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8289 | done | |
8290 | ||
8291 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8292 | set dummy dlltool | |
8293 | if test $build = $host ; then | |
8294 | DLLTOOL="$2" | |
859789af | 8295 | else |
05cbd757 | 8296 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8297 | fi |
859789af AC |
8298 | fi |
8299 | ||
9a819804 AO |
8300 | |
8301 | ||
8302 | if test -n "$LD"; then | |
8303 | ac_cv_prog_LD=$LD | |
8304 | elif test -n "$ac_cv_prog_LD"; then | |
8305 | LD=$ac_cv_prog_LD | |
8306 | fi | |
8307 | ||
8308 | if test -n "$ac_cv_prog_LD"; then | |
8309 | for ncn_progname in ld; do | |
8310 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8311 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8313 | $as_echo_n "checking for $ac_word... " >&6; } | |
8314 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8315 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8316 | else |
8317 | if test -n "$LD"; then | |
8318 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8319 | else | |
8320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8321 | for as_dir in $PATH | |
8322 | do | |
8323 | IFS=$as_save_IFS | |
8324 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8325 | for ac_exec_ext in '' $ac_executable_extensions; do |
8326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8327 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8329 | break 2 |
8330 | fi | |
8331 | done | |
81ecdfbb RW |
8332 | done |
8333 | IFS=$as_save_IFS | |
9a819804 AO |
8334 | |
8335 | fi | |
8336 | fi | |
8337 | LD=$ac_cv_prog_LD | |
8338 | if test -n "$LD"; then | |
81ecdfbb RW |
8339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8340 | $as_echo "$LD" >&6; } | |
9a819804 | 8341 | else |
81ecdfbb RW |
8342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8343 | $as_echo "no" >&6; } | |
9a819804 AO |
8344 | fi |
8345 | ||
81ecdfbb | 8346 | |
9a819804 AO |
8347 | done |
8348 | fi | |
8349 | ||
8350 | for ncn_progname in ld; do | |
05cbd757 PB |
8351 | if test -n "$ncn_tool_prefix"; then |
8352 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8353 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8355 | $as_echo_n "checking for $ac_word... " >&6; } | |
8356 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8357 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8358 | else |
8359 | if test -n "$LD"; then | |
8360 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8361 | else | |
c6b750e1 DJ |
8362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8363 | for as_dir in $PATH | |
8364 | do | |
8365 | IFS=$as_save_IFS | |
8366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8367 | for ac_exec_ext in '' $ac_executable_extensions; do |
8368 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8369 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8371 | break 2 |
8372 | fi | |
8373 | done | |
81ecdfbb RW |
8374 | done |
8375 | IFS=$as_save_IFS | |
c6b750e1 | 8376 | |
859789af AC |
8377 | fi |
8378 | fi | |
c6b750e1 | 8379 | LD=$ac_cv_prog_LD |
859789af | 8380 | if test -n "$LD"; then |
81ecdfbb RW |
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8382 | $as_echo "$LD" >&6; } | |
859789af | 8383 | else |
81ecdfbb RW |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8385 | $as_echo "no" >&6; } | |
859789af AC |
8386 | fi |
8387 | ||
81ecdfbb | 8388 | |
05cbd757 PB |
8389 | fi |
8390 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8392 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8394 | $as_echo_n "checking for $ac_word... " >&6; } | |
8395 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8396 | $as_echo_n "(cached) " >&6 | |
859789af | 8397 | else |
05cbd757 PB |
8398 | if test -n "$LD"; then |
8399 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8400 | else |
c6b750e1 DJ |
8401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8402 | for as_dir in $PATH | |
8403 | do | |
8404 | IFS=$as_save_IFS | |
8405 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8406 | for ac_exec_ext in '' $ac_executable_extensions; do |
8407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8408 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8410 | break 2 |
8411 | fi | |
8412 | done | |
81ecdfbb RW |
8413 | done |
8414 | IFS=$as_save_IFS | |
c6b750e1 | 8415 | |
859789af AC |
8416 | fi |
8417 | fi | |
c6b750e1 | 8418 | LD=$ac_cv_prog_LD |
05cbd757 | 8419 | if test -n "$LD"; then |
81ecdfbb RW |
8420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8421 | $as_echo "$LD" >&6; } | |
859789af | 8422 | else |
81ecdfbb RW |
8423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8424 | $as_echo "no" >&6; } | |
859789af | 8425 | fi |
c6b750e1 | 8426 | |
81ecdfbb | 8427 | |
05cbd757 PB |
8428 | fi |
8429 | test -n "$ac_cv_prog_LD" && break | |
8430 | done | |
8431 | ||
8432 | if test -z "$ac_cv_prog_LD" ; then | |
8433 | set dummy ld | |
8434 | if test $build = $host ; then | |
8435 | LD="$2" | |
859789af | 8436 | else |
05cbd757 | 8437 | LD="${ncn_tool_prefix}$2" |
859789af | 8438 | fi |
859789af AC |
8439 | fi |
8440 | ||
9a819804 AO |
8441 | |
8442 | ||
8443 | if test -n "$LIPO"; then | |
8444 | ac_cv_prog_LIPO=$LIPO | |
8445 | elif test -n "$ac_cv_prog_LIPO"; then | |
8446 | LIPO=$ac_cv_prog_LIPO | |
8447 | fi | |
8448 | ||
8449 | if test -n "$ac_cv_prog_LIPO"; then | |
8450 | for ncn_progname in lipo; do | |
8451 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8452 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8454 | $as_echo_n "checking for $ac_word... " >&6; } | |
8455 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8456 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8457 | else |
8458 | if test -n "$LIPO"; then | |
8459 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8460 | else | |
8461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8462 | for as_dir in $PATH | |
8463 | do | |
8464 | IFS=$as_save_IFS | |
8465 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8466 | for ac_exec_ext in '' $ac_executable_extensions; do |
8467 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8468 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8470 | break 2 |
8471 | fi | |
8472 | done | |
81ecdfbb RW |
8473 | done |
8474 | IFS=$as_save_IFS | |
9a819804 AO |
8475 | |
8476 | fi | |
8477 | fi | |
8478 | LIPO=$ac_cv_prog_LIPO | |
8479 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8481 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8482 | else |
81ecdfbb RW |
8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8484 | $as_echo "no" >&6; } | |
9a819804 AO |
8485 | fi |
8486 | ||
81ecdfbb | 8487 | |
9a819804 AO |
8488 | done |
8489 | fi | |
8490 | ||
8491 | for ncn_progname in lipo; do | |
be01d343 PB |
8492 | if test -n "$ncn_tool_prefix"; then |
8493 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8494 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8496 | $as_echo_n "checking for $ac_word... " >&6; } | |
8497 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8498 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8499 | else |
8500 | if test -n "$LIPO"; then | |
8501 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8502 | else | |
c6b750e1 DJ |
8503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8504 | for as_dir in $PATH | |
8505 | do | |
8506 | IFS=$as_save_IFS | |
8507 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8508 | for ac_exec_ext in '' $ac_executable_extensions; do |
8509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8510 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8511 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8512 | break 2 |
8513 | fi | |
8514 | done | |
81ecdfbb RW |
8515 | done |
8516 | IFS=$as_save_IFS | |
c6b750e1 | 8517 | |
be01d343 PB |
8518 | fi |
8519 | fi | |
c6b750e1 | 8520 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8521 | if test -n "$LIPO"; then |
81ecdfbb RW |
8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8523 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8524 | else |
81ecdfbb RW |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8526 | $as_echo "no" >&6; } | |
be01d343 PB |
8527 | fi |
8528 | ||
81ecdfbb | 8529 | |
be01d343 PB |
8530 | fi |
8531 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8532 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8533 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8535 | $as_echo_n "checking for $ac_word... " >&6; } | |
8536 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8537 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8538 | else |
8539 | if test -n "$LIPO"; then | |
8540 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8541 | else | |
c6b750e1 DJ |
8542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8543 | for as_dir in $PATH | |
8544 | do | |
8545 | IFS=$as_save_IFS | |
8546 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8547 | for ac_exec_ext in '' $ac_executable_extensions; do |
8548 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8549 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8551 | break 2 |
8552 | fi | |
8553 | done | |
81ecdfbb RW |
8554 | done |
8555 | IFS=$as_save_IFS | |
c6b750e1 | 8556 | |
be01d343 PB |
8557 | fi |
8558 | fi | |
c6b750e1 | 8559 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8560 | if test -n "$LIPO"; then |
81ecdfbb RW |
8561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8562 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8563 | else |
81ecdfbb RW |
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8565 | $as_echo "no" >&6; } | |
be01d343 | 8566 | fi |
c6b750e1 | 8567 | |
81ecdfbb | 8568 | |
be01d343 PB |
8569 | fi |
8570 | test -n "$ac_cv_prog_LIPO" && break | |
8571 | done | |
8572 | ||
8573 | if test -z "$ac_cv_prog_LIPO" ; then | |
8574 | set dummy lipo | |
8575 | if test $build = $host ; then | |
8576 | LIPO="$2" | |
8577 | else | |
8578 | LIPO="${ncn_tool_prefix}$2" | |
8579 | fi | |
8580 | fi | |
8581 | ||
9a819804 AO |
8582 | |
8583 | ||
8584 | if test -n "$NM"; then | |
8585 | ac_cv_prog_NM=$NM | |
8586 | elif test -n "$ac_cv_prog_NM"; then | |
8587 | NM=$ac_cv_prog_NM | |
8588 | fi | |
8589 | ||
8590 | if test -n "$ac_cv_prog_NM"; then | |
8591 | for ncn_progname in nm; do | |
8592 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8593 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8595 | $as_echo_n "checking for $ac_word... " >&6; } | |
8596 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8597 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8598 | else |
8599 | if test -n "$NM"; then | |
8600 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8601 | else | |
c6b750e1 DJ |
8602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8603 | for as_dir in $PATH | |
8604 | do | |
8605 | IFS=$as_save_IFS | |
8606 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8607 | for ac_exec_ext in '' $ac_executable_extensions; do |
8608 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8609 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8610 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8611 | break 2 |
8612 | fi | |
8613 | done | |
81ecdfbb RW |
8614 | done |
8615 | IFS=$as_save_IFS | |
c6b750e1 | 8616 | |
859789af AC |
8617 | fi |
8618 | fi | |
c6b750e1 | 8619 | NM=$ac_cv_prog_NM |
859789af | 8620 | if test -n "$NM"; then |
81ecdfbb RW |
8621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8622 | $as_echo "$NM" >&6; } | |
859789af | 8623 | else |
81ecdfbb RW |
8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8625 | $as_echo "no" >&6; } | |
859789af AC |
8626 | fi |
8627 | ||
81ecdfbb | 8628 | |
9a819804 AO |
8629 | done |
8630 | fi | |
8631 | ||
8632 | for ncn_progname in nm; do | |
8633 | if test -n "$ncn_tool_prefix"; then | |
8634 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8635 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8637 | $as_echo_n "checking for $ac_word... " >&6; } | |
8638 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8639 | $as_echo_n "(cached) " >&6 | |
859789af | 8640 | else |
05cbd757 PB |
8641 | if test -n "$NM"; then |
8642 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8643 | else |
c6b750e1 DJ |
8644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8645 | for as_dir in $PATH | |
8646 | do | |
8647 | IFS=$as_save_IFS | |
8648 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8649 | for ac_exec_ext in '' $ac_executable_extensions; do |
8650 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8651 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8652 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8653 | break 2 |
8654 | fi | |
8655 | done | |
81ecdfbb RW |
8656 | done |
8657 | IFS=$as_save_IFS | |
c6b750e1 | 8658 | |
859789af AC |
8659 | fi |
8660 | fi | |
c6b750e1 | 8661 | NM=$ac_cv_prog_NM |
05cbd757 | 8662 | if test -n "$NM"; then |
81ecdfbb RW |
8663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8664 | $as_echo "$NM" >&6; } | |
859789af | 8665 | else |
81ecdfbb RW |
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8667 | $as_echo "no" >&6; } | |
859789af | 8668 | fi |
c6b750e1 | 8669 | |
81ecdfbb | 8670 | |
05cbd757 | 8671 | fi |
9a819804 AO |
8672 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8673 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8674 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8676 | $as_echo_n "checking for $ac_word... " >&6; } | |
8677 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8678 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8679 | else |
8680 | if test -n "$NM"; then | |
8681 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8682 | else | |
8683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8684 | for as_dir in $PATH | |
8685 | do | |
8686 | IFS=$as_save_IFS | |
8687 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8688 | for ac_exec_ext in '' $ac_executable_extensions; do |
8689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8690 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8692 | break 2 |
8693 | fi | |
8694 | done | |
81ecdfbb RW |
8695 | done |
8696 | IFS=$as_save_IFS | |
9a819804 AO |
8697 | |
8698 | fi | |
8699 | fi | |
8700 | NM=$ac_cv_prog_NM | |
8701 | if test -n "$NM"; then | |
81ecdfbb RW |
8702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8703 | $as_echo "$NM" >&6; } | |
9a819804 | 8704 | else |
81ecdfbb RW |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8706 | $as_echo "no" >&6; } | |
9a819804 AO |
8707 | fi |
8708 | ||
81ecdfbb | 8709 | |
9a819804 AO |
8710 | fi |
8711 | test -n "$ac_cv_prog_NM" && break | |
8712 | done | |
8713 | ||
8714 | if test -z "$ac_cv_prog_NM" ; then | |
8715 | set dummy nm | |
8716 | if test $build = $host ; then | |
8717 | NM="$2" | |
8718 | else | |
8719 | NM="${ncn_tool_prefix}$2" | |
8720 | fi | |
8721 | fi | |
8722 | ||
8723 | ||
8724 | ||
8725 | if test -n "$RANLIB"; then | |
8726 | ac_cv_prog_RANLIB=$RANLIB | |
8727 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8728 | RANLIB=$ac_cv_prog_RANLIB | |
8729 | fi | |
8730 | ||
8731 | if test -n "$ac_cv_prog_RANLIB"; then | |
8732 | for ncn_progname in ranlib; do | |
8733 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8734 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8736 | $as_echo_n "checking for $ac_word... " >&6; } | |
8737 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8738 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8739 | else |
8740 | if test -n "$RANLIB"; then | |
8741 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8742 | else | |
8743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8744 | for as_dir in $PATH | |
8745 | do | |
8746 | IFS=$as_save_IFS | |
8747 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8748 | for ac_exec_ext in '' $ac_executable_extensions; do |
8749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8750 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8751 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8752 | break 2 |
8753 | fi | |
8754 | done | |
81ecdfbb RW |
8755 | done |
8756 | IFS=$as_save_IFS | |
9a819804 AO |
8757 | |
8758 | fi | |
8759 | fi | |
8760 | RANLIB=$ac_cv_prog_RANLIB | |
8761 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8763 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8764 | else |
81ecdfbb RW |
8765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8766 | $as_echo "no" >&6; } | |
9a819804 AO |
8767 | fi |
8768 | ||
81ecdfbb | 8769 | |
9a819804 AO |
8770 | done |
8771 | fi | |
859789af | 8772 | |
9a819804 | 8773 | for ncn_progname in ranlib; do |
05cbd757 PB |
8774 | if test -n "$ncn_tool_prefix"; then |
8775 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8776 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8778 | $as_echo_n "checking for $ac_word... " >&6; } | |
8779 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8780 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8781 | else |
8782 | if test -n "$RANLIB"; then | |
8783 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8784 | else | |
c6b750e1 DJ |
8785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8786 | for as_dir in $PATH | |
8787 | do | |
8788 | IFS=$as_save_IFS | |
8789 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8790 | for ac_exec_ext in '' $ac_executable_extensions; do |
8791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8792 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8794 | break 2 |
8795 | fi | |
8796 | done | |
81ecdfbb RW |
8797 | done |
8798 | IFS=$as_save_IFS | |
c6b750e1 | 8799 | |
859789af AC |
8800 | fi |
8801 | fi | |
c6b750e1 | 8802 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8803 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8805 | $as_echo "$RANLIB" >&6; } | |
859789af | 8806 | else |
81ecdfbb RW |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8808 | $as_echo "no" >&6; } | |
859789af AC |
8809 | fi |
8810 | ||
81ecdfbb | 8811 | |
05cbd757 PB |
8812 | fi |
8813 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
8814 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8815 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8817 | $as_echo_n "checking for $ac_word... " >&6; } | |
8818 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8819 | $as_echo_n "(cached) " >&6 | |
859789af | 8820 | else |
05cbd757 PB |
8821 | if test -n "$RANLIB"; then |
8822 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 8823 | else |
c6b750e1 DJ |
8824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8825 | for as_dir in $PATH | |
8826 | do | |
8827 | IFS=$as_save_IFS | |
8828 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8829 | for ac_exec_ext in '' $ac_executable_extensions; do |
8830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8831 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8833 | break 2 |
8834 | fi | |
8835 | done | |
81ecdfbb RW |
8836 | done |
8837 | IFS=$as_save_IFS | |
c6b750e1 | 8838 | |
859789af AC |
8839 | fi |
8840 | fi | |
c6b750e1 | 8841 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 8842 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8844 | $as_echo "$RANLIB" >&6; } | |
859789af | 8845 | else |
81ecdfbb RW |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8847 | $as_echo "no" >&6; } | |
859789af | 8848 | fi |
c6b750e1 | 8849 | |
81ecdfbb | 8850 | |
859789af | 8851 | fi |
05cbd757 PB |
8852 | test -n "$ac_cv_prog_RANLIB" && break |
8853 | done | |
8854 | ||
8855 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 8856 | RANLIB="true" |
859789af AC |
8857 | fi |
8858 | ||
9a819804 AO |
8859 | |
8860 | ||
8861 | if test -n "$STRIP"; then | |
8862 | ac_cv_prog_STRIP=$STRIP | |
8863 | elif test -n "$ac_cv_prog_STRIP"; then | |
8864 | STRIP=$ac_cv_prog_STRIP | |
8865 | fi | |
8866 | ||
8867 | if test -n "$ac_cv_prog_STRIP"; then | |
8868 | for ncn_progname in strip; do | |
8869 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8870 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8872 | $as_echo_n "checking for $ac_word... " >&6; } | |
8873 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8874 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8875 | else |
8876 | if test -n "$STRIP"; then | |
8877 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8878 | else | |
8879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8880 | for as_dir in $PATH | |
8881 | do | |
8882 | IFS=$as_save_IFS | |
8883 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8884 | for ac_exec_ext in '' $ac_executable_extensions; do |
8885 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8886 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8888 | break 2 |
8889 | fi | |
8890 | done | |
81ecdfbb RW |
8891 | done |
8892 | IFS=$as_save_IFS | |
9a819804 AO |
8893 | |
8894 | fi | |
8895 | fi | |
8896 | STRIP=$ac_cv_prog_STRIP | |
8897 | if test -n "$STRIP"; then | |
81ecdfbb RW |
8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8899 | $as_echo "$STRIP" >&6; } | |
9a819804 | 8900 | else |
81ecdfbb RW |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8902 | $as_echo "no" >&6; } | |
9a819804 AO |
8903 | fi |
8904 | ||
81ecdfbb | 8905 | |
9a819804 AO |
8906 | done |
8907 | fi | |
8908 | ||
8909 | for ncn_progname in strip; do | |
be01d343 PB |
8910 | if test -n "$ncn_tool_prefix"; then |
8911 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8912 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8914 | $as_echo_n "checking for $ac_word... " >&6; } | |
8915 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8916 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8917 | else |
8918 | if test -n "$STRIP"; then | |
8919 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8920 | else | |
c6b750e1 DJ |
8921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8922 | for as_dir in $PATH | |
8923 | do | |
8924 | IFS=$as_save_IFS | |
8925 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8926 | for ac_exec_ext in '' $ac_executable_extensions; do |
8927 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8928 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8929 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8930 | break 2 |
8931 | fi | |
8932 | done | |
81ecdfbb RW |
8933 | done |
8934 | IFS=$as_save_IFS | |
c6b750e1 | 8935 | |
be01d343 PB |
8936 | fi |
8937 | fi | |
c6b750e1 | 8938 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8939 | if test -n "$STRIP"; then |
81ecdfbb RW |
8940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8941 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8942 | else |
81ecdfbb RW |
8943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8944 | $as_echo "no" >&6; } | |
be01d343 PB |
8945 | fi |
8946 | ||
81ecdfbb | 8947 | |
be01d343 PB |
8948 | fi |
8949 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
8950 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8951 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8953 | $as_echo_n "checking for $ac_word... " >&6; } | |
8954 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
8955 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8956 | else |
8957 | if test -n "$STRIP"; then | |
8958 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8959 | else | |
c6b750e1 DJ |
8960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8961 | for as_dir in $PATH | |
8962 | do | |
8963 | IFS=$as_save_IFS | |
8964 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8965 | for ac_exec_ext in '' $ac_executable_extensions; do |
8966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8967 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 8968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8969 | break 2 |
8970 | fi | |
8971 | done | |
81ecdfbb RW |
8972 | done |
8973 | IFS=$as_save_IFS | |
c6b750e1 | 8974 | |
be01d343 PB |
8975 | fi |
8976 | fi | |
c6b750e1 | 8977 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 8978 | if test -n "$STRIP"; then |
81ecdfbb RW |
8979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8980 | $as_echo "$STRIP" >&6; } | |
be01d343 | 8981 | else |
81ecdfbb RW |
8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8983 | $as_echo "no" >&6; } | |
be01d343 | 8984 | fi |
c6b750e1 | 8985 | |
81ecdfbb | 8986 | |
be01d343 PB |
8987 | fi |
8988 | test -n "$ac_cv_prog_STRIP" && break | |
8989 | done | |
8990 | ||
8991 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 8992 | STRIP="true" |
be01d343 PB |
8993 | fi |
8994 | ||
9a819804 AO |
8995 | |
8996 | ||
8997 | if test -n "$WINDRES"; then | |
8998 | ac_cv_prog_WINDRES=$WINDRES | |
8999 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9000 | WINDRES=$ac_cv_prog_WINDRES | |
9001 | fi | |
9002 | ||
9003 | if test -n "$ac_cv_prog_WINDRES"; then | |
9004 | for ncn_progname in windres; do | |
9005 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9006 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9008 | $as_echo_n "checking for $ac_word... " >&6; } | |
9009 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9010 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9011 | else |
9012 | if test -n "$WINDRES"; then | |
9013 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9014 | else | |
9015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9016 | for as_dir in $PATH | |
9017 | do | |
9018 | IFS=$as_save_IFS | |
9019 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9020 | for ac_exec_ext in '' $ac_executable_extensions; do |
9021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9022 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9024 | break 2 |
9025 | fi | |
9026 | done | |
81ecdfbb RW |
9027 | done |
9028 | IFS=$as_save_IFS | |
9a819804 AO |
9029 | |
9030 | fi | |
9031 | fi | |
9032 | WINDRES=$ac_cv_prog_WINDRES | |
9033 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9035 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9036 | else |
81ecdfbb RW |
9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9038 | $as_echo "no" >&6; } | |
9a819804 AO |
9039 | fi |
9040 | ||
81ecdfbb | 9041 | |
9a819804 AO |
9042 | done |
9043 | fi | |
9044 | ||
9045 | for ncn_progname in windres; do | |
05cbd757 PB |
9046 | if test -n "$ncn_tool_prefix"; then |
9047 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9048 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9050 | $as_echo_n "checking for $ac_word... " >&6; } | |
9051 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9052 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9053 | else |
9054 | if test -n "$WINDRES"; then | |
9055 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9056 | else | |
c6b750e1 DJ |
9057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9058 | for as_dir in $PATH | |
9059 | do | |
9060 | IFS=$as_save_IFS | |
9061 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9062 | for ac_exec_ext in '' $ac_executable_extensions; do |
9063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9064 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9066 | break 2 |
9067 | fi | |
9068 | done | |
81ecdfbb RW |
9069 | done |
9070 | IFS=$as_save_IFS | |
c6b750e1 | 9071 | |
859789af AC |
9072 | fi |
9073 | fi | |
c6b750e1 | 9074 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9075 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9077 | $as_echo "$WINDRES" >&6; } | |
859789af | 9078 | else |
81ecdfbb RW |
9079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9080 | $as_echo "no" >&6; } | |
859789af AC |
9081 | fi |
9082 | ||
81ecdfbb | 9083 | |
05cbd757 PB |
9084 | fi |
9085 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9086 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9087 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9089 | $as_echo_n "checking for $ac_word... " >&6; } | |
9090 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9091 | $as_echo_n "(cached) " >&6 | |
859789af | 9092 | else |
05cbd757 PB |
9093 | if test -n "$WINDRES"; then |
9094 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9095 | else |
c6b750e1 DJ |
9096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9097 | for as_dir in $PATH | |
9098 | do | |
9099 | IFS=$as_save_IFS | |
9100 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9101 | for ac_exec_ext in '' $ac_executable_extensions; do |
9102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9103 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9104 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9105 | break 2 |
9106 | fi | |
9107 | done | |
81ecdfbb RW |
9108 | done |
9109 | IFS=$as_save_IFS | |
c6b750e1 | 9110 | |
859789af AC |
9111 | fi |
9112 | fi | |
c6b750e1 | 9113 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9114 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9116 | $as_echo "$WINDRES" >&6; } | |
859789af | 9117 | else |
81ecdfbb RW |
9118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9119 | $as_echo "no" >&6; } | |
859789af | 9120 | fi |
c6b750e1 | 9121 | |
81ecdfbb | 9122 | |
05cbd757 PB |
9123 | fi |
9124 | test -n "$ac_cv_prog_WINDRES" && break | |
9125 | done | |
9126 | ||
9127 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9128 | set dummy windres | |
9129 | if test $build = $host ; then | |
9130 | WINDRES="$2" | |
859789af | 9131 | else |
05cbd757 | 9132 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9133 | fi |
859789af AC |
9134 | fi |
9135 | ||
9a819804 AO |
9136 | |
9137 | ||
0c24b341 NC |
9138 | if test -n "$WINDMC"; then |
9139 | ac_cv_prog_WINDMC=$WINDMC | |
9140 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9141 | WINDMC=$ac_cv_prog_WINDMC | |
9142 | fi | |
9143 | ||
9144 | if test -n "$ac_cv_prog_WINDMC"; then | |
9145 | for ncn_progname in windmc; do | |
9146 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9147 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9149 | $as_echo_n "checking for $ac_word... " >&6; } | |
9150 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9151 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9152 | else |
9153 | if test -n "$WINDMC"; then | |
9154 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9155 | else | |
9156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9157 | for as_dir in $PATH | |
9158 | do | |
9159 | IFS=$as_save_IFS | |
9160 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9161 | for ac_exec_ext in '' $ac_executable_extensions; do |
9162 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9163 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9164 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9165 | break 2 |
9166 | fi | |
9167 | done | |
81ecdfbb RW |
9168 | done |
9169 | IFS=$as_save_IFS | |
0c24b341 NC |
9170 | |
9171 | fi | |
9172 | fi | |
9173 | WINDMC=$ac_cv_prog_WINDMC | |
9174 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9176 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9177 | else |
81ecdfbb RW |
9178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9179 | $as_echo "no" >&6; } | |
0c24b341 NC |
9180 | fi |
9181 | ||
81ecdfbb | 9182 | |
0c24b341 NC |
9183 | done |
9184 | fi | |
9185 | ||
9186 | for ncn_progname in windmc; do | |
9187 | if test -n "$ncn_tool_prefix"; then | |
9188 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9189 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9191 | $as_echo_n "checking for $ac_word... " >&6; } | |
9192 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9193 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9194 | else |
9195 | if test -n "$WINDMC"; then | |
9196 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9197 | else | |
9198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9199 | for as_dir in $PATH | |
9200 | do | |
9201 | IFS=$as_save_IFS | |
9202 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9203 | for ac_exec_ext in '' $ac_executable_extensions; do |
9204 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9205 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9206 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9207 | break 2 |
9208 | fi | |
9209 | done | |
81ecdfbb RW |
9210 | done |
9211 | IFS=$as_save_IFS | |
0c24b341 NC |
9212 | |
9213 | fi | |
9214 | fi | |
9215 | WINDMC=$ac_cv_prog_WINDMC | |
9216 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9218 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9219 | else |
81ecdfbb RW |
9220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9221 | $as_echo "no" >&6; } | |
0c24b341 NC |
9222 | fi |
9223 | ||
81ecdfbb | 9224 | |
0c24b341 NC |
9225 | fi |
9226 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9227 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9228 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9230 | $as_echo_n "checking for $ac_word... " >&6; } | |
9231 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9232 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9233 | else |
9234 | if test -n "$WINDMC"; then | |
9235 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9236 | else | |
9237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9238 | for as_dir in $PATH | |
9239 | do | |
9240 | IFS=$as_save_IFS | |
9241 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9242 | for ac_exec_ext in '' $ac_executable_extensions; do |
9243 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9244 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9245 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9246 | break 2 |
9247 | fi | |
9248 | done | |
81ecdfbb RW |
9249 | done |
9250 | IFS=$as_save_IFS | |
0c24b341 NC |
9251 | |
9252 | fi | |
9253 | fi | |
9254 | WINDMC=$ac_cv_prog_WINDMC | |
9255 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9257 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9258 | else |
81ecdfbb RW |
9259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9260 | $as_echo "no" >&6; } | |
0c24b341 NC |
9261 | fi |
9262 | ||
81ecdfbb | 9263 | |
0c24b341 NC |
9264 | fi |
9265 | test -n "$ac_cv_prog_WINDMC" && break | |
9266 | done | |
9267 | ||
9268 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9269 | set dummy windmc | |
9270 | if test $build = $host ; then | |
9271 | WINDMC="$2" | |
9272 | else | |
9273 | WINDMC="${ncn_tool_prefix}$2" | |
9274 | fi | |
9275 | fi | |
9276 | ||
9277 | ||
9278 | ||
9a819804 AO |
9279 | if test -n "$OBJCOPY"; then |
9280 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9281 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9282 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9283 | fi | |
9284 | ||
9285 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9286 | for ncn_progname in objcopy; do | |
9287 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9288 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9290 | $as_echo_n "checking for $ac_word... " >&6; } | |
9291 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9292 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9293 | else |
9294 | if test -n "$OBJCOPY"; then | |
9295 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9296 | else | |
9297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9298 | for as_dir in $PATH | |
9299 | do | |
9300 | IFS=$as_save_IFS | |
9301 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9302 | for ac_exec_ext in '' $ac_executable_extensions; do |
9303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9304 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9306 | break 2 |
9307 | fi | |
9308 | done | |
81ecdfbb RW |
9309 | done |
9310 | IFS=$as_save_IFS | |
9a819804 AO |
9311 | |
9312 | fi | |
9313 | fi | |
9314 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9315 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9317 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9318 | else |
81ecdfbb RW |
9319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9320 | $as_echo "no" >&6; } | |
9a819804 AO |
9321 | fi |
9322 | ||
81ecdfbb | 9323 | |
9a819804 AO |
9324 | done |
9325 | fi | |
9326 | ||
9327 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9328 | if test -n "$ncn_tool_prefix"; then |
9329 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9330 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9332 | $as_echo_n "checking for $ac_word... " >&6; } | |
9333 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9334 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9335 | else |
9336 | if test -n "$OBJCOPY"; then | |
9337 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9338 | else | |
c6b750e1 DJ |
9339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9340 | for as_dir in $PATH | |
9341 | do | |
9342 | IFS=$as_save_IFS | |
9343 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9344 | for ac_exec_ext in '' $ac_executable_extensions; do |
9345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9346 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9348 | break 2 |
9349 | fi | |
9350 | done | |
81ecdfbb RW |
9351 | done |
9352 | IFS=$as_save_IFS | |
c6b750e1 | 9353 | |
859789af AC |
9354 | fi |
9355 | fi | |
c6b750e1 | 9356 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9357 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9359 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9360 | else |
81ecdfbb RW |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9362 | $as_echo "no" >&6; } | |
859789af AC |
9363 | fi |
9364 | ||
81ecdfbb | 9365 | |
05cbd757 PB |
9366 | fi |
9367 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9368 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9369 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9371 | $as_echo_n "checking for $ac_word... " >&6; } | |
9372 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9373 | $as_echo_n "(cached) " >&6 | |
859789af | 9374 | else |
05cbd757 PB |
9375 | if test -n "$OBJCOPY"; then |
9376 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9377 | else |
c6b750e1 DJ |
9378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9379 | for as_dir in $PATH | |
9380 | do | |
9381 | IFS=$as_save_IFS | |
9382 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9383 | for ac_exec_ext in '' $ac_executable_extensions; do |
9384 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9385 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9387 | break 2 |
9388 | fi | |
9389 | done | |
81ecdfbb RW |
9390 | done |
9391 | IFS=$as_save_IFS | |
c6b750e1 | 9392 | |
859789af AC |
9393 | fi |
9394 | fi | |
c6b750e1 | 9395 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9396 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9398 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9399 | else |
81ecdfbb RW |
9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9401 | $as_echo "no" >&6; } | |
859789af | 9402 | fi |
c6b750e1 | 9403 | |
81ecdfbb | 9404 | |
05cbd757 PB |
9405 | fi |
9406 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9407 | done | |
9408 | ||
9409 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9410 | set dummy objcopy | |
9411 | if test $build = $host ; then | |
9412 | OBJCOPY="$2" | |
859789af | 9413 | else |
05cbd757 | 9414 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9415 | fi |
859789af AC |
9416 | fi |
9417 | ||
9a819804 AO |
9418 | |
9419 | ||
9420 | if test -n "$OBJDUMP"; then | |
9421 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9422 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9423 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9424 | fi | |
9425 | ||
9426 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9427 | for ncn_progname in objdump; do | |
9428 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9429 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9431 | $as_echo_n "checking for $ac_word... " >&6; } | |
9432 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9433 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9434 | else |
9435 | if test -n "$OBJDUMP"; then | |
9436 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9437 | else | |
9438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9439 | for as_dir in $PATH | |
9440 | do | |
9441 | IFS=$as_save_IFS | |
9442 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9443 | for ac_exec_ext in '' $ac_executable_extensions; do |
9444 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9445 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9446 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9447 | break 2 |
9448 | fi | |
9449 | done | |
81ecdfbb RW |
9450 | done |
9451 | IFS=$as_save_IFS | |
9a819804 AO |
9452 | |
9453 | fi | |
9454 | fi | |
9455 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9456 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9458 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9459 | else |
81ecdfbb RW |
9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9461 | $as_echo "no" >&6; } | |
9a819804 AO |
9462 | fi |
9463 | ||
81ecdfbb | 9464 | |
9a819804 AO |
9465 | done |
9466 | fi | |
9467 | ||
9468 | for ncn_progname in objdump; do | |
05cbd757 PB |
9469 | if test -n "$ncn_tool_prefix"; then |
9470 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9471 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9473 | $as_echo_n "checking for $ac_word... " >&6; } | |
9474 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9475 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9476 | else |
9477 | if test -n "$OBJDUMP"; then | |
9478 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9479 | else | |
c6b750e1 DJ |
9480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9481 | for as_dir in $PATH | |
9482 | do | |
9483 | IFS=$as_save_IFS | |
9484 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9485 | for ac_exec_ext in '' $ac_executable_extensions; do |
9486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9487 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9489 | break 2 |
9490 | fi | |
9491 | done | |
81ecdfbb RW |
9492 | done |
9493 | IFS=$as_save_IFS | |
c6b750e1 | 9494 | |
859789af AC |
9495 | fi |
9496 | fi | |
c6b750e1 | 9497 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9498 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9500 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9501 | else |
81ecdfbb RW |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9503 | $as_echo "no" >&6; } | |
859789af AC |
9504 | fi |
9505 | ||
81ecdfbb | 9506 | |
05cbd757 PB |
9507 | fi |
9508 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9509 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9510 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9512 | $as_echo_n "checking for $ac_word... " >&6; } | |
9513 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9514 | $as_echo_n "(cached) " >&6 | |
859789af | 9515 | else |
05cbd757 PB |
9516 | if test -n "$OBJDUMP"; then |
9517 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9518 | else |
c6b750e1 DJ |
9519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9520 | for as_dir in $PATH | |
9521 | do | |
9522 | IFS=$as_save_IFS | |
9523 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9524 | for ac_exec_ext in '' $ac_executable_extensions; do |
9525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9526 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9527 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9528 | break 2 |
9529 | fi | |
9530 | done | |
81ecdfbb RW |
9531 | done |
9532 | IFS=$as_save_IFS | |
c6b750e1 | 9533 | |
859789af AC |
9534 | fi |
9535 | fi | |
c6b750e1 | 9536 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9537 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9539 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9540 | else |
81ecdfbb RW |
9541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9542 | $as_echo "no" >&6; } | |
859789af | 9543 | fi |
c6b750e1 | 9544 | |
81ecdfbb | 9545 | |
05cbd757 PB |
9546 | fi |
9547 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9548 | done | |
9549 | ||
9550 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9551 | set dummy objdump | |
9552 | if test $build = $host ; then | |
9553 | OBJDUMP="$2" | |
859789af | 9554 | else |
05cbd757 | 9555 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9556 | fi |
859789af AC |
9557 | fi |
9558 | ||
a0da8069 NN |
9559 | |
9560 | ||
9561 | ||
9562 | ||
9563 | ||
be01d343 | 9564 | # Target tools. |
c6b750e1 | 9565 | |
81ecdfbb RW |
9566 | # Check whether --with-build-time-tools was given. |
9567 | if test "${with_build_time_tools+set}" = set; then : | |
9568 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9569 | x/*) ;; |
9570 | *) | |
9571 | with_build_time_tools= | |
81ecdfbb RW |
9572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9573 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9574 | ;; |
9575 | esac | |
859789af | 9576 | else |
2429c060 | 9577 | with_build_time_tools= |
81ecdfbb RW |
9578 | fi |
9579 | ||
859789af | 9580 | |
9a819804 AO |
9581 | |
9582 | ||
9583 | if test -n "$CC_FOR_TARGET"; then | |
9584 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9585 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9586 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9587 | fi | |
9588 | ||
9589 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9590 | for ncn_progname in cc gcc; do | |
9591 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9592 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9594 | $as_echo_n "checking for $ac_word... " >&6; } | |
9595 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9596 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9597 | else |
9598 | if test -n "$CC_FOR_TARGET"; then | |
9599 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9600 | else | |
9601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9602 | for as_dir in $PATH | |
9603 | do | |
9604 | IFS=$as_save_IFS | |
9605 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9606 | for ac_exec_ext in '' $ac_executable_extensions; do |
9607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9608 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9609 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9610 | break 2 |
9611 | fi | |
9612 | done | |
81ecdfbb RW |
9613 | done |
9614 | IFS=$as_save_IFS | |
9a819804 AO |
9615 | |
9616 | fi | |
9617 | fi | |
9618 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9619 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9621 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9622 | else |
81ecdfbb RW |
9623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9624 | $as_echo "no" >&6; } | |
9a819804 AO |
9625 | fi |
9626 | ||
81ecdfbb | 9627 | |
9a819804 AO |
9628 | done |
9629 | fi | |
9630 | ||
9631 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9632 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9634 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9635 | if test -x $with_build_time_tools/${ncn_progname}; then |
9636 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9638 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9639 | break |
2429c060 | 9640 | else |
81ecdfbb RW |
9641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9642 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9643 | fi |
9644 | done | |
55db4b87 PB |
9645 | fi |
9646 | ||
2429c060 PB |
9647 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9648 | for ncn_progname in cc gcc; do | |
9649 | if test -n "$ncn_target_tool_prefix"; then | |
9650 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9651 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9653 | $as_echo_n "checking for $ac_word... " >&6; } | |
9654 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9655 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9656 | else |
9657 | if test -n "$CC_FOR_TARGET"; then | |
9658 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9659 | else | |
c6b750e1 DJ |
9660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9661 | for as_dir in $PATH | |
9662 | do | |
9663 | IFS=$as_save_IFS | |
9664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9665 | for ac_exec_ext in '' $ac_executable_extensions; do |
9666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9667 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9669 | break 2 |
9670 | fi | |
9671 | done | |
81ecdfbb RW |
9672 | done |
9673 | IFS=$as_save_IFS | |
c6b750e1 | 9674 | |
55db4b87 PB |
9675 | fi |
9676 | fi | |
c6b750e1 | 9677 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9678 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9680 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9681 | else |
81ecdfbb RW |
9682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9683 | $as_echo "no" >&6; } | |
55db4b87 PB |
9684 | fi |
9685 | ||
81ecdfbb | 9686 | |
2429c060 PB |
9687 | fi |
9688 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9689 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9690 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9692 | $as_echo_n "checking for $ac_word... " >&6; } | |
9693 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9694 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9695 | else |
05cbd757 PB |
9696 | if test -n "$CC_FOR_TARGET"; then |
9697 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9698 | else |
c6b750e1 DJ |
9699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9700 | for as_dir in $PATH | |
9701 | do | |
9702 | IFS=$as_save_IFS | |
9703 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9704 | for ac_exec_ext in '' $ac_executable_extensions; do |
9705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9706 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9708 | break 2 |
9709 | fi | |
9710 | done | |
81ecdfbb RW |
9711 | done |
9712 | IFS=$as_save_IFS | |
c6b750e1 | 9713 | |
55db4b87 PB |
9714 | fi |
9715 | fi | |
c6b750e1 | 9716 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 9717 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9719 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9720 | else |
81ecdfbb RW |
9721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9722 | $as_echo "no" >&6; } | |
55db4b87 | 9723 | fi |
c6b750e1 | 9724 | |
81ecdfbb | 9725 | |
2429c060 PB |
9726 | fi |
9727 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9728 | done | |
9729 | fi | |
c6b750e1 | 9730 | |
05cbd757 PB |
9731 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9732 | set dummy cc gcc | |
9733 | if test $build = $target ; then | |
9734 | CC_FOR_TARGET="$2" | |
55db4b87 | 9735 | else |
05cbd757 | 9736 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9737 | fi |
d3f5afc4 MS |
9738 | else |
9739 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
9740 | fi |
9741 | ||
9a819804 AO |
9742 | |
9743 | ||
9744 | if test -n "$CXX_FOR_TARGET"; then | |
9745 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9746 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9747 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9748 | fi | |
9749 | ||
9750 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9751 | for ncn_progname in c++ g++ cxx gxx; do | |
9752 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9753 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9755 | $as_echo_n "checking for $ac_word... " >&6; } | |
9756 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9757 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9758 | else |
9759 | if test -n "$CXX_FOR_TARGET"; then | |
9760 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9761 | else | |
9762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9763 | for as_dir in $PATH | |
9764 | do | |
9765 | IFS=$as_save_IFS | |
9766 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9767 | for ac_exec_ext in '' $ac_executable_extensions; do |
9768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9769 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9771 | break 2 |
9772 | fi | |
9773 | done | |
81ecdfbb RW |
9774 | done |
9775 | IFS=$as_save_IFS | |
9a819804 AO |
9776 | |
9777 | fi | |
9778 | fi | |
9779 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9780 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
9781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9782 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 9783 | else |
81ecdfbb RW |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9785 | $as_echo "no" >&6; } | |
9a819804 AO |
9786 | fi |
9787 | ||
81ecdfbb | 9788 | |
9a819804 AO |
9789 | done |
9790 | fi | |
9791 | ||
9792 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9793 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
9794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9795 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9796 | if test -x $with_build_time_tools/${ncn_progname}; then |
9797 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9799 | $as_echo "yes" >&6; } | |
2429c060 PB |
9800 | break |
9801 | else | |
81ecdfbb RW |
9802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9803 | $as_echo "no" >&6; } | |
2429c060 PB |
9804 | fi |
9805 | done | |
9806 | fi | |
9807 | ||
9808 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9809 | for ncn_progname in c++ g++ cxx gxx; do | |
9810 | if test -n "$ncn_target_tool_prefix"; then | |
9811 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9812 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9814 | $as_echo_n "checking for $ac_word... " >&6; } | |
9815 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9816 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9817 | else |
9818 | if test -n "$CXX_FOR_TARGET"; then | |
9819 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9820 | else | |
c6b750e1 DJ |
9821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9822 | for as_dir in $PATH | |
9823 | do | |
9824 | IFS=$as_save_IFS | |
9825 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9826 | for ac_exec_ext in '' $ac_executable_extensions; do |
9827 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9828 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9830 | break 2 |
9831 | fi | |
9832 | done | |
81ecdfbb RW |
9833 | done |
9834 | IFS=$as_save_IFS | |
c6b750e1 | 9835 | |
55db4b87 PB |
9836 | fi |
9837 | fi | |
c6b750e1 | 9838 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 9839 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9841 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9842 | else |
81ecdfbb RW |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9844 | $as_echo "no" >&6; } | |
55db4b87 PB |
9845 | fi |
9846 | ||
81ecdfbb | 9847 | |
2429c060 PB |
9848 | fi |
9849 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
9850 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9851 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9853 | $as_echo_n "checking for $ac_word... " >&6; } | |
9854 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9855 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9856 | else |
05cbd757 PB |
9857 | if test -n "$CXX_FOR_TARGET"; then |
9858 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9859 | else |
c6b750e1 DJ |
9860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9861 | for as_dir in $PATH | |
9862 | do | |
9863 | IFS=$as_save_IFS | |
9864 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9865 | for ac_exec_ext in '' $ac_executable_extensions; do |
9866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9867 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9869 | break 2 |
9870 | fi | |
9871 | done | |
81ecdfbb RW |
9872 | done |
9873 | IFS=$as_save_IFS | |
c6b750e1 | 9874 | |
55db4b87 PB |
9875 | fi |
9876 | fi | |
c6b750e1 | 9877 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 9878 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
9879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9880 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 9881 | else |
81ecdfbb RW |
9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9883 | $as_echo "no" >&6; } | |
55db4b87 | 9884 | fi |
c6b750e1 | 9885 | |
81ecdfbb | 9886 | |
2429c060 PB |
9887 | fi |
9888 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
9889 | done | |
9890 | fi | |
c6b750e1 | 9891 | |
05cbd757 PB |
9892 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
9893 | set dummy c++ g++ cxx gxx | |
9894 | if test $build = $target ; then | |
9895 | CXX_FOR_TARGET="$2" | |
55db4b87 | 9896 | else |
05cbd757 | 9897 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9898 | fi |
d3f5afc4 MS |
9899 | else |
9900 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
9901 | fi |
9902 | ||
9a819804 AO |
9903 | |
9904 | ||
9905 | if test -n "$GCC_FOR_TARGET"; then | |
9906 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
9907 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9908 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9909 | fi | |
9910 | ||
9911 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9912 | for ncn_progname in gcc; do | |
9913 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9914 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9916 | $as_echo_n "checking for $ac_word... " >&6; } | |
9917 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9918 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9919 | else |
9920 | if test -n "$GCC_FOR_TARGET"; then | |
9921 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
9922 | else | |
9923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9924 | for as_dir in $PATH | |
9925 | do | |
9926 | IFS=$as_save_IFS | |
9927 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9928 | for ac_exec_ext in '' $ac_executable_extensions; do |
9929 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9930 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9932 | break 2 |
9933 | fi | |
9934 | done | |
81ecdfbb RW |
9935 | done |
9936 | IFS=$as_save_IFS | |
9a819804 AO |
9937 | |
9938 | fi | |
9939 | fi | |
9940 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
9941 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
9942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
9943 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 9944 | else |
81ecdfbb RW |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9946 | $as_echo "no" >&6; } | |
9a819804 AO |
9947 | fi |
9948 | ||
81ecdfbb | 9949 | |
9a819804 AO |
9950 | done |
9951 | fi | |
9952 | ||
9953 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9954 | for ncn_progname in gcc; do |
81ecdfbb RW |
9955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9956 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9957 | if test -x $with_build_time_tools/${ncn_progname}; then |
9958 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9960 | $as_echo "yes" >&6; } | |
2429c060 PB |
9961 | break |
9962 | else | |
81ecdfbb RW |
9963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9964 | $as_echo "no" >&6; } | |
2429c060 PB |
9965 | fi |
9966 | done | |
9967 | fi | |
9968 | ||
9969 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
9970 | for ncn_progname in gcc; do | |
9971 | if test -n "$ncn_target_tool_prefix"; then | |
9972 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9973 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9975 | $as_echo_n "checking for $ac_word... " >&6; } | |
9976 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
9977 | $as_echo_n "(cached) " >&6 | |
859789af | 9978 | else |
2429c060 PB |
9979 | if test -n "$GCC_FOR_TARGET"; then |
9980 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9981 | else |
c6b750e1 DJ |
9982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9983 | for as_dir in $PATH | |
9984 | do | |
9985 | IFS=$as_save_IFS | |
9986 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9987 | for ac_exec_ext in '' $ac_executable_extensions; do |
9988 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9989 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9990 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9991 | break 2 |
9992 | fi | |
9993 | done | |
81ecdfbb RW |
9994 | done |
9995 | IFS=$as_save_IFS | |
c6b750e1 | 9996 | |
55db4b87 PB |
9997 | fi |
9998 | fi | |
c6b750e1 | 9999 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10000 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10002 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10003 | else |
81ecdfbb RW |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10005 | $as_echo "no" >&6; } | |
55db4b87 PB |
10006 | fi |
10007 | ||
81ecdfbb | 10008 | |
2429c060 PB |
10009 | fi |
10010 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10011 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10012 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10014 | $as_echo_n "checking for $ac_word... " >&6; } | |
10015 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10016 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10017 | else |
05cbd757 PB |
10018 | if test -n "$GCC_FOR_TARGET"; then |
10019 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10020 | else |
c6b750e1 DJ |
10021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10022 | for as_dir in $PATH | |
10023 | do | |
10024 | IFS=$as_save_IFS | |
10025 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10026 | for ac_exec_ext in '' $ac_executable_extensions; do |
10027 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10028 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10029 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10030 | break 2 |
10031 | fi | |
10032 | done | |
81ecdfbb RW |
10033 | done |
10034 | IFS=$as_save_IFS | |
c6b750e1 | 10035 | |
55db4b87 PB |
10036 | fi |
10037 | fi | |
c6b750e1 | 10038 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10039 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10041 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10042 | else |
81ecdfbb RW |
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10044 | $as_echo "no" >&6; } | |
55db4b87 | 10045 | fi |
c6b750e1 | 10046 | |
81ecdfbb | 10047 | |
2429c060 PB |
10048 | fi |
10049 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10050 | done | |
10051 | fi | |
c6b750e1 | 10052 | |
05cbd757 PB |
10053 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10054 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10055 | else |
10056 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10057 | fi |
10058 | ||
9a819804 AO |
10059 | |
10060 | ||
10061 | if test -n "$GCJ_FOR_TARGET"; then | |
10062 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10063 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10064 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10065 | fi | |
10066 | ||
10067 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10068 | for ncn_progname in gcj; do | |
10069 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10070 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10072 | $as_echo_n "checking for $ac_word... " >&6; } | |
10073 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10074 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10075 | else |
10076 | if test -n "$GCJ_FOR_TARGET"; then | |
10077 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10078 | else | |
10079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10080 | for as_dir in $PATH | |
10081 | do | |
10082 | IFS=$as_save_IFS | |
10083 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10084 | for ac_exec_ext in '' $ac_executable_extensions; do |
10085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10086 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10088 | break 2 |
10089 | fi | |
10090 | done | |
81ecdfbb RW |
10091 | done |
10092 | IFS=$as_save_IFS | |
9a819804 AO |
10093 | |
10094 | fi | |
10095 | fi | |
10096 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10097 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10099 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10100 | else |
81ecdfbb RW |
10101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10102 | $as_echo "no" >&6; } | |
9a819804 AO |
10103 | fi |
10104 | ||
81ecdfbb | 10105 | |
9a819804 AO |
10106 | done |
10107 | fi | |
10108 | ||
10109 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10110 | for ncn_progname in gcj; do |
81ecdfbb RW |
10111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10112 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10113 | if test -x $with_build_time_tools/${ncn_progname}; then |
10114 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10116 | $as_echo "yes" >&6; } | |
2429c060 PB |
10117 | break |
10118 | else | |
81ecdfbb RW |
10119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10120 | $as_echo "no" >&6; } | |
2429c060 PB |
10121 | fi |
10122 | done | |
10123 | fi | |
10124 | ||
10125 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10126 | for ncn_progname in gcj; do | |
10127 | if test -n "$ncn_target_tool_prefix"; then | |
10128 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10129 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10131 | $as_echo_n "checking for $ac_word... " >&6; } | |
10132 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10133 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10134 | else |
10135 | if test -n "$GCJ_FOR_TARGET"; then | |
10136 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10137 | else | |
c6b750e1 DJ |
10138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10139 | for as_dir in $PATH | |
10140 | do | |
10141 | IFS=$as_save_IFS | |
10142 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10143 | for ac_exec_ext in '' $ac_executable_extensions; do |
10144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10145 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10146 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10147 | break 2 |
10148 | fi | |
10149 | done | |
81ecdfbb RW |
10150 | done |
10151 | IFS=$as_save_IFS | |
c6b750e1 | 10152 | |
55db4b87 PB |
10153 | fi |
10154 | fi | |
9a819804 AO |
10155 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10156 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10158 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10159 | else |
81ecdfbb RW |
10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10161 | $as_echo "no" >&6; } | |
9a819804 AO |
10162 | fi |
10163 | ||
81ecdfbb | 10164 | |
9a819804 AO |
10165 | fi |
10166 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10167 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10168 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10170 | $as_echo_n "checking for $ac_word... " >&6; } | |
10171 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10172 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10173 | else |
10174 | if test -n "$GCJ_FOR_TARGET"; then | |
10175 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10176 | else | |
10177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10178 | for as_dir in $PATH | |
10179 | do | |
10180 | IFS=$as_save_IFS | |
10181 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10182 | for ac_exec_ext in '' $ac_executable_extensions; do |
10183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10184 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10185 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10186 | break 2 |
10187 | fi | |
10188 | done | |
81ecdfbb RW |
10189 | done |
10190 | IFS=$as_save_IFS | |
9a819804 AO |
10191 | |
10192 | fi | |
10193 | fi | |
10194 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10195 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10197 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10198 | else |
81ecdfbb RW |
10199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10200 | $as_echo "no" >&6; } | |
9a819804 AO |
10201 | fi |
10202 | ||
81ecdfbb | 10203 | |
9a819804 AO |
10204 | fi |
10205 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10206 | done | |
10207 | fi | |
10208 | ||
10209 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10210 | set dummy gcj | |
10211 | if test $build = $target ; then | |
10212 | GCJ_FOR_TARGET="$2" | |
10213 | else | |
10214 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10215 | fi | |
d3f5afc4 MS |
10216 | else |
10217 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10218 | fi |
10219 | ||
10220 | ||
10221 | ||
10222 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10223 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10224 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10225 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10226 | fi |
10227 | ||
9a819804 AO |
10228 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10229 | for ncn_progname in gfortran; do | |
10230 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10231 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10233 | $as_echo_n "checking for $ac_word... " >&6; } | |
10234 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10235 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10236 | else |
9a819804 AO |
10237 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10238 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10239 | else |
c6b750e1 DJ |
10240 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10241 | for as_dir in $PATH | |
10242 | do | |
10243 | IFS=$as_save_IFS | |
10244 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10245 | for ac_exec_ext in '' $ac_executable_extensions; do |
10246 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10247 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10248 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10249 | break 2 |
10250 | fi | |
10251 | done | |
81ecdfbb RW |
10252 | done |
10253 | IFS=$as_save_IFS | |
c6b750e1 | 10254 | |
55db4b87 PB |
10255 | fi |
10256 | fi | |
9a819804 AO |
10257 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10258 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10260 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10261 | else |
81ecdfbb RW |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10263 | $as_echo "no" >&6; } | |
55db4b87 | 10264 | fi |
c6b750e1 | 10265 | |
81ecdfbb | 10266 | |
2429c060 PB |
10267 | done |
10268 | fi | |
c6b750e1 | 10269 | |
9a819804 | 10270 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10271 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10273 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10274 | if test -x $with_build_time_tools/${ncn_progname}; then |
10275 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10277 | $as_echo "yes" >&6; } | |
2429c060 PB |
10278 | break |
10279 | else | |
81ecdfbb RW |
10280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10281 | $as_echo "no" >&6; } | |
2429c060 PB |
10282 | fi |
10283 | done | |
10284 | fi | |
10285 | ||
10286 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10287 | for ncn_progname in gfortran; do | |
10288 | if test -n "$ncn_target_tool_prefix"; then | |
10289 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10290 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10292 | $as_echo_n "checking for $ac_word... " >&6; } | |
10293 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10294 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10295 | else |
10296 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10297 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10298 | else | |
c6b750e1 DJ |
10299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10300 | for as_dir in $PATH | |
10301 | do | |
10302 | IFS=$as_save_IFS | |
10303 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10304 | for ac_exec_ext in '' $ac_executable_extensions; do |
10305 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10306 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10307 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10308 | break 2 |
10309 | fi | |
10310 | done | |
81ecdfbb RW |
10311 | done |
10312 | IFS=$as_save_IFS | |
c6b750e1 | 10313 | |
55db4b87 PB |
10314 | fi |
10315 | fi | |
c6b750e1 | 10316 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10317 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10319 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10320 | else |
81ecdfbb RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10322 | $as_echo "no" >&6; } | |
55db4b87 PB |
10323 | fi |
10324 | ||
81ecdfbb | 10325 | |
2429c060 PB |
10326 | fi |
10327 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10328 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10329 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10331 | $as_echo_n "checking for $ac_word... " >&6; } | |
10332 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10333 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10334 | else |
05cbd757 | 10335 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10336 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10337 | else | |
10338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10339 | for as_dir in $PATH | |
10340 | do | |
10341 | IFS=$as_save_IFS | |
10342 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10343 | for ac_exec_ext in '' $ac_executable_extensions; do |
10344 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10345 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10347 | break 2 |
10348 | fi | |
10349 | done | |
81ecdfbb RW |
10350 | done |
10351 | IFS=$as_save_IFS | |
c6b750e1 | 10352 | |
55db4b87 PB |
10353 | fi |
10354 | fi | |
c6b750e1 | 10355 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10356 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10358 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10359 | else |
81ecdfbb RW |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10361 | $as_echo "no" >&6; } | |
55db4b87 | 10362 | fi |
c6b750e1 | 10363 | |
81ecdfbb | 10364 | |
2429c060 PB |
10365 | fi |
10366 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10367 | done | |
10368 | fi | |
c6b750e1 | 10369 | |
05cbd757 PB |
10370 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10371 | set dummy gfortran | |
10372 | if test $build = $target ; then | |
10373 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10374 | else |
05cbd757 | 10375 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10376 | fi |
d3f5afc4 MS |
10377 | else |
10378 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10379 | fi |
10380 | ||
2429c060 PB |
10381 | |
10382 | ||
e552509b ILT |
10383 | if test -n "$GOC_FOR_TARGET"; then |
10384 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10385 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10386 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10387 | fi | |
10388 | ||
10389 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10390 | for ncn_progname in gccgo; do | |
10391 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10392 | set dummy ${ncn_progname}; ac_word=$2 | |
10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10394 | $as_echo_n "checking for $ac_word... " >&6; } | |
10395 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10396 | $as_echo_n "(cached) " >&6 | |
10397 | else | |
10398 | if test -n "$GOC_FOR_TARGET"; then | |
10399 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10400 | else | |
10401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10402 | for as_dir in $PATH | |
10403 | do | |
10404 | IFS=$as_save_IFS | |
10405 | test -z "$as_dir" && as_dir=. | |
10406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10407 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10408 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10409 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10410 | break 2 | |
10411 | fi | |
10412 | done | |
10413 | done | |
10414 | IFS=$as_save_IFS | |
10415 | ||
10416 | fi | |
10417 | fi | |
10418 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10419 | if test -n "$GOC_FOR_TARGET"; then | |
10420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10421 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10422 | else | |
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10424 | $as_echo "no" >&6; } | |
10425 | fi | |
10426 | ||
10427 | ||
10428 | done | |
10429 | fi | |
10430 | ||
10431 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10432 | for ncn_progname in gccgo; do | |
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10434 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10435 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10436 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10438 | $as_echo "yes" >&6; } | |
10439 | break | |
10440 | else | |
10441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10442 | $as_echo "no" >&6; } | |
10443 | fi | |
10444 | done | |
10445 | fi | |
10446 | ||
10447 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10448 | for ncn_progname in gccgo; do | |
10449 | if test -n "$ncn_target_tool_prefix"; then | |
10450 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10451 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10453 | $as_echo_n "checking for $ac_word... " >&6; } | |
10454 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10455 | $as_echo_n "(cached) " >&6 | |
10456 | else | |
10457 | if test -n "$GOC_FOR_TARGET"; then | |
10458 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10459 | else | |
10460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10461 | for as_dir in $PATH | |
10462 | do | |
10463 | IFS=$as_save_IFS | |
10464 | test -z "$as_dir" && as_dir=. | |
10465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10466 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10467 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10468 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10469 | break 2 | |
10470 | fi | |
10471 | done | |
10472 | done | |
10473 | IFS=$as_save_IFS | |
10474 | ||
10475 | fi | |
10476 | fi | |
10477 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10478 | if test -n "$GOC_FOR_TARGET"; then | |
10479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10480 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10481 | else | |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10483 | $as_echo "no" >&6; } | |
10484 | fi | |
10485 | ||
10486 | ||
10487 | fi | |
10488 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10489 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10490 | set dummy ${ncn_progname}; ac_word=$2 | |
10491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10492 | $as_echo_n "checking for $ac_word... " >&6; } | |
10493 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10494 | $as_echo_n "(cached) " >&6 | |
10495 | else | |
10496 | if test -n "$GOC_FOR_TARGET"; then | |
10497 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10498 | else | |
10499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10500 | for as_dir in $PATH | |
10501 | do | |
10502 | IFS=$as_save_IFS | |
10503 | test -z "$as_dir" && as_dir=. | |
10504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10505 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10506 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10507 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10508 | break 2 | |
10509 | fi | |
10510 | done | |
10511 | done | |
10512 | IFS=$as_save_IFS | |
10513 | ||
10514 | fi | |
10515 | fi | |
10516 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10517 | if test -n "$GOC_FOR_TARGET"; then | |
10518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10519 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10520 | else | |
10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10522 | $as_echo "no" >&6; } | |
10523 | fi | |
10524 | ||
10525 | ||
10526 | fi | |
10527 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10528 | done | |
10529 | fi | |
10530 | ||
10531 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10532 | set dummy gccgo | |
10533 | if test $build = $target ; then | |
10534 | GOC_FOR_TARGET="$2" | |
10535 | else | |
10536 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10537 | fi | |
10538 | else | |
10539 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10540 | fi | |
10541 | ||
10542 | ||
10543 | ||
2429c060 PB |
10544 | cat > conftest.c << \EOF |
10545 | #ifdef __GNUC__ | |
10546 | gcc_yay; | |
10547 | #endif | |
10548 | EOF | |
10549 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10550 | have_gcc_for_target=yes | |
859789af | 10551 | else |
2429c060 PB |
10552 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10553 | have_gcc_for_target=no | |
859789af | 10554 | fi |
2429c060 PB |
10555 | rm conftest.c |
10556 | ||
10557 | ||
10558 | ||
859789af | 10559 | |
2429c060 PB |
10560 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10561 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10563 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10564 | if test -x $with_build_time_tools/ar; then |
10565 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10566 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10568 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10569 | else |
81ecdfbb RW |
10570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10571 | $as_echo "no" >&6; } | |
3a35eeb3 | 10572 | fi |
2429c060 PB |
10573 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10574 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10575 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10576 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10577 | fi |
2429c060 | 10578 | fi |
c6b750e1 | 10579 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10580 | # Extract the first word of "ar", so it can be a program name with args. |
10581 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10583 | $as_echo_n "checking for $ac_word... " >&6; } | |
10584 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10585 | $as_echo_n "(cached) " >&6 | |
859789af | 10586 | else |
c6b750e1 DJ |
10587 | case $AR_FOR_TARGET in |
10588 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10589 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10590 | ;; | |
2429c060 | 10591 | *) |
c6b750e1 DJ |
10592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10593 | for as_dir in $gcc_cv_tool_dirs | |
10594 | do | |
10595 | IFS=$as_save_IFS | |
10596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10597 | for ac_exec_ext in '' $ac_executable_extensions; do |
10598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10599 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10601 | break 2 |
10602 | fi | |
10603 | done | |
81ecdfbb RW |
10604 | done |
10605 | IFS=$as_save_IFS | |
c6b750e1 | 10606 | |
2429c060 PB |
10607 | ;; |
10608 | esac | |
859789af | 10609 | fi |
c6b750e1 | 10610 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10611 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10613 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10614 | else |
81ecdfbb RW |
10615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10616 | $as_echo "no" >&6; } | |
859789af | 10617 | fi |
05cbd757 | 10618 | |
81ecdfbb | 10619 | |
2429c060 PB |
10620 | fi |
10621 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10622 | |
10623 | ||
10624 | if test -n "$AR_FOR_TARGET"; then | |
10625 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10626 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10627 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10628 | fi | |
10629 | ||
10630 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10631 | for ncn_progname in ar; do | |
10632 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10633 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10635 | $as_echo_n "checking for $ac_word... " >&6; } | |
10636 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10637 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10638 | else |
10639 | if test -n "$AR_FOR_TARGET"; then | |
10640 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10641 | else | |
10642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10643 | for as_dir in $PATH | |
10644 | do | |
10645 | IFS=$as_save_IFS | |
10646 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10647 | for ac_exec_ext in '' $ac_executable_extensions; do |
10648 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10649 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10650 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10651 | break 2 |
10652 | fi | |
10653 | done | |
81ecdfbb RW |
10654 | done |
10655 | IFS=$as_save_IFS | |
9a819804 AO |
10656 | |
10657 | fi | |
10658 | fi | |
10659 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
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; } | |
9a819804 | 10663 | else |
81ecdfbb RW |
10664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10665 | $as_echo "no" >&6; } | |
9a819804 AO |
10666 | fi |
10667 | ||
81ecdfbb | 10668 | |
9a819804 AO |
10669 | done |
10670 | fi | |
10671 | ||
10672 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10673 | for ncn_progname in ar; do |
81ecdfbb RW |
10674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10675 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10676 | if test -x $with_build_time_tools/${ncn_progname}; then |
10677 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10679 | $as_echo "yes" >&6; } | |
2429c060 PB |
10680 | break |
10681 | else | |
81ecdfbb RW |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10683 | $as_echo "no" >&6; } | |
2429c060 PB |
10684 | fi |
10685 | done | |
859789af AC |
10686 | fi |
10687 | ||
2429c060 PB |
10688 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10689 | for ncn_progname in ar; do | |
10690 | if test -n "$ncn_target_tool_prefix"; then | |
10691 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10692 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10694 | $as_echo_n "checking for $ac_word... " >&6; } | |
10695 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10696 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10697 | else |
2429c060 PB |
10698 | if test -n "$AR_FOR_TARGET"; then |
10699 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10700 | else |
c6b750e1 DJ |
10701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10702 | for as_dir in $PATH | |
10703 | do | |
10704 | IFS=$as_save_IFS | |
10705 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10706 | for ac_exec_ext in '' $ac_executable_extensions; do |
10707 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10708 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10709 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10710 | break 2 |
10711 | fi | |
10712 | done | |
81ecdfbb RW |
10713 | done |
10714 | IFS=$as_save_IFS | |
c6b750e1 | 10715 | |
7e0f7140 GK |
10716 | fi |
10717 | fi | |
c6b750e1 | 10718 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10719 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10721 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10722 | else |
81ecdfbb RW |
10723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10724 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10725 | fi |
10726 | ||
81ecdfbb | 10727 | |
2429c060 PB |
10728 | fi |
10729 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10730 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10731 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10733 | $as_echo_n "checking for $ac_word... " >&6; } | |
10734 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10735 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10736 | else |
2429c060 PB |
10737 | if test -n "$AR_FOR_TARGET"; then |
10738 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 10739 | else |
c6b750e1 DJ |
10740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10741 | for as_dir in $PATH | |
10742 | do | |
10743 | IFS=$as_save_IFS | |
10744 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10745 | for ac_exec_ext in '' $ac_executable_extensions; do |
10746 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10747 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10748 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10749 | break 2 |
10750 | fi | |
10751 | done | |
81ecdfbb RW |
10752 | done |
10753 | IFS=$as_save_IFS | |
c6b750e1 | 10754 | |
7e0f7140 GK |
10755 | fi |
10756 | fi | |
c6b750e1 | 10757 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10758 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10760 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10761 | else |
81ecdfbb RW |
10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10763 | $as_echo "no" >&6; } | |
7e0f7140 | 10764 | fi |
c6b750e1 | 10765 | |
81ecdfbb | 10766 | |
2429c060 PB |
10767 | fi |
10768 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10769 | done | |
10770 | fi | |
c6b750e1 | 10771 | |
2429c060 PB |
10772 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10773 | set dummy ar | |
7e0f7140 | 10774 | if test $build = $target ; then |
2429c060 | 10775 | AR_FOR_TARGET="$2" |
7e0f7140 | 10776 | else |
2429c060 | 10777 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10778 | fi |
d3f5afc4 MS |
10779 | else |
10780 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10781 | fi |
10782 | ||
3a35eeb3 PB |
10783 | else |
10784 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10785 | fi |
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10791 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10793 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10794 | if test -x $with_build_time_tools/as; then |
10795 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10796 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10798 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10799 | else |
81ecdfbb RW |
10800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10801 | $as_echo "no" >&6; } | |
3a35eeb3 | 10802 | fi |
2429c060 PB |
10803 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10804 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10805 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10806 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10807 | fi |
10808 | fi | |
c6b750e1 | 10809 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10810 | # Extract the first word of "as", so it can be a program name with args. |
10811 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
10812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10813 | $as_echo_n "checking for $ac_word... " >&6; } | |
10814 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
10815 | $as_echo_n "(cached) " >&6 | |
2429c060 | 10816 | else |
c6b750e1 DJ |
10817 | case $AS_FOR_TARGET in |
10818 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10819 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
10820 | ;; | |
2429c060 | 10821 | *) |
c6b750e1 DJ |
10822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10823 | for as_dir in $gcc_cv_tool_dirs | |
10824 | do | |
10825 | IFS=$as_save_IFS | |
10826 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10827 | for ac_exec_ext in '' $ac_executable_extensions; do |
10828 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10829 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10831 | break 2 |
10832 | fi | |
10833 | done | |
81ecdfbb RW |
10834 | done |
10835 | IFS=$as_save_IFS | |
c6b750e1 | 10836 | |
2429c060 PB |
10837 | ;; |
10838 | esac | |
10839 | fi | |
c6b750e1 | 10840 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 10841 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10843 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10844 | else |
81ecdfbb RW |
10845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10846 | $as_echo "no" >&6; } | |
2429c060 PB |
10847 | fi |
10848 | ||
81ecdfbb | 10849 | |
2429c060 PB |
10850 | fi |
10851 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
10852 | |
10853 | ||
10854 | if test -n "$AS_FOR_TARGET"; then | |
10855 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
10856 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10857 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
10858 | fi | |
10859 | ||
10860 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
10861 | for ncn_progname in as; do | |
10862 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10863 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10865 | $as_echo_n "checking for $ac_word... " >&6; } | |
10866 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10867 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10868 | else |
10869 | if test -n "$AS_FOR_TARGET"; then | |
10870 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10871 | else | |
10872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10873 | for as_dir in $PATH | |
10874 | do | |
10875 | IFS=$as_save_IFS | |
10876 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10877 | for ac_exec_ext in '' $ac_executable_extensions; do |
10878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10879 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10881 | break 2 |
10882 | fi | |
10883 | done | |
81ecdfbb RW |
10884 | done |
10885 | IFS=$as_save_IFS | |
9a819804 AO |
10886 | |
10887 | fi | |
10888 | fi | |
10889 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
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; } | |
9a819804 | 10893 | else |
81ecdfbb RW |
10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10895 | $as_echo "no" >&6; } | |
9a819804 AO |
10896 | fi |
10897 | ||
81ecdfbb | 10898 | |
9a819804 AO |
10899 | done |
10900 | fi | |
10901 | ||
10902 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10903 | for ncn_progname in as; do |
81ecdfbb RW |
10904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10905 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10906 | if test -x $with_build_time_tools/${ncn_progname}; then |
10907 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10909 | $as_echo "yes" >&6; } | |
2429c060 PB |
10910 | break |
10911 | else | |
81ecdfbb RW |
10912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10913 | $as_echo "no" >&6; } | |
2429c060 PB |
10914 | fi |
10915 | done | |
10916 | fi | |
10917 | ||
10918 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
10919 | for ncn_progname in as; do | |
10920 | if test -n "$ncn_target_tool_prefix"; then | |
10921 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10922 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10924 | $as_echo_n "checking for $ac_word... " >&6; } | |
10925 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10926 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10927 | else |
10928 | if test -n "$AS_FOR_TARGET"; then | |
10929 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10930 | else | |
c6b750e1 DJ |
10931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10932 | for as_dir in $PATH | |
10933 | do | |
10934 | IFS=$as_save_IFS | |
10935 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10936 | for ac_exec_ext in '' $ac_executable_extensions; do |
10937 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10938 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10939 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10940 | break 2 |
10941 | fi | |
10942 | done | |
81ecdfbb RW |
10943 | done |
10944 | IFS=$as_save_IFS | |
c6b750e1 | 10945 | |
2429c060 PB |
10946 | fi |
10947 | fi | |
c6b750e1 | 10948 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 10949 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10951 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10952 | else |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10954 | $as_echo "no" >&6; } | |
2429c060 PB |
10955 | fi |
10956 | ||
81ecdfbb | 10957 | |
2429c060 PB |
10958 | fi |
10959 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
10960 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10961 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10963 | $as_echo_n "checking for $ac_word... " >&6; } | |
10964 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
10965 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
10966 | else |
10967 | if test -n "$AS_FOR_TARGET"; then | |
10968 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
10969 | else | |
c6b750e1 DJ |
10970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10971 | for as_dir in $PATH | |
10972 | do | |
10973 | IFS=$as_save_IFS | |
10974 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10975 | for ac_exec_ext in '' $ac_executable_extensions; do |
10976 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10977 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10979 | break 2 |
10980 | fi | |
10981 | done | |
81ecdfbb RW |
10982 | done |
10983 | IFS=$as_save_IFS | |
c6b750e1 | 10984 | |
2429c060 PB |
10985 | fi |
10986 | fi | |
c6b750e1 | 10987 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 10988 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
10990 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 10991 | else |
81ecdfbb RW |
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10993 | $as_echo "no" >&6; } | |
2429c060 | 10994 | fi |
c6b750e1 | 10995 | |
81ecdfbb | 10996 | |
2429c060 PB |
10997 | fi |
10998 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
10999 | done | |
11000 | fi | |
c6b750e1 | 11001 | |
2429c060 PB |
11002 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11003 | set dummy as | |
11004 | if test $build = $target ; then | |
11005 | AS_FOR_TARGET="$2" | |
11006 | else | |
11007 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11008 | fi | |
d3f5afc4 MS |
11009 | else |
11010 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11011 | fi |
11012 | ||
3a35eeb3 PB |
11013 | else |
11014 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11015 | fi |
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11021 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11023 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11024 | if test -x $with_build_time_tools/dlltool; then |
11025 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11026 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11028 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11029 | else |
81ecdfbb RW |
11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11031 | $as_echo "no" >&6; } | |
3a35eeb3 | 11032 | fi |
2429c060 PB |
11033 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11034 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11035 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11036 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11037 | fi |
11038 | fi | |
c6b750e1 | 11039 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11040 | # Extract the first word of "dlltool", so it can be a program name with args. |
11041 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11043 | $as_echo_n "checking for $ac_word... " >&6; } | |
11044 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11045 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11046 | else |
c6b750e1 DJ |
11047 | case $DLLTOOL_FOR_TARGET in |
11048 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11049 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11050 | ;; | |
2429c060 | 11051 | *) |
c6b750e1 DJ |
11052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11053 | for as_dir in $gcc_cv_tool_dirs | |
11054 | do | |
11055 | IFS=$as_save_IFS | |
11056 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11057 | for ac_exec_ext in '' $ac_executable_extensions; do |
11058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11059 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11061 | break 2 |
11062 | fi | |
11063 | done | |
81ecdfbb RW |
11064 | done |
11065 | IFS=$as_save_IFS | |
c6b750e1 | 11066 | |
2429c060 PB |
11067 | ;; |
11068 | esac | |
11069 | fi | |
c6b750e1 | 11070 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11071 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11073 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11074 | else |
81ecdfbb RW |
11075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11076 | $as_echo "no" >&6; } | |
2429c060 PB |
11077 | fi |
11078 | ||
81ecdfbb | 11079 | |
2429c060 PB |
11080 | fi |
11081 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11082 | |
11083 | ||
11084 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11085 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11086 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11087 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11088 | fi | |
11089 | ||
11090 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11091 | for ncn_progname in dlltool; do | |
11092 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11093 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11095 | $as_echo_n "checking for $ac_word... " >&6; } | |
11096 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11097 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11098 | else |
11099 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11100 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11101 | else | |
11102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11103 | for as_dir in $PATH | |
11104 | do | |
11105 | IFS=$as_save_IFS | |
11106 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11107 | for ac_exec_ext in '' $ac_executable_extensions; do |
11108 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11109 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11110 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11111 | break 2 |
11112 | fi | |
11113 | done | |
81ecdfbb RW |
11114 | done |
11115 | IFS=$as_save_IFS | |
9a819804 AO |
11116 | |
11117 | fi | |
11118 | fi | |
11119 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
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; } | |
9a819804 | 11123 | else |
81ecdfbb RW |
11124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11125 | $as_echo "no" >&6; } | |
9a819804 AO |
11126 | fi |
11127 | ||
81ecdfbb | 11128 | |
9a819804 AO |
11129 | done |
11130 | fi | |
11131 | ||
11132 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11133 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11135 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11136 | if test -x $with_build_time_tools/${ncn_progname}; then |
11137 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11139 | $as_echo "yes" >&6; } | |
2429c060 PB |
11140 | break |
11141 | else | |
81ecdfbb RW |
11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11143 | $as_echo "no" >&6; } | |
2429c060 PB |
11144 | fi |
11145 | done | |
11146 | fi | |
11147 | ||
11148 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11149 | for ncn_progname in dlltool; do | |
11150 | if test -n "$ncn_target_tool_prefix"; then | |
11151 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11152 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11154 | $as_echo_n "checking for $ac_word... " >&6; } | |
11155 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11156 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11157 | else |
11158 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11159 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11160 | else | |
c6b750e1 DJ |
11161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11162 | for as_dir in $PATH | |
11163 | do | |
11164 | IFS=$as_save_IFS | |
11165 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11166 | for ac_exec_ext in '' $ac_executable_extensions; do |
11167 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11168 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11170 | break 2 |
11171 | fi | |
11172 | done | |
81ecdfbb RW |
11173 | done |
11174 | IFS=$as_save_IFS | |
c6b750e1 | 11175 | |
2429c060 PB |
11176 | fi |
11177 | fi | |
c6b750e1 | 11178 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11179 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11181 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11182 | else |
81ecdfbb RW |
11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11184 | $as_echo "no" >&6; } | |
2429c060 PB |
11185 | fi |
11186 | ||
81ecdfbb | 11187 | |
2429c060 PB |
11188 | fi |
11189 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11190 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11191 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11193 | $as_echo_n "checking for $ac_word... " >&6; } | |
11194 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11195 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11196 | else |
11197 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11198 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11199 | else | |
c6b750e1 DJ |
11200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11201 | for as_dir in $PATH | |
11202 | do | |
11203 | IFS=$as_save_IFS | |
11204 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11205 | for ac_exec_ext in '' $ac_executable_extensions; do |
11206 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11207 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11209 | break 2 |
11210 | fi | |
11211 | done | |
81ecdfbb RW |
11212 | done |
11213 | IFS=$as_save_IFS | |
c6b750e1 | 11214 | |
2429c060 PB |
11215 | fi |
11216 | fi | |
c6b750e1 | 11217 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11218 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11220 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11221 | else |
81ecdfbb RW |
11222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11223 | $as_echo "no" >&6; } | |
2429c060 | 11224 | fi |
c6b750e1 | 11225 | |
81ecdfbb | 11226 | |
2429c060 PB |
11227 | fi |
11228 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11229 | done | |
11230 | fi | |
c6b750e1 | 11231 | |
2429c060 PB |
11232 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11233 | set dummy dlltool | |
11234 | if test $build = $target ; then | |
11235 | DLLTOOL_FOR_TARGET="$2" | |
11236 | else | |
11237 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11238 | fi | |
d3f5afc4 MS |
11239 | else |
11240 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11241 | fi |
11242 | ||
3a35eeb3 PB |
11243 | else |
11244 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11245 | fi |
11246 | ||
11247 | ||
11248 | ||
11249 | ||
11250 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11251 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11253 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11254 | if test -x $with_build_time_tools/ld; then |
11255 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11256 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11258 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11259 | else |
81ecdfbb RW |
11260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11261 | $as_echo "no" >&6; } | |
3a35eeb3 | 11262 | fi |
2429c060 PB |
11263 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11264 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11265 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11266 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11267 | fi |
11268 | fi | |
c6b750e1 | 11269 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11270 | # Extract the first word of "ld", so it can be a program name with args. |
11271 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11273 | $as_echo_n "checking for $ac_word... " >&6; } | |
11274 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11275 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11276 | else |
c6b750e1 DJ |
11277 | case $LD_FOR_TARGET in |
11278 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11279 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11280 | ;; | |
2429c060 | 11281 | *) |
c6b750e1 DJ |
11282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11283 | for as_dir in $gcc_cv_tool_dirs | |
11284 | do | |
11285 | IFS=$as_save_IFS | |
11286 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11287 | for ac_exec_ext in '' $ac_executable_extensions; do |
11288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11289 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11290 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11291 | break 2 |
11292 | fi | |
11293 | done | |
81ecdfbb RW |
11294 | done |
11295 | IFS=$as_save_IFS | |
c6b750e1 | 11296 | |
2429c060 PB |
11297 | ;; |
11298 | esac | |
11299 | fi | |
c6b750e1 | 11300 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11301 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11303 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11304 | else |
81ecdfbb RW |
11305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11306 | $as_echo "no" >&6; } | |
2429c060 PB |
11307 | fi |
11308 | ||
81ecdfbb | 11309 | |
2429c060 PB |
11310 | fi |
11311 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11312 | |
11313 | ||
11314 | if test -n "$LD_FOR_TARGET"; then | |
11315 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11316 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11317 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11318 | fi | |
11319 | ||
11320 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11321 | for ncn_progname in ld; do | |
11322 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11323 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11325 | $as_echo_n "checking for $ac_word... " >&6; } | |
11326 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11327 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11328 | else |
11329 | if test -n "$LD_FOR_TARGET"; then | |
11330 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11331 | else | |
11332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11333 | for as_dir in $PATH | |
11334 | do | |
11335 | IFS=$as_save_IFS | |
11336 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11337 | for ac_exec_ext in '' $ac_executable_extensions; do |
11338 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11339 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11341 | break 2 |
11342 | fi | |
11343 | done | |
81ecdfbb RW |
11344 | done |
11345 | IFS=$as_save_IFS | |
9a819804 AO |
11346 | |
11347 | fi | |
11348 | fi | |
11349 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
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; } | |
9a819804 | 11353 | else |
81ecdfbb RW |
11354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11355 | $as_echo "no" >&6; } | |
9a819804 AO |
11356 | fi |
11357 | ||
81ecdfbb | 11358 | |
9a819804 AO |
11359 | done |
11360 | fi | |
11361 | ||
11362 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11363 | for ncn_progname in ld; do |
81ecdfbb RW |
11364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11365 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11366 | if test -x $with_build_time_tools/${ncn_progname}; then |
11367 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11369 | $as_echo "yes" >&6; } | |
2429c060 PB |
11370 | break |
11371 | else | |
81ecdfbb RW |
11372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11373 | $as_echo "no" >&6; } | |
2429c060 PB |
11374 | fi |
11375 | done | |
11376 | fi | |
11377 | ||
11378 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11379 | for ncn_progname in ld; do | |
11380 | if test -n "$ncn_target_tool_prefix"; then | |
11381 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11382 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11384 | $as_echo_n "checking for $ac_word... " >&6; } | |
11385 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11386 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11387 | else |
11388 | if test -n "$LD_FOR_TARGET"; then | |
11389 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11390 | else | |
c6b750e1 DJ |
11391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11392 | for as_dir in $PATH | |
11393 | do | |
11394 | IFS=$as_save_IFS | |
11395 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11396 | for ac_exec_ext in '' $ac_executable_extensions; do |
11397 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11398 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11399 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11400 | break 2 |
11401 | fi | |
11402 | done | |
81ecdfbb RW |
11403 | done |
11404 | IFS=$as_save_IFS | |
c6b750e1 | 11405 | |
2429c060 PB |
11406 | fi |
11407 | fi | |
c6b750e1 | 11408 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11409 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11411 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11412 | else |
81ecdfbb RW |
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11414 | $as_echo "no" >&6; } | |
2429c060 PB |
11415 | fi |
11416 | ||
81ecdfbb | 11417 | |
2429c060 PB |
11418 | fi |
11419 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11420 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11421 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11423 | $as_echo_n "checking for $ac_word... " >&6; } | |
11424 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11425 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11426 | else |
11427 | if test -n "$LD_FOR_TARGET"; then | |
11428 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11429 | else | |
c6b750e1 DJ |
11430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11431 | for as_dir in $PATH | |
11432 | do | |
11433 | IFS=$as_save_IFS | |
11434 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11435 | for ac_exec_ext in '' $ac_executable_extensions; do |
11436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11437 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11439 | break 2 |
11440 | fi | |
11441 | done | |
81ecdfbb RW |
11442 | done |
11443 | IFS=$as_save_IFS | |
c6b750e1 | 11444 | |
2429c060 PB |
11445 | fi |
11446 | fi | |
c6b750e1 | 11447 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11448 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11450 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11451 | else |
81ecdfbb RW |
11452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11453 | $as_echo "no" >&6; } | |
2429c060 | 11454 | fi |
c6b750e1 | 11455 | |
81ecdfbb | 11456 | |
2429c060 PB |
11457 | fi |
11458 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11459 | done | |
11460 | fi | |
c6b750e1 | 11461 | |
2429c060 PB |
11462 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11463 | set dummy ld | |
11464 | if test $build = $target ; then | |
11465 | LD_FOR_TARGET="$2" | |
11466 | else | |
11467 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11468 | fi | |
d3f5afc4 MS |
11469 | else |
11470 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11471 | fi |
11472 | ||
3a35eeb3 PB |
11473 | else |
11474 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11475 | fi |
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11481 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11483 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11484 | if test -x $with_build_time_tools/lipo; then |
11485 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11486 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11488 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11489 | else |
81ecdfbb RW |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11491 | $as_echo "no" >&6; } | |
3a35eeb3 | 11492 | fi |
2429c060 PB |
11493 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11494 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11495 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11496 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11497 | fi |
11498 | fi | |
9a819804 AO |
11499 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11500 | # Extract the first word of "lipo", so it can be a program name with args. | |
11501 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11503 | $as_echo_n "checking for $ac_word... " >&6; } | |
11504 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11505 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11506 | else |
11507 | case $LIPO_FOR_TARGET in | |
11508 | [\\/]* | ?:[\\/]*) | |
11509 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11510 | ;; | |
11511 | *) | |
11512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11513 | for as_dir in $gcc_cv_tool_dirs | |
11514 | do | |
11515 | IFS=$as_save_IFS | |
11516 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11517 | for ac_exec_ext in '' $ac_executable_extensions; do |
11518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11519 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11521 | break 2 |
11522 | fi | |
11523 | done | |
81ecdfbb RW |
11524 | done |
11525 | IFS=$as_save_IFS | |
9a819804 AO |
11526 | |
11527 | ;; | |
11528 | esac | |
11529 | fi | |
11530 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11531 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11533 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11534 | else |
81ecdfbb RW |
11535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11536 | $as_echo "no" >&6; } | |
9a819804 AO |
11537 | fi |
11538 | ||
81ecdfbb | 11539 | |
9a819804 AO |
11540 | fi |
11541 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11542 | ||
11543 | ||
11544 | if test -n "$LIPO_FOR_TARGET"; then | |
11545 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11546 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11547 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11548 | fi | |
11549 | ||
11550 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11551 | for ncn_progname in lipo; do | |
11552 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11553 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11555 | $as_echo_n "checking for $ac_word... " >&6; } | |
11556 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11557 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11558 | else |
9a819804 AO |
11559 | if test -n "$LIPO_FOR_TARGET"; then |
11560 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11561 | else | |
11562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11563 | for as_dir in $PATH | |
c6b750e1 DJ |
11564 | do |
11565 | IFS=$as_save_IFS | |
11566 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11567 | for ac_exec_ext in '' $ac_executable_extensions; do |
11568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11569 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11571 | break 2 |
11572 | fi | |
11573 | done | |
81ecdfbb RW |
11574 | done |
11575 | IFS=$as_save_IFS | |
c6b750e1 | 11576 | |
2429c060 | 11577 | fi |
9a819804 AO |
11578 | fi |
11579 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 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; } | |
2429c060 | 11583 | else |
81ecdfbb RW |
11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11585 | $as_echo "no" >&6; } | |
2429c060 PB |
11586 | fi |
11587 | ||
81ecdfbb | 11588 | |
9a819804 | 11589 | done |
2429c060 | 11590 | fi |
9a819804 AO |
11591 | |
11592 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11593 | for ncn_progname in lipo; do |
81ecdfbb RW |
11594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11595 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11596 | if test -x $with_build_time_tools/${ncn_progname}; then |
11597 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11599 | $as_echo "yes" >&6; } | |
2429c060 PB |
11600 | break |
11601 | else | |
81ecdfbb RW |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11603 | $as_echo "no" >&6; } | |
2429c060 PB |
11604 | fi |
11605 | done | |
11606 | fi | |
11607 | ||
11608 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11609 | for ncn_progname in lipo; do | |
11610 | if test -n "$ncn_target_tool_prefix"; then | |
11611 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11612 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11614 | $as_echo_n "checking for $ac_word... " >&6; } | |
11615 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11616 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11617 | else |
11618 | if test -n "$LIPO_FOR_TARGET"; then | |
11619 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11620 | else | |
c6b750e1 DJ |
11621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11622 | for as_dir in $PATH | |
11623 | do | |
11624 | IFS=$as_save_IFS | |
11625 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11626 | for ac_exec_ext in '' $ac_executable_extensions; do |
11627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11628 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11630 | break 2 |
11631 | fi | |
11632 | done | |
81ecdfbb RW |
11633 | done |
11634 | IFS=$as_save_IFS | |
c6b750e1 | 11635 | |
2429c060 PB |
11636 | fi |
11637 | fi | |
c6b750e1 | 11638 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11639 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11641 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11642 | else |
81ecdfbb RW |
11643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11644 | $as_echo "no" >&6; } | |
2429c060 PB |
11645 | fi |
11646 | ||
81ecdfbb | 11647 | |
2429c060 PB |
11648 | fi |
11649 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11650 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11651 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11653 | $as_echo_n "checking for $ac_word... " >&6; } | |
11654 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11655 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11656 | else |
11657 | if test -n "$LIPO_FOR_TARGET"; then | |
11658 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11659 | else | |
c6b750e1 DJ |
11660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11661 | for as_dir in $PATH | |
11662 | do | |
11663 | IFS=$as_save_IFS | |
11664 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11665 | for ac_exec_ext in '' $ac_executable_extensions; do |
11666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11667 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11668 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11669 | break 2 |
11670 | fi | |
11671 | done | |
81ecdfbb RW |
11672 | done |
11673 | IFS=$as_save_IFS | |
c6b750e1 | 11674 | |
2429c060 PB |
11675 | fi |
11676 | fi | |
c6b750e1 | 11677 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11678 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11680 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11681 | else |
81ecdfbb RW |
11682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11683 | $as_echo "no" >&6; } | |
2429c060 | 11684 | fi |
c6b750e1 | 11685 | |
81ecdfbb | 11686 | |
2429c060 PB |
11687 | fi |
11688 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11689 | done | |
11690 | fi | |
c6b750e1 | 11691 | |
2429c060 PB |
11692 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11693 | set dummy lipo | |
11694 | if test $build = $target ; then | |
11695 | LIPO_FOR_TARGET="$2" | |
11696 | else | |
11697 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11698 | fi | |
d3f5afc4 MS |
11699 | else |
11700 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11701 | fi |
11702 | ||
3a35eeb3 PB |
11703 | else |
11704 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11705 | fi |
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11711 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11713 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11714 | if test -x $with_build_time_tools/nm; then |
11715 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11716 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11718 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11719 | else |
81ecdfbb RW |
11720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11721 | $as_echo "no" >&6; } | |
3a35eeb3 | 11722 | fi |
2429c060 PB |
11723 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11724 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11725 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11726 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11727 | fi |
11728 | fi | |
c6b750e1 | 11729 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11730 | # Extract the first word of "nm", so it can be a program name with args. |
11731 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11733 | $as_echo_n "checking for $ac_word... " >&6; } | |
11734 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11735 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11736 | else |
c6b750e1 DJ |
11737 | case $NM_FOR_TARGET in |
11738 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11739 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11740 | ;; | |
2429c060 | 11741 | *) |
c6b750e1 DJ |
11742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11743 | for as_dir in $gcc_cv_tool_dirs | |
11744 | do | |
11745 | IFS=$as_save_IFS | |
11746 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11747 | for ac_exec_ext in '' $ac_executable_extensions; do |
11748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11749 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11751 | break 2 |
11752 | fi | |
11753 | done | |
81ecdfbb RW |
11754 | done |
11755 | IFS=$as_save_IFS | |
c6b750e1 | 11756 | |
2429c060 PB |
11757 | ;; |
11758 | esac | |
11759 | fi | |
c6b750e1 | 11760 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11761 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11763 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11764 | else |
81ecdfbb RW |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11766 | $as_echo "no" >&6; } | |
2429c060 PB |
11767 | fi |
11768 | ||
81ecdfbb | 11769 | |
2429c060 PB |
11770 | fi |
11771 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11772 | |
11773 | ||
11774 | if test -n "$NM_FOR_TARGET"; then | |
11775 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11776 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11777 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11778 | fi | |
11779 | ||
11780 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11781 | for ncn_progname in nm; do | |
11782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11783 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11785 | $as_echo_n "checking for $ac_word... " >&6; } | |
11786 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11787 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11788 | else |
11789 | if test -n "$NM_FOR_TARGET"; then | |
11790 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11791 | else | |
11792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11793 | for as_dir in $PATH | |
11794 | do | |
11795 | IFS=$as_save_IFS | |
11796 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11797 | for ac_exec_ext in '' $ac_executable_extensions; do |
11798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11799 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11801 | break 2 |
11802 | fi | |
11803 | done | |
81ecdfbb RW |
11804 | done |
11805 | IFS=$as_save_IFS | |
9a819804 AO |
11806 | |
11807 | fi | |
11808 | fi | |
11809 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
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; } | |
9a819804 | 11813 | else |
81ecdfbb RW |
11814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11815 | $as_echo "no" >&6; } | |
9a819804 AO |
11816 | fi |
11817 | ||
81ecdfbb | 11818 | |
9a819804 AO |
11819 | done |
11820 | fi | |
11821 | ||
11822 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11823 | for ncn_progname in nm; do |
81ecdfbb RW |
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11825 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11826 | if test -x $with_build_time_tools/${ncn_progname}; then |
11827 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11829 | $as_echo "yes" >&6; } | |
2429c060 PB |
11830 | break |
11831 | else | |
81ecdfbb RW |
11832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11833 | $as_echo "no" >&6; } | |
2429c060 PB |
11834 | fi |
11835 | done | |
11836 | fi | |
11837 | ||
11838 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
11839 | for ncn_progname in nm; do | |
11840 | if test -n "$ncn_target_tool_prefix"; then | |
11841 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11842 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11844 | $as_echo_n "checking for $ac_word... " >&6; } | |
11845 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11846 | $as_echo_n "(cached) " >&6 | |
859789af | 11847 | else |
55db4b87 PB |
11848 | if test -n "$NM_FOR_TARGET"; then |
11849 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11850 | else |
c6b750e1 DJ |
11851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11852 | for as_dir in $PATH | |
11853 | do | |
11854 | IFS=$as_save_IFS | |
11855 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11856 | for ac_exec_ext in '' $ac_executable_extensions; do |
11857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11858 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11860 | break 2 |
11861 | fi | |
11862 | done | |
81ecdfbb RW |
11863 | done |
11864 | IFS=$as_save_IFS | |
c6b750e1 | 11865 | |
859789af AC |
11866 | fi |
11867 | fi | |
c6b750e1 | 11868 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 11869 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11871 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11872 | else |
81ecdfbb RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11874 | $as_echo "no" >&6; } | |
859789af AC |
11875 | fi |
11876 | ||
81ecdfbb | 11877 | |
2429c060 PB |
11878 | fi |
11879 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
11880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11881 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11883 | $as_echo_n "checking for $ac_word... " >&6; } | |
11884 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11885 | $as_echo_n "(cached) " >&6 | |
859789af | 11886 | else |
05cbd757 PB |
11887 | if test -n "$NM_FOR_TARGET"; then |
11888 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 11889 | else |
c6b750e1 DJ |
11890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11891 | for as_dir in $PATH | |
11892 | do | |
11893 | IFS=$as_save_IFS | |
11894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11895 | for ac_exec_ext in '' $ac_executable_extensions; do |
11896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11897 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11899 | break 2 |
11900 | fi | |
11901 | done | |
81ecdfbb RW |
11902 | done |
11903 | IFS=$as_save_IFS | |
c6b750e1 | 11904 | |
859789af AC |
11905 | fi |
11906 | fi | |
c6b750e1 | 11907 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 11908 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11910 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 11911 | else |
81ecdfbb RW |
11912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11913 | $as_echo "no" >&6; } | |
859789af | 11914 | fi |
c6b750e1 | 11915 | |
81ecdfbb | 11916 | |
2429c060 PB |
11917 | fi |
11918 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
11919 | done | |
11920 | fi | |
c6b750e1 | 11921 | |
05cbd757 PB |
11922 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
11923 | set dummy nm | |
11924 | if test $build = $target ; then | |
11925 | NM_FOR_TARGET="$2" | |
859789af | 11926 | else |
05cbd757 | 11927 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 11928 | fi |
d3f5afc4 MS |
11929 | else |
11930 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
11931 | fi |
11932 | ||
3a35eeb3 PB |
11933 | else |
11934 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
11935 | fi |
11936 | ||
11937 | ||
11938 | ||
11939 | ||
11940 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
11941 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
11943 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11944 | if test -x $with_build_time_tools/objdump; then |
11945 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
11946 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
11948 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 11949 | else |
81ecdfbb RW |
11950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11951 | $as_echo "no" >&6; } | |
3a35eeb3 | 11952 | fi |
2429c060 PB |
11953 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11954 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
11955 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
11956 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
11957 | fi |
11958 | fi | |
c6b750e1 | 11959 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11960 | # Extract the first word of "objdump", so it can be a program name with args. |
11961 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
11962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11963 | $as_echo_n "checking for $ac_word... " >&6; } | |
11964 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
11965 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11966 | else |
c6b750e1 DJ |
11967 | case $OBJDUMP_FOR_TARGET in |
11968 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11969 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
11970 | ;; | |
2429c060 | 11971 | *) |
c6b750e1 DJ |
11972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11973 | for as_dir in $gcc_cv_tool_dirs | |
11974 | do | |
11975 | IFS=$as_save_IFS | |
11976 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11977 | for ac_exec_ext in '' $ac_executable_extensions; do |
11978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11979 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11981 | break 2 |
11982 | fi | |
11983 | done | |
81ecdfbb RW |
11984 | done |
11985 | IFS=$as_save_IFS | |
c6b750e1 | 11986 | |
2429c060 PB |
11987 | ;; |
11988 | esac | |
11989 | fi | |
c6b750e1 | 11990 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 11991 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
11993 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 11994 | else |
81ecdfbb RW |
11995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11996 | $as_echo "no" >&6; } | |
2429c060 PB |
11997 | fi |
11998 | ||
81ecdfbb | 11999 | |
2429c060 PB |
12000 | fi |
12001 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12002 | |
12003 | ||
12004 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12005 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12006 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12007 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12008 | fi | |
12009 | ||
12010 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12011 | for ncn_progname in objdump; do | |
12012 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12013 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12015 | $as_echo_n "checking for $ac_word... " >&6; } | |
12016 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12017 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12018 | else |
12019 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12020 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12021 | else | |
12022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12023 | for as_dir in $PATH | |
12024 | do | |
12025 | IFS=$as_save_IFS | |
12026 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12027 | for ac_exec_ext in '' $ac_executable_extensions; do |
12028 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12029 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12031 | break 2 |
12032 | fi | |
12033 | done | |
81ecdfbb RW |
12034 | done |
12035 | IFS=$as_save_IFS | |
9a819804 AO |
12036 | |
12037 | fi | |
12038 | fi | |
12039 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
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; } | |
9a819804 | 12043 | else |
81ecdfbb RW |
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12045 | $as_echo "no" >&6; } | |
9a819804 AO |
12046 | fi |
12047 | ||
81ecdfbb | 12048 | |
9a819804 AO |
12049 | done |
12050 | fi | |
12051 | ||
12052 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12053 | for ncn_progname in objdump; do |
81ecdfbb RW |
12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12055 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12056 | if test -x $with_build_time_tools/${ncn_progname}; then |
12057 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12059 | $as_echo "yes" >&6; } | |
2429c060 PB |
12060 | break |
12061 | else | |
81ecdfbb RW |
12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12063 | $as_echo "no" >&6; } | |
2429c060 PB |
12064 | fi |
12065 | done | |
12066 | fi | |
12067 | ||
12068 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12069 | for ncn_progname in objdump; do | |
12070 | if test -n "$ncn_target_tool_prefix"; then | |
12071 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12072 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12074 | $as_echo_n "checking for $ac_word... " >&6; } | |
12075 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12076 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12077 | else |
12078 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12079 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12080 | else | |
c6b750e1 DJ |
12081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12082 | for as_dir in $PATH | |
12083 | do | |
12084 | IFS=$as_save_IFS | |
12085 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12086 | for ac_exec_ext in '' $ac_executable_extensions; do |
12087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12088 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12089 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12090 | break 2 |
12091 | fi | |
12092 | done | |
81ecdfbb RW |
12093 | done |
12094 | IFS=$as_save_IFS | |
c6b750e1 | 12095 | |
5ae72758 DJ |
12096 | fi |
12097 | fi | |
c6b750e1 | 12098 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12099 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12101 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12102 | else |
81ecdfbb RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12104 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12105 | fi |
12106 | ||
81ecdfbb | 12107 | |
2429c060 PB |
12108 | fi |
12109 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12110 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12111 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12113 | $as_echo_n "checking for $ac_word... " >&6; } | |
12114 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12115 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12116 | else |
12117 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12118 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12119 | else | |
c6b750e1 DJ |
12120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12121 | for as_dir in $PATH | |
12122 | do | |
12123 | IFS=$as_save_IFS | |
12124 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12125 | for ac_exec_ext in '' $ac_executable_extensions; do |
12126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12127 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12129 | break 2 |
12130 | fi | |
12131 | done | |
81ecdfbb RW |
12132 | done |
12133 | IFS=$as_save_IFS | |
c6b750e1 | 12134 | |
5ae72758 DJ |
12135 | fi |
12136 | fi | |
c6b750e1 | 12137 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12138 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12140 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12141 | else |
81ecdfbb RW |
12142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12143 | $as_echo "no" >&6; } | |
5ae72758 | 12144 | fi |
c6b750e1 | 12145 | |
81ecdfbb | 12146 | |
2429c060 PB |
12147 | fi |
12148 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12149 | done | |
12150 | fi | |
c6b750e1 | 12151 | |
5ae72758 DJ |
12152 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12153 | set dummy objdump | |
12154 | if test $build = $target ; then | |
12155 | OBJDUMP_FOR_TARGET="$2" | |
12156 | else | |
12157 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12158 | fi | |
d3f5afc4 MS |
12159 | else |
12160 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12161 | fi |
12162 | ||
3a35eeb3 PB |
12163 | else |
12164 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12165 | fi |
12166 | ||
12167 | ||
12168 | ||
12169 | ||
12170 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12171 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12173 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12174 | if test -x $with_build_time_tools/ranlib; then |
12175 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12176 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12178 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12179 | else |
81ecdfbb RW |
12180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12181 | $as_echo "no" >&6; } | |
3a35eeb3 | 12182 | fi |
2429c060 PB |
12183 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12184 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12185 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12186 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12187 | fi |
12188 | fi | |
c6b750e1 | 12189 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12190 | # Extract the first word of "ranlib", so it can be a program name with args. |
12191 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12193 | $as_echo_n "checking for $ac_word... " >&6; } | |
12194 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12195 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12196 | else |
c6b750e1 DJ |
12197 | case $RANLIB_FOR_TARGET in |
12198 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12199 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12200 | ;; | |
2429c060 | 12201 | *) |
c6b750e1 DJ |
12202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12203 | for as_dir in $gcc_cv_tool_dirs | |
12204 | do | |
12205 | IFS=$as_save_IFS | |
12206 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12207 | for ac_exec_ext in '' $ac_executable_extensions; do |
12208 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12209 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12211 | break 2 |
12212 | fi | |
12213 | done | |
81ecdfbb RW |
12214 | done |
12215 | IFS=$as_save_IFS | |
c6b750e1 | 12216 | |
2429c060 PB |
12217 | ;; |
12218 | esac | |
12219 | fi | |
c6b750e1 | 12220 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12221 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12223 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12224 | else |
81ecdfbb RW |
12225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12226 | $as_echo "no" >&6; } | |
2429c060 PB |
12227 | fi |
12228 | ||
81ecdfbb | 12229 | |
2429c060 PB |
12230 | fi |
12231 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12232 | |
12233 | ||
12234 | if test -n "$RANLIB_FOR_TARGET"; then | |
12235 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12236 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12237 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12238 | fi | |
12239 | ||
12240 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12241 | for ncn_progname in ranlib; do | |
12242 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12243 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12245 | $as_echo_n "checking for $ac_word... " >&6; } | |
12246 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12247 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12248 | else |
12249 | if test -n "$RANLIB_FOR_TARGET"; then | |
12250 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12251 | else | |
12252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12253 | for as_dir in $PATH | |
12254 | do | |
12255 | IFS=$as_save_IFS | |
12256 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12257 | for ac_exec_ext in '' $ac_executable_extensions; do |
12258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12259 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12261 | break 2 |
12262 | fi | |
12263 | done | |
81ecdfbb RW |
12264 | done |
12265 | IFS=$as_save_IFS | |
9a819804 AO |
12266 | |
12267 | fi | |
12268 | fi | |
12269 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
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; } | |
9a819804 | 12273 | else |
81ecdfbb RW |
12274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12275 | $as_echo "no" >&6; } | |
9a819804 AO |
12276 | fi |
12277 | ||
81ecdfbb | 12278 | |
9a819804 AO |
12279 | done |
12280 | fi | |
12281 | ||
12282 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12283 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12285 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12286 | if test -x $with_build_time_tools/${ncn_progname}; then |
12287 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12289 | $as_echo "yes" >&6; } | |
2429c060 PB |
12290 | break |
12291 | else | |
81ecdfbb RW |
12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12293 | $as_echo "no" >&6; } | |
2429c060 PB |
12294 | fi |
12295 | done | |
12296 | fi | |
12297 | ||
12298 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12299 | for ncn_progname in ranlib; do | |
12300 | if test -n "$ncn_target_tool_prefix"; then | |
12301 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12302 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12304 | $as_echo_n "checking for $ac_word... " >&6; } | |
12305 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12306 | $as_echo_n "(cached) " >&6 | |
859789af | 12307 | else |
55db4b87 PB |
12308 | if test -n "$RANLIB_FOR_TARGET"; then |
12309 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12310 | else |
c6b750e1 DJ |
12311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12312 | for as_dir in $PATH | |
12313 | do | |
12314 | IFS=$as_save_IFS | |
12315 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12316 | for ac_exec_ext in '' $ac_executable_extensions; do |
12317 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12318 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12319 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12320 | break 2 |
12321 | fi | |
12322 | done | |
81ecdfbb RW |
12323 | done |
12324 | IFS=$as_save_IFS | |
c6b750e1 | 12325 | |
859789af AC |
12326 | fi |
12327 | fi | |
c6b750e1 | 12328 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12329 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12331 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12332 | else |
81ecdfbb RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12334 | $as_echo "no" >&6; } | |
859789af AC |
12335 | fi |
12336 | ||
81ecdfbb | 12337 | |
2429c060 PB |
12338 | fi |
12339 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12340 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12341 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12343 | $as_echo_n "checking for $ac_word... " >&6; } | |
12344 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12345 | $as_echo_n "(cached) " >&6 | |
859789af | 12346 | else |
05cbd757 PB |
12347 | if test -n "$RANLIB_FOR_TARGET"; then |
12348 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12349 | else |
c6b750e1 DJ |
12350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12351 | for as_dir in $PATH | |
12352 | do | |
12353 | IFS=$as_save_IFS | |
12354 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12355 | for ac_exec_ext in '' $ac_executable_extensions; do |
12356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12357 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12359 | break 2 |
12360 | fi | |
12361 | done | |
81ecdfbb RW |
12362 | done |
12363 | IFS=$as_save_IFS | |
c6b750e1 | 12364 | |
859789af AC |
12365 | fi |
12366 | fi | |
c6b750e1 | 12367 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12368 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12370 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12371 | else |
81ecdfbb RW |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12373 | $as_echo "no" >&6; } | |
859789af | 12374 | fi |
c6b750e1 | 12375 | |
81ecdfbb | 12376 | |
2429c060 PB |
12377 | fi |
12378 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12379 | done | |
12380 | fi | |
c6b750e1 | 12381 | |
2429c060 PB |
12382 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12383 | set dummy ranlib | |
12384 | if test $build = $target ; then | |
12385 | RANLIB_FOR_TARGET="$2" | |
12386 | else | |
12387 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12388 | fi |
d3f5afc4 MS |
12389 | else |
12390 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12391 | fi |
05cbd757 | 12392 | |
3a35eeb3 PB |
12393 | else |
12394 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12395 | fi |
12396 | ||
2429c060 PB |
12397 | |
12398 | ||
12399 | ||
12400 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12401 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12403 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12404 | if test -x $with_build_time_tools/strip; then |
12405 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12406 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12408 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12409 | else |
81ecdfbb RW |
12410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12411 | $as_echo "no" >&6; } | |
3a35eeb3 | 12412 | fi |
2429c060 PB |
12413 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12414 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12415 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12416 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
12417 | fi |
12418 | fi | |
c6b750e1 | 12419 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12420 | # Extract the first word of "strip", so it can be a program name with args. |
12421 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12423 | $as_echo_n "checking for $ac_word... " >&6; } | |
12424 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12425 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12426 | else |
c6b750e1 DJ |
12427 | case $STRIP_FOR_TARGET in |
12428 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12429 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12430 | ;; | |
2429c060 | 12431 | *) |
c6b750e1 DJ |
12432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12433 | for as_dir in $gcc_cv_tool_dirs | |
12434 | do | |
12435 | IFS=$as_save_IFS | |
12436 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12437 | for ac_exec_ext in '' $ac_executable_extensions; do |
12438 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12439 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12440 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12441 | break 2 |
12442 | fi | |
12443 | done | |
81ecdfbb RW |
12444 | done |
12445 | IFS=$as_save_IFS | |
c6b750e1 | 12446 | |
2429c060 PB |
12447 | ;; |
12448 | esac | |
12449 | fi | |
c6b750e1 | 12450 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 12451 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12453 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 12454 | else |
81ecdfbb RW |
12455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12456 | $as_echo "no" >&6; } | |
2429c060 PB |
12457 | fi |
12458 | ||
81ecdfbb | 12459 | |
2429c060 PB |
12460 | fi |
12461 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
12462 | |
12463 | ||
12464 | if test -n "$STRIP_FOR_TARGET"; then | |
12465 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12466 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12467 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12468 | fi | |
12469 | ||
12470 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12471 | for ncn_progname in strip; do | |
12472 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12473 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12475 | $as_echo_n "checking for $ac_word... " >&6; } | |
12476 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12477 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12478 | else |
12479 | if test -n "$STRIP_FOR_TARGET"; then | |
12480 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12481 | else | |
12482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12483 | for as_dir in $PATH | |
12484 | do | |
12485 | IFS=$as_save_IFS | |
12486 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12487 | for ac_exec_ext in '' $ac_executable_extensions; do |
12488 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12489 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12490 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12491 | break 2 |
12492 | fi | |
12493 | done | |
81ecdfbb RW |
12494 | done |
12495 | IFS=$as_save_IFS | |
9a819804 AO |
12496 | |
12497 | fi | |
12498 | fi | |
12499 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
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; } | |
9a819804 | 12503 | else |
81ecdfbb RW |
12504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12505 | $as_echo "no" >&6; } | |
9a819804 AO |
12506 | fi |
12507 | ||
81ecdfbb | 12508 | |
9a819804 AO |
12509 | done |
12510 | fi | |
12511 | ||
12512 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12513 | for ncn_progname in strip; do |
81ecdfbb RW |
12514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12515 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12516 | if test -x $with_build_time_tools/${ncn_progname}; then |
12517 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12519 | $as_echo "yes" >&6; } | |
2429c060 PB |
12520 | break |
12521 | else | |
81ecdfbb RW |
12522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12523 | $as_echo "no" >&6; } | |
2429c060 PB |
12524 | fi |
12525 | done | |
12526 | fi | |
12527 | ||
12528 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12529 | for ncn_progname in strip; do | |
12530 | if test -n "$ncn_target_tool_prefix"; then | |
12531 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12532 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12534 | $as_echo_n "checking for $ac_word... " >&6; } | |
12535 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12536 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12537 | else |
12538 | if test -n "$STRIP_FOR_TARGET"; then | |
12539 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
12540 | else |
12541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12542 | for as_dir in $PATH | |
12543 | do | |
12544 | IFS=$as_save_IFS | |
12545 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12546 | for ac_exec_ext in '' $ac_executable_extensions; do |
12547 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12548 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12549 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12550 | break 2 |
12551 | fi | |
12552 | done | |
81ecdfbb RW |
12553 | done |
12554 | IFS=$as_save_IFS | |
c6b750e1 | 12555 | |
7e0f7140 GK |
12556 | fi |
12557 | fi | |
c6b750e1 | 12558 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12559 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12561 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12562 | else |
81ecdfbb RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12564 | $as_echo "no" >&6; } | |
7e0f7140 GK |
12565 | fi |
12566 | ||
81ecdfbb | 12567 | |
2429c060 PB |
12568 | fi |
12569 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12570 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12571 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12573 | $as_echo_n "checking for $ac_word... " >&6; } | |
12574 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12575 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12576 | else |
12577 | if test -n "$STRIP_FOR_TARGET"; then | |
12578 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12579 | else | |
c6b750e1 DJ |
12580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12581 | for as_dir in $PATH | |
12582 | do | |
12583 | IFS=$as_save_IFS | |
12584 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12585 | for ac_exec_ext in '' $ac_executable_extensions; do |
12586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12587 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12589 | break 2 |
12590 | fi | |
12591 | done | |
81ecdfbb RW |
12592 | done |
12593 | IFS=$as_save_IFS | |
c6b750e1 | 12594 | |
7e0f7140 GK |
12595 | fi |
12596 | fi | |
c6b750e1 | 12597 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12598 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12600 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12601 | else |
81ecdfbb RW |
12602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12603 | $as_echo "no" >&6; } | |
7e0f7140 | 12604 | fi |
c6b750e1 | 12605 | |
81ecdfbb | 12606 | |
2429c060 PB |
12607 | fi |
12608 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12609 | done | |
12610 | fi | |
c6b750e1 | 12611 | |
7e0f7140 GK |
12612 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12613 | set dummy strip | |
12614 | if test $build = $target ; then | |
12615 | STRIP_FOR_TARGET="$2" | |
12616 | else | |
12617 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12618 | fi | |
d3f5afc4 MS |
12619 | else |
12620 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
12621 | fi |
12622 | ||
3a35eeb3 PB |
12623 | else |
12624 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
12625 | fi |
12626 | ||
12627 | ||
12628 | ||
12629 | ||
12630 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12631 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12633 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12634 | if test -x $with_build_time_tools/windres; then |
12635 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12636 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
12637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12638 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 12639 | else |
81ecdfbb RW |
12640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12641 | $as_echo "no" >&6; } | |
3a35eeb3 | 12642 | fi |
2429c060 PB |
12643 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12644 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
12645 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12646 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
12647 | fi |
12648 | fi | |
c6b750e1 | 12649 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12650 | # Extract the first word of "windres", so it can be a program name with args. |
12651 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
12652 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12653 | $as_echo_n "checking for $ac_word... " >&6; } | |
12654 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12655 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12656 | else |
c6b750e1 DJ |
12657 | case $WINDRES_FOR_TARGET in |
12658 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12659 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12660 | ;; | |
2429c060 | 12661 | *) |
c6b750e1 DJ |
12662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12663 | for as_dir in $gcc_cv_tool_dirs | |
12664 | do | |
12665 | IFS=$as_save_IFS | |
12666 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12667 | for ac_exec_ext in '' $ac_executable_extensions; do |
12668 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12669 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12670 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12671 | break 2 |
12672 | fi | |
12673 | done | |
81ecdfbb RW |
12674 | done |
12675 | IFS=$as_save_IFS | |
c6b750e1 | 12676 | |
2429c060 PB |
12677 | ;; |
12678 | esac | |
12679 | fi | |
c6b750e1 | 12680 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 12681 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12683 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 12684 | else |
81ecdfbb RW |
12685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12686 | $as_echo "no" >&6; } | |
2429c060 PB |
12687 | fi |
12688 | ||
81ecdfbb | 12689 | |
2429c060 PB |
12690 | fi |
12691 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
12692 | |
12693 | ||
12694 | if test -n "$WINDRES_FOR_TARGET"; then | |
12695 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12696 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12697 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12698 | fi | |
12699 | ||
12700 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12701 | for ncn_progname in windres; do | |
12702 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12703 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12705 | $as_echo_n "checking for $ac_word... " >&6; } | |
12706 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12707 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12708 | else |
12709 | if test -n "$WINDRES_FOR_TARGET"; then | |
12710 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12711 | else | |
12712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12713 | for as_dir in $PATH | |
12714 | do | |
12715 | IFS=$as_save_IFS | |
12716 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12717 | for ac_exec_ext in '' $ac_executable_extensions; do |
12718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12719 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12721 | break 2 |
12722 | fi | |
12723 | done | |
81ecdfbb RW |
12724 | done |
12725 | IFS=$as_save_IFS | |
9a819804 AO |
12726 | |
12727 | fi | |
12728 | fi | |
12729 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
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; } | |
9a819804 | 12733 | else |
81ecdfbb RW |
12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12735 | $as_echo "no" >&6; } | |
9a819804 AO |
12736 | fi |
12737 | ||
81ecdfbb | 12738 | |
9a819804 AO |
12739 | done |
12740 | fi | |
12741 | ||
12742 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12743 | for ncn_progname in windres; do |
81ecdfbb RW |
12744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12745 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12746 | if test -x $with_build_time_tools/${ncn_progname}; then |
12747 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12749 | $as_echo "yes" >&6; } | |
2429c060 PB |
12750 | break |
12751 | else | |
81ecdfbb RW |
12752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12753 | $as_echo "no" >&6; } | |
2429c060 PB |
12754 | fi |
12755 | done | |
12756 | fi | |
12757 | ||
12758 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12759 | for ncn_progname in windres; do | |
12760 | if test -n "$ncn_target_tool_prefix"; then | |
12761 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12762 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12764 | $as_echo_n "checking for $ac_word... " >&6; } | |
12765 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12766 | $as_echo_n "(cached) " >&6 | |
859789af | 12767 | else |
55db4b87 PB |
12768 | if test -n "$WINDRES_FOR_TARGET"; then |
12769 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12770 | else |
c6b750e1 DJ |
12771 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12772 | for as_dir in $PATH | |
12773 | do | |
12774 | IFS=$as_save_IFS | |
12775 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12776 | for ac_exec_ext in '' $ac_executable_extensions; do |
12777 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12778 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12779 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12780 | break 2 |
12781 | fi | |
12782 | done | |
81ecdfbb RW |
12783 | done |
12784 | IFS=$as_save_IFS | |
c6b750e1 | 12785 | |
859789af AC |
12786 | fi |
12787 | fi | |
c6b750e1 | 12788 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 12789 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12791 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12792 | else |
81ecdfbb RW |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12794 | $as_echo "no" >&6; } | |
859789af AC |
12795 | fi |
12796 | ||
81ecdfbb | 12797 | |
2429c060 PB |
12798 | fi |
12799 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12800 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12801 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12803 | $as_echo_n "checking for $ac_word... " >&6; } | |
12804 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12805 | $as_echo_n "(cached) " >&6 | |
859789af | 12806 | else |
05cbd757 PB |
12807 | if test -n "$WINDRES_FOR_TARGET"; then |
12808 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12809 | else |
c6b750e1 DJ |
12810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12811 | for as_dir in $PATH | |
12812 | do | |
12813 | IFS=$as_save_IFS | |
12814 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12815 | for ac_exec_ext in '' $ac_executable_extensions; do |
12816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12817 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12819 | break 2 |
12820 | fi | |
12821 | done | |
81ecdfbb RW |
12822 | done |
12823 | IFS=$as_save_IFS | |
c6b750e1 | 12824 | |
859789af AC |
12825 | fi |
12826 | fi | |
c6b750e1 | 12827 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 12828 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12830 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12831 | else |
81ecdfbb RW |
12832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12833 | $as_echo "no" >&6; } | |
859789af | 12834 | fi |
c6b750e1 | 12835 | |
81ecdfbb | 12836 | |
2429c060 PB |
12837 | fi |
12838 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
12839 | done | |
12840 | fi | |
c6b750e1 | 12841 | |
05cbd757 PB |
12842 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
12843 | set dummy windres | |
12844 | if test $build = $target ; then | |
12845 | WINDRES_FOR_TARGET="$2" | |
859789af | 12846 | else |
05cbd757 | 12847 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12848 | fi |
d3f5afc4 MS |
12849 | else |
12850 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
12851 | fi |
12852 | ||
3a35eeb3 PB |
12853 | else |
12854 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
12855 | fi |
12856 | ||
852e5f18 | 12857 | |
0c24b341 NC |
12858 | |
12859 | ||
12860 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12861 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
12863 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
12864 | if test -x $with_build_time_tools/windmc; then |
12865 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
12866 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
12867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
12868 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12869 | else |
81ecdfbb RW |
12870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12871 | $as_echo "no" >&6; } | |
0c24b341 NC |
12872 | fi |
12873 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12874 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
12875 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
12876 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12877 | fi | |
12878 | fi | |
12879 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12880 | # Extract the first word of "windmc", so it can be a program name with args. | |
12881 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
12882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12883 | $as_echo_n "checking for $ac_word... " >&6; } | |
12884 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
12885 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12886 | else |
12887 | case $WINDMC_FOR_TARGET in | |
12888 | [\\/]* | ?:[\\/]*) | |
12889 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
12890 | ;; | |
12891 | *) | |
12892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12893 | for as_dir in $gcc_cv_tool_dirs | |
12894 | do | |
12895 | IFS=$as_save_IFS | |
12896 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12897 | for ac_exec_ext in '' $ac_executable_extensions; do |
12898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12899 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12901 | break 2 |
12902 | fi | |
12903 | done | |
81ecdfbb RW |
12904 | done |
12905 | IFS=$as_save_IFS | |
0c24b341 NC |
12906 | |
12907 | ;; | |
12908 | esac | |
12909 | fi | |
12910 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 12911 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
12912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
12913 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 12914 | else |
81ecdfbb RW |
12915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12916 | $as_echo "no" >&6; } | |
0c24b341 NC |
12917 | fi |
12918 | ||
81ecdfbb | 12919 | |
0c24b341 NC |
12920 | fi |
12921 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
12922 | ||
12923 | ||
12924 | if test -n "$WINDMC_FOR_TARGET"; then | |
12925 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
12926 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12927 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
12928 | fi | |
12929 | ||
12930 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12931 | for ncn_progname in windmc; do | |
12932 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12933 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12935 | $as_echo_n "checking for $ac_word... " >&6; } | |
12936 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12937 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12938 | else |
12939 | if test -n "$WINDMC_FOR_TARGET"; then | |
12940 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
12941 | else | |
12942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12943 | for as_dir in $PATH | |
12944 | do | |
12945 | IFS=$as_save_IFS | |
12946 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12947 | for ac_exec_ext in '' $ac_executable_extensions; do |
12948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 12949 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
12951 | break 2 |
12952 | fi | |
12953 | done | |
81ecdfbb RW |
12954 | done |
12955 | IFS=$as_save_IFS | |
0c24b341 NC |
12956 | |
12957 | fi | |
12958 | fi | |
12959 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
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 | done |
12970 | fi | |
12971 | ||
12972 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12973 | for ncn_progname in windmc; do | |
81ecdfbb RW |
12974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12975 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
12976 | if test -x $with_build_time_tools/${ncn_progname}; then |
12977 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12979 | $as_echo "yes" >&6; } | |
0c24b341 NC |
12980 | break |
12981 | else | |
81ecdfbb RW |
12982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12983 | $as_echo "no" >&6; } | |
0c24b341 NC |
12984 | fi |
12985 | done | |
12986 | fi | |
12987 | ||
12988 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
12989 | for ncn_progname in windmc; do | |
12990 | if test -n "$ncn_target_tool_prefix"; then | |
12991 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12992 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12994 | $as_echo_n "checking for $ac_word... " >&6; } | |
12995 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
12996 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
12997 | else |
12998 | if test -n "$WINDMC_FOR_TARGET"; then | |
12999 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13000 | else | |
13001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13002 | for as_dir in $PATH | |
13003 | do | |
13004 | IFS=$as_save_IFS | |
13005 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13006 | for ac_exec_ext in '' $ac_executable_extensions; do |
13007 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13008 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13010 | break 2 |
13011 | fi | |
13012 | done | |
81ecdfbb RW |
13013 | done |
13014 | IFS=$as_save_IFS | |
0c24b341 NC |
13015 | |
13016 | fi | |
13017 | fi | |
13018 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13019 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13021 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13022 | else |
81ecdfbb RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13024 | $as_echo "no" >&6; } | |
0c24b341 NC |
13025 | fi |
13026 | ||
81ecdfbb | 13027 | |
0c24b341 NC |
13028 | fi |
13029 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13030 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13031 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13033 | $as_echo_n "checking for $ac_word... " >&6; } | |
13034 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13035 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13036 | else |
13037 | if test -n "$WINDMC_FOR_TARGET"; then | |
13038 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13039 | else | |
13040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13041 | for as_dir in $PATH | |
13042 | do | |
13043 | IFS=$as_save_IFS | |
13044 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13045 | for ac_exec_ext in '' $ac_executable_extensions; do |
13046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13047 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13049 | break 2 |
13050 | fi | |
13051 | done | |
81ecdfbb RW |
13052 | done |
13053 | IFS=$as_save_IFS | |
0c24b341 NC |
13054 | |
13055 | fi | |
13056 | fi | |
13057 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13058 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13060 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13061 | else |
81ecdfbb RW |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13063 | $as_echo "no" >&6; } | |
0c24b341 NC |
13064 | fi |
13065 | ||
81ecdfbb | 13066 | |
0c24b341 NC |
13067 | fi |
13068 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13069 | done | |
13070 | fi | |
13071 | ||
13072 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13073 | set dummy windmc | |
13074 | if test $build = $target ; then | |
13075 | WINDMC_FOR_TARGET="$2" | |
13076 | else | |
13077 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13078 | fi | |
13079 | else | |
13080 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13081 | fi | |
13082 | ||
13083 | else | |
13084 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13085 | fi | |
13086 | ||
13087 | ||
be01d343 PB |
13088 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13089 | ||
81ecdfbb RW |
13090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13091 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13092 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13093 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13094 | # We already found the complete path | |
b8025f34 | 13095 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13097 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13098 | else |
13099 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13101 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13102 | fi |
be01d343 PB |
13103 | else |
13104 | ok=yes | |
13105 | case " ${configdirs} " in | |
13106 | *" binutils "*) ;; | |
13107 | *) ok=no ;; | |
13108 | esac | |
c6b750e1 | 13109 | |
be01d343 PB |
13110 | if test $ok = yes; then |
13111 | # An in-tree tool is available and we can use it | |
13112 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13114 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13115 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13116 | # We already found the complete path | |
b8025f34 | 13117 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13119 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13120 | elif test "x$target" = "x$host"; then |
13121 | # We can use an host tool | |
13122 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13124 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13125 | else |
13126 | # We need a cross tool | |
81ecdfbb RW |
13127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13128 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13129 | fi |
13130 | fi | |
4b900473 | 13131 | |
81ecdfbb RW |
13132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13133 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13134 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13135 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13136 | # We already found the complete path | |
b8025f34 | 13137 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13139 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13140 | else |
13141 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13143 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13144 | fi |
be01d343 PB |
13145 | else |
13146 | ok=yes | |
13147 | case " ${configdirs} " in | |
13148 | *" gas "*) ;; | |
13149 | *) ok=no ;; | |
13150 | esac | |
c6b750e1 | 13151 | |
be01d343 PB |
13152 | if test $ok = yes; then |
13153 | # An in-tree tool is available and we can use it | |
13154 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13156 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13157 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13158 | # We already found the complete path | |
b8025f34 | 13159 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13161 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13162 | elif test "x$target" = "x$host"; then |
13163 | # We can use an host tool | |
13164 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13166 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13167 | else |
13168 | # We need a cross tool | |
81ecdfbb RW |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13170 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13171 | fi |
13172 | fi | |
4b900473 | 13173 | |
81ecdfbb RW |
13174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13175 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13176 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13177 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13178 | # We already found the complete path | |
b8025f34 | 13179 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13181 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13182 | else |
13183 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13185 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13186 | fi |
be01d343 PB |
13187 | else |
13188 | ok=yes | |
13189 | case " ${configdirs} " in | |
13190 | *" gcc "*) ;; | |
13191 | *) ok=no ;; | |
13192 | esac | |
c6b750e1 | 13193 | |
be01d343 PB |
13194 | if test $ok = yes; then |
13195 | # An in-tree tool is available and we can use it | |
13196 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13198 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13199 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13200 | # We already found the complete path | |
b8025f34 | 13201 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13203 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13204 | elif test "x$target" = "x$host"; then |
13205 | # We can use an host tool | |
13206 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13208 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13209 | else |
13210 | # We need a cross tool | |
81ecdfbb RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13212 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13213 | fi |
13214 | fi | |
4b900473 | 13215 | |
81ecdfbb RW |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13217 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13218 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13219 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13220 | # We already found the complete path | |
b8025f34 | 13221 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13223 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13224 | else |
13225 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13227 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13228 | fi |
be01d343 PB |
13229 | else |
13230 | ok=yes | |
13231 | case " ${configdirs} " in | |
13232 | *" gcc "*) ;; | |
13233 | *) ok=no ;; | |
13234 | esac | |
13235 | case ,${enable_languages}, in | |
13236 | *,c++,*) ;; | |
13237 | *) ok=no ;; | |
13238 | esac | |
13239 | if test $ok = yes; then | |
13240 | # An in-tree tool is available and we can use it | |
87cda2cf | 13241 | 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 |
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13243 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13244 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13245 | # We already found the complete path | |
b8025f34 | 13246 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13248 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13249 | elif test "x$target" = "x$host"; then |
13250 | # We can use an host tool | |
13251 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13253 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13254 | else |
13255 | # We need a cross tool | |
81ecdfbb RW |
13256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13257 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13258 | fi |
13259 | fi | |
4b900473 | 13260 | |
81ecdfbb RW |
13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13262 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13263 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13264 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13265 | # We already found the complete path | |
b8025f34 | 13266 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13268 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13269 | else |
13270 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13272 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13273 | fi |
be01d343 PB |
13274 | else |
13275 | ok=yes | |
13276 | case " ${configdirs} " in | |
13277 | *" gcc "*) ;; | |
13278 | *) ok=no ;; | |
13279 | esac | |
13280 | case ,${enable_languages}, in | |
13281 | *,c++,*) ;; | |
13282 | *) ok=no ;; | |
13283 | esac | |
13284 | if test $ok = yes; then | |
13285 | # An in-tree tool is available and we can use it | |
13286 | 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 |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13288 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13289 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13290 | # We already found the complete path | |
b8025f34 | 13291 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13293 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13294 | elif test "x$target" = "x$host"; then |
13295 | # We can use an host tool | |
13296 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13298 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13299 | else |
13300 | # We need a cross tool | |
81ecdfbb RW |
13301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13302 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13303 | fi |
13304 | fi | |
4b900473 | 13305 | |
81ecdfbb RW |
13306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13307 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13308 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13309 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13310 | # We already found the complete path | |
b8025f34 | 13311 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13313 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13314 | else |
13315 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13317 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13318 | fi |
be01d343 PB |
13319 | else |
13320 | ok=yes | |
13321 | case " ${configdirs} " in | |
13322 | *" binutils "*) ;; | |
13323 | *) ok=no ;; | |
13324 | esac | |
c6b750e1 | 13325 | |
be01d343 PB |
13326 | if test $ok = yes; then |
13327 | # An in-tree tool is available and we can use it | |
13328 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13330 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13331 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13332 | # We already found the complete path | |
b8025f34 | 13333 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13335 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13336 | elif test "x$target" = "x$host"; then |
13337 | # We can use an host tool | |
13338 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13340 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13341 | else |
13342 | # We need a cross tool | |
81ecdfbb RW |
13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13344 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13345 | fi |
13346 | fi | |
4b900473 | 13347 | |
81ecdfbb RW |
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13349 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13350 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13351 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13352 | # We already found the complete path | |
b8025f34 | 13353 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13355 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13356 | else |
13357 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13359 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13360 | fi |
be01d343 PB |
13361 | else |
13362 | ok=yes | |
13363 | case " ${configdirs} " in | |
13364 | *" gcc "*) ;; | |
13365 | *) ok=no ;; | |
13366 | esac | |
c6b750e1 | 13367 | |
be01d343 PB |
13368 | if test $ok = yes; then |
13369 | # An in-tree tool is available and we can use it | |
13370 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13372 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13373 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13374 | # We already found the complete path | |
b8025f34 | 13375 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13377 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13378 | elif test "x$target" = "x$host"; then |
13379 | # We can use an host tool | |
13380 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13382 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13383 | else |
13384 | # We need a cross tool | |
81ecdfbb RW |
13385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13386 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13387 | fi |
13388 | fi | |
4b900473 | 13389 | |
81ecdfbb RW |
13390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13391 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13392 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13393 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13394 | # We already found the complete path | |
b8025f34 | 13395 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13397 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13398 | else |
13399 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13401 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13402 | fi |
be01d343 PB |
13403 | else |
13404 | ok=yes | |
13405 | case " ${configdirs} " in | |
13406 | *" gcc "*) ;; | |
13407 | *) ok=no ;; | |
13408 | esac | |
13409 | case ,${enable_languages}, in | |
13410 | *,java,*) ;; | |
13411 | *) ok=no ;; | |
13412 | esac | |
13413 | if test $ok = yes; then | |
13414 | # An in-tree tool is available and we can use it | |
13415 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13417 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13418 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13419 | # We already found the complete path | |
b8025f34 | 13420 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13422 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13423 | elif test "x$target" = "x$host"; then |
13424 | # We can use an host tool | |
13425 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
13426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13427 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13428 | else |
13429 | # We need a cross tool | |
81ecdfbb RW |
13430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13431 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13432 | fi |
13433 | fi | |
4b900473 | 13434 | |
81ecdfbb RW |
13435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13436 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13437 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13438 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13439 | # We already found the complete path | |
b8025f34 | 13440 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13442 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13443 | else |
13444 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13446 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13447 | fi |
be01d343 PB |
13448 | else |
13449 | ok=yes | |
13450 | case " ${configdirs} " in | |
13451 | *" gcc "*) ;; | |
13452 | *) ok=no ;; | |
13453 | esac | |
13454 | case ,${enable_languages}, in | |
13455 | *,fortran,*) ;; | |
13456 | *) ok=no ;; | |
13457 | esac | |
13458 | if test $ok = yes; then | |
13459 | # An in-tree tool is available and we can use it | |
13460 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13462 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13463 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13464 | # We already found the complete path | |
b8025f34 | 13465 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13467 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13468 | elif test "x$target" = "x$host"; then |
13469 | # We can use an host tool | |
13470 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13472 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13473 | else |
13474 | # We need a cross tool | |
81ecdfbb RW |
13475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13476 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13477 | fi |
13478 | fi | |
4b900473 | 13479 | |
e552509b ILT |
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13481 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13482 | if test "x${build}" != "x${host}" ; then | |
13483 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13484 | # We already found the complete path | |
13485 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13487 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13488 | else | |
13489 | # Canadian cross, just use what we found | |
13490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13491 | $as_echo "pre-installed" >&6; } | |
13492 | fi | |
13493 | else | |
13494 | ok=yes | |
13495 | case " ${configdirs} " in | |
13496 | *" gcc "*) ;; | |
13497 | *) ok=no ;; | |
13498 | esac | |
13499 | case ,${enable_languages}, in | |
13500 | *,go,*) ;; | |
13501 | *) ok=no ;; | |
13502 | esac | |
13503 | if test $ok = yes; then | |
13504 | # An in-tree tool is available and we can use it | |
13505 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13507 | $as_echo "just compiled" >&6; } | |
13508 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13509 | # We already found the complete path | |
13510 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13512 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13513 | elif test "x$target" = "x$host"; then | |
13514 | # We can use an host tool | |
13515 | GOC_FOR_TARGET='$(GOC)' | |
13516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13517 | $as_echo "host tool" >&6; } | |
13518 | else | |
13519 | # We need a cross tool | |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13521 | $as_echo "pre-installed" >&6; } | |
13522 | fi | |
13523 | fi | |
13524 | ||
81ecdfbb RW |
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13526 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 13527 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13528 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13529 | # We already found the complete path | |
b8025f34 | 13530 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13532 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13533 | else |
13534 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13536 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13537 | fi |
be01d343 PB |
13538 | else |
13539 | ok=yes | |
13540 | case " ${configdirs} " in | |
13541 | *" ld "*) ;; | |
13542 | *) ok=no ;; | |
13543 | esac | |
c6b750e1 | 13544 | |
be01d343 PB |
13545 | if test $ok = yes; then |
13546 | # An in-tree tool is available and we can use it | |
13547 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13549 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13550 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13551 | # We already found the complete path | |
b8025f34 | 13552 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13554 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13555 | elif test "x$target" = "x$host"; then |
13556 | # We can use an host tool | |
13557 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
13558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13559 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13560 | else |
13561 | # We need a cross tool | |
81ecdfbb RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13563 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13564 | fi |
13565 | fi | |
4b900473 | 13566 | |
81ecdfbb RW |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13568 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 13569 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13570 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13571 | # We already found the complete path | |
b8025f34 | 13572 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13574 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13575 | else |
13576 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13578 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13579 | fi |
be01d343 | 13580 | else |
2429c060 PB |
13581 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13582 | # We already found the complete path | |
b8025f34 | 13583 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13585 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 13586 | elif test "x$target" = "x$host"; then |
be01d343 PB |
13587 | # We can use an host tool |
13588 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13590 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13591 | else |
13592 | # We need a cross tool | |
81ecdfbb RW |
13593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13594 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13595 | fi |
13596 | fi | |
4b900473 | 13597 | |
81ecdfbb RW |
13598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13599 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 13600 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13601 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13602 | # We already found the complete path | |
b8025f34 | 13603 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13605 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13606 | else |
13607 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13609 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13610 | fi |
be01d343 PB |
13611 | else |
13612 | ok=yes | |
13613 | case " ${configdirs} " in | |
13614 | *" binutils "*) ;; | |
13615 | *) ok=no ;; | |
13616 | esac | |
c6b750e1 | 13617 | |
be01d343 PB |
13618 | if test $ok = yes; then |
13619 | # An in-tree tool is available and we can use it | |
13620 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13622 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13623 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13624 | # We already found the complete path | |
b8025f34 | 13625 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13627 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13628 | elif test "x$target" = "x$host"; then |
13629 | # We can use an host tool | |
13630 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
13631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13632 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13633 | else |
13634 | # We need a cross tool | |
81ecdfbb RW |
13635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13636 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13637 | fi |
13638 | fi | |
4b900473 | 13639 | |
81ecdfbb RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13641 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 13642 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13643 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13644 | # We already found the complete path | |
b8025f34 | 13645 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13647 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13648 | else |
13649 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13651 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13652 | fi |
be01d343 PB |
13653 | else |
13654 | ok=yes | |
13655 | case " ${configdirs} " in | |
13656 | *" binutils "*) ;; | |
13657 | *) ok=no ;; | |
13658 | esac | |
c6b750e1 | 13659 | |
be01d343 PB |
13660 | if test $ok = yes; then |
13661 | # An in-tree tool is available and we can use it | |
13662 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13664 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13665 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13666 | # We already found the complete path | |
b8025f34 | 13667 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13669 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13670 | elif test "x$target" = "x$host"; then |
13671 | # We can use an host tool | |
13672 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13674 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13675 | else |
13676 | # We need a cross tool | |
81ecdfbb RW |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13678 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13679 | fi |
13680 | fi | |
4b900473 | 13681 | |
81ecdfbb RW |
13682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13683 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 13684 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13685 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13686 | # We already found the complete path | |
b8025f34 | 13687 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13689 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13690 | else |
13691 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13693 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13694 | fi |
be01d343 PB |
13695 | else |
13696 | ok=yes | |
13697 | case " ${configdirs} " in | |
13698 | *" binutils "*) ;; | |
13699 | *) ok=no ;; | |
13700 | esac | |
c6b750e1 | 13701 | |
be01d343 PB |
13702 | if test $ok = yes; then |
13703 | # An in-tree tool is available and we can use it | |
13704 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
13705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13706 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13707 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13708 | # We already found the complete path | |
b8025f34 | 13709 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13711 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13712 | elif test "x$target" = "x$host"; then |
13713 | # We can use an host tool | |
13714 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13716 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13717 | else |
13718 | # We need a cross tool | |
81ecdfbb RW |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13720 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13721 | fi |
13722 | fi | |
4b900473 | 13723 | |
81ecdfbb RW |
13724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13725 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 13726 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13727 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13728 | # We already found the complete path | |
b8025f34 | 13729 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13731 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13732 | else |
13733 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13735 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13736 | fi |
be01d343 PB |
13737 | else |
13738 | ok=yes | |
13739 | case " ${configdirs} " in | |
13740 | *" binutils "*) ;; | |
13741 | *) ok=no ;; | |
13742 | esac | |
c6b750e1 | 13743 | |
be01d343 PB |
13744 | if test $ok = yes; then |
13745 | # An in-tree tool is available and we can use it | |
9b980aa1 | 13746 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
13747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13748 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13749 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13750 | # We already found the complete path | |
b8025f34 | 13751 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13753 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13754 | elif test "x$target" = "x$host"; then |
13755 | # We can use an host tool | |
13756 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
13757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13758 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13759 | else |
13760 | # We need a cross tool | |
81ecdfbb RW |
13761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13762 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13763 | fi |
13764 | fi | |
4b900473 | 13765 | |
81ecdfbb RW |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13767 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 13768 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13769 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13770 | # We already found the complete path | |
b8025f34 | 13771 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13773 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13774 | else |
13775 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13777 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13778 | fi |
be01d343 PB |
13779 | else |
13780 | ok=yes | |
13781 | case " ${configdirs} " in | |
13782 | *" binutils "*) ;; | |
13783 | *) ok=no ;; | |
13784 | esac | |
c6b750e1 | 13785 | |
be01d343 PB |
13786 | if test $ok = yes; then |
13787 | # An in-tree tool is available and we can use it | |
13788 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13790 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13791 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13792 | # We already found the complete path | |
b8025f34 | 13793 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13795 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13796 | elif test "x$target" = "x$host"; then |
13797 | # We can use an host tool | |
13798 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13800 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13801 | else |
13802 | # We need a cross tool | |
81ecdfbb RW |
13803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13804 | $as_echo "pre-installed" >&6; } | |
be01d343 | 13805 | fi |
a0da8069 | 13806 | fi |
54752a6b | 13807 | |
81ecdfbb RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
13809 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
13810 | if test "x${build}" != "x${host}" ; then |
13811 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
13812 | # We already found the complete path | |
13813 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13815 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13816 | else |
13817 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13819 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13820 | fi |
13821 | else | |
13822 | ok=yes | |
13823 | case " ${configdirs} " in | |
13824 | *" binutils "*) ;; | |
13825 | *) ok=no ;; | |
13826 | esac | |
13827 | ||
13828 | if test $ok = yes; then | |
13829 | # An in-tree tool is available and we can use it | |
13830 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13832 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
13833 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
13834 | # We already found the complete path | |
13835 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
13836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13837 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
13838 | elif test "x$target" = "x$host"; then |
13839 | # We can use an host tool | |
13840 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13842 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
13843 | else |
13844 | # We need a cross tool | |
81ecdfbb RW |
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13846 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
13847 | fi |
13848 | fi | |
13849 | ||
54752a6b NN |
13850 | |
13851 | ||
be01d343 | 13852 | |
4b900473 | 13853 | |
a0da8069 NN |
13854 | # Certain tools may need extra flags. |
13855 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
13856 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
13857 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
13858 | ||
be01d343 PB |
13859 | # When building target libraries, except in a Canadian cross, we use |
13860 | # the same toolchain as the compiler we just built. | |
13861 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
13862 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
13863 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
13864 | if test $host = $build; then | |
13865 | case " $configdirs " in | |
13866 | *" gcc "*) | |
13867 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
13868 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
13869 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
13870 | ;; | |
13871 | esac | |
13872 | fi | |
13873 | ||
13874 | ||
13875 | ||
13876 | ||
13877 | ||
81ecdfbb RW |
13878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
13879 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
13880 | # Check whether --enable-maintainer-mode was given. | |
13881 | if test "${enable_maintainer_mode+set}" = set; then : | |
13882 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
13883 | else |
13884 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
13885 | fi |
13886 | ||
13887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
13888 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
13889 | |
13890 | ||
13891 | if test "$USE_MAINTAINER_MODE" = yes; then | |
13892 | MAINTAINER_MODE_TRUE= | |
13893 | MAINTAINER_MODE_FALSE='#' | |
13894 | else | |
13895 | MAINTAINER_MODE_TRUE='#' | |
13896 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 13897 | fi |
3d5e36ae AO |
13898 | MAINT=$MAINTAINER_MODE_TRUE |
13899 | ||
1d39f329 NN |
13900 | # --------------------- |
13901 | # GCC bootstrap support | |
13902 | # --------------------- | |
13903 | ||
13904 | # Stage specific cflags for build. | |
13905 | stage1_cflags="-g" | |
13906 | case $build in | |
13907 | vax-*-*) | |
13908 | case ${GCC} in | |
13909 | yes) stage1_cflags="-g -Wa,-J" ;; | |
13910 | *) stage1_cflags="-g -J" ;; | |
13911 | esac ;; | |
1d39f329 NN |
13912 | esac |
13913 | ||
1d89b610 | 13914 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
e8a5fa9c | 13915 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
1d89b610 PB |
13916 | saved_CFLAGS="$CFLAGS" |
13917 | ||
13918 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
13919 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
81ecdfbb RW |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
13921 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
13922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
13923 | /* end confdefs.h. */ |
13924 | ||
2038f525 PB |
13925 | #if (__GNUC__ < 3) \ |
13926 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
13927 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
13928 | #error http://gcc.gnu.org/PR29382 | |
13929 | #endif | |
13930 | ||
c6b750e1 DJ |
13931 | int |
13932 | main () | |
13933 | { | |
13934 | ||
13935 | ; | |
13936 | return 0; | |
13937 | } | |
13938 | _ACEOF | |
81ecdfbb RW |
13939 | if ac_fn_c_try_compile "$LINENO"; then : |
13940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13941 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
c6b750e1 | 13942 | else |
81ecdfbb RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13944 | $as_echo "no" >&6; } | |
c6b750e1 | 13945 | fi |
81ecdfbb | 13946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1d89b610 PB |
13947 | |
13948 | CFLAGS="$saved_CFLAGS" | |
13949 | fi | |
13950 | ||
13951 | ||
1d39f329 | 13952 | |
8a0d8a5c | 13953 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
13954 | # Check whether --enable-stage1-checking was given. |
13955 | if test "${enable_stage1_checking+set}" = set; then : | |
13956 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 13957 | else |
5566c1fa | 13958 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 13959 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 13960 | else |
5566c1fa | 13961 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 13962 | fi |
81ecdfbb | 13963 | fi |
8a0d8a5c PB |
13964 | |
13965 | ||
c6b750e1 | 13966 | |
81ecdfbb RW |
13967 | # Enable -Werror in bootstrap stage2 and later. |
13968 | # Check whether --enable-werror was given. | |
13969 | if test "${enable_werror+set}" = set; then : | |
13970 | enableval=$enable_werror; | |
1d39f329 | 13971 | else |
a0323144 | 13972 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 13973 | enable_werror=yes |
79fcd0ec PB |
13974 | else |
13975 | enable_werror=no | |
13976 | fi | |
81ecdfbb RW |
13977 | fi |
13978 | ||
1a6f2dc7 NN |
13979 | case ${enable_werror} in |
13980 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
13981 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
13982 | esac |
13983 | ||
13984 | ||
e8a5fa9c RW |
13985 | # Specify what files to not compare during bootstrap. |
13986 | ||
13987 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
13988 | case "$target" in | |
13989 | hppa*64*-*-hpux*) ;; | |
13990 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
13991 | esac | |
1f53ca9a AO |
13992 | case " $configdirs " in |
13993 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
13994 | esac | |
e8a5fa9c RW |
13995 | |
13996 | ||
81ecdfbb RW |
13997 | ac_config_files="$ac_config_files Makefile" |
13998 | ||
c6b750e1 | 13999 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14000 | # This file is a shell script that caches the results of configure |
14001 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14002 | # scripts and configure runs, see configure's option --config-cache. |
14003 | # It is not useful on other systems. If it contains results you don't | |
14004 | # want to keep, you may remove or edit it. | |
a0da8069 | 14005 | # |
c6b750e1 DJ |
14006 | # config.status only pays attention to the cache file if you give it |
14007 | # the --recheck option to rerun configure. | |
a0da8069 | 14008 | # |
c6b750e1 DJ |
14009 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14010 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14011 | # following values. | |
14012 | ||
14013 | _ACEOF | |
14014 | ||
a0da8069 NN |
14015 | # The following way of writing the cache mishandles newlines in values, |
14016 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14017 | # So, we kill variables containing newlines. |
a0da8069 NN |
14018 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14019 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14020 | ( |
14021 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14022 | eval ac_val=\$$ac_var | |
14023 | case $ac_val in #( | |
14024 | *${as_nl}*) | |
14025 | case $ac_var in #( | |
14026 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14027 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14028 | esac | |
14029 | case $ac_var in #( | |
14030 | _ | IFS | as_nl) ;; #( | |
14031 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14032 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14033 | esac ;; | |
14034 | esac | |
14035 | done | |
14036 | ||
c6b750e1 | 14037 | (set) 2>&1 | |
81ecdfbb RW |
14038 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14039 | *${as_nl}ac_space=\ *) | |
14040 | # `set' does not quote correctly, so add quotes: double-quote | |
14041 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14042 | sed -n \ |
14043 | "s/'/'\\\\''/g; | |
14044 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14045 | ;; #( |
c6b750e1 DJ |
14046 | *) |
14047 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14048 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14049 | ;; |
81ecdfbb RW |
14050 | esac | |
14051 | sort | |
14052 | ) | | |
c6b750e1 | 14053 | sed ' |
81ecdfbb | 14054 | /^ac_cv_env_/b end |
c6b750e1 | 14055 | t clear |
81ecdfbb | 14056 | :clear |
c6b750e1 DJ |
14057 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14058 | t end | |
81ecdfbb RW |
14059 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14060 | :end' >>confcache | |
14061 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14062 | if test -w "$cache_file"; then | |
14063 | test "x$cache_file" != "x/dev/null" && | |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14065 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14066 | cat confcache >$cache_file |
a0da8069 | 14067 | else |
81ecdfbb RW |
14068 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14069 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14070 | fi |
852e5f18 | 14071 | fi |
a0da8069 | 14072 | rm -f confcache |
852e5f18 | 14073 | |
a0da8069 NN |
14074 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14075 | # Let make expand exec_prefix. | |
14076 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14077 | |
a0da8069 NN |
14078 | # Transform confdefs.h into DEFS. |
14079 | # Protect against shell expansion while executing Makefile rules. | |
14080 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14081 | # |
14082 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14083 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14084 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14085 | ac_script=' |
14086 | :mline | |
14087 | /\\$/{ | |
14088 | N | |
14089 | s,\\\n,, | |
14090 | b mline | |
14091 | } | |
c6b750e1 | 14092 | t clear |
81ecdfbb RW |
14093 | :clear |
14094 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14095 | t quote |
81ecdfbb | 14096 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14097 | t quote |
81ecdfbb RW |
14098 | b any |
14099 | :quote | |
14100 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14101 | s/\[/\\&/g | |
14102 | s/\]/\\&/g | |
14103 | s/\$/$$/g | |
14104 | H | |
14105 | :any | |
14106 | ${ | |
14107 | g | |
14108 | s/^\n// | |
14109 | s/\n/ /g | |
14110 | p | |
14111 | } | |
14112 | ' | |
14113 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14114 | |
14115 | ||
14116 | ac_libobjs= | |
14117 | ac_ltlibobjs= | |
14118 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14119 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14120 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14121 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14122 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14123 | # will be set to the directory where LIBOBJS objects are built. | |
14124 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14125 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14126 | done |
14127 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14128 | |
c6b750e1 | 14129 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14130 | |
cac3d6c4 | 14131 | |
c6b750e1 DJ |
14132 | |
14133 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14134 | ac_write_fail=0 |
c6b750e1 DJ |
14135 | ac_clean_files_save=$ac_clean_files |
14136 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14137 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14138 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14139 | as_write_fail=0 | |
14140 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14141 | #! $SHELL |
14142 | # Generated by $as_me. | |
a0da8069 | 14143 | # Run this file to recreate the current configuration. |
a0da8069 | 14144 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14145 | # configure, is in config.log if it exists. |
376a0e54 | 14146 | |
c6b750e1 DJ |
14147 | debug=false |
14148 | ac_cs_recheck=false | |
14149 | ac_cs_silent=false | |
c6b750e1 | 14150 | |
81ecdfbb RW |
14151 | SHELL=\${CONFIG_SHELL-$SHELL} |
14152 | export SHELL | |
14153 | _ASEOF | |
14154 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14155 | ## -------------------- ## | |
14156 | ## M4sh Initialization. ## | |
14157 | ## -------------------- ## | |
14158 | ||
14159 | # Be more Bourne compatible | |
14160 | DUALCASE=1; export DUALCASE # for MKS sh | |
14161 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14162 | emulate sh |
14163 | NULLCMD=: | |
81ecdfbb | 14164 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14165 | # is contrary to our usage. Disable this feature. |
14166 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14167 | setopt NO_GLOB_SUBST |
14168 | else | |
14169 | case `(set -o) 2>/dev/null` in #( | |
14170 | *posix*) : | |
14171 | set -o posix ;; #( | |
14172 | *) : | |
14173 | ;; | |
14174 | esac | |
c6b750e1 | 14175 | fi |
c6b750e1 | 14176 | |
81ecdfbb RW |
14177 | |
14178 | as_nl=' | |
14179 | ' | |
14180 | export as_nl | |
14181 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14182 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14183 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14184 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14185 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14186 | # but without wasting forks for bash or zsh. | |
14187 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14188 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14189 | as_echo='print -r --' | |
14190 | as_echo_n='print -rn --' | |
14191 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14192 | as_echo='printf %s\n' | |
14193 | as_echo_n='printf %s' | |
14194 | else | |
14195 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14196 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14197 | as_echo_n='/usr/ucb/echo -n' | |
14198 | else | |
14199 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14200 | as_echo_n_body='eval | |
14201 | arg=$1; | |
14202 | case $arg in #( | |
14203 | *"$as_nl"*) | |
14204 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14205 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14206 | esac; | |
14207 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14208 | ' | |
14209 | export as_echo_n_body | |
14210 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14211 | fi | |
14212 | export as_echo_body | |
14213 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14214 | fi |
14215 | ||
81ecdfbb RW |
14216 | # The user is always right. |
14217 | if test "${PATH_SEPARATOR+set}" != set; then | |
14218 | PATH_SEPARATOR=: | |
14219 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14220 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14221 | PATH_SEPARATOR=';' | |
14222 | } | |
14223 | fi | |
14224 | ||
14225 | ||
14226 | # IFS | |
14227 | # We need space, tab and new line, in precisely that order. Quoting is | |
14228 | # there to prevent editors from complaining about space-tab. | |
14229 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14230 | # splitting by setting IFS to empty value.) | |
14231 | IFS=" "" $as_nl" | |
14232 | ||
14233 | # Find who we are. Look in the path if we contain no directory separator. | |
14234 | case $0 in #(( | |
14235 | *[\\/]* ) as_myself=$0 ;; | |
14236 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14237 | for as_dir in $PATH | |
14238 | do | |
14239 | IFS=$as_save_IFS | |
14240 | test -z "$as_dir" && as_dir=. | |
14241 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14242 | done | |
14243 | IFS=$as_save_IFS | |
14244 | ||
14245 | ;; | |
14246 | esac | |
14247 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14248 | # in which case we are not to be found in the path. | |
14249 | if test "x$as_myself" = x; then | |
14250 | as_myself=$0 | |
14251 | fi | |
14252 | if test ! -f "$as_myself"; then | |
14253 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14254 | exit 1 | |
14255 | fi | |
c6b750e1 | 14256 | |
81ecdfbb RW |
14257 | # Unset variables that we do not need and which cause bugs (e.g. in |
14258 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14259 | # suppresses any "Segmentation fault" message there. '((' could | |
14260 | # trigger a bug in pdksh 5.2.14. | |
14261 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14262 | do eval test x\${$as_var+set} = xset \ | |
14263 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14264 | done | |
c6b750e1 DJ |
14265 | PS1='$ ' |
14266 | PS2='> ' | |
14267 | PS4='+ ' | |
14268 | ||
14269 | # NLS nuisances. | |
81ecdfbb RW |
14270 | LC_ALL=C |
14271 | export LC_ALL | |
14272 | LANGUAGE=C | |
14273 | export LANGUAGE | |
14274 | ||
14275 | # CDPATH. | |
14276 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14277 | ||
14278 | ||
14279 | # as_fn_error ERROR [LINENO LOG_FD] | |
14280 | # --------------------------------- | |
14281 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14282 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14283 | # script with status $?, using 1 if that was 0. | |
14284 | as_fn_error () | |
14285 | { | |
14286 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14287 | if test "$3"; then | |
14288 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14289 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14290 | fi |
81ecdfbb RW |
14291 | $as_echo "$as_me: error: $1" >&2 |
14292 | as_fn_exit $as_status | |
14293 | } # as_fn_error | |
14294 | ||
14295 | ||
14296 | # as_fn_set_status STATUS | |
14297 | # ----------------------- | |
14298 | # Set $? to STATUS, without forking. | |
14299 | as_fn_set_status () | |
14300 | { | |
14301 | return $1 | |
14302 | } # as_fn_set_status | |
14303 | ||
14304 | # as_fn_exit STATUS | |
14305 | # ----------------- | |
14306 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14307 | as_fn_exit () | |
14308 | { | |
14309 | set +e | |
14310 | as_fn_set_status $1 | |
14311 | exit $1 | |
14312 | } # as_fn_exit | |
14313 | ||
14314 | # as_fn_unset VAR | |
14315 | # --------------- | |
14316 | # Portably unset VAR. | |
14317 | as_fn_unset () | |
14318 | { | |
14319 | { eval $1=; unset $1;} | |
14320 | } | |
14321 | as_unset=as_fn_unset | |
14322 | # as_fn_append VAR VALUE | |
14323 | # ---------------------- | |
14324 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14325 | # advantage of any shell optimizations that allow amortized linear growth over | |
14326 | # repeated appends, instead of the typical quadratic growth present in naive | |
14327 | # implementations. | |
14328 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14329 | eval 'as_fn_append () | |
14330 | { | |
14331 | eval $1+=\$2 | |
14332 | }' | |
14333 | else | |
14334 | as_fn_append () | |
14335 | { | |
14336 | eval $1=\$$1\$2 | |
14337 | } | |
14338 | fi # as_fn_append | |
14339 | ||
14340 | # as_fn_arith ARG... | |
14341 | # ------------------ | |
14342 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14343 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14344 | # must be portable across $(()) and expr. | |
14345 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14346 | eval 'as_fn_arith () | |
14347 | { | |
14348 | as_val=$(( $* )) | |
14349 | }' | |
14350 | else | |
14351 | as_fn_arith () | |
14352 | { | |
14353 | as_val=`expr "$@" || test $? -eq 1` | |
14354 | } | |
14355 | fi # as_fn_arith | |
14356 | ||
c6b750e1 | 14357 | |
81ecdfbb RW |
14358 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14359 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14360 | as_expr=expr |
14361 | else | |
14362 | as_expr=false | |
14363 | fi | |
14364 | ||
81ecdfbb | 14365 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14366 | as_basename=basename |
14367 | else | |
14368 | as_basename=false | |
14369 | fi | |
14370 | ||
81ecdfbb RW |
14371 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14372 | as_dirname=dirname | |
14373 | else | |
14374 | as_dirname=false | |
14375 | fi | |
c6b750e1 | 14376 | |
81ecdfbb | 14377 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14378 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14379 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14380 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14381 | $as_echo X/"$0" | | |
14382 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14383 | s//\1/ | |
14384 | q | |
14385 | } | |
14386 | /^X\/\(\/\/\)$/{ | |
14387 | s//\1/ | |
14388 | q | |
14389 | } | |
14390 | /^X\/\(\/\).*/{ | |
14391 | s//\1/ | |
14392 | q | |
14393 | } | |
14394 | s/.*/./; q'` | |
c6b750e1 | 14395 | |
c6b750e1 DJ |
14396 | # Avoid depending upon Character Ranges. |
14397 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14398 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14399 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14400 | as_cr_digits='0123456789' | |
14401 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14402 | ||
81ecdfbb RW |
14403 | ECHO_C= ECHO_N= ECHO_T= |
14404 | case `echo -n x` in #((((( | |
14405 | -n*) | |
14406 | case `echo 'xy\c'` in | |
14407 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14408 | xy) ECHO_C='\c';; | |
14409 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14410 | ECHO_T=' ';; | |
14411 | esac;; | |
14412 | *) | |
14413 | ECHO_N='-n';; | |
c6b750e1 DJ |
14414 | esac |
14415 | ||
81ecdfbb RW |
14416 | rm -f conf$$ conf$$.exe conf$$.file |
14417 | if test -d conf$$.dir; then | |
14418 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 14419 | else |
81ecdfbb RW |
14420 | rm -f conf$$.dir |
14421 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 14422 | fi |
81ecdfbb RW |
14423 | if (echo >conf$$.file) 2>/dev/null; then |
14424 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 14425 | as_ln_s='ln -s' |
81ecdfbb RW |
14426 | # ... but there are two gotchas: |
14427 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14428 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14429 | # In both cases, we have to default to `cp -p'. | |
14430 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14431 | as_ln_s='cp -p' | |
14432 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14433 | as_ln_s=ln | |
14434 | else | |
14435 | as_ln_s='cp -p' | |
c6b750e1 | 14436 | fi |
c6b750e1 DJ |
14437 | else |
14438 | as_ln_s='cp -p' | |
14439 | fi | |
81ecdfbb RW |
14440 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14441 | rmdir conf$$.dir 2>/dev/null | |
14442 | ||
14443 | ||
14444 | # as_fn_mkdir_p | |
14445 | # ------------- | |
14446 | # Create "$as_dir" as a directory, including parents if necessary. | |
14447 | as_fn_mkdir_p () | |
14448 | { | |
14449 | ||
14450 | case $as_dir in #( | |
14451 | -*) as_dir=./$as_dir;; | |
14452 | esac | |
14453 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14454 | as_dirs= | |
14455 | while :; do | |
14456 | case $as_dir in #( | |
14457 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14458 | *) as_qdir=$as_dir;; | |
14459 | esac | |
14460 | as_dirs="'$as_qdir' $as_dirs" | |
14461 | as_dir=`$as_dirname -- "$as_dir" || | |
14462 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14463 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14464 | X"$as_dir" : 'X\(//\)$' \| \ | |
14465 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14466 | $as_echo X"$as_dir" | | |
14467 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14468 | s//\1/ | |
14469 | q | |
14470 | } | |
14471 | /^X\(\/\/\)[^/].*/{ | |
14472 | s//\1/ | |
14473 | q | |
14474 | } | |
14475 | /^X\(\/\/\)$/{ | |
14476 | s//\1/ | |
14477 | q | |
14478 | } | |
14479 | /^X\(\/\).*/{ | |
14480 | s//\1/ | |
14481 | q | |
14482 | } | |
14483 | s/.*/./; q'` | |
14484 | test -d "$as_dir" && break | |
14485 | done | |
14486 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14487 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14488 | ||
c6b750e1 | 14489 | |
81ecdfbb | 14490 | } # as_fn_mkdir_p |
c6b750e1 | 14491 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14492 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
14493 | else |
14494 | test -d ./-p && rmdir ./-p | |
14495 | as_mkdir_p=false | |
14496 | fi | |
14497 | ||
81ecdfbb RW |
14498 | if test -x / >/dev/null 2>&1; then |
14499 | as_test_x='test -x' | |
14500 | else | |
14501 | if ls -dL / >/dev/null 2>&1; then | |
14502 | as_ls_L_option=L | |
14503 | else | |
14504 | as_ls_L_option= | |
14505 | fi | |
14506 | as_test_x=' | |
14507 | eval sh -c '\'' | |
14508 | if test -d "$1"; then | |
14509 | test -d "$1/."; | |
14510 | else | |
14511 | case $1 in #( | |
14512 | -*)set "./$1";; | |
14513 | esac; | |
14514 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14515 | ???[sx]*):;;*)false;;esac;fi | |
14516 | '\'' sh | |
14517 | ' | |
14518 | fi | |
14519 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
14520 | |
14521 | # Sed expression to map a string onto a valid CPP name. | |
14522 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14523 | ||
14524 | # Sed expression to map a string onto a valid variable name. | |
14525 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14526 | ||
14527 | ||
c6b750e1 | 14528 | exec 6>&1 |
81ecdfbb RW |
14529 | ## ----------------------------------- ## |
14530 | ## Main body of $CONFIG_STATUS script. ## | |
14531 | ## ----------------------------------- ## | |
14532 | _ASEOF | |
14533 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14534 | ||
14535 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14536 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 14537 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14538 | # values after options handling. |
14539 | ac_log=" | |
c6b750e1 | 14540 | This file was extended by $as_me, which was |
81ecdfbb | 14541 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
14542 | |
14543 | CONFIG_FILES = $CONFIG_FILES | |
14544 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14545 | CONFIG_LINKS = $CONFIG_LINKS | |
14546 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14547 | $ $0 $@ | |
14548 | ||
81ecdfbb RW |
14549 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14550 | " | |
14551 | ||
c6b750e1 DJ |
14552 | _ACEOF |
14553 | ||
81ecdfbb RW |
14554 | case $ac_config_files in *" |
14555 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14556 | esac | |
c6b750e1 | 14557 | |
c6b750e1 | 14558 | |
c6b750e1 | 14559 | |
81ecdfbb RW |
14560 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14561 | # Files that config.status was made for. | |
14562 | config_files="$ac_config_files" | |
c6b750e1 | 14563 | |
81ecdfbb | 14564 | _ACEOF |
c6b750e1 | 14565 | |
81ecdfbb | 14566 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14567 | ac_cs_usage="\ |
81ecdfbb RW |
14568 | \`$as_me' instantiates files and other configuration actions |
14569 | from templates according to the current configuration. Unless the files | |
14570 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 14571 | |
81ecdfbb | 14572 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
14573 | |
14574 | -h, --help print this help, then exit | |
81ecdfbb RW |
14575 | -V, --version print version number and configuration settings, then exit |
14576 | -q, --quiet, --silent | |
14577 | do not print progress messages | |
c6b750e1 DJ |
14578 | -d, --debug don't remove temporary files |
14579 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14580 | --file=FILE[:TEMPLATE] |
14581 | instantiate the configuration file FILE | |
c6b750e1 DJ |
14582 | |
14583 | Configuration files: | |
14584 | $config_files | |
14585 | ||
81ecdfbb | 14586 | Report bugs to the package provider." |
c6b750e1 | 14587 | |
81ecdfbb RW |
14588 | _ACEOF |
14589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
14590 | ac_cs_version="\\ |
14591 | config.status | |
81ecdfbb RW |
14592 | configured by $0, generated by GNU Autoconf 2.64, |
14593 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 14594 | |
81ecdfbb | 14595 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
14596 | This config.status script is free software; the Free Software Foundation |
14597 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14598 | |
14599 | ac_pwd='$ac_pwd' | |
14600 | srcdir='$srcdir' | |
14601 | INSTALL='$INSTALL' | |
8e957354 | 14602 | AWK='$AWK' |
81ecdfbb | 14603 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
14604 | _ACEOF |
14605 | ||
81ecdfbb RW |
14606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14607 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
14608 | ac_need_defaults=: |
14609 | while test $# != 0 | |
a0da8069 | 14610 | do |
c6b750e1 DJ |
14611 | case $1 in |
14612 | --*=*) | |
81ecdfbb RW |
14613 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14614 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
14615 | ac_shift=: |
14616 | ;; | |
81ecdfbb | 14617 | *) |
c6b750e1 DJ |
14618 | ac_option=$1 |
14619 | ac_optarg=$2 | |
14620 | ac_shift=shift | |
14621 | ;; | |
c6b750e1 DJ |
14622 | esac |
14623 | ||
14624 | case $ac_option in | |
14625 | # Handling of the options. | |
a0da8069 | 14626 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 14627 | ac_cs_recheck=: ;; |
81ecdfbb RW |
14628 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14629 | $as_echo "$ac_cs_version"; exit ;; | |
14630 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
14631 | debug=: ;; |
14632 | --file | --fil | --fi | --f ) | |
14633 | $ac_shift | |
81ecdfbb RW |
14634 | case $ac_optarg in |
14635 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14636 | esac | |
14637 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 14638 | ac_need_defaults=false;; |
81ecdfbb RW |
14639 | --he | --h | --help | --hel | -h ) |
14640 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
14641 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14642 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14643 | ac_cs_silent=: ;; | |
14644 | ||
14645 | # This is an error. | |
81ecdfbb RW |
14646 | -*) as_fn_error "unrecognized option: \`$1' |
14647 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 14648 | |
81ecdfbb RW |
14649 | *) as_fn_append ac_config_targets " $1" |
14650 | ac_need_defaults=false ;; | |
c6b750e1 | 14651 | |
376a0e54 | 14652 | esac |
c6b750e1 | 14653 | shift |
376a0e54 CM |
14654 | done |
14655 | ||
c6b750e1 | 14656 | ac_configure_extra_args= |
376a0e54 | 14657 | |
c6b750e1 DJ |
14658 | if $ac_cs_silent; then |
14659 | exec 6>/dev/null | |
14660 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14661 | fi | |
376a0e54 | 14662 | |
c6b750e1 | 14663 | _ACEOF |
81ecdfbb | 14664 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 14665 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14666 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14667 | shift | |
14668 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14669 | CONFIG_SHELL='$SHELL' | |
14670 | export CONFIG_SHELL | |
14671 | exec "\$@" | |
c6b750e1 DJ |
14672 | fi |
14673 | ||
14674 | _ACEOF | |
81ecdfbb RW |
14675 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14676 | exec 5>>config.log | |
14677 | { | |
14678 | echo | |
14679 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14680 | ## Running $as_me. ## | |
14681 | _ASBOX | |
14682 | $as_echo "$ac_log" | |
14683 | } >&5 | |
c6b750e1 | 14684 | |
81ecdfbb RW |
14685 | _ACEOF |
14686 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
14687 | # |
14688 | # INIT-COMMANDS | |
14689 | # | |
14690 | extrasub_build="$extrasub_build" | |
14691 | extrasub_host="$extrasub_host" | |
14692 | extrasub_target="$extrasub_target" | |
14693 | ||
81ecdfbb | 14694 | _ACEOF |
c6b750e1 | 14695 | |
81ecdfbb | 14696 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14697 | |
81ecdfbb | 14698 | # Handling of arguments. |
c6b750e1 DJ |
14699 | for ac_config_target in $ac_config_targets |
14700 | do | |
81ecdfbb RW |
14701 | case $ac_config_target in |
14702 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14703 | ||
14704 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
14705 | esac |
14706 | done | |
14707 | ||
81ecdfbb | 14708 | |
c6b750e1 DJ |
14709 | # If the user did not use the arguments to specify the items to instantiate, |
14710 | # then the envvar interface is used. Set only those that are not. | |
14711 | # We use the long form for the default assignment because of an extremely | |
14712 | # bizarre bug on SunOS 4.1.3. | |
14713 | if $ac_need_defaults; then | |
14714 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14715 | fi | |
14716 | ||
14717 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14718 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 14719 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14720 | # Hook for its removal unless debugging. |
14721 | # Note that there is a small window in which the directory will not be cleaned: | |
14722 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
14723 | $debug || |
14724 | { | |
81ecdfbb RW |
14725 | tmp= |
14726 | trap 'exit_status=$? | |
14727 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14728 | ' 0 | |
14729 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 14730 | } |
c6b750e1 DJ |
14731 | # Create a (secure) tmp directory for tmp files. |
14732 | ||
14733 | { | |
81ecdfbb | 14734 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
14735 | test -n "$tmp" && test -d "$tmp" |
14736 | } || | |
14737 | { | |
81ecdfbb RW |
14738 | tmp=./conf$$-$RANDOM |
14739 | (umask 077 && mkdir "$tmp") | |
14740 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14741 | ||
14742 | # Set up the scripts for CONFIG_FILES section. | |
14743 | # No need to generate them if there are no CONFIG_FILES. | |
14744 | # This happens for instance with `./config.status config.h'. | |
14745 | if test -n "$CONFIG_FILES"; then | |
14746 | ||
14747 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14748 | ac_cs_awk_getline=: | |
14749 | ac_cs_awk_pipe_init= | |
14750 | ac_cs_awk_read_file=' | |
14751 | while ((getline aline < (F[key])) > 0) | |
14752 | print(aline) | |
14753 | close(F[key])' | |
14754 | ac_cs_awk_pipe_fini= | |
14755 | else | |
14756 | ac_cs_awk_getline=false | |
14757 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14758 | ac_cs_awk_read_file=' | |
14759 | print "|#_!!_#|" | |
14760 | print "cat " F[key] " &&" | |
14761 | '$ac_cs_awk_pipe_init | |
14762 | # The final `:' finishes the AND list. | |
14763 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14764 | fi | |
14765 | ac_cr=`echo X | tr X '\015'` | |
14766 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14767 | # But we know of no other shell where ac_cr would be empty at this | |
14768 | # point, so we can use a bashism as a fallback. | |
14769 | if test "x$ac_cr" = x; then | |
14770 | eval ac_cr=\$\'\\r\' | |
14771 | fi | |
14772 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14773 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14774 | ac_cs_awk_cr='\r' | |
14775 | else | |
14776 | ac_cs_awk_cr=$ac_cr | |
14777 | fi | |
14778 | ||
14779 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14780 | _ACEOF | |
14781 | ||
14782 | # Create commands to substitute file output variables. | |
c6b750e1 | 14783 | { |
81ecdfbb RW |
14784 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14785 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14786 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14787 | echo "_ACAWK" && | |
14788 | echo "_ACEOF" | |
14789 | } >conf$$files.sh && | |
14790 | . ./conf$$files.sh || | |
14791 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14792 | rm -f conf$$files.sh | |
c6b750e1 | 14793 | |
81ecdfbb RW |
14794 | { |
14795 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14796 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14797 | echo "_ACEOF" | |
14798 | } >conf$$subs.sh || | |
14799 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14800 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14801 | ac_delim='%!_!# ' | |
14802 | for ac_last_try in false false false false false :; do | |
14803 | . ./conf$$subs.sh || | |
14804 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14805 | ||
14806 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14807 | if test $ac_delim_n = $ac_delim_num; then | |
14808 | break | |
14809 | elif $ac_last_try; then | |
14810 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14811 | else | |
14812 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14813 | fi | |
14814 | done | |
14815 | rm -f conf$$subs.sh | |
14816 | ||
14817 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14818 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 14819 | _ACEOF |
81ecdfbb RW |
14820 | sed -n ' |
14821 | h | |
14822 | s/^/S["/; s/!.*/"]=/ | |
14823 | p | |
14824 | g | |
14825 | s/^[^!]*!// | |
14826 | :repl | |
14827 | t repl | |
14828 | s/'"$ac_delim"'$// | |
14829 | t delim | |
14830 | :nl | |
14831 | h | |
14832 | s/\(.\{148\}\).*/\1/ | |
14833 | t more1 | |
14834 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
14835 | p | |
14836 | n | |
14837 | b repl | |
14838 | :more1 | |
14839 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14840 | p | |
14841 | g | |
14842 | s/.\{148\}// | |
14843 | t nl | |
14844 | :delim | |
14845 | h | |
14846 | s/\(.\{148\}\).*/\1/ | |
14847 | t more2 | |
14848 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
14849 | p | |
14850 | b | |
14851 | :more2 | |
14852 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
14853 | p | |
14854 | g | |
14855 | s/.\{148\}// | |
14856 | t delim | |
14857 | ' <conf$$subs.awk | sed ' | |
14858 | /^[^""]/{ | |
14859 | N | |
14860 | s/\n// | |
14861 | } | |
14862 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
14863 | rm -f conf$$subs.awk | |
14864 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14865 | _ACAWK | |
14866 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14867 | for (key in S) S_is_set[key] = 1 | |
14868 | FS = "\a" | |
14869 | \$ac_cs_awk_pipe_init | |
14870 | } | |
14871 | { | |
14872 | line = $ 0 | |
14873 | nfields = split(line, field, "@") | |
14874 | substed = 0 | |
14875 | len = length(field[1]) | |
14876 | for (i = 2; i < nfields; i++) { | |
14877 | key = field[i] | |
14878 | keylen = length(key) | |
14879 | if (S_is_set[key]) { | |
14880 | value = S[key] | |
14881 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
14882 | len += length(value) + length(field[++i]) | |
14883 | substed = 1 | |
14884 | } else | |
14885 | len += 1 + keylen | |
14886 | } | |
14887 | if (nfields == 3 && !substed) { | |
14888 | key = field[2] | |
14889 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
14890 | \$ac_cs_awk_read_file | |
14891 | next | |
14892 | } | |
14893 | } | |
14894 | print line | |
14895 | } | |
14896 | \$ac_cs_awk_pipe_fini | |
14897 | _ACAWK | |
14898 | _ACEOF | |
14899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14900 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
14901 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
14902 | else | |
14903 | cat | |
14904 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14905 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
14906 | _ACEOF | |
14907 | ||
14908 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14909 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14910 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14911 | # (actually we leave an empty line to preserve line numbers). | |
14912 | if test "x$srcdir" = x.; then | |
14913 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14914 | s/:*\$(srcdir):*/:/ | |
14915 | s/:*\${srcdir}:*/:/ | |
14916 | s/:*@srcdir@:*/:/ | |
14917 | s/^\([^=]*=[ ]*\):*/\1/ | |
14918 | s/:*$// | |
14919 | s/^[^=]*=[ ]*$// | |
14920 | }' | |
14921 | fi | |
c6b750e1 | 14922 | |
81ecdfbb RW |
14923 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14924 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 14925 | |
c6b750e1 | 14926 | |
81ecdfbb RW |
14927 | eval set X " :F $CONFIG_FILES " |
14928 | shift | |
14929 | for ac_tag | |
14930 | do | |
14931 | case $ac_tag in | |
14932 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14933 | esac | |
14934 | case $ac_mode$ac_tag in | |
14935 | :[FHL]*:*);; | |
14936 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
14937 | :[FH]-) ac_tag=-:-;; | |
14938 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14939 | esac | |
14940 | ac_save_IFS=$IFS | |
14941 | IFS=: | |
14942 | set x $ac_tag | |
14943 | IFS=$ac_save_IFS | |
14944 | shift | |
14945 | ac_file=$1 | |
14946 | shift | |
252b5132 | 14947 | |
81ecdfbb RW |
14948 | case $ac_mode in |
14949 | :L) ac_source=$1;; | |
14950 | :[FH]) | |
14951 | ac_file_inputs= | |
14952 | for ac_f | |
14953 | do | |
14954 | case $ac_f in | |
14955 | -) ac_f="$tmp/stdin";; | |
14956 | *) # Look for the file first in the build tree, then in the source tree | |
14957 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14958 | # because $ac_f cannot contain `:'. | |
14959 | test -f "$ac_f" || | |
14960 | case $ac_f in | |
14961 | [\\/$]*) false;; | |
14962 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14963 | esac || | |
14964 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
14965 | esac | |
14966 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
14967 | as_fn_append ac_file_inputs " '$ac_f'" | |
14968 | done | |
c6b750e1 | 14969 | |
81ecdfbb RW |
14970 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14971 | # use $as_me), people would be surprised to read: | |
14972 | # /* config.h. Generated by config.status. */ | |
14973 | configure_input='Generated from '` | |
14974 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14975 | `' by configure.' | |
14976 | if test x"$ac_file" != x-; then | |
14977 | configure_input="$ac_file. $configure_input" | |
14978 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
14979 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 14980 | fi |
81ecdfbb RW |
14981 | # Neutralize special characters interpreted by sed in replacement strings. |
14982 | case $configure_input in #( | |
14983 | *\&* | *\|* | *\\* ) | |
14984 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14985 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14986 | *) ac_sed_conf_input=$configure_input;; | |
14987 | esac | |
cac3d6c4 | 14988 | |
81ecdfbb RW |
14989 | case $ac_tag in |
14990 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
14991 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
14992 | esac | |
14993 | ;; | |
a0da8069 | 14994 | esac |
252b5132 | 14995 | |
81ecdfbb | 14996 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
14997 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
14998 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14999 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15000 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15001 | $as_echo X"$ac_file" | | |
15002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15003 | s//\1/ | |
15004 | q | |
15005 | } | |
15006 | /^X\(\/\/\)[^/].*/{ | |
15007 | s//\1/ | |
15008 | q | |
15009 | } | |
15010 | /^X\(\/\/\)$/{ | |
15011 | s//\1/ | |
15012 | q | |
15013 | } | |
15014 | /^X\(\/\).*/{ | |
15015 | s//\1/ | |
15016 | q | |
15017 | } | |
15018 | s/.*/./; q'` | |
15019 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15020 | ac_builddir=. |
252b5132 | 15021 | |
81ecdfbb RW |
15022 | case "$ac_dir" in |
15023 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15024 | *) | |
15025 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15026 | # A ".." for each directory in $ac_dir_suffix. | |
15027 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15028 | case $ac_top_builddir_sub in | |
15029 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15030 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15031 | esac ;; | |
15032 | esac | |
15033 | ac_abs_top_builddir=$ac_pwd | |
15034 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15035 | # for backward compatibility: | |
15036 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15037 | |
15038 | case $srcdir in | |
81ecdfbb | 15039 | .) # We are building in place. |
c6b750e1 | 15040 | ac_srcdir=. |
81ecdfbb RW |
15041 | ac_top_srcdir=$ac_top_builddir_sub |
15042 | ac_abs_top_srcdir=$ac_pwd ;; | |
15043 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15044 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15045 | ac_top_srcdir=$srcdir |
15046 | ac_abs_top_srcdir=$srcdir ;; | |
15047 | *) # Relative name. | |
15048 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15049 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15050 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15051 | esac |
81ecdfbb | 15052 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15053 | |
252b5132 | 15054 | |
81ecdfbb RW |
15055 | case $ac_mode in |
15056 | :F) | |
15057 | # | |
15058 | # CONFIG_FILE | |
15059 | # | |
c6b750e1 DJ |
15060 | |
15061 | case $INSTALL in | |
15062 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15063 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15064 | esac |
81ecdfbb | 15065 | _ACEOF |
252b5132 | 15066 | |
81ecdfbb RW |
15067 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15068 | # If the template does not know about datarootdir, expand it. | |
15069 | # FIXME: This hack should be removed a few years after 2.60. | |
15070 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15071 | ac_sed_dataroot=' | |
15072 | /datarootdir/ { | |
15073 | p | |
15074 | q | |
15075 | } | |
15076 | /@datadir@/p | |
15077 | /@docdir@/p | |
15078 | /@infodir@/p | |
15079 | /@localedir@/p | |
15080 | /@mandir@/p' | |
15081 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15082 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15083 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15085 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15086 | _ACEOF |
81ecdfbb RW |
15087 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15088 | ac_datarootdir_hack=' | |
15089 | s&@datadir@&$datadir&g | |
15090 | s&@docdir@&$docdir&g | |
15091 | s&@infodir@&$infodir&g | |
15092 | s&@localedir@&$localedir&g | |
15093 | s&@mandir@&$mandir&g | |
15094 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15095 | esac | |
15096 | _ACEOF | |
15097 | ||
15098 | # Neutralize VPATH when `$srcdir' = `.'. | |
15099 | # Shell code in configure.ac might set extrasub. | |
15100 | # FIXME: do we really want to maintain this feature? | |
15101 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15102 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15103 | $extrasub |
15104 | _ACEOF | |
81ecdfbb | 15105 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15106 | :t |
15107 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15108 | s|@configure_input@|$ac_sed_conf_input|;t t |
15109 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15110 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15111 | s&@srcdir@&$ac_srcdir&;t t | |
15112 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15113 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15114 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15115 | s&@builddir@&$ac_builddir&;t t | |
15116 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15117 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15118 | s&@INSTALL@&$ac_INSTALL&;t t | |
15119 | $ac_datarootdir_hack | |
15120 | " | |
15121 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15122 | if $ac_cs_awk_getline; then | |
15123 | $AWK -f "$tmp/subs.awk" | |
15124 | else | |
15125 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15126 | fi >$tmp/out \ | |
15127 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15128 | ||
15129 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15130 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15131 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15133 | which seems to be undefined. Please make sure it is defined." >&5 | |
15134 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15135 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15136 | ||
15137 | rm -f "$tmp/stdin" | |
15138 | case $ac_file in | |
15139 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15140 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15141 | esac \ | |
15142 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15143 | ;; | |
c148b4cb | 15144 | |
c148b4cb | 15145 | |
c148b4cb | 15146 | |
81ecdfbb RW |
15147 | esac |
15148 | ||
06a51eac RW |
15149 | |
15150 | case $ac_file$ac_mode in | |
15151 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15152 | sed "$extrasub_host" | | |
15153 | sed "$extrasub_target" > mf$$ | |
15154 | mv -f mf$$ Makefile ;; | |
15155 | ||
15156 | esac | |
81ecdfbb RW |
15157 | done # for ac_tag |
15158 | ||
15159 | ||
15160 | as_fn_exit 0 | |
c6b750e1 | 15161 | _ACEOF |
c6b750e1 DJ |
15162 | ac_clean_files=$ac_clean_files_save |
15163 | ||
81ecdfbb RW |
15164 | test $ac_write_fail = 0 || |
15165 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15166 | ||
c6b750e1 DJ |
15167 | |
15168 | # configure is writing to config.log, and then calls config.status. | |
15169 | # config.status does its own redirection, appending to config.log. | |
15170 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15171 | # by configure, so config.status won't be able to write to it; its | |
15172 | # output is simply discarded. So we exec the FD to /dev/null, | |
15173 | # effectively closing config.log, so it can be properly (re)opened and | |
15174 | # appended to by config.status. When coming back to configure, we | |
15175 | # need to make the FD available again. | |
15176 | if test "$no_create" != yes; then | |
15177 | ac_cs_success=: | |
15178 | ac_config_status_args= | |
15179 | test "$silent" = yes && | |
15180 | ac_config_status_args="$ac_config_status_args --quiet" | |
15181 | exec 5>/dev/null | |
15182 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15183 | exec 5>>config.log | |
15184 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15185 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15186 | $ac_cs_success || as_fn_exit $? |
15187 | fi | |
15188 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15190 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15191 | fi |
c148b4cb | 15192 |