]>
Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
559 | stage2_werror_flag | |
560 | stage1_checking | |
561 | stage1_cflags | |
562 | MAINT | |
563 | MAINTAINER_MODE_FALSE | |
564 | MAINTAINER_MODE_TRUE | |
565 | COMPILER_NM_FOR_TARGET | |
566 | COMPILER_LD_FOR_TARGET | |
567 | COMPILER_AS_FOR_TARGET | |
568 | FLAGS_FOR_TARGET | |
569 | RAW_CXX_FOR_TARGET | |
570 | WINDMC_FOR_TARGET | |
571 | WINDRES_FOR_TARGET | |
572 | STRIP_FOR_TARGET | |
573 | RANLIB_FOR_TARGET | |
574 | OBJDUMP_FOR_TARGET | |
575 | NM_FOR_TARGET | |
576 | LIPO_FOR_TARGET | |
577 | LD_FOR_TARGET | |
578 | DLLTOOL_FOR_TARGET | |
579 | AS_FOR_TARGET | |
580 | AR_FOR_TARGET | |
e552509b | 581 | GOC_FOR_TARGET |
81ecdfbb RW |
582 | GFORTRAN_FOR_TARGET |
583 | GCJ_FOR_TARGET | |
584 | GCC_FOR_TARGET | |
585 | CXX_FOR_TARGET | |
586 | CC_FOR_TARGET | |
587 | OBJDUMP | |
588 | OBJCOPY | |
589 | WINDMC | |
590 | WINDRES | |
591 | STRIP | |
592 | RANLIB | |
593 | NM | |
594 | LIPO | |
595 | LD | |
596 | DLLTOOL | |
597 | AS | |
598 | AR | |
599 | RUNTEST | |
600 | EXPECT | |
601 | MAKEINFO | |
602 | FLEX | |
603 | LEX | |
604 | M4 | |
605 | BISON | |
606 | YACC | |
81ecdfbb RW |
607 | WINDRES_FOR_BUILD |
608 | WINDMC_FOR_BUILD | |
609 | RANLIB_FOR_BUILD | |
610 | NM_FOR_BUILD | |
611 | LD_FOR_BUILD | |
612 | LDFLAGS_FOR_BUILD | |
e552509b | 613 | GOC_FOR_BUILD |
81ecdfbb RW |
614 | GFORTRAN_FOR_BUILD |
615 | GCJ_FOR_BUILD | |
616 | DLLTOOL_FOR_BUILD | |
617 | CXX_FOR_BUILD | |
618 | CXXFLAGS_FOR_BUILD | |
619 | CFLAGS_FOR_BUILD | |
620 | CC_FOR_BUILD | |
621 | AS_FOR_BUILD | |
622 | AR_FOR_BUILD | |
911e63d0 | 623 | target_configdirs |
81ecdfbb | 624 | configdirs |
81ecdfbb | 625 | build_configdirs |
81ecdfbb RW |
626 | INSTALL_GDB_TK |
627 | GDB_TK | |
628 | CONFIGURE_GDB_TK | |
629 | build_tooldir | |
630 | tooldir | |
631 | GCC_SHLIB_SUBDIR | |
632 | RPATH_ENVVAR | |
4074d5f2 RW |
633 | target_configargs |
634 | host_configargs | |
635 | build_configargs | |
96655cc4 | 636 | BUILD_CONFIG |
81ecdfbb RW |
637 | CXXFLAGS_FOR_TARGET |
638 | CFLAGS_FOR_TARGET | |
639 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
640 | SYSROOT_CFLAGS_FOR_TARGET | |
641 | stage1_languages | |
700d40ca | 642 | extra_host_libiberty_configure_flags |
81ecdfbb RW |
643 | clooginc |
644 | clooglibs | |
645 | pplinc | |
646 | ppllibs | |
81ecdfbb | 647 | poststage1_ldflags |
143754cd | 648 | poststage1_libs |
81ecdfbb RW |
649 | stage1_libs |
650 | stage1_ldflags | |
651 | extra_mpc_mpfr_configure_flags | |
652 | extra_mpc_gmp_configure_flags | |
653 | extra_mpfr_configure_flags | |
654 | gmpinc | |
655 | gmplibs | |
656 | do_compare | |
657 | GNATMAKE | |
658 | GNATBIND | |
659 | ac_ct_CXX | |
660 | CXXFLAGS | |
661 | CXX | |
662 | OBJEXT | |
663 | EXEEXT | |
664 | ac_ct_CC | |
665 | CPPFLAGS | |
666 | LDFLAGS | |
667 | CFLAGS | |
668 | CC | |
669 | target_subdir | |
670 | host_subdir | |
671 | build_subdir | |
672 | build_libsubdir | |
8e957354 PB |
673 | AWK |
674 | SED | |
81ecdfbb RW |
675 | LN_S |
676 | LN | |
677 | INSTALL_DATA | |
678 | INSTALL_SCRIPT | |
679 | INSTALL_PROGRAM | |
680 | target_os | |
681 | target_vendor | |
682 | target_cpu | |
683 | target | |
684 | host_os | |
685 | host_vendor | |
686 | host_cpu | |
687 | host | |
688 | target_noncanonical | |
689 | host_noncanonical | |
690 | build_noncanonical | |
691 | build_os | |
692 | build_vendor | |
693 | build_cpu | |
694 | build | |
695 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
696 | target_alias | |
697 | host_alias | |
698 | build_alias | |
699 | LIBS | |
700 | ECHO_T | |
701 | ECHO_N | |
702 | ECHO_C | |
703 | DEFS | |
704 | mandir | |
705 | localedir | |
706 | libdir | |
707 | psdir | |
708 | pdfdir | |
709 | dvidir | |
710 | htmldir | |
711 | infodir | |
712 | docdir | |
713 | oldincludedir | |
714 | includedir | |
715 | localstatedir | |
716 | sharedstatedir | |
717 | sysconfdir | |
718 | datadir | |
719 | datarootdir | |
720 | libexecdir | |
721 | sbindir | |
722 | bindir | |
723 | program_transform_name | |
724 | prefix | |
725 | exec_prefix | |
726 | PACKAGE_URL | |
727 | PACKAGE_BUGREPORT | |
728 | PACKAGE_STRING | |
729 | PACKAGE_VERSION | |
730 | PACKAGE_TARNAME | |
731 | PACKAGE_NAME | |
732 | PATH_SEPARATOR | |
733 | SHELL' | |
734 | ac_subst_files='serialization_dependencies | |
735 | host_makefile_frag | |
736 | target_makefile_frag | |
737 | alphaieee_frag | |
738 | ospace_frag' | |
739 | ac_user_opts=' | |
740 | enable_option_checking | |
741 | with_build_libsubdir | |
742 | enable_gold | |
c7791212 | 743 | enable_ld |
89a1e9c3 PB |
744 | enable_libquadmath |
745 | enable_libquadmath_support | |
81ecdfbb RW |
746 | enable_libada |
747 | enable_libssp | |
748 | enable_build_with_cxx | |
749 | with_mpc | |
750 | with_mpc_include | |
751 | with_mpc_lib | |
752 | with_mpfr_dir | |
753 | with_mpfr | |
754 | with_mpfr_include | |
755 | with_mpfr_lib | |
756 | with_gmp_dir | |
757 | with_gmp | |
758 | with_gmp_include | |
759 | with_gmp_lib | |
760 | with_host_libstdcxx | |
761 | with_stage1_ldflags | |
762 | with_stage1_libs | |
81ecdfbb | 763 | with_boot_libs |
143754cd | 764 | with_boot_ldflags |
81ecdfbb RW |
765 | with_ppl |
766 | with_ppl_include | |
767 | with_ppl_lib | |
768 | enable_ppl_version_check | |
769 | with_cloog | |
770 | with_cloog_include | |
771 | with_cloog_lib | |
e552509b | 772 | enable_cloog_backend |
81ecdfbb | 773 | enable_cloog_version_check |
700d40ca | 774 | enable_lto |
81ecdfbb RW |
775 | enable_stage1_languages |
776 | enable_objc_gc | |
777 | with_build_sysroot | |
778 | with_debug_prefix_map | |
779 | enable_bootstrap | |
96655cc4 | 780 | with_build_config |
81ecdfbb RW |
781 | enable_serial_configure |
782 | with_build_time_tools | |
783 | enable_maintainer_mode | |
784 | enable_stage1_checking | |
785 | enable_werror | |
81ecdfbb RW |
786 | ' |
787 | ac_precious_vars='build_alias | |
788 | host_alias | |
789 | target_alias | |
790 | CC | |
791 | CFLAGS | |
792 | LDFLAGS | |
793 | LIBS | |
794 | CPPFLAGS | |
795 | CXX | |
796 | CXXFLAGS | |
797 | CCC | |
4074d5f2 RW |
798 | build_configargs |
799 | host_configargs | |
800 | target_configargs | |
81ecdfbb RW |
801 | AR |
802 | AS | |
803 | DLLTOOL | |
804 | LD | |
805 | LIPO | |
806 | NM | |
807 | RANLIB | |
808 | STRIP | |
809 | WINDRES | |
810 | WINDMC | |
811 | OBJCOPY | |
812 | OBJDUMP | |
813 | CC_FOR_TARGET | |
814 | CXX_FOR_TARGET | |
815 | GCC_FOR_TARGET | |
816 | GCJ_FOR_TARGET | |
817 | GFORTRAN_FOR_TARGET | |
e552509b | 818 | GOC_FOR_TARGET |
81ecdfbb RW |
819 | AR_FOR_TARGET |
820 | AS_FOR_TARGET | |
821 | DLLTOOL_FOR_TARGET | |
822 | LD_FOR_TARGET | |
823 | LIPO_FOR_TARGET | |
824 | NM_FOR_TARGET | |
825 | OBJDUMP_FOR_TARGET | |
826 | RANLIB_FOR_TARGET | |
827 | STRIP_FOR_TARGET | |
828 | WINDRES_FOR_TARGET | |
829 | WINDMC_FOR_TARGET' | |
830 | ||
a0da8069 NN |
831 | |
832 | # Initialize some variables set by options. | |
c6b750e1 DJ |
833 | ac_init_help= |
834 | ac_init_version=false | |
81ecdfbb RW |
835 | ac_unrecognized_opts= |
836 | ac_unrecognized_sep= | |
a0da8069 NN |
837 | # The variables have the same names as the options, with |
838 | # dashes changed to underlines. | |
c6b750e1 | 839 | cache_file=/dev/null |
a0da8069 | 840 | exec_prefix=NONE |
a0da8069 | 841 | no_create= |
a0da8069 NN |
842 | no_recursion= |
843 | prefix=NONE | |
844 | program_prefix=NONE | |
845 | program_suffix=NONE | |
846 | program_transform_name=s,x,x, | |
847 | silent= | |
848 | site= | |
849 | srcdir= | |
a0da8069 NN |
850 | verbose= |
851 | x_includes=NONE | |
852 | x_libraries=NONE | |
c6b750e1 DJ |
853 | |
854 | # Installation directory options. | |
855 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
856 | # and all the variables that are supposed to be based on exec_prefix | |
857 | # by default will actually change. | |
858 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 859 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
860 | bindir='${exec_prefix}/bin' |
861 | sbindir='${exec_prefix}/sbin' | |
862 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
863 | datarootdir='${prefix}/share' |
864 | datadir='${datarootdir}' | |
a0da8069 NN |
865 | sysconfdir='${prefix}/etc' |
866 | sharedstatedir='${prefix}/com' | |
867 | localstatedir='${prefix}/var' | |
a0da8069 NN |
868 | includedir='${prefix}/include' |
869 | oldincludedir='/usr/include' | |
81ecdfbb RW |
870 | docdir='${datarootdir}/doc/${PACKAGE}' |
871 | infodir='${datarootdir}/info' | |
872 | htmldir='${docdir}' | |
873 | dvidir='${docdir}' | |
874 | pdfdir='${docdir}' | |
875 | psdir='${docdir}' | |
876 | libdir='${exec_prefix}/lib' | |
877 | localedir='${datarootdir}/locale' | |
878 | mandir='${datarootdir}/man' | |
252b5132 | 879 | |
a0da8069 | 880 | ac_prev= |
81ecdfbb | 881 | ac_dashdash= |
a0da8069 NN |
882 | for ac_option |
883 | do | |
a0da8069 NN |
884 | # If the previous option needs an argument, assign it. |
885 | if test -n "$ac_prev"; then | |
81ecdfbb | 886 | eval $ac_prev=\$ac_option |
a0da8069 NN |
887 | ac_prev= |
888 | continue | |
889 | fi | |
252b5132 | 890 | |
81ecdfbb RW |
891 | case $ac_option in |
892 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
893 | *) ac_optarg=yes ;; | |
894 | esac | |
a0da8069 NN |
895 | |
896 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
897 | ||
81ecdfbb RW |
898 | case $ac_dashdash$ac_option in |
899 | --) | |
900 | ac_dashdash=yes ;; | |
a0da8069 NN |
901 | |
902 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
903 | ac_prev=bindir ;; | |
904 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 905 | bindir=$ac_optarg ;; |
a0da8069 NN |
906 | |
907 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 908 | ac_prev=build_alias ;; |
a0da8069 | 909 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 910 | build_alias=$ac_optarg ;; |
a0da8069 NN |
911 | |
912 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
913 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
914 | ac_prev=cache_file ;; | |
915 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
916 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
917 | cache_file=$ac_optarg ;; |
918 | ||
919 | --config-cache | -C) | |
920 | cache_file=config.cache ;; | |
a0da8069 | 921 | |
81ecdfbb | 922 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 923 | ac_prev=datadir ;; |
81ecdfbb | 924 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 925 | datadir=$ac_optarg ;; |
a0da8069 | 926 | |
81ecdfbb RW |
927 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
928 | | --dataroo | --dataro | --datar) | |
929 | ac_prev=datarootdir ;; | |
930 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
931 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
932 | datarootdir=$ac_optarg ;; | |
933 | ||
a0da8069 | 934 | -disable-* | --disable-*) |
81ecdfbb | 935 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 936 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
937 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
938 | as_fn_error "invalid feature name: $ac_useropt" | |
939 | ac_useropt_orig=$ac_useropt | |
940 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
941 | case $ac_user_opts in | |
942 | *" | |
943 | "enable_$ac_useropt" | |
944 | "*) ;; | |
945 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
946 | ac_unrecognized_sep=', ';; | |
947 | esac | |
948 | eval enable_$ac_useropt=no ;; | |
949 | ||
950 | -docdir | --docdir | --docdi | --doc | --do) | |
951 | ac_prev=docdir ;; | |
952 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
953 | docdir=$ac_optarg ;; | |
954 | ||
955 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
956 | ac_prev=dvidir ;; | |
957 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
958 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
959 | |
960 | -enable-* | --enable-*) | |
81ecdfbb | 961 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 962 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
963 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
964 | as_fn_error "invalid feature name: $ac_useropt" | |
965 | ac_useropt_orig=$ac_useropt | |
966 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
967 | case $ac_user_opts in | |
968 | *" | |
969 | "enable_$ac_useropt" | |
970 | "*) ;; | |
971 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
972 | ac_unrecognized_sep=', ';; | |
a0da8069 | 973 | esac |
81ecdfbb | 974 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
975 | |
976 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
977 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
978 | | --exec | --exe | --ex) | |
979 | ac_prev=exec_prefix ;; | |
980 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
981 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
982 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 983 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
984 | |
985 | -gas | --gas | --ga | --g) | |
986 | # Obsolete; use --with-gas. | |
987 | with_gas=yes ;; | |
988 | ||
c6b750e1 DJ |
989 | -help | --help | --hel | --he | -h) |
990 | ac_init_help=long ;; | |
991 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
992 | ac_init_help=recursive ;; | |
993 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
994 | ac_init_help=short ;; | |
a0da8069 NN |
995 | |
996 | -host | --host | --hos | --ho) | |
c6b750e1 | 997 | ac_prev=host_alias ;; |
a0da8069 | 998 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 999 | host_alias=$ac_optarg ;; |
a0da8069 | 1000 | |
81ecdfbb RW |
1001 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1002 | ac_prev=htmldir ;; | |
1003 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1004 | | --ht=*) | |
1005 | htmldir=$ac_optarg ;; | |
1006 | ||
a0da8069 NN |
1007 | -includedir | --includedir | --includedi | --included | --include \ |
1008 | | --includ | --inclu | --incl | --inc) | |
1009 | ac_prev=includedir ;; | |
1010 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1011 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1012 | includedir=$ac_optarg ;; |
a0da8069 NN |
1013 | |
1014 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1015 | ac_prev=infodir ;; | |
1016 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1017 | infodir=$ac_optarg ;; |
a0da8069 NN |
1018 | |
1019 | -libdir | --libdir | --libdi | --libd) | |
1020 | ac_prev=libdir ;; | |
1021 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1022 | libdir=$ac_optarg ;; |
a0da8069 NN |
1023 | |
1024 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1025 | | --libexe | --libex | --libe) | |
1026 | ac_prev=libexecdir ;; | |
1027 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1028 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1029 | libexecdir=$ac_optarg ;; |
a0da8069 | 1030 | |
81ecdfbb RW |
1031 | -localedir | --localedir | --localedi | --localed | --locale) |
1032 | ac_prev=localedir ;; | |
1033 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1034 | localedir=$ac_optarg ;; | |
1035 | ||
a0da8069 | 1036 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1037 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1038 | ac_prev=localstatedir ;; |
1039 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1040 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1041 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1042 | |
1043 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1044 | ac_prev=mandir ;; | |
1045 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1046 | mandir=$ac_optarg ;; |
a0da8069 NN |
1047 | |
1048 | -nfp | --nfp | --nf) | |
1049 | # Obsolete; use --without-fp. | |
1050 | with_fp=no ;; | |
1051 | ||
1052 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1053 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1054 | no_create=yes ;; |
1055 | ||
1056 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1057 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1058 | no_recursion=yes ;; | |
1059 | ||
1060 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1061 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1062 | | --oldin | --oldi | --old | --ol | --o) | |
1063 | ac_prev=oldincludedir ;; | |
1064 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1065 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1066 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1067 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1068 | |
1069 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1070 | ac_prev=prefix ;; | |
1071 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1072 | prefix=$ac_optarg ;; |
a0da8069 NN |
1073 | |
1074 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1075 | | --program-pre | --program-pr | --program-p) | |
1076 | ac_prev=program_prefix ;; | |
1077 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1078 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1079 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1080 | |
1081 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1082 | | --program-suf | --program-su | --program-s) | |
1083 | ac_prev=program_suffix ;; | |
1084 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1085 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1086 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1087 | |
1088 | -program-transform-name | --program-transform-name \ | |
1089 | | --program-transform-nam | --program-transform-na \ | |
1090 | | --program-transform-n | --program-transform- \ | |
1091 | | --program-transform | --program-transfor \ | |
1092 | | --program-transfo | --program-transf \ | |
1093 | | --program-trans | --program-tran \ | |
1094 | | --progr-tra | --program-tr | --program-t) | |
1095 | ac_prev=program_transform_name ;; | |
1096 | -program-transform-name=* | --program-transform-name=* \ | |
1097 | | --program-transform-nam=* | --program-transform-na=* \ | |
1098 | | --program-transform-n=* | --program-transform-=* \ | |
1099 | | --program-transform=* | --program-transfor=* \ | |
1100 | | --program-transfo=* | --program-transf=* \ | |
1101 | | --program-trans=* | --program-tran=* \ | |
1102 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1103 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1104 | |
81ecdfbb RW |
1105 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1106 | ac_prev=pdfdir ;; | |
1107 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1108 | pdfdir=$ac_optarg ;; | |
1109 | ||
1110 | -psdir | --psdir | --psdi | --psd | --ps) | |
1111 | ac_prev=psdir ;; | |
1112 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1113 | psdir=$ac_optarg ;; | |
1114 | ||
a0da8069 NN |
1115 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1116 | | -silent | --silent | --silen | --sile | --sil) | |
1117 | silent=yes ;; | |
1118 | ||
1119 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1120 | ac_prev=sbindir ;; | |
1121 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1122 | | --sbi=* | --sb=*) | |
c6b750e1 | 1123 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1124 | |
1125 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1126 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1127 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1128 | | --sha | --sh) | |
1129 | ac_prev=sharedstatedir ;; | |
1130 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1131 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1132 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1133 | | --sha=* | --sh=*) | |
c6b750e1 | 1134 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1135 | |
1136 | -site | --site | --sit) | |
1137 | ac_prev=site ;; | |
1138 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1139 | site=$ac_optarg ;; |
a0da8069 NN |
1140 | |
1141 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1142 | ac_prev=srcdir ;; | |
1143 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1144 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1145 | |
1146 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1147 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1148 | ac_prev=sysconfdir ;; | |
1149 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1150 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1151 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1152 | |
1153 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1154 | ac_prev=target_alias ;; |
a0da8069 | 1155 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1156 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1157 | |
1158 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1159 | verbose=yes ;; | |
1160 | ||
c6b750e1 DJ |
1161 | -version | --version | --versio | --versi | --vers | -V) |
1162 | ac_init_version=: ;; | |
a0da8069 NN |
1163 | |
1164 | -with-* | --with-*) | |
81ecdfbb | 1165 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1166 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1167 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1168 | as_fn_error "invalid package name: $ac_useropt" | |
1169 | ac_useropt_orig=$ac_useropt | |
1170 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1171 | case $ac_user_opts in | |
1172 | *" | |
1173 | "with_$ac_useropt" | |
1174 | "*) ;; | |
1175 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1176 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1177 | esac |
81ecdfbb | 1178 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1179 | |
1180 | -without-* | --without-*) | |
81ecdfbb | 1181 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1182 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1183 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1184 | as_fn_error "invalid package name: $ac_useropt" | |
1185 | ac_useropt_orig=$ac_useropt | |
1186 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1187 | case $ac_user_opts in | |
1188 | *" | |
1189 | "with_$ac_useropt" | |
1190 | "*) ;; | |
1191 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1192 | ac_unrecognized_sep=', ';; | |
1193 | esac | |
1194 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1195 | |
1196 | --x) | |
1197 | # Obsolete; use --with-x. | |
1198 | with_x=yes ;; | |
1199 | ||
1200 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1201 | | --x-incl | --x-inc | --x-in | --x-i) | |
1202 | ac_prev=x_includes ;; | |
1203 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1204 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1205 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1206 | |
1207 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1208 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1209 | ac_prev=x_libraries ;; | |
1210 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1211 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1212 | x_libraries=$ac_optarg ;; |
a0da8069 | 1213 | |
81ecdfbb RW |
1214 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1215 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1216 | ;; |
1217 | ||
c6b750e1 DJ |
1218 | *=*) |
1219 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1220 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1221 | case $ac_envvar in #( |
1222 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1223 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1224 | esac | |
1225 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1226 | export $ac_envvar ;; |
1227 | ||
a0da8069 | 1228 | *) |
c6b750e1 | 1229 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1230 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1231 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1232 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1233 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1234 | ;; |
1235 | ||
1236 | esac | |
1237 | done | |
1238 | ||
1239 | if test -n "$ac_prev"; then | |
c6b750e1 | 1240 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1241 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1242 | fi |
a0da8069 | 1243 | |
81ecdfbb RW |
1244 | if test -n "$ac_unrecognized_opts"; then |
1245 | case $enable_option_checking in | |
1246 | no) ;; | |
1247 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1248 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1249 | esac |
81ecdfbb | 1250 | fi |
a0da8069 | 1251 | |
81ecdfbb RW |
1252 | # Check all directory arguments for consistency. |
1253 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1254 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1255 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1256 | libdir localedir mandir | |
a0da8069 | 1257 | do |
81ecdfbb RW |
1258 | eval ac_val=\$$ac_var |
1259 | # Remove trailing slashes. | |
1260 | case $ac_val in | |
1261 | */ ) | |
1262 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1263 | eval $ac_var=\$ac_val;; | |
1264 | esac | |
1265 | # Be sure to have absolute directory names. | |
c6b750e1 | 1266 | case $ac_val in |
81ecdfbb RW |
1267 | [\\/$]* | ?:[\\/]* ) continue;; |
1268 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1269 | esac |
81ecdfbb | 1270 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1271 | done |
1272 | ||
c6b750e1 DJ |
1273 | # There might be people who depend on the old broken behavior: `$host' |
1274 | # used to hold the argument of --host etc. | |
1275 | # FIXME: To remove some day. | |
1276 | build=$build_alias | |
1277 | host=$host_alias | |
1278 | target=$target_alias | |
376a0e54 | 1279 | |
c6b750e1 DJ |
1280 | # FIXME: To remove some day. |
1281 | if test "x$host_alias" != x; then | |
1282 | if test "x$build_alias" = x; then | |
1283 | cross_compiling=maybe | |
81ecdfbb | 1284 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1285 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1286 | elif test "x$build_alias" != "x$host_alias"; then | |
1287 | cross_compiling=yes | |
1288 | fi | |
1289 | fi | |
1290 | ||
1291 | ac_tool_prefix= | |
1292 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1293 | ||
1294 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1295 | |
a0da8069 | 1296 | |
81ecdfbb RW |
1297 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1298 | ac_ls_di=`ls -di .` && | |
1299 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1300 | as_fn_error "working directory cannot be determined" | |
1301 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1302 | as_fn_error "pwd does not report name of working directory" | |
1303 | ||
1304 | ||
a0da8069 NN |
1305 | # Find the source files, if location was not specified. |
1306 | if test -z "$srcdir"; then | |
1307 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1308 | # Try the directory containing this script, then the parent directory. |
1309 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1310 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1311 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1312 | X"$as_myself" : 'X\(//\)$' \| \ | |
1313 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1314 | $as_echo X"$as_myself" | | |
1315 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1316 | s//\1/ | |
1317 | q | |
1318 | } | |
1319 | /^X\(\/\/\)[^/].*/{ | |
1320 | s//\1/ | |
1321 | q | |
1322 | } | |
1323 | /^X\(\/\/\)$/{ | |
1324 | s//\1/ | |
1325 | q | |
1326 | } | |
1327 | /^X\(\/\).*/{ | |
1328 | s//\1/ | |
1329 | q | |
1330 | } | |
1331 | s/.*/./; q'` | |
a0da8069 | 1332 | srcdir=$ac_confdir |
81ecdfbb | 1333 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1334 | srcdir=.. |
1335 | fi | |
1336 | else | |
1337 | ac_srcdir_defaulted=no | |
1338 | fi | |
81ecdfbb RW |
1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
1340 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1341 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1342 | fi | |
1343 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1344 | ac_abs_confdir=`( | |
1345 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1346 | pwd)` | |
1347 | # When building in place, set srcdir=. | |
1348 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1349 | srcdir=. | |
1350 | fi | |
1351 | # Remove unnecessary trailing slashes from srcdir. | |
1352 | # Double slashes in file names in object file debugging info | |
1353 | # mess up M-x gdb in Emacs. | |
1354 | case $srcdir in | |
1355 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1356 | esac | |
6d0cd39e AM |
1357 | case $srcdir in |
1358 | *" "*) | |
1359 | as_fn_error "path to source, $srcdir, contains spaces" | |
1360 | ;; | |
1361 | esac | |
9cc8ae67 PB |
1362 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1363 | ||
81ecdfbb RW |
1364 | for ac_var in $ac_precious_vars; do |
1365 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1366 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1367 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1368 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1369 | done | |
c6b750e1 DJ |
1370 | |
1371 | # | |
1372 | # Report the --help message. | |
1373 | # | |
1374 | if test "$ac_init_help" = "long"; then | |
1375 | # Omit some internal or obsolete options to make the list less imposing. | |
1376 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1377 | cat <<_ACEOF | |
1378 | \`configure' configures this package to adapt to many kinds of systems. | |
1379 | ||
1380 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1381 | ||
1382 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1383 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1384 | ||
1385 | Defaults for the options are specified in brackets. | |
1386 | ||
1387 | Configuration: | |
1388 | -h, --help display this help and exit | |
1389 | --help=short display options specific to this package | |
1390 | --help=recursive display the short help of all the included packages | |
1391 | -V, --version display version information and exit | |
1392 | -q, --quiet, --silent do not print \`checking...' messages | |
1393 | --cache-file=FILE cache test results in FILE [disabled] | |
1394 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1395 | -n, --no-create do not create output files | |
1396 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1397 | ||
c6b750e1 DJ |
1398 | Installation directories: |
1399 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1400 | [$ac_default_prefix] |
c6b750e1 | 1401 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1402 | [PREFIX] |
c6b750e1 DJ |
1403 | |
1404 | By default, \`make install' will install all the files in | |
1405 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1406 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1407 | for instance \`--prefix=\$HOME'. | |
1408 | ||
1409 | For better control, use the options below. | |
1410 | ||
1411 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1412 | --bindir=DIR user executables [EPREFIX/bin] |
1413 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1414 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1415 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1416 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1417 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1418 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1419 | --includedir=DIR C header files [PREFIX/include] | |
1420 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1421 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1422 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1423 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1424 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1425 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1426 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1427 | --htmldir=DIR html documentation [DOCDIR] | |
1428 | --dvidir=DIR dvi documentation [DOCDIR] | |
1429 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1430 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1431 | _ACEOF |
1432 | ||
1433 | cat <<\_ACEOF | |
1434 | ||
1435 | Program names: | |
1436 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1437 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1438 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1439 | ||
1440 | System types: | |
1441 | --build=BUILD configure for building on BUILD [guessed] | |
1442 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1443 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1444 | _ACEOF | |
a0da8069 | 1445 | fi |
a0da8069 | 1446 | |
c6b750e1 DJ |
1447 | if test -n "$ac_init_help"; then |
1448 | ||
1449 | cat <<\_ACEOF | |
1450 | ||
1451 | Optional Features: | |
81ecdfbb | 1452 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1453 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1454 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c7791212 | 1455 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1456 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
89a1e9c3 PB |
1457 | --disable-libquadmath do not build libquadmath directory |
1458 | --disable-libquadmath-support | |
1459 | disable libquadmath support for Fortran | |
521ec477 DD |
1460 | --enable-libada build libada directory |
1461 | --enable-libssp build libssp directory | |
e8a5fa9c | 1462 | --enable-build-with-cxx build with C++ compiler instead of C compiler |
7837304f AS |
1463 | --disable-ppl-version-check |
1464 | disable check for PPL version | |
ceca0218 PB |
1465 | --enable-cloog-backend[=BACKEND] |
1466 | set the CLooG BACKEND used to either isl, ppl or | |
1467 | ppl-legacy (default) | |
e552509b ILT |
1468 | --disable-cloog-version-check |
1469 | disable check for CLooG version | |
700d40ca | 1470 | --enable-lto enable link time optimization support |
7837304f AS |
1471 | --enable-stage1-languages[=all] |
1472 | choose additional languages to build during stage1. | |
1473 | Mostly useful for compiler development | |
1474 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1475 | Objective-C runtime | |
521ec477 DD |
1476 | --enable-bootstrap enable bootstrapping [yes if native build] |
1477 | --enable-serial-[{host,target,build}-]configure | |
7837304f AS |
1478 | force sequential configuration of sub-packages for |
1479 | the host, target or build machine, or all | |
1480 | sub-packages | |
1481 | --enable-maintainer-mode | |
1482 | enable make rules and dependencies not useful (and | |
1483 | sometimes confusing) to the casual installer | |
1484 | --enable-stage1-checking[=all] | |
1485 | choose additional checking for stage1 of the | |
1486 | compiler | |
c6b750e1 DJ |
1487 | --enable-werror enable -Werror in bootstrap stage2 and later |
1488 | ||
1489 | Optional Packages: | |
1490 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1491 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1492 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
7837304f AS |
1493 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1494 | Equivalent to --with-mpc-include=PATH/include plus | |
1495 | --with-mpc-lib=PATH/lib | |
1496 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1497 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1498 | --with-mpfr-dir=PATH this option has been REMOVED |
1499 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1500 | Equivalent to --with-mpfr-include=PATH/include plus |
1501 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1502 | --with-mpfr-include=PATH |
521ec477 DD |
1503 | specify directory for installed MPFR include files |
1504 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1505 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1506 | --with-gmp=PATH specify prefix directory for the installed GMP |
1507 | package. Equivalent to | |
1508 | --with-gmp-include=PATH/include plus | |
1509 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1510 | --with-gmp-include=PATH specify directory for installed GMP include files |
1511 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
7837304f AS |
1512 | --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when |
1513 | linking with PPL | |
1514 | --with-stage1-ldflags=FLAGS | |
1515 | linker flags for stage1 | |
1516 | --with-stage1-libs=LIBS libraries for stage1 | |
1517 | --with-boot-libs=LIBS libraries for stage2 and later | |
1518 | --with-boot-ldflags=FLAGS | |
1519 | linker flags for stage2 and later | |
1520 | --with-ppl=PATH specify prefix directory for the installed PPL | |
1521 | package. Equivalent to | |
1522 | --with-ppl-include=PATH/include plus | |
1523 | --with-ppl-lib=PATH/lib | |
1524 | --with-ppl-include=PATH specify directory for installed PPL include files | |
1525 | --with-ppl-lib=PATH specify directory for the installed PPL library | |
e552509b ILT |
1526 | --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL |
1527 | package. Equivalent to | |
1528 | --with-cloog-include=PATH/include plus | |
1529 | --with-cloog-lib=PATH/lib | |
1530 | --with-cloog-include=PATH | |
1531 | Specify directory for installed CLooG include files | |
1532 | --with-cloog-lib=PATH Specify the directory for the installed CLooG | |
1533 | library | |
521ec477 | 1534 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1535 | use sysroot as the system root during the build |
8a6ee3ab | 1536 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1537 | map A to B, C to D ... in debug information |
1538 | --with-build-config='NAME NAME2...' | |
1539 | use config/NAME.mk build configuration | |
521ec477 | 1540 | --with-build-time-tools=PATH |
c6b750e1 | 1541 | use given path to find target tools during the build |
c6b750e1 DJ |
1542 | |
1543 | Some influential environment variables: | |
1544 | CC C compiler command | |
1545 | CFLAGS C compiler flags | |
1546 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1547 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1548 | LIBS libraries to pass to the linker, e.g. -l<library> |
1549 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1550 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1551 | CXX C++ compiler command |
1552 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1553 | build_configargs |
1554 | additional configure arguments for build directories | |
1555 | host_configargs | |
1556 | additional configure arguments for host directories | |
1557 | target_configargs | |
1558 | additional configure arguments for target directories | |
9a819804 AO |
1559 | AR AR for the host |
1560 | AS AS for the host | |
1561 | DLLTOOL DLLTOOL for the host | |
1562 | LD LD for the host | |
1563 | LIPO LIPO for the host | |
1564 | NM NM for the host | |
1565 | RANLIB RANLIB for the host | |
1566 | STRIP STRIP for the host | |
1567 | WINDRES WINDRES for the host | |
0c24b341 | 1568 | WINDMC WINDMC for the host |
9a819804 AO |
1569 | OBJCOPY OBJCOPY for the host |
1570 | OBJDUMP OBJDUMP for the host | |
1571 | CC_FOR_TARGET | |
1572 | CC for the target | |
1573 | CXX_FOR_TARGET | |
1574 | CXX for the target | |
1575 | GCC_FOR_TARGET | |
1576 | GCC for the target | |
1577 | GCJ_FOR_TARGET | |
1578 | GCJ for the target | |
1579 | GFORTRAN_FOR_TARGET | |
1580 | GFORTRAN for the target | |
e552509b ILT |
1581 | GOC_FOR_TARGET |
1582 | GOC for the target | |
9a819804 AO |
1583 | AR_FOR_TARGET |
1584 | AR for the target | |
1585 | AS_FOR_TARGET | |
1586 | AS for the target | |
1587 | DLLTOOL_FOR_TARGET | |
1588 | DLLTOOL for the target | |
1589 | LD_FOR_TARGET | |
1590 | LD for the target | |
1591 | LIPO_FOR_TARGET | |
1592 | LIPO for the target | |
1593 | NM_FOR_TARGET | |
1594 | NM for the target | |
1595 | OBJDUMP_FOR_TARGET | |
1596 | OBJDUMP for the target | |
1597 | RANLIB_FOR_TARGET | |
1598 | RANLIB for the target | |
1599 | STRIP_FOR_TARGET | |
1600 | STRIP for the target | |
1601 | WINDRES_FOR_TARGET | |
1602 | WINDRES for the target | |
0c24b341 NC |
1603 | WINDMC_FOR_TARGET |
1604 | WINDMC for the target | |
c6b750e1 DJ |
1605 | |
1606 | Use these variables to override the choices made by `configure' or to help | |
1607 | it to find libraries and programs with nonstandard names/locations. | |
1608 | ||
81ecdfbb | 1609 | Report bugs to the package provider. |
c6b750e1 | 1610 | _ACEOF |
81ecdfbb | 1611 | ac_status=$? |
c6b750e1 DJ |
1612 | fi |
1613 | ||
1614 | if test "$ac_init_help" = "recursive"; then | |
1615 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1616 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1617 | test -d "$ac_dir" || |
1618 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1619 | continue | |
c6b750e1 DJ |
1620 | ac_builddir=. |
1621 | ||
81ecdfbb RW |
1622 | case "$ac_dir" in |
1623 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1624 | *) | |
1625 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1626 | # A ".." for each directory in $ac_dir_suffix. | |
1627 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1628 | case $ac_top_builddir_sub in | |
1629 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1630 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1631 | esac ;; | |
1632 | esac | |
1633 | ac_abs_top_builddir=$ac_pwd | |
1634 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1635 | # for backward compatibility: | |
1636 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1637 | |
1638 | case $srcdir in | |
81ecdfbb | 1639 | .) # We are building in place. |
c6b750e1 | 1640 | ac_srcdir=. |
81ecdfbb RW |
1641 | ac_top_srcdir=$ac_top_builddir_sub |
1642 | ac_abs_top_srcdir=$ac_pwd ;; | |
1643 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1644 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1645 | ac_top_srcdir=$srcdir |
1646 | ac_abs_top_srcdir=$srcdir ;; | |
1647 | *) # Relative name. | |
1648 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1649 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1650 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1651 | esac |
81ecdfbb RW |
1652 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1653 | ||
1654 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1655 | # Check for guested configure. | |
1656 | if test -f "$ac_srcdir/configure.gnu"; then | |
1657 | echo && | |
1658 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1659 | elif test -f "$ac_srcdir/configure"; then | |
1660 | echo && | |
1661 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1662 | else |
81ecdfbb RW |
1663 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1664 | fi || ac_status=$? | |
1665 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1666 | done |
1667 | fi | |
1668 | ||
81ecdfbb | 1669 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1670 | if $ac_init_version; then |
1671 | cat <<\_ACEOF | |
81ecdfbb RW |
1672 | configure |
1673 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1674 | |
81ecdfbb | 1675 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1676 | This configure script is free software; the Free Software Foundation |
1677 | gives unlimited permission to copy, distribute and modify it. | |
1678 | _ACEOF | |
81ecdfbb | 1679 | exit |
c6b750e1 | 1680 | fi |
81ecdfbb RW |
1681 | |
1682 | ## ------------------------ ## | |
1683 | ## Autoconf initialization. ## | |
1684 | ## ------------------------ ## | |
1685 | ||
1686 | # ac_fn_c_try_compile LINENO | |
1687 | # -------------------------- | |
1688 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1689 | ac_fn_c_try_compile () | |
1690 | { | |
1691 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1692 | rm -f conftest.$ac_objext | |
1693 | if { { ac_try="$ac_compile" | |
1694 | case "(($ac_try" in | |
1695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1696 | *) ac_try_echo=$ac_try;; | |
1697 | esac | |
1698 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1699 | $as_echo "$ac_try_echo"; } >&5 | |
1700 | (eval "$ac_compile") 2>conftest.err | |
1701 | ac_status=$? | |
1702 | if test -s conftest.err; then | |
1703 | grep -v '^ *+' conftest.err >conftest.er1 | |
1704 | cat conftest.er1 >&5 | |
1705 | mv -f conftest.er1 conftest.err | |
1706 | fi | |
1707 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1708 | test $ac_status = 0; } && { | |
1709 | test -z "$ac_c_werror_flag" || | |
1710 | test ! -s conftest.err | |
1711 | } && test -s conftest.$ac_objext; then : | |
1712 | ac_retval=0 | |
1713 | else | |
1714 | $as_echo "$as_me: failed program was:" >&5 | |
1715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1716 | ||
1717 | ac_retval=1 | |
1718 | fi | |
1719 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1720 | return $ac_retval | |
1721 | ||
1722 | } # ac_fn_c_try_compile | |
1723 | ||
1724 | # ac_fn_cxx_try_compile LINENO | |
1725 | # ---------------------------- | |
1726 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1727 | ac_fn_cxx_try_compile () | |
1728 | { | |
1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1730 | rm -f conftest.$ac_objext | |
1731 | if { { ac_try="$ac_compile" | |
1732 | case "(($ac_try" in | |
1733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1734 | *) ac_try_echo=$ac_try;; | |
1735 | esac | |
1736 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1737 | $as_echo "$ac_try_echo"; } >&5 | |
1738 | (eval "$ac_compile") 2>conftest.err | |
1739 | ac_status=$? | |
1740 | if test -s conftest.err; then | |
1741 | grep -v '^ *+' conftest.err >conftest.er1 | |
1742 | cat conftest.er1 >&5 | |
1743 | mv -f conftest.er1 conftest.err | |
1744 | fi | |
1745 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1746 | test $ac_status = 0; } && { | |
1747 | test -z "$ac_cxx_werror_flag" || | |
1748 | test ! -s conftest.err | |
1749 | } && test -s conftest.$ac_objext; then : | |
1750 | ac_retval=0 | |
1751 | else | |
1752 | $as_echo "$as_me: failed program was:" >&5 | |
1753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1754 | ||
1755 | ac_retval=1 | |
1756 | fi | |
1757 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1758 | return $ac_retval | |
1759 | ||
1760 | } # ac_fn_cxx_try_compile | |
1761 | ||
1762 | # ac_fn_c_try_link LINENO | |
1763 | # ----------------------- | |
1764 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1765 | ac_fn_c_try_link () | |
1766 | { | |
1767 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1769 | if { { ac_try="$ac_link" | |
1770 | case "(($ac_try" in | |
1771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1772 | *) ac_try_echo=$ac_try;; | |
1773 | esac | |
1774 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1775 | $as_echo "$ac_try_echo"; } >&5 | |
1776 | (eval "$ac_link") 2>conftest.err | |
1777 | ac_status=$? | |
1778 | if test -s conftest.err; then | |
1779 | grep -v '^ *+' conftest.err >conftest.er1 | |
1780 | cat conftest.er1 >&5 | |
1781 | mv -f conftest.er1 conftest.err | |
1782 | fi | |
1783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1784 | test $ac_status = 0; } && { | |
1785 | test -z "$ac_c_werror_flag" || | |
1786 | test ! -s conftest.err | |
1787 | } && test -s conftest$ac_exeext && { | |
1788 | test "$cross_compiling" = yes || | |
1789 | $as_test_x conftest$ac_exeext | |
1790 | }; then : | |
1791 | ac_retval=0 | |
1792 | else | |
1793 | $as_echo "$as_me: failed program was:" >&5 | |
1794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1795 | ||
1796 | ac_retval=1 | |
1797 | fi | |
1798 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1799 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1800 | # interfere with the next link command; also delete a directory that is | |
1801 | # left behind by Apple's compiler. We do this before executing the actions. | |
1802 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1803 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1804 | return $ac_retval | |
1805 | ||
1806 | } # ac_fn_c_try_link | |
1807 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1808 | This file contains any messages produced by compilers while |
1809 | running configure, to aid debugging if configure makes a mistake. | |
1810 | ||
1811 | It was created by $as_me, which was | |
81ecdfbb | 1812 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1813 | |
1814 | $ $0 $@ | |
1815 | ||
1816 | _ACEOF | |
81ecdfbb | 1817 | exec 5>>config.log |
c6b750e1 DJ |
1818 | { |
1819 | cat <<_ASUNAME | |
1820 | ## --------- ## | |
1821 | ## Platform. ## | |
1822 | ## --------- ## | |
1823 | ||
1824 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1825 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1826 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1827 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1828 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1829 | ||
1830 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1831 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1832 | ||
1833 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1834 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1835 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1836 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1837 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1838 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1839 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1840 | ||
1841 | _ASUNAME | |
1842 | ||
1843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1844 | for as_dir in $PATH | |
1845 | do | |
1846 | IFS=$as_save_IFS | |
1847 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1848 | $as_echo "PATH: $as_dir" |
1849 | done | |
1850 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1851 | |
1852 | } >&5 | |
1853 | ||
1854 | cat >&5 <<_ACEOF | |
1855 | ||
1856 | ||
1857 | ## ----------- ## | |
1858 | ## Core tests. ## | |
1859 | ## ----------- ## | |
1860 | ||
1861 | _ACEOF | |
1862 | ||
1863 | ||
1864 | # Keep a trace of the command line. | |
1865 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1866 | # Strip out --silent because we don't want to record it for future runs. | |
1867 | # Also quote any args containing shell meta-characters. | |
1868 | # Make two passes to allow for proper duplicate-argument suppression. | |
1869 | ac_configure_args= | |
1870 | ac_configure_args0= | |
1871 | ac_configure_args1= | |
c6b750e1 DJ |
1872 | ac_must_keep_next=false |
1873 | for ac_pass in 1 2 | |
1874 | do | |
1875 | for ac_arg | |
1876 | do | |
1877 | case $ac_arg in | |
1878 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1879 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1880 | | -silent | --silent | --silen | --sile | --sil) | |
1881 | continue ;; | |
81ecdfbb RW |
1882 | *\'*) |
1883 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1884 | esac |
1885 | case $ac_pass in | |
81ecdfbb | 1886 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1887 | 2) |
81ecdfbb | 1888 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1889 | if test $ac_must_keep_next = true; then |
1890 | ac_must_keep_next=false # Got value, back to normal. | |
1891 | else | |
1892 | case $ac_arg in | |
1893 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1894 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1895 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1896 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1897 | case "$ac_configure_args0 " in | |
1898 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1899 | esac | |
1900 | ;; | |
1901 | -* ) ac_must_keep_next=true ;; | |
1902 | esac | |
1903 | fi | |
81ecdfbb | 1904 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1905 | ;; |
1906 | esac | |
1907 | done | |
1908 | done | |
81ecdfbb RW |
1909 | { ac_configure_args0=; unset ac_configure_args0;} |
1910 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1911 | |
1912 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1913 | # config.log. We remove comments because anyway the quotes in there | |
1914 | # would cause problems or look ugly. | |
81ecdfbb RW |
1915 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1916 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1917 | trap 'exit_status=$? |
1918 | # Save into config.log some information that might help in debugging. | |
1919 | { | |
1920 | echo | |
1921 | ||
1922 | cat <<\_ASBOX | |
1923 | ## ---------------- ## | |
1924 | ## Cache variables. ## | |
1925 | ## ---------------- ## | |
1926 | _ASBOX | |
1927 | echo | |
1928 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
1929 | ( |
1930 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1931 | eval ac_val=\$$ac_var | |
1932 | case $ac_val in #( | |
1933 | *${as_nl}*) | |
1934 | case $ac_var in #( | |
1935 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
1936 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1937 | esac | |
1938 | case $ac_var in #( | |
1939 | _ | IFS | as_nl) ;; #( | |
1940 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1941 | *) { eval $ac_var=; unset $ac_var;} ;; | |
1942 | esac ;; | |
1943 | esac | |
1944 | done | |
c6b750e1 | 1945 | (set) 2>&1 | |
81ecdfbb RW |
1946 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1947 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 1948 | sed -n \ |
81ecdfbb RW |
1949 | "s/'\''/'\''\\\\'\'''\''/g; |
1950 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1951 | ;; #( | |
c6b750e1 | 1952 | *) |
81ecdfbb | 1953 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 1954 | ;; |
81ecdfbb RW |
1955 | esac | |
1956 | sort | |
1957 | ) | |
c6b750e1 DJ |
1958 | echo |
1959 | ||
1960 | cat <<\_ASBOX | |
1961 | ## ----------------- ## | |
1962 | ## Output variables. ## | |
1963 | ## ----------------- ## | |
1964 | _ASBOX | |
1965 | echo | |
1966 | for ac_var in $ac_subst_vars | |
1967 | do | |
81ecdfbb RW |
1968 | eval ac_val=\$$ac_var |
1969 | case $ac_val in | |
1970 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1971 | esac | |
1972 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
1973 | done | sort |
1974 | echo | |
1975 | ||
1976 | if test -n "$ac_subst_files"; then | |
1977 | cat <<\_ASBOX | |
81ecdfbb RW |
1978 | ## ------------------- ## |
1979 | ## File substitutions. ## | |
1980 | ## ------------------- ## | |
c6b750e1 DJ |
1981 | _ASBOX |
1982 | echo | |
1983 | for ac_var in $ac_subst_files | |
1984 | do | |
81ecdfbb RW |
1985 | eval ac_val=\$$ac_var |
1986 | case $ac_val in | |
1987 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1988 | esac | |
1989 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
1990 | done | sort |
1991 | echo | |
1992 | fi | |
1993 | ||
1994 | if test -s confdefs.h; then | |
1995 | cat <<\_ASBOX | |
1996 | ## ----------- ## | |
1997 | ## confdefs.h. ## | |
1998 | ## ----------- ## | |
1999 | _ASBOX | |
2000 | echo | |
81ecdfbb | 2001 | cat confdefs.h |
c6b750e1 DJ |
2002 | echo |
2003 | fi | |
2004 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2005 | $as_echo "$as_me: caught signal $ac_signal" |
2006 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2007 | } >&5 |
81ecdfbb RW |
2008 | rm -f core *.core core.conftest.* && |
2009 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2010 | exit $exit_status |
81ecdfbb | 2011 | ' 0 |
c6b750e1 | 2012 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2013 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2014 | done |
2015 | ac_signal=0 | |
2016 | ||
2017 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2018 | rm -f -r conftest* confdefs.h |
2019 | ||
2020 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2021 | |
2022 | # Predefined preprocessor variables. | |
2023 | ||
2024 | cat >>confdefs.h <<_ACEOF | |
2025 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2026 | _ACEOF | |
2027 | ||
c6b750e1 DJ |
2028 | cat >>confdefs.h <<_ACEOF |
2029 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2030 | _ACEOF | |
2031 | ||
c6b750e1 DJ |
2032 | cat >>confdefs.h <<_ACEOF |
2033 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2034 | _ACEOF | |
2035 | ||
c6b750e1 DJ |
2036 | cat >>confdefs.h <<_ACEOF |
2037 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2038 | _ACEOF | |
2039 | ||
c6b750e1 DJ |
2040 | cat >>confdefs.h <<_ACEOF |
2041 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2042 | _ACEOF | |
2043 | ||
81ecdfbb RW |
2044 | cat >>confdefs.h <<_ACEOF |
2045 | #define PACKAGE_URL "$PACKAGE_URL" | |
2046 | _ACEOF | |
2047 | ||
c6b750e1 DJ |
2048 | |
2049 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2050 | # Prefer an explicitly selected file to automatically selected ones. |
2051 | ac_site_file1=NONE | |
2052 | ac_site_file2=NONE | |
2053 | if test -n "$CONFIG_SITE"; then | |
2054 | ac_site_file1=$CONFIG_SITE | |
2055 | elif test "x$prefix" != xNONE; then | |
2056 | ac_site_file1=$prefix/share/config.site | |
2057 | ac_site_file2=$prefix/etc/config.site | |
2058 | else | |
2059 | ac_site_file1=$ac_default_prefix/share/config.site | |
2060 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2061 | fi |
81ecdfbb RW |
2062 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2063 | do | |
2064 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2065 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2066 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2067 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2068 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2069 | . "$ac_site_file" |
2070 | fi | |
2071 | done | |
2072 | ||
2073 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2074 | # Some versions of bash will fail to source /dev/null (special |
2075 | # files actually), so we avoid doing that. | |
2076 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2078 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2079 | case $cache_file in |
81ecdfbb RW |
2080 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2081 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2082 | esac |
2083 | fi | |
a0da8069 | 2084 | else |
81ecdfbb RW |
2085 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2086 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2087 | >$cache_file |
2088 | fi | |
2089 | ||
2090 | # Check that the precious variables saved in the cache have kept the same | |
2091 | # value. | |
2092 | ac_cache_corrupted=false | |
81ecdfbb | 2093 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2094 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2095 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2096 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2097 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2098 | case $ac_old_set,$ac_new_set in |
2099 | set,) | |
81ecdfbb RW |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2101 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2102 | ac_cache_corrupted=: ;; |
2103 | ,set) | |
81ecdfbb RW |
2104 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2105 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2106 | ac_cache_corrupted=: ;; |
2107 | ,);; | |
2108 | *) | |
2109 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2110 | # differences in whitespace do not lead to failure. |
2111 | ac_old_val_w=`echo x $ac_old_val` | |
2112 | ac_new_val_w=`echo x $ac_new_val` | |
2113 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2115 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2116 | ac_cache_corrupted=: | |
2117 | else | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2119 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2120 | eval $ac_var=\$ac_old_val | |
2121 | fi | |
2122 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2123 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2124 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2125 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2126 | fi;; |
2127 | esac | |
2128 | # Pass precious variables to config.status. | |
2129 | if test "$ac_new_set" = set; then | |
2130 | case $ac_new_val in | |
81ecdfbb | 2131 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2132 | *) ac_arg=$ac_var=$ac_new_val ;; |
2133 | esac | |
2134 | case " $ac_configure_args " in | |
2135 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2136 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2137 | esac |
2138 | fi | |
2139 | done | |
2140 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2141 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2142 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2144 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2145 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2146 | fi |
81ecdfbb RW |
2147 | ## -------------------- ## |
2148 | ## Main body of script. ## | |
2149 | ## -------------------- ## | |
a0da8069 NN |
2150 | |
2151 | ac_ext=c | |
a0da8069 | 2152 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2156 | ||
2157 | ||
2158 | ||
2159 | ||
c6b750e1 DJ |
2160 | |
2161 | ||
34a0f3cf | 2162 | |
c6b750e1 | 2163 | |
5b553f7e RW |
2164 | |
2165 | progname=$0 | |
2166 | # if PWD already has a value, it is probably wrong. | |
2167 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2168 | ||
2169 | # Export original configure arguments for use by sub-configures. | |
2170 | # Quote arguments with shell meta charatcers. | |
2171 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2172 | set -- "$progname" "$@" | |
2173 | for ac_arg | |
2174 | do | |
2175 | case "$ac_arg" in | |
2176 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2177 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2178 | # if the argument is of the form -foo=baz, quote the baz part only | |
2179 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2180 | *) ;; | |
2181 | esac | |
2182 | # Add the quoted argument to the list. | |
2183 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2184 | done | |
2185 | if test "$silent" = yes; then | |
2186 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2187 | fi | |
2188 | # Remove the initial space we just introduced and, as these will be | |
2189 | # expanded by make, quote '$'. | |
2190 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2191 | ||
c6b750e1 DJ |
2192 | |
2193 | # Find the build, host, and target systems. | |
a0da8069 | 2194 | ac_aux_dir= |
81ecdfbb RW |
2195 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2196 | for ac_t in install-sh install.sh shtool; do | |
2197 | if test -f "$ac_dir/$ac_t"; then | |
2198 | ac_aux_dir=$ac_dir | |
2199 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2200 | break 2 | |
2201 | fi | |
2202 | done | |
a0da8069 NN |
2203 | done |
2204 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2205 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2206 | fi |
81ecdfbb RW |
2207 | |
2208 | # These three variables are undocumented and unsupported, | |
2209 | # and are intended to be withdrawn in a future Autoconf release. | |
2210 | # They can cause serious problems if a builder's source tree is in a directory | |
2211 | # whose full name contains unusual characters. | |
2212 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2213 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2214 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2215 | ||
a0da8069 | 2216 | |
c6b750e1 | 2217 | # Make sure we can run config.sub. |
81ecdfbb RW |
2218 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2219 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2220 | ||
2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2222 | $as_echo_n "checking build system type... " >&6; } | |
2223 | if test "${ac_cv_build+set}" = set; then : | |
2224 | $as_echo_n "(cached) " >&6 | |
2225 | else | |
2226 | ac_build_alias=$build_alias | |
2227 | test "x$ac_build_alias" = x && | |
2228 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2229 | test "x$ac_build_alias" = x && | |
2230 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2231 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2232 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2233 | ||
2234 | fi | |
2235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2236 | $as_echo "$ac_cv_build" >&6; } | |
2237 | case $ac_cv_build in | |
2238 | *-*-*) ;; | |
2239 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2240 | esac | |
c6b750e1 | 2241 | build=$ac_cv_build |
81ecdfbb RW |
2242 | ac_save_IFS=$IFS; IFS='-' |
2243 | set x $ac_cv_build | |
2244 | shift | |
2245 | build_cpu=$1 | |
2246 | build_vendor=$2 | |
2247 | shift; shift | |
2248 | # Remember, the first character of IFS is used to create $*, | |
2249 | # except with old shells: | |
2250 | build_os=$* | |
2251 | IFS=$ac_save_IFS | |
2252 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2253 | |
a0da8069 | 2254 | |
c6b750e1 DJ |
2255 | case ${build_alias} in |
2256 | "") build_noncanonical=${build} ;; | |
2257 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2258 | esac |
2259 | ||
2260 | ||
cac3d6c4 | 2261 | |
c6b750e1 DJ |
2262 | case ${host_alias} in |
2263 | "") host_noncanonical=${build_noncanonical} ;; | |
2264 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2265 | esac |
2266 | ||
cac3d6c4 | 2267 | |
c6b750e1 DJ |
2268 | |
2269 | case ${target_alias} in | |
2270 | "") target_noncanonical=${host_noncanonical} ;; | |
2271 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2272 | esac |
2273 | ||
cac3d6c4 | 2274 | |
c6b750e1 DJ |
2275 | |
2276 | ||
2277 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2278 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2279 | NONENONEs,x,x, && | |
c6b750e1 | 2280 | program_transform_name=s,y,y, |
cac3d6c4 | 2281 | |
81ecdfbb RW |
2282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2283 | $as_echo_n "checking host system type... " >&6; } | |
2284 | if test "${ac_cv_host+set}" = set; then : | |
2285 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2286 | else |
81ecdfbb RW |
2287 | if test "x$host_alias" = x; then |
2288 | ac_cv_host=$ac_cv_build | |
2289 | else | |
2290 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2291 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2292 | fi | |
c6b750e1 DJ |
2293 | |
2294 | fi | |
81ecdfbb RW |
2295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2296 | $as_echo "$ac_cv_host" >&6; } | |
2297 | case $ac_cv_host in | |
2298 | *-*-*) ;; | |
2299 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2300 | esac | |
c6b750e1 | 2301 | host=$ac_cv_host |
81ecdfbb RW |
2302 | ac_save_IFS=$IFS; IFS='-' |
2303 | set x $ac_cv_host | |
2304 | shift | |
2305 | host_cpu=$1 | |
2306 | host_vendor=$2 | |
2307 | shift; shift | |
2308 | # Remember, the first character of IFS is used to create $*, | |
2309 | # except with old shells: | |
2310 | host_os=$* | |
2311 | IFS=$ac_save_IFS | |
2312 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2313 | |
2314 | ||
81ecdfbb RW |
2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2316 | $as_echo_n "checking target system type... " >&6; } | |
2317 | if test "${ac_cv_target+set}" = set; then : | |
2318 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2319 | else |
81ecdfbb RW |
2320 | if test "x$target_alias" = x; then |
2321 | ac_cv_target=$ac_cv_host | |
2322 | else | |
2323 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2324 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2325 | fi | |
c6b750e1 | 2326 | |
cac3d6c4 | 2327 | fi |
81ecdfbb RW |
2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2329 | $as_echo "$ac_cv_target" >&6; } | |
2330 | case $ac_cv_target in | |
2331 | *-*-*) ;; | |
2332 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2333 | esac | |
c6b750e1 | 2334 | target=$ac_cv_target |
81ecdfbb RW |
2335 | ac_save_IFS=$IFS; IFS='-' |
2336 | set x $ac_cv_target | |
2337 | shift | |
2338 | target_cpu=$1 | |
2339 | target_vendor=$2 | |
2340 | shift; shift | |
2341 | # Remember, the first character of IFS is used to create $*, | |
2342 | # except with old shells: | |
2343 | target_os=$* | |
2344 | IFS=$ac_save_IFS | |
2345 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2346 | |
2347 | ||
2348 | # The aliases save the names the user supplied, while $host etc. | |
2349 | # will get canonicalized. | |
2350 | test -n "$target_alias" && | |
2351 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2352 | NONENONEs,x,x, && | |
2353 | program_prefix=${target_alias}- | |
81ecdfbb | 2354 | |
a0da8069 | 2355 | test "$program_prefix" != NONE && |
81ecdfbb | 2356 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2357 | # Use a double $ so make ignores it. |
2358 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2359 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2360 | # Double any \ or $. | |
c6b750e1 | 2361 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2362 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2363 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2364 | |
a0da8069 NN |
2365 | |
2366 | ||
e5c3f801 NN |
2367 | # Get 'install' or 'install-sh' and its variants. |
2368 | # Find a good install program. We prefer a C program (faster), | |
2369 | # so one script is as good as another. But avoid the broken or | |
2370 | # incompatible versions: | |
2371 | # SysV /etc/install, /usr/sbin/install | |
2372 | # SunOS /usr/etc/install | |
2373 | # IRIX /sbin/install | |
2374 | # AIX /bin/install | |
c6b750e1 | 2375 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2376 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2377 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2378 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2379 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2380 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2381 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2383 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2384 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2385 | if test "${ac_cv_path_install+set}" = set; then : |
2386 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2387 | else |
2388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2389 | for as_dir in $PATH | |
2390 | do | |
2391 | IFS=$as_save_IFS | |
2392 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2393 | # Account for people who put trailing slashes in PATH elements. |
2394 | case $as_dir/ in #(( | |
2395 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2397 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2398 | /usr/ucb/* ) ;; |
2399 | *) | |
2400 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2401 | # Don't use installbsd from OSF since it installs stuff as root | |
2402 | # by default. | |
2403 | for ac_prog in ginstall scoinst install; do | |
2404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2405 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2406 | if test $ac_prog = install && |
c6b750e1 | 2407 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2408 | # AIX install. It has an incompatible calling convention. |
2409 | : | |
c6b750e1 DJ |
2410 | elif test $ac_prog = install && |
2411 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2412 | # program-specific install script used by HP pwplus--don't use. | |
2413 | : | |
e5c3f801 | 2414 | else |
58c85be7 RW |
2415 | rm -rf conftest.one conftest.two conftest.dir |
2416 | echo one > conftest.one | |
2417 | echo two > conftest.two | |
2418 | mkdir conftest.dir | |
2419 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2420 | test -s conftest.one && test -s conftest.two && | |
2421 | test -s conftest.dir/conftest.one && | |
2422 | test -s conftest.dir/conftest.two | |
2423 | then | |
2424 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2425 | break 3 | |
2426 | fi | |
e5c3f801 NN |
2427 | fi |
2428 | fi | |
2429 | done | |
c6b750e1 DJ |
2430 | done |
2431 | ;; | |
2432 | esac | |
81ecdfbb RW |
2433 | |
2434 | done | |
2435 | IFS=$as_save_IFS | |
c6b750e1 | 2436 | |
58c85be7 | 2437 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2438 | |
2439 | fi | |
2440 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2441 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2442 | else |
58c85be7 RW |
2443 | # As a last resort, use the slow shell script. Don't cache a |
2444 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2445 | # break other packages using the cache if that directory is |
58c85be7 | 2446 | # removed, or if the value is a relative name. |
c6b750e1 | 2447 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2448 | fi |
2449 | fi | |
81ecdfbb RW |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2451 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2452 | |
2453 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2454 | # It thinks the first close brace ends the variable substitution. | |
2455 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2456 | ||
c6b750e1 | 2457 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2458 | |
2459 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2460 | ||
81ecdfbb RW |
2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2462 | $as_echo_n "checking whether ln works... " >&6; } | |
2463 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2464 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2465 | else |
2466 | rm -f conftestdata_t | |
2467 | echo >conftestdata_f | |
2468 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2469 | then | |
2470 | acx_cv_prog_LN=ln | |
2471 | else | |
2472 | acx_cv_prog_LN=no | |
2473 | fi | |
2474 | rm -f conftestdata_f conftestdata_t | |
2475 | ||
2476 | fi | |
2477 | if test $acx_cv_prog_LN = no; then | |
2478 | LN="cp" | |
81ecdfbb RW |
2479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2480 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2481 | else |
2482 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2484 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2485 | fi |
2486 | ||
81ecdfbb RW |
2487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2488 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2489 | LN_S=$as_ln_s |
2490 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2492 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2493 | else |
81ecdfbb RW |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2495 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2496 | fi |
2497 | ||
8e957354 PB |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2499 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2500 | if test "${ac_cv_path_SED+set}" = set; then : | |
2501 | $as_echo_n "(cached) " >&6 | |
2502 | else | |
2503 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2504 | for ac_i in 1 2 3 4 5 6 7; do | |
2505 | ac_script="$ac_script$as_nl$ac_script" | |
2506 | done | |
2507 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2508 | { ac_script=; unset ac_script;} | |
2509 | if test -z "$SED"; then | |
2510 | ac_path_SED_found=false | |
2511 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2513 | for as_dir in $PATH | |
2514 | do | |
2515 | IFS=$as_save_IFS | |
2516 | test -z "$as_dir" && as_dir=. | |
2517 | for ac_prog in sed gsed; do | |
2518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2519 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2520 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2521 | # Check for GNU ac_path_SED and select it if it is found. | |
2522 | # Check for GNU $ac_path_SED | |
2523 | case `"$ac_path_SED" --version 2>&1` in | |
2524 | *GNU*) | |
2525 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2526 | *) | |
2527 | ac_count=0 | |
2528 | $as_echo_n 0123456789 >"conftest.in" | |
2529 | while : | |
2530 | do | |
2531 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2532 | mv "conftest.tmp" "conftest.in" | |
2533 | cp "conftest.in" "conftest.nl" | |
2534 | $as_echo '' >> "conftest.nl" | |
2535 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2536 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2537 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2538 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2539 | # Best one so far, save it but keep looking for a better one | |
2540 | ac_cv_path_SED="$ac_path_SED" | |
2541 | ac_path_SED_max=$ac_count | |
2542 | fi | |
2543 | # 10*(2^10) chars as input seems more than enough | |
2544 | test $ac_count -gt 10 && break | |
2545 | done | |
2546 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2547 | esac | |
2548 | ||
2549 | $ac_path_SED_found && break 3 | |
2550 | done | |
2551 | done | |
2552 | done | |
2553 | IFS=$as_save_IFS | |
2554 | if test -z "$ac_cv_path_SED"; then | |
2555 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2556 | fi | |
2557 | else | |
2558 | ac_cv_path_SED=$SED | |
2559 | fi | |
2560 | ||
2561 | fi | |
2562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2563 | $as_echo "$ac_cv_path_SED" >&6; } | |
2564 | SED="$ac_cv_path_SED" | |
2565 | rm -f conftest.sed | |
2566 | ||
2567 | for ac_prog in gawk mawk nawk awk | |
2568 | do | |
2569 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2570 | set dummy $ac_prog; ac_word=$2 | |
2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2572 | $as_echo_n "checking for $ac_word... " >&6; } | |
2573 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2574 | $as_echo_n "(cached) " >&6 | |
2575 | else | |
2576 | if test -n "$AWK"; then | |
2577 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2578 | else | |
2579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2580 | for as_dir in $PATH | |
2581 | do | |
2582 | IFS=$as_save_IFS | |
2583 | test -z "$as_dir" && as_dir=. | |
2584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2586 | ac_cv_prog_AWK="$ac_prog" | |
2587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2588 | break 2 | |
2589 | fi | |
2590 | done | |
2591 | done | |
2592 | IFS=$as_save_IFS | |
2593 | ||
2594 | fi | |
2595 | fi | |
2596 | AWK=$ac_cv_prog_AWK | |
2597 | if test -n "$AWK"; then | |
2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2599 | $as_echo "$AWK" >&6; } | |
2600 | else | |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2602 | $as_echo "no" >&6; } | |
2603 | fi | |
2604 | ||
2605 | ||
2606 | test -n "$AWK" && break | |
2607 | done | |
2608 | ||
e5c3f801 | 2609 | |
0fdbe983 DJ |
2610 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2611 | ||
2612 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2613 | # a relative path. | |
2614 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2615 | INSTALL="${srcpwd}/install-sh -c" | |
2616 | fi | |
2617 | ||
a0da8069 NN |
2618 | # Set srcdir to "." if that's what it is. |
2619 | # This is important for multilib support. | |
2620 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2621 | if test "${pwd}" = "${srcpwd}" ; then |
2622 | srcdir=. | |
252b5132 RH |
2623 | fi |
2624 | ||
a0da8069 | 2625 | topsrcdir=$srcpwd |
252b5132 | 2626 | |
a0da8069 | 2627 | extra_host_args= |
afefada0 | 2628 | |
a0da8069 NN |
2629 | ### To add a new directory to the tree, first choose whether it is a target |
2630 | ### or a host dependent tool. Then put it into the appropriate list | |
2631 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2632 | |
c6b750e1 | 2633 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2634 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2635 | |
c6b750e1 DJ |
2636 | # Dependency sorting is only needed when *configuration* must be done in |
2637 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2638 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2639 | |
a0da8069 NN |
2640 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2641 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2642 | |
6a9cf61e PB |
2643 | # these library is used by various programs built for the build |
2644 | # environment | |
2645 | # | |
2646 | build_libs="build-libiberty" | |
2647 | ||
2648 | # these tools are built for the build environment | |
a90ef4bf | 2649 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2650 | |
a0da8069 NN |
2651 | # these libraries are used by various programs built for the host environment |
2652 | # | |
a90ef4bf | 2653 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv" |
a0da8069 | 2654 | |
a0da8069 NN |
2655 | # these tools are built for the host environment |
2656 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2657 | # know that we are building the simulator. | |
2658 | # binutils, gas and ld appear in that order because it makes sense to run | |
2659 | # "make check" in that particular order. | |
e6de499b | 2660 | # If --enable-gold is used, "gold" may replace "ld". |
a90ef4bf | 2661 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools" |
a0da8069 NN |
2662 | |
2663 | # libgcj represents the runtime libraries only used by gcj. | |
2664 | libgcj="target-libffi \ | |
a0da8069 | 2665 | target-zlib \ |
a0da8069 NN |
2666 | target-libjava" |
2667 | ||
2668 | # these libraries are built for the target environment, and are built after | |
2669 | # the host libraries and the host tools (which may be a cross compiler) | |
2670 | # | |
b1299c4e DJ |
2671 | target_libraries="target-libgcc \ |
2672 | target-libiberty \ | |
a0da8069 NN |
2673 | target-libgloss \ |
2674 | target-newlib \ | |
cff87f51 | 2675 | target-libgomp \ |
b9459e83 | 2676 | target-libstdc++-v3 \ |
4b1cb4fe | 2677 | target-libmudflap \ |
bb780410 | 2678 | target-libssp \ |
e552509b | 2679 | target-libquadmath \ |
4b1cb4fe | 2680 | target-libgfortran \ |
4f0ef2d8 | 2681 | target-boehm-gc \ |
83326456 | 2682 | ${libgcj} \ |
a2592b1b | 2683 | target-libobjc \ |
e552509b ILT |
2684 | target-libada \ |
2685 | target-libgo" | |
a0da8069 | 2686 | |
9c14acb8 NN |
2687 | # these tools are built using the target libraries, and are intended to |
2688 | # run only in the target environment | |
a0da8069 | 2689 | # |
9c14acb8 | 2690 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2691 | # list belongs in this list. |
a0da8069 | 2692 | # |
a90ef4bf | 2693 | target_tools="target-rda" |
252b5132 | 2694 | |
a0da8069 | 2695 | ################################################################################ |
252b5132 | 2696 | |
a0da8069 NN |
2697 | ## All tools belong in one of the four categories, and are assigned above |
2698 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2699 | ## is important because configure will choke if they ever get through. | |
2700 | ## ${configdirs} is directories we build using the host tools. | |
2701 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2702 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2703 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2704 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2705 | |
9cc8ae67 PB |
2706 | |
2707 | ||
a0da8069 | 2708 | ################################################################################ |
252b5132 | 2709 | |
a0da8069 | 2710 | srcname="gnu development package" |
252b5132 | 2711 | |
a0da8069 NN |
2712 | # This gets set non-empty for some net releases of packages. |
2713 | appdirs="" | |
252b5132 | 2714 | |
a0da8069 NN |
2715 | # Define is_cross_compiler to save on calls to 'test'. |
2716 | is_cross_compiler= | |
2717 | if test x"${host}" = x"${target}" ; then | |
2718 | is_cross_compiler=no | |
252b5132 | 2719 | else |
a0da8069 | 2720 | is_cross_compiler=yes |
c6b750e1 | 2721 | fi |
252b5132 | 2722 | |
9175bfc0 | 2723 | # Find the build and target subdir names. |
dd12c3a8 | 2724 | |
66a79c16 DJ |
2725 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2726 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2727 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2728 | # However, they still use the build modules, because the corresponding | |
2729 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2730 | # finishes. So: | |
2731 | # - build_subdir is where we find build modules, and never changes. | |
2732 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2733 | ||
2734 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2735 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2736 | |
81ecdfbb RW |
2737 | # Check whether --with-build-libsubdir was given. |
2738 | if test "${with_build_libsubdir+set}" = set; then : | |
2739 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2740 | else |
2741 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2742 | fi |
2743 | ||
b00612cc PB |
2744 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2745 | if ( test $srcdir = . && test -d gcc ) \ | |
2746 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2747 | host_subdir="host-${host_noncanonical}" | |
2748 | else | |
2749 | host_subdir=. | |
2750 | fi | |
dd12c3a8 NN |
2751 | # No prefix. |
2752 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2753 | |
2fd0b40b RW |
2754 | # Be sure to cover against remnants of an in-tree build. |
2755 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2756 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2757 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2758 | fi | |
252b5132 | 2759 | |
a0da8069 NN |
2760 | # Skipdirs are removed silently. |
2761 | skipdirs= | |
2762 | # Noconfigdirs are removed loudly. | |
2763 | noconfigdirs="" | |
252b5132 | 2764 | |
a0da8069 NN |
2765 | use_gnu_ld= |
2766 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2767 | if test x$with_gnu_ld = xno ; then | |
2768 | use_gnu_ld=no | |
93f9b408 | 2769 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2770 | fi |
2771 | ||
a0da8069 NN |
2772 | use_gnu_as= |
2773 | # Make sure we don't let GNU as be added if we didn't want it. | |
2774 | if test x$with_gnu_as = xno ; then | |
2775 | use_gnu_as=no | |
2776 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2777 | fi |
2778 | ||
700d40ca ILT |
2779 | use_included_zlib= |
2780 | # Make sure we don't let ZLIB be added if we didn't want it. | |
2781 | if test x$with_system_zlib = xyes ; then | |
2782 | use_included_zlib=no | |
2783 | noconfigdirs="$noconfigdirs zlib" | |
2784 | fi | |
2785 | ||
c6b750e1 | 2786 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2787 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2788 | |
a0da8069 NN |
2789 | case ${with_x} in |
2790 | yes | "") ;; # the default value for this tree is that X11 is available | |
2791 | no) | |
675c6968 | 2792 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2793 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2794 | enable_gdbtk=no |
a0da8069 NN |
2795 | ;; |
2796 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2797 | esac | |
252b5132 | 2798 | |
0377a422 | 2799 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2800 | # Remove these if host=target. |
2801 | cross_only="target-libgloss target-newlib target-opcodes" | |
2802 | ||
2803 | case $is_cross_compiler in | |
2804 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2805 | esac |
252b5132 | 2806 | |
a0da8069 NN |
2807 | # If both --with-headers and --with-libs are specified, default to |
2808 | # --without-newlib. | |
32be62b5 RS |
2809 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2810 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2811 | if test x"${with_newlib}" = x ; then |
2812 | with_newlib=no | |
2813 | fi | |
252b5132 RH |
2814 | fi |
2815 | ||
a0da8069 NN |
2816 | # Recognize --with-newlib/--without-newlib. |
2817 | case ${with_newlib} in | |
2818 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2819 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2820 | esac | |
252b5132 | 2821 | |
c7791212 NC |
2822 | # Handle --enable-gold, --enable-ld. |
2823 | # --disable-gold [--enable-ld] | |
2824 | # Build only ld. Default option. | |
d3b50760 L |
2825 | # --enable-gold [--enable-ld] |
2826 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2827 | # as "ld.bfd" and "ld". | |
2828 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2829 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2830 | # install ld as "ld.bfd". | |
2831 | # --enable-gold[=default] --disable-ld | |
2832 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2833 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2834 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2835 | # and ld.bfd). | |
c7791212 NC |
2836 | # In other words, ld is default |
2837 | # --enable-gold=default --enable-ld=default | |
2838 | # Error. | |
2839 | ||
2840 | default_ld= | |
81ecdfbb RW |
2841 | # Check whether --enable-gold was given. |
2842 | if test "${enable_gold+set}" = set; then : | |
2843 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2844 | else |
2845 | ENABLE_GOLD=no | |
81ecdfbb RW |
2846 | fi |
2847 | ||
c7791212 NC |
2848 | case "${ENABLE_GOLD}" in |
2849 | yes|default) | |
e6de499b NC |
2850 | # Check for ELF target. |
2851 | is_elf=no | |
2852 | case "${target}" in | |
2853 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2854 | | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ | |
5b806d27 NC |
2855 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2856 | | *-*-solaris2* | *-*-nto*) | |
e6de499b NC |
2857 | case "${target}" in |
2858 | *-*-linux*aout* | *-*-linux*oldld*) | |
2859 | ;; | |
2860 | *) | |
2861 | is_elf=yes | |
2862 | ;; | |
2863 | esac | |
2864 | esac | |
2865 | ||
2866 | if test "$is_elf" = "yes"; then | |
2867 | # Check for target supported by gold. | |
93f9b408 | 2868 | case "${target}" in |
e6de499b | 2869 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*) |
c7791212 NC |
2870 | configdirs="$configdirs gold" |
2871 | if test x${ENABLE_GOLD} = xdefault; then | |
2872 | default_ld=gold | |
2873 | fi | |
e6de499b | 2874 | ENABLE_GOLD=yes |
93f9b408 ILT |
2875 | ;; |
2876 | esac | |
e6de499b NC |
2877 | fi |
2878 | ;; | |
2879 | no) | |
2880 | ;; | |
2881 | *) | |
2882 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2883 | ;; | |
c7791212 NC |
2884 | esac |
2885 | ||
2886 | # Check whether --enable-ld was given. | |
2887 | if test "${enable_ld+set}" = set; then : | |
2888 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2889 | else | |
2890 | ENABLE_LD=yes | |
2891 | fi | |
2892 | ||
2893 | ||
2894 | case "${ENABLE_LD}" in | |
2895 | default) | |
d3b50760 | 2896 | if test x${default_ld} != x; then |
c7791212 NC |
2897 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
2898 | fi | |
2899 | ;; | |
2900 | yes) | |
2901 | ;; | |
2902 | no) | |
2903 | if test x${ENABLE_GOLD} != xyes; then | |
2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
2905 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
2906 | fi | |
2907 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
2908 | ;; | |
2909 | *) | |
2910 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
2911 | ;; | |
2912 | esac | |
93f9b408 | 2913 | |
a0da8069 | 2914 | # Configure extra directories which are host specific |
252b5132 | 2915 | |
a0da8069 NN |
2916 | case "${host}" in |
2917 | *-cygwin*) | |
2918 | configdirs="$configdirs libtermcap" ;; | |
2919 | esac | |
252b5132 | 2920 | |
59f7ec45 HPN |
2921 | # A target can indicate whether a language isn't supported for some reason. |
2922 | # Only spaces may be used in this macro; not newlines or tabs. | |
2923 | unsupported_languages= | |
2924 | ||
c6b750e1 | 2925 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
2926 | # target this usually means that a port of the program doesn't |
2927 | # exist yet. | |
252b5132 | 2928 | |
a0da8069 | 2929 | case "${host}" in |
3516a403 | 2930 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 2931 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 2932 | ;; |
a0da8069 | 2933 | esac |
252b5132 | 2934 | |
4b1cb4fe | 2935 | |
89a1e9c3 PB |
2936 | # Check whether --enable-libquadmath was given. |
2937 | if test "${enable_libquadmath+set}" = set; then : | |
2938 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
2939 | else | |
2940 | ENABLE_LIBQUADMATH=yes | |
2941 | fi | |
2942 | ||
2943 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
2944 | noconfigdirs="$noconfigdirs target-libquadmath" | |
2945 | fi | |
2946 | ||
2947 | ||
2948 | # Check whether --enable-libquadmath-support was given. | |
2949 | if test "${enable_libquadmath_support+set}" = set; then : | |
2950 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
2951 | else | |
2952 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
2953 | fi | |
2954 | ||
2955 | enable_libquadmath_support= | |
2956 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
2957 | enable_libquadmath_support=no | |
2958 | fi | |
2959 | ||
2960 | ||
81ecdfbb RW |
2961 | # Check whether --enable-libada was given. |
2962 | if test "${enable_libada+set}" = set; then : | |
2963 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
2964 | else |
2965 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
2966 | fi |
2967 | ||
a2592b1b | 2968 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 2969 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
2970 | fi |
2971 | ||
81ecdfbb RW |
2972 | # Check whether --enable-libssp was given. |
2973 | if test "${enable_libssp+set}" = set; then : | |
2974 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
2975 | else |
2976 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
2977 | fi |
2978 | ||
5f128533 | 2979 | |
a0da8069 NN |
2980 | # Save it here so that, even in case of --enable-libgcj, if the Java |
2981 | # front-end isn't enabled, we still get libgcj disabled. | |
2982 | libgcj_saved=$libgcj | |
2983 | case $enable_libgcj in | |
2984 | yes) | |
2985 | # If we reset it here, it won't get added to noconfigdirs in the | |
2986 | # target-specific build rules, so it will be forcibly enabled | |
2987 | # (unless the Java language itself isn't enabled). | |
2988 | libgcj= | |
2989 | ;; | |
2990 | no) | |
2991 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
2992 | # Don't disable libffi, though, other languages use it. |
2993 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
2994 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
2995 | # built. | |
2996 | libgcj_saved= | |
a0da8069 NN |
2997 | ;; |
2998 | esac | |
252b5132 | 2999 | |
4b1cb4fe | 3000 | |
a6df5a19 PB |
3001 | # Disable libmudflap on some systems. |
3002 | if test x$enable_libmudflap = x ; then | |
3e707e94 | 3003 | case "${target}" in |
29383458 | 3004 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu) |
3d6dfe0f | 3005 | # Enable libmudflap by default in GNU and friends. |
3e707e94 PB |
3006 | ;; |
3007 | *-*-freebsd*) | |
3008 | # Enable libmudflap by default in FreeBSD. | |
3009 | ;; | |
3010 | *) | |
3011 | # Disable it by default everywhere else. | |
3012 | noconfigdirs="$noconfigdirs target-libmudflap" | |
3013 | ;; | |
3014 | esac | |
a6df5a19 | 3015 | fi |
4b1cb4fe | 3016 | |
a6df5a19 PB |
3017 | # Disable libgomp on non POSIX hosted systems. |
3018 | if test x$enable_libgomp = x ; then | |
b3ded179 PB |
3019 | # Enable libgomp by default on hosted POSIX systems. |
3020 | case "${target}" in | |
29383458 | 3021 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3022 | ;; |
5b806d27 | 3023 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3024 | ;; |
1f111696 | 3025 | *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*) |
b3ded179 PB |
3026 | ;; |
3027 | *-*-darwin* | *-*-aix*) | |
3028 | ;; | |
3029 | *) | |
3030 | noconfigdirs="$noconfigdirs target-libgomp" | |
3031 | ;; | |
3032 | esac | |
a6df5a19 | 3033 | fi |
b3ded179 | 3034 | |
065a5627 JM |
3035 | # Disable libssp for some systems. |
3036 | case "${target}" in | |
3037 | avr-*-*) | |
c5f5c3c2 | 3038 | # No hosted I/O support. |
065a5627 JM |
3039 | noconfigdirs="$noconfigdirs target-libssp" |
3040 | ;; | |
3041 | powerpc-*-aix* | rs6000-*-aix*) | |
3042 | noconfigdirs="$noconfigdirs target-libssp" | |
3043 | ;; | |
065a5627 JM |
3044 | esac |
3045 | ||
3046 | # Disable target libiberty for some systems. | |
3047 | case "${target}" in | |
3048 | *-*-kaos*) | |
3049 | # Remove unsupported stuff on all kaOS configurations. | |
3050 | skipdirs="target-libiberty" | |
3051 | ;; | |
3052 | *-*-netbsd*) | |
3053 | # Skip some stuff on all NetBSD configurations. | |
3054 | noconfigdirs="$noconfigdirs target-libiberty" | |
3055 | ;; | |
3056 | *-*-netware*) | |
3057 | noconfigdirs="$noconfigdirs target-libiberty" | |
3058 | ;; | |
3059 | *-*-rtems*) | |
3060 | skipdirs="${skipdirs} target-libiberty" | |
3061 | ;; | |
3062 | *-*-tpf*) | |
3063 | noconfigdirs="$noconfigdirs target-libiberty" | |
3064 | ;; | |
3065 | *-*-vxworks*) | |
3066 | noconfigdirs="$noconfigdirs target-libiberty" | |
3067 | ;; | |
3068 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3069 | noconfigdirs="$noconfigdirs target-libiberty" | |
3070 | ;; | |
3071 | arm*-*-symbianelf*) | |
3072 | noconfigdirs="$noconfigdirs target-libiberty" | |
3073 | ;; | |
3074 | avr-*-*) | |
3075 | noconfigdirs="$noconfigdirs target-libiberty" | |
3076 | ;; | |
3077 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3078 | noconfigdirs="$noconfigdirs target-libiberty" | |
3079 | ;; | |
3080 | picochip-*-*) | |
3081 | noconfigdirs="$noconfigdirs target-libiberty" | |
3082 | ;; | |
3083 | mips*-sde-elf*) | |
3084 | skipdirs="$skipdirs target-libiberty" | |
3085 | ;; | |
3086 | ip2k-*-*) | |
3087 | noconfigdirs="$noconfigdirs target-libiberty" | |
3088 | ;; | |
3089 | esac | |
3090 | ||
3091 | # Disable libstdc++-v3 for some systems. | |
3092 | case "${target}" in | |
3093 | *-*-vxworks*) | |
3094 | # VxWorks uses the Dinkumware C++ library. | |
3095 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3096 | ;; | |
3097 | arm*-wince-pe*) | |
3098 | # the C++ libraries don't build on top of CE's C libraries | |
3099 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3100 | ;; | |
3101 | avr-*-*) | |
3102 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3103 | ;; | |
3104 | esac | |
3105 | ||
3106 | # Disable Fortran for some systems. | |
3107 | case "${target}" in | |
3108 | mmix-*-*) | |
3109 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3110 | unsupported_languages="$unsupported_languages fortran" | |
3111 | ;; | |
3112 | esac | |
3113 | ||
0827f9a6 | 3114 | # Disable Java if libffi is not supported. |
9863d716 | 3115 | case "${target}" in |
0827f9a6 JM |
3116 | alpha*-*-*) |
3117 | ;; | |
3118 | arm*-*-*) | |
3119 | ;; | |
3120 | cris-*-*) | |
3121 | ;; | |
3122 | frv-*-*) | |
3123 | ;; | |
3124 | hppa*-*-linux*) | |
3125 | ;; | |
3126 | hppa*-*-hpux*) | |
3127 | ;; | |
3128 | i?86-*-*) | |
3129 | ;; | |
3130 | ia64*-*-*) | |
3131 | ;; | |
3132 | m32r*-*-*) | |
3133 | ;; | |
3134 | m68k-*-*) | |
3135 | ;; | |
3136 | mips-sgi-irix6.* | mips*-*-rtems*) | |
3137 | ;; | |
3138 | mips*-*-linux*) | |
3139 | ;; | |
3140 | powerpc*-*-linux*) | |
3141 | ;; | |
3142 | powerpc-*-darwin*) | |
3143 | ;; | |
3144 | powerpc-*-aix* | rs6000-*-aix*) | |
3145 | ;; | |
3146 | powerpc-*-freebsd*) | |
3147 | ;; | |
3148 | powerpc64-*-freebsd*) | |
3149 | ;; | |
3150 | powerpc*-*-rtems*) | |
9863d716 | 3151 | ;; |
0827f9a6 JM |
3152 | s390-*-* | s390x-*-*) |
3153 | ;; | |
3154 | sh-*-* | sh[34]*-*-*) | |
3155 | ;; | |
3156 | sh64-*-* | sh5*-*-*) | |
3157 | ;; | |
3158 | sparc*-*-*) | |
3159 | ;; | |
3160 | x86_64-*-*) | |
3161 | ;; | |
3162 | *-*-*) | |
3163 | unsupported_languages="$unsupported_languages java" | |
3164 | ;; | |
3165 | esac | |
3166 | ||
3167 | # Disable Java, libgcj or related libraries for some systems. | |
3168 | case "${target}" in | |
9863d716 JM |
3169 | powerpc-*-darwin*) |
3170 | ;; | |
3171 | i[3456789]86-*-darwin*) | |
3172 | ;; | |
3173 | x86_64-*-darwin[912]*) | |
3174 | ;; | |
3175 | *-*-darwin*) | |
3176 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3177 | ;; | |
3178 | *-*-dragonfly*) | |
3179 | ;; | |
3180 | *-*-freebsd*) | |
3181 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
3182 | case "${target}" in | |
3183 | i*86-*-*) ;; | |
3184 | alpha*-*-*) ;; | |
3185 | x86_64-*-*) ;; | |
3186 | *) | |
3187 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3188 | ;; | |
3189 | esac | |
3190 | ;; | |
9863d716 JM |
3191 | *-*-netbsd*) |
3192 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
3193 | case "${target}" in | |
3194 | i*86-*-netbsdelf*) ;; | |
3195 | arm*-*-netbsdelf*) ;; | |
3196 | *) | |
3197 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3198 | ;; | |
3199 | esac | |
3200 | ;; | |
3201 | *-*-netware*) | |
3202 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3203 | ;; | |
3204 | *-*-rtems*) | |
3205 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3206 | ;; | |
3207 | *-*-tpf*) | |
3208 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3209 | ;; | |
3210 | *-*-uclinux*) | |
3211 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3212 | ;; | |
3213 | *-*-vxworks*) | |
3214 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3215 | ;; | |
3216 | alpha*-dec-osf*) | |
3217 | ;; | |
3218 | alpha*-*-*vms*) | |
3219 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3220 | ;; | |
3221 | alpha*-*-linux*) | |
3222 | ;; | |
3223 | alpha*-*-*) | |
3224 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3225 | ;; | |
9863d716 JM |
3226 | sh-*-linux*) |
3227 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3228 | ;; | |
0827f9a6 | 3229 | arm-wince-pe) |
9863d716 JM |
3230 | noconfigdirs="$noconfigdirs ${libgcj}" |
3231 | ;; | |
9863d716 JM |
3232 | arm-*-elf* | arm*-*-eabi* ) |
3233 | noconfigdirs="$noconfigdirs target-libffi" | |
3234 | ;; | |
3235 | arm*-*-linux-gnueabi) | |
3236 | ;; | |
3237 | arm*-*-symbianelf*) | |
3238 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3239 | ;; | |
9863d716 | 3240 | bfin-*-*) |
9863d716 JM |
3241 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3242 | ;; | |
9863d716 JM |
3243 | cris-*-* | crisv32-*-*) |
3244 | unsupported_languages="$unsupported_languages java" | |
3245 | case "${target}" in | |
3246 | *-*-linux*) | |
3247 | ;; | |
3248 | *) # See PR46792 regarding target-libffi. | |
3249 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3250 | esac | |
3251 | ;; | |
9863d716 JM |
3252 | frv-*-*) |
3253 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3254 | ;; | |
9863d716 JM |
3255 | hppa*64*-*-linux*) |
3256 | # In this case, it's because the hppa64-linux target is for | |
3257 | # the kernel only at this point and has no libc, and thus no | |
3258 | # headers, crt*.o, etc., all of which are needed by these. | |
3259 | noconfigdirs="$noconfigdirs target-zlib" | |
3260 | ;; | |
3261 | hppa*-*-linux*) | |
3262 | ;; | |
9863d716 JM |
3263 | hppa*64*-*-*) |
3264 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3265 | ;; | |
3266 | hppa*-hp-hpux11*) | |
3267 | ;; | |
9863d716 JM |
3268 | hppa*-*-*) |
3269 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
3270 | # build on HP-UX 10.20. | |
3271 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3272 | ;; | |
9863d716 JM |
3273 | ia64*-*-elf*) |
3274 | ;; | |
3275 | ia64*-**-hpux*) | |
3276 | ;; | |
3277 | ia64*-*-*vms*) | |
3278 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3279 | ;; | |
0827f9a6 | 3280 | i[3456789]86-*-elf) |
9863d716 JM |
3281 | noconfigdirs="$noconfigdirs ${libgcj}" |
3282 | ;; | |
3283 | i[3456789]86-*-linux*) | |
3284 | ;; | |
3285 | i[3456789]86-w64-mingw*) | |
3286 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3287 | ;; | |
3288 | i[3456789]86-*-mingw*) | |
3289 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3290 | ;; | |
3291 | x86_64-*-mingw*) | |
3292 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3293 | ;; | |
3294 | *-*-cygwin*) | |
3295 | ;; | |
3296 | i[3456789]86-*-interix* ) | |
3297 | ;; | |
9863d716 JM |
3298 | i[3456789]86-*-solaris2*) |
3299 | ;; | |
9863d716 JM |
3300 | m32r-*-*) |
3301 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3302 | ;; | |
9863d716 JM |
3303 | m68k-*-elf*) |
3304 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3305 | ;; | |
3306 | m68*-*-* | fido-*-*) | |
3307 | ;; | |
3308 | mmix-*-*) | |
3309 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3310 | ;; |
3311 | powerpc-*-aix*) | |
3312 | # copied from rs6000-*-* entry | |
3313 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3314 | ;; | |
9863d716 JM |
3315 | powerpc-*-eabi) |
3316 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3317 | ;; | |
3318 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
3319 | ;; | |
9863d716 JM |
3320 | rs6000-*-aix*) |
3321 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3322 | ;; | |
9863d716 JM |
3323 | mips*-*-irix6*) |
3324 | # Linking libjava exceeds command-line length limits on at least | |
3325 | # IRIX 6.2, but not on IRIX 6.5. | |
3326 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
3327 | # <oldham@codesourcery.com> | |
3328 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3329 | ;; | |
9863d716 JM |
3330 | mips*-*-linux*) |
3331 | ;; | |
3332 | mips*-*-*) | |
3333 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3334 | ;; | |
3335 | sh-*-* | sh64-*-*) | |
3336 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3337 | ;; | |
9863d716 JM |
3338 | sparc-*-elf*) |
3339 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3340 | ;; | |
3341 | sparc64-*-elf*) | |
3342 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3343 | ;; | |
9863d716 JM |
3344 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) |
3345 | ;; | |
9863d716 JM |
3346 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3347 | ;; | |
3348 | *-*-lynxos*) | |
3349 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3350 | ;; | |
3351 | *-*-*) | |
3352 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3353 | ;; | |
3354 | esac | |
3355 | ||
691bb5a1 DD |
3356 | # Default libgloss CPU subdirectory. |
3357 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3358 | |
a0da8069 NN |
3359 | case "${target}" in |
3360 | *-*-chorusos) | |
b2f14e4a | 3361 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3362 | ;; |
24741ab2 | 3363 | powerpc-*-darwin*) |
9d39db92 | 3364 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3365 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3366 | ;; |
85bd1942 TG |
3367 | i[3456789]86-*-darwin*) |
3368 | noconfigdirs="$noconfigdirs ld gprof" | |
3369 | noconfigdirs="$noconfigdirs sim target-rda" | |
3370 | ;; | |
e8a5fa9c | 3371 | x86_64-*-darwin[912]*) |
652dec25 TG |
3372 | noconfigdirs="$noconfigdirs ld gas gprof" |
3373 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3374 | ;; |
04d1ab34 | 3375 | *-*-darwin*) |
d320aacb | 3376 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3377 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3378 | ;; |
5b806d27 NC |
3379 | *-*-dragonfly*) |
3380 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3381 | ;; | |
de0b4a87 | 3382 | *-*-freebsd*) |
4b1cb4fe DD |
3383 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
3384 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
3385 | && test -f /usr/local/include/gmp.h; then | |
3386 | with_gmp=/usr/local | |
3387 | fi | |
4b1cb4fe | 3388 | ;; |
f8a495c8 NC |
3389 | *-*-kaos*) |
3390 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3391 | noconfigdirs="$noconfigdirs target-libgloss" |
3392 | ;; | |
a0da8069 NN |
3393 | *-*-netbsd*) |
3394 | # Skip some stuff on all NetBSD configurations. | |
065a5627 | 3395 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3396 | ;; |
2a3124ca | 3397 | *-*-netware*) |
9863d716 | 3398 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 NN |
3399 | ;; |
3400 | *-*-rtems*) | |
9863d716 | 3401 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3402 | ;; |
1587117a EC |
3403 | # The tpf target doesn't support gdb yet. |
3404 | *-*-tpf*) | |
9863d716 | 3405 | noconfigdirs="$noconfigdirs target-newlib target-libgloss gdb tcl tk libgui itcl" |
1587117a | 3406 | ;; |
c1968181 | 3407 | *-*-uclinux*) |
9863d716 | 3408 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda" |
c1968181 | 3409 | ;; |
a0da8069 | 3410 | *-*-vxworks*) |
9863d716 | 3411 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 NN |
3412 | ;; |
3413 | alpha*-dec-osf*) | |
3414 | # ld works, but does not support shared libraries. | |
0377a422 | 3415 | # newlib is not 64 bit ready. |
a0da8069 | 3416 | # gas doesn't generate exception information. |
0377a422 | 3417 | noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss" |
a0da8069 NN |
3418 | ;; |
3419 | alpha*-*-*vms*) | |
9863d716 | 3420 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 NN |
3421 | ;; |
3422 | alpha*-*-linux*) | |
3423 | # newlib is not 64 bit ready | |
3424 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3425 | ;; | |
a0da8069 NN |
3426 | alpha*-*-*) |
3427 | # newlib is not 64 bit ready | |
9863d716 | 3428 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3429 | ;; |
4a18bd6b | 3430 | am33_2.0-*-linux*) |
9863d716 | 3431 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
4a18bd6b | 3432 | ;; |
a0da8069 | 3433 | sh-*-linux*) |
9863d716 | 3434 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
c6b750e1 | 3435 | ;; |
a0da8069 | 3436 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3437 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3438 | noconfigdirs="$noconfigdirs target-newlib" |
691bb5a1 | 3439 | libgloss_dir=wince |
a0da8069 NN |
3440 | ;; |
3441 | arc-*-*) | |
782cb41f | 3442 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3443 | ;; |
93cc359e | 3444 | arm-*-coff) |
691bb5a1 | 3445 | libgloss_dir=arm |
a0da8069 | 3446 | ;; |
93cc359e | 3447 | arm-*-elf* | arm*-*-eabi* ) |
691bb5a1 | 3448 | libgloss_dir=arm |
a0da8069 | 3449 | ;; |
bd70a46f | 3450 | arm*-*-linux-gnueabi) |
a5b3b4dd DD |
3451 | case ${with_newlib} in |
3452 | no) noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3453 | esac | |
691bb5a1 | 3454 | libgloss_dir=arm |
bd70a46f | 3455 | ;; |
df4a6958 | 3456 | arm*-*-symbianelf*) |
691bb5a1 | 3457 | libgloss_dir=arm |
df4a6958 | 3458 | ;; |
a0da8069 | 3459 | arm-*-pe*) |
9863d716 | 3460 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3461 | ;; |
a0da8069 | 3462 | arm-*-riscix*) |
b2f14e4a | 3463 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 NN |
3464 | ;; |
3465 | avr-*-*) | |
a0da8069 | 3466 | ;; |
376a0e54 | 3467 | bfin-*-*) |
376a0e54 | 3468 | ;; |
a0da8069 | 3469 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3470 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3471 | ;; |
b2f14e4a JM |
3472 | tic54x-*-*) |
3473 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3474 | ;; |
52310858 | 3475 | cr16-*-*) |
9863d716 | 3476 | noconfigdirs="$noconfigdirs gdb" |
52310858 | 3477 | ;; |
c7e66c6d HPN |
3478 | cris-*-* | crisv32-*-*) |
3479 | case "${target}" in | |
2faa2958 | 3480 | *-*-linux*) |
5e818318 | 3481 | noconfigdirs="$noconfigdirs target-newlib target-libgloss";; |
c7e66c6d | 3482 | esac |
691bb5a1 | 3483 | libgloss_dir=cris |
a0da8069 NN |
3484 | ;; |
3485 | d10v-*-*) | |
b2f14e4a | 3486 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3487 | ;; |
3488 | d30v-*-*) | |
b2f14e4a | 3489 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3490 | ;; |
3491 | fr30-*-elf*) | |
9863d716 | 3492 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3493 | ;; |
3494 | frv-*-*) | |
a0da8069 | 3495 | ;; |
20135e4c | 3496 | moxie-*-*) |
20135e4c NC |
3497 | noconfigdirs="$noconfigdirs gprof" |
3498 | ;; | |
a0da8069 | 3499 | h8300*-*-*) |
9863d716 | 3500 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3501 | ;; |
3502 | h8500-*-*) | |
b2f14e4a | 3503 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3504 | ;; |
caeba88f | 3505 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3506 | ;; |
93cc359e | 3507 | hppa*64*-*-linux*) |
a0da8069 | 3508 | ;; |
f0ff0f90 | 3509 | hppa*-*-linux*) |
5dcac624 | 3510 | ;; |
a0da8069 | 3511 | hppa*-*-*elf* | \ |
a0da8069 NN |
3512 | hppa*-*-lites* | \ |
3513 | hppa*-*-openbsd* | \ | |
3514 | hppa*64*-*-*) | |
4f0ef2d8 CD |
3515 | ;; |
3516 | hppa*-hp-hpux11*) | |
0377a422 | 3517 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3518 | ;; |
691bb5a1 DD |
3519 | hppa*-*-pro*) |
3520 | libgloss_dir=pa | |
3521 | ;; | |
a0da8069 | 3522 | hppa*-*-*) |
9863d716 | 3523 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3524 | ;; |
b07c2aad | 3525 | i960-*-*) |
b2f14e4a | 3526 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3527 | ;; |
a0da8069 NN |
3528 | ia64*-*-elf*) |
3529 | # No gdb support yet. | |
0377a422 | 3530 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3531 | ;; |
3532 | ia64*-**-hpux*) | |
92c9a463 | 3533 | # No ld support yet. |
9863d716 | 3534 | noconfigdirs="$noconfigdirs libgui itcl ld" |
a0da8069 | 3535 | ;; |
19e99079 NC |
3536 | ia64*-*-*vms*) |
3537 | # No gdb or ld support yet. | |
9863d716 | 3538 | noconfigdirs="$noconfigdirs readline libgui itcl gdb ld" |
19e99079 | 3539 | ;; |
ec11bdc6 | 3540 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
691bb5a1 | 3541 | libgloss_dir=i386 |
a0da8069 | 3542 | ;; |
ec11bdc6 | 3543 | i[3456789]86-*-linux*) |
a0da8069 NN |
3544 | # This section makes it possible to build newlib natively on linux. |
3545 | # If we are using a cross compiler then don't configure newlib. | |
3546 | if test x${is_cross_compiler} != xno ; then | |
bba45b8b | 3547 | noconfigdirs="$noconfigdirs target-newlib" |
a0da8069 NN |
3548 | fi |
3549 | noconfigdirs="$noconfigdirs target-libgloss" | |
3550 | # If we are not using a cross compiler, do configure newlib. | |
3551 | # Note however, that newlib will only be configured in this situation | |
3552 | # if the --with-newlib option has been given, because otherwise | |
3553 | # 'target-newlib' will appear in skipdirs. | |
3554 | ;; | |
1f53ca9a | 3555 | i[3456789]86-w64-mingw*) |
9863d716 | 3556 | noconfigdirs="$noconfigdirs target-libgloss target-newlib" |
1f53ca9a AO |
3557 | ;; |
3558 | i[3456789]86-*-mingw*) | |
45055374 | 3559 | target_configdirs="$target_configdirs target-winsup" |
9863d716 | 3560 | noconfigdirs="$noconfigdirs target-libgloss target-newlib" |
c6b750e1 | 3561 | ;; |
2d1e8239 | 3562 | x86_64-*-mingw*) |
9863d716 | 3563 | noconfigdirs="$noconfigdirs target-libgloss target-newlib" |
c6b750e1 | 3564 | ;; |
a0da8069 NN |
3565 | *-*-cygwin*) |
3566 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3567 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3568 | # always build newlib if winsup directory is present. |
45055374 | 3569 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3570 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3571 | elif test -d "$srcdir/newlib"; then |
45055374 | 3572 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3573 | fi |
c6b750e1 | 3574 | ;; |
f0ff0f90 | 3575 | i[3456789]86-*-interix* ) |
caeba88f | 3576 | ;; |
ec11bdc6 | 3577 | i[3456789]86-*-pe) |
782cb41f | 3578 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3579 | ;; |
ec11bdc6 | 3580 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3581 | # The linker does not yet know about weak symbols in COFF, |
3582 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3583 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3584 | ;; |
ec11bdc6 | 3585 | i[3456789]86-*-sco*) |
b2f14e4a | 3586 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3587 | ;; |
ec11bdc6 | 3588 | i[3456789]86-*-solaris2*) |
a0da8069 NN |
3589 | noconfigdirs="$noconfigdirs target-libgloss" |
3590 | ;; | |
ec11bdc6 | 3591 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3592 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3593 | ;; |
ec11bdc6 | 3594 | i[3456789]86-*-beos*) |
b2f14e4a | 3595 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
bba45b8b | 3596 | ;; |
b59bea8a | 3597 | i[3456789]86-*-rdos*) |
2429c060 PB |
3598 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
3599 | ;; | |
b07c2aad | 3600 | m32r-*-*) |
b07c2aad | 3601 | ;; |
a0da8069 | 3602 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
691bb5a1 | 3603 | libgloss_dir=m68hc11 |
a0da8069 NN |
3604 | ;; |
3605 | m68k-*-elf*) | |
a0da8069 | 3606 | ;; |
691bb5a1 DD |
3607 | m68*-*-* | fido-*-*) |
3608 | libgloss_dir=m68k | |
3609 | ;; | |
a0da8069 | 3610 | mmix-*-*) |
9863d716 | 3611 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3612 | ;; |
4970f871 | 3613 | mt-*-*) |
cdb9b172 AH |
3614 | noconfigdirs="$noconfigdirs sim" |
3615 | ;; | |
a0da8069 NN |
3616 | powerpc-*-aix*) |
3617 | # copied from rs6000-*-* entry | |
9863d716 | 3618 | noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib" |
a0da8069 | 3619 | ;; |
93cc359e | 3620 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3621 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3622 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3623 | # always build newlib. |
3624 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3625 | ;; | |
3626 | # This is temporary until we can link against shared libraries | |
3627 | powerpcle-*-solaris*) | |
b2f14e4a | 3628 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
691bb5a1 | 3629 | libgloss_dir=rs6000 |
a0da8069 NN |
3630 | ;; |
3631 | powerpc-*-beos*) | |
b2f14e4a | 3632 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3633 | ;; |
a0da8069 | 3634 | powerpc-*-eabi) |
691bb5a1 | 3635 | libgloss_dir=rs6000 |
caeba88f AL |
3636 | ;; |
3637 | powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) | |
691bb5a1 | 3638 | libgloss_dir=rs6000 |
a0da8069 | 3639 | ;; |
a0da8069 | 3640 | rs6000-*-lynxos*) |
9863d716 | 3641 | noconfigdirs="$noconfigdirs target-newlib gprof" |
a0da8069 NN |
3642 | ;; |
3643 | rs6000-*-aix*) | |
9863d716 | 3644 | noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib" |
a0da8069 NN |
3645 | ;; |
3646 | rs6000-*-*) | |
9863d716 | 3647 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3648 | ;; |
3649 | m68k-apollo-*) | |
b2f14e4a | 3650 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3651 | ;; |
25a07265 | 3652 | microblaze*) |
9863d716 | 3653 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3654 | ;; |
5bd8be13 | 3655 | mips*-sde-elf*) |
5bd8be13 RS |
3656 | if test x$with_newlib = xyes; then |
3657 | noconfigdirs="$noconfigdirs gprof" | |
3658 | fi | |
3659 | libgloss_dir=mips | |
3660 | ;; | |
a0da8069 | 3661 | mips*-*-irix5*) |
b2f14e4a | 3662 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3663 | ;; |
3664 | mips*-*-irix6*) | |
9863d716 | 3665 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3666 | ;; |
a0da8069 | 3667 | mips*-*-bsd*) |
b2f14e4a | 3668 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3669 | ;; |
a0da8069 NN |
3670 | mips*-*-linux*) |
3671 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3672 | ;; | |
3673 | mips*-*-*) | |
9863d716 | 3674 | noconfigdirs="$noconfigdirs gprof" |
691bb5a1 | 3675 | libgloss_dir=mips |
a0da8069 | 3676 | ;; |
dbf85af7 | 3677 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3678 | case "${target}" in |
3679 | sh*-*-elf) | |
9863d716 | 3680 | ;; |
e8a5fa9c | 3681 | *) |
9863d716 | 3682 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3683 | esac |
a0da8069 | 3684 | ;; |
691bb5a1 DD |
3685 | sparclet-*-aout* | sparc86x-*-*) |
3686 | libgloss_dir=sparc | |
3687 | ;; | |
a0da8069 | 3688 | sparc-*-elf*) |
a0da8069 NN |
3689 | ;; |
3690 | sparc64-*-elf*) | |
691bb5a1 | 3691 | libgloss_dir=sparc |
a0da8069 NN |
3692 | ;; |
3693 | sparclite-*-*) | |
691bb5a1 | 3694 | libgloss_dir=sparc |
a0da8069 NN |
3695 | ;; |
3696 | sparc-*-sunos4*) | |
a0da8069 NN |
3697 | if test x${is_cross_compiler} != xno ; then |
3698 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
3699 | else | |
3700 | use_gnu_ld=no | |
3701 | fi | |
3702 | ;; | |
3703 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) | |
3704 | ;; | |
619a3713 | 3705 | tic6x-*-*) |
9863d716 | 3706 | noconfigdirs="$noconfigdirs gdb sim" |
619a3713 | 3707 | ;; |
a0da8069 | 3708 | v810-*-*) |
b2f14e4a | 3709 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3710 | ;; |
3711 | vax-*-*) | |
9863d716 | 3712 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3713 | ;; |
29383458 | 3714 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
a0da8069 NN |
3715 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
3716 | ;; | |
3717 | *-*-lynxos*) | |
9863d716 | 3718 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
c6b750e1 | 3719 | ;; |
a0da8069 | 3720 | *-*-*) |
a0da8069 NN |
3721 | ;; |
3722 | esac | |
252b5132 | 3723 | |
a0da8069 NN |
3724 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3725 | # depends upon some newlib header files. | |
3726 | case "${noconfigdirs}" in | |
3727 | *target-libgloss*) ;; | |
3728 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3729 | esac | |
3730 | ||
a0da8069 | 3731 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3732 | host_makefile_frag=/dev/null |
3733 | if test -d ${srcdir}/config ; then | |
3734 | case "${host}" in | |
ec11bdc6 | 3735 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3736 | host_makefile_frag="config/mh-djgpp" |
3737 | ;; | |
3738 | *-cygwin*) | |
e33b51a6 | 3739 | |
81ecdfbb RW |
3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3741 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3742 | echo a >cygwin-cat-check |
1f53ca9a | 3743 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3744 | rm cygwin-cat-check |
81ecdfbb RW |
3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3746 | $as_echo "yes" >&6; } | |
e33b51a6 | 3747 | else |
8ade07e9 | 3748 | rm cygwin-cat-check |
81ecdfbb RW |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3750 | $as_echo "no" >&6; } | |
3751 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
3752 | Please either mount the build directory in binary mode or run the following |
3753 | commands before running any configure script: | |
3754 | set -o igncr | |
3755 | export SHELLOPTS | |
81ecdfbb | 3756 | " "$LINENO" 5 |
e33b51a6 | 3757 | fi |
e33b51a6 | 3758 | |
a0da8069 NN |
3759 | host_makefile_frag="config/mh-cygwin" |
3760 | ;; | |
8a1599ab | 3761 | *-mingw*) |
84e7906e | 3762 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 3763 | ;; |
a0da8069 NN |
3764 | *-interix*) |
3765 | host_makefile_frag="config/mh-interix" | |
3766 | ;; | |
da888c87 | 3767 | hppa*-hp-hpux10*) |
da888c87 | 3768 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 3769 | ;; |
3516a403 | 3770 | hppa*-hp-hpux*) |
da888c87 PB |
3771 | host_makefile_frag="config/mh-pa" |
3772 | ;; | |
3773 | hppa*-*) | |
3774 | host_makefile_frag="config/mh-pa" | |
3775 | ;; | |
e552509b ILT |
3776 | *-*-darwin*) |
3777 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 3778 | ;; |
f6d183c0 PB |
3779 | powerpc-*-aix*) |
3780 | host_makefile_frag="config/mh-ppc-aix" | |
3781 | ;; | |
3782 | rs6000-*-aix*) | |
3783 | host_makefile_frag="config/mh-ppc-aix" | |
3784 | ;; | |
a0da8069 NN |
3785 | esac |
3786 | fi | |
3787 | ||
9e07f89d | 3788 | if test "${build}" != "${host}" ; then |
1576798e PB |
3789 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
3790 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 3791 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
3792 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
3793 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
3794 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 3795 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
3796 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
3797 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
3798 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
3799 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
3800 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
3801 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
3802 | else | |
3803 | AR_FOR_BUILD="\$(AR)" | |
3804 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 3805 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
3806 | CXX_FOR_BUILD="\$(CXX)" |
3807 | GCJ_FOR_BUILD="\$(GCJ)" | |
3808 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 3809 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
3810 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
3811 | LD_FOR_BUILD="\$(LD)" | |
3812 | NM_FOR_BUILD="\$(NM)" | |
3813 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
3814 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
3815 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
3816 | fi |
3817 | ||
3818 | ac_ext=c | |
c6b750e1 DJ |
3819 | ac_cpp='$CPP $CPPFLAGS' |
3820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3823 | if test -n "$ac_tool_prefix"; then | |
3824 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3825 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3827 | $as_echo_n "checking for $ac_word... " >&6; } | |
3828 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3829 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3830 | else |
3831 | if test -n "$CC"; then | |
3832 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3833 | else | |
3834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3835 | for as_dir in $PATH | |
3836 | do | |
3837 | IFS=$as_save_IFS | |
3838 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3839 | for ac_exec_ext in '' $ac_executable_extensions; do |
3840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3841 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3843 | break 2 |
3844 | fi | |
3845 | done | |
81ecdfbb RW |
3846 | done |
3847 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3848 | |
3849 | fi | |
3850 | fi | |
3851 | CC=$ac_cv_prog_CC | |
3852 | if test -n "$CC"; then | |
81ecdfbb RW |
3853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3854 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3855 | else |
81ecdfbb RW |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3857 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3858 | fi |
3859 | ||
81ecdfbb | 3860 | |
c6b750e1 DJ |
3861 | fi |
3862 | if test -z "$ac_cv_prog_CC"; then | |
3863 | ac_ct_CC=$CC | |
6a9cf61e | 3864 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 3865 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3867 | $as_echo_n "checking for $ac_word... " >&6; } | |
3868 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3869 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
3870 | else |
3871 | if test -n "$ac_ct_CC"; then | |
3872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3873 | else | |
3874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3875 | for as_dir in $PATH | |
3876 | do | |
3877 | IFS=$as_save_IFS | |
3878 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3879 | for ac_exec_ext in '' $ac_executable_extensions; do |
3880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3881 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3883 | break 2 |
3884 | fi | |
3885 | done | |
81ecdfbb RW |
3886 | done |
3887 | IFS=$as_save_IFS | |
c6b750e1 DJ |
3888 | |
3889 | fi | |
3890 | fi | |
3891 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3892 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3894 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 3895 | else |
81ecdfbb RW |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3897 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3898 | fi |
3899 | ||
81ecdfbb RW |
3900 | if test "x$ac_ct_CC" = x; then |
3901 | CC="" | |
3902 | else | |
3903 | case $cross_compiling:$ac_tool_warned in | |
3904 | yes:) | |
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3906 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3907 | ac_tool_warned=yes ;; | |
3908 | esac | |
3909 | CC=$ac_ct_CC | |
3910 | fi | |
c6b750e1 DJ |
3911 | else |
3912 | CC="$ac_cv_prog_CC" | |
3913 | fi | |
3914 | ||
3915 | if test -z "$CC"; then | |
81ecdfbb RW |
3916 | if test -n "$ac_tool_prefix"; then |
3917 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 3918 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3920 | $as_echo_n "checking for $ac_word... " >&6; } | |
3921 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3922 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3923 | else |
3924 | if test -n "$CC"; then | |
3925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3926 | else | |
c6b750e1 DJ |
3927 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3928 | for as_dir in $PATH | |
3929 | do | |
3930 | IFS=$as_save_IFS | |
3931 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3932 | for ac_exec_ext in '' $ac_executable_extensions; do |
3933 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 3934 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3935 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3936 | break 2 |
3937 | fi | |
3938 | done | |
81ecdfbb RW |
3939 | done |
3940 | IFS=$as_save_IFS | |
c6b750e1 | 3941 | |
9e07f89d NN |
3942 | fi |
3943 | fi | |
c6b750e1 | 3944 | CC=$ac_cv_prog_CC |
9e07f89d | 3945 | if test -n "$CC"; then |
81ecdfbb RW |
3946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3947 | $as_echo "$CC" >&6; } | |
c6b750e1 | 3948 | else |
81ecdfbb RW |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3950 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
3951 | fi |
3952 | ||
c6b750e1 | 3953 | |
81ecdfbb | 3954 | fi |
c6b750e1 | 3955 | fi |
9e07f89d NN |
3956 | if test -z "$CC"; then |
3957 | # Extract the first word of "cc", so it can be a program name with args. | |
3958 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3960 | $as_echo_n "checking for $ac_word... " >&6; } | |
3961 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3962 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
3963 | else |
3964 | if test -n "$CC"; then | |
3965 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3966 | else | |
9e07f89d | 3967 | ac_prog_rejected=no |
c6b750e1 DJ |
3968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3969 | for as_dir in $PATH | |
3970 | do | |
3971 | IFS=$as_save_IFS | |
3972 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
3973 | for ac_exec_ext in '' $ac_executable_extensions; do |
3974 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
3975 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3976 | ac_prog_rejected=yes | |
3977 | continue | |
3978 | fi | |
3979 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
3981 | break 2 |
3982 | fi | |
3983 | done | |
81ecdfbb RW |
3984 | done |
3985 | IFS=$as_save_IFS | |
c6b750e1 | 3986 | |
9e07f89d NN |
3987 | if test $ac_prog_rejected = yes; then |
3988 | # We found a bogon in the path, so make sure we never use it. | |
3989 | set dummy $ac_cv_prog_CC | |
3990 | shift | |
c6b750e1 | 3991 | if test $# != 0; then |
9e07f89d NN |
3992 | # We chose a different compiler from the bogus one. |
3993 | # However, it has the same basename, so the bogon will be chosen | |
3994 | # first if we set CC to just the basename; use the full file name. | |
3995 | shift | |
c6b750e1 | 3996 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
3997 | fi |
3998 | fi | |
3999 | fi | |
4000 | fi | |
c6b750e1 | 4001 | CC=$ac_cv_prog_CC |
9e07f89d | 4002 | if test -n "$CC"; then |
81ecdfbb RW |
4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4004 | $as_echo "$CC" >&6; } | |
9e07f89d | 4005 | else |
81ecdfbb RW |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4007 | $as_echo "no" >&6; } | |
9e07f89d NN |
4008 | fi |
4009 | ||
81ecdfbb | 4010 | |
c6b750e1 DJ |
4011 | fi |
4012 | if test -z "$CC"; then | |
4013 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4014 | for ac_prog in cl.exe |
c6b750e1 DJ |
4015 | do |
4016 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4017 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4019 | $as_echo_n "checking for $ac_word... " >&6; } | |
4020 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4021 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4022 | else |
4023 | if test -n "$CC"; then | |
4024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4025 | else | |
c6b750e1 DJ |
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4027 | for as_dir in $PATH | |
4028 | do | |
4029 | IFS=$as_save_IFS | |
4030 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4031 | for ac_exec_ext in '' $ac_executable_extensions; do |
4032 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4033 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4035 | break 2 |
376a0e54 | 4036 | fi |
c6b750e1 | 4037 | done |
81ecdfbb RW |
4038 | done |
4039 | IFS=$as_save_IFS | |
cac3d6c4 | 4040 | |
c6b750e1 DJ |
4041 | fi |
4042 | fi | |
4043 | CC=$ac_cv_prog_CC | |
4044 | if test -n "$CC"; then | |
81ecdfbb RW |
4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4046 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4047 | else |
81ecdfbb RW |
4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4049 | $as_echo "no" >&6; } | |
9e07f89d | 4050 | fi |
cac3d6c4 | 4051 | |
81ecdfbb | 4052 | |
c6b750e1 DJ |
4053 | test -n "$CC" && break |
4054 | done | |
cac3d6c4 | 4055 | fi |
c6b750e1 DJ |
4056 | if test -z "$CC"; then |
4057 | ac_ct_CC=$CC | |
81ecdfbb | 4058 | for ac_prog in cl.exe |
c6b750e1 DJ |
4059 | do |
4060 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4061 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4063 | $as_echo_n "checking for $ac_word... " >&6; } | |
4064 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4065 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4066 | else |
c6b750e1 DJ |
4067 | if test -n "$ac_ct_CC"; then |
4068 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4069 | else |
c6b750e1 DJ |
4070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4071 | for as_dir in $PATH | |
4072 | do | |
4073 | IFS=$as_save_IFS | |
4074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4075 | for ac_exec_ext in '' $ac_executable_extensions; do |
4076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4077 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4079 | break 2 |
4080 | fi | |
4081 | done | |
81ecdfbb RW |
4082 | done |
4083 | IFS=$as_save_IFS | |
c6b750e1 | 4084 | |
cac3d6c4 CM |
4085 | fi |
4086 | fi | |
c6b750e1 DJ |
4087 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4088 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4090 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4091 | else |
81ecdfbb RW |
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4093 | $as_echo "no" >&6; } | |
cac3d6c4 | 4094 | fi |
376a0e54 | 4095 | |
81ecdfbb | 4096 | |
c6b750e1 DJ |
4097 | test -n "$ac_ct_CC" && break |
4098 | done | |
4099 | ||
81ecdfbb RW |
4100 | if test "x$ac_ct_CC" = x; then |
4101 | CC="" | |
4102 | else | |
4103 | case $cross_compiling:$ac_tool_warned in | |
4104 | yes:) | |
4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4106 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4107 | ac_tool_warned=yes ;; | |
4108 | esac | |
4109 | CC=$ac_ct_CC | |
4110 | fi | |
c6b750e1 DJ |
4111 | fi |
4112 | ||
4113 | fi | |
4114 | ||
4115 | ||
81ecdfbb RW |
4116 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4117 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4118 | as_fn_error "no acceptable C compiler found in \$PATH | |
4119 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4120 | |
4121 | # Provide some information about the compiler. | |
81ecdfbb RW |
4122 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4123 | set X $ac_compile | |
4124 | ac_compiler=$2 | |
4125 | for ac_option in --version -v -V -qversion; do | |
4126 | { { ac_try="$ac_compiler $ac_option >&5" | |
4127 | case "(($ac_try" in | |
4128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4129 | *) ac_try_echo=$ac_try;; | |
4130 | esac | |
4131 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4132 | $as_echo "$ac_try_echo"; } >&5 | |
4133 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4134 | ac_status=$? |
81ecdfbb RW |
4135 | if test -s conftest.err; then |
4136 | sed '10a\ | |
4137 | ... rest of stderr output deleted ... | |
4138 | 10q' conftest.err >conftest.er1 | |
4139 | cat conftest.er1 >&5 | |
4140 | rm -f conftest.er1 conftest.err | |
4141 | fi | |
4142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4143 | test $ac_status = 0; } | |
4144 | done | |
c6b750e1 | 4145 | |
81ecdfbb | 4146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4147 | /* end confdefs.h. */ |
4148 | ||
4149 | int | |
4150 | main () | |
4151 | { | |
4152 | ||
4153 | ; | |
4154 | return 0; | |
4155 | } | |
4156 | _ACEOF | |
4157 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4158 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4159 | # Try to create an executable without -o first, disregard a.out. |
4160 | # It will help us diagnose broken compilers, and finding out an intuition | |
4161 | # of exeext. | |
81ecdfbb RW |
4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4163 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4164 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4165 | ||
4166 | # The possible output files: | |
4167 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4168 | ||
4169 | ac_rmfiles= | |
4170 | for ac_file in $ac_files | |
4171 | do | |
4172 | case $ac_file in | |
4173 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4174 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4175 | esac | |
4176 | done | |
4177 | rm -f $ac_rmfiles | |
4178 | ||
4179 | if { { ac_try="$ac_link_default" | |
4180 | case "(($ac_try" in | |
4181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4182 | *) ac_try_echo=$ac_try;; | |
4183 | esac | |
4184 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4185 | $as_echo "$ac_try_echo"; } >&5 | |
4186 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4187 | ac_status=$? |
81ecdfbb RW |
4188 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4189 | test $ac_status = 0; }; then : | |
4190 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4191 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4192 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4193 | # so that the user can short-circuit this test for compilers unknown to | |
4194 | # Autoconf. | |
4195 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4196 | do |
4197 | test -f "$ac_file" || continue | |
4198 | case $ac_file in | |
81ecdfbb | 4199 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4200 | ;; |
4201 | [ab].out ) | |
4202 | # We found the default executable, but exeext='' is most | |
4203 | # certainly right. | |
4204 | break;; | |
4205 | *.* ) | |
81ecdfbb RW |
4206 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4207 | then :; else | |
4208 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4209 | fi | |
4210 | # We set ac_cv_exeext here because the later test for it is not | |
4211 | # safe: cross compilers may not add the suffix if given an `-o' | |
4212 | # argument, so we may need to know it at that point already. | |
4213 | # Even if this section looks crufty: it has the advantage of | |
4214 | # actually working. | |
c6b750e1 DJ |
4215 | break;; |
4216 | * ) | |
4217 | break;; | |
4218 | esac | |
4219 | done | |
81ecdfbb RW |
4220 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4221 | ||
c6b750e1 | 4222 | else |
81ecdfbb RW |
4223 | ac_file='' |
4224 | fi | |
4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4226 | $as_echo "$ac_file" >&6; } | |
4227 | if test -z "$ac_file"; then : | |
4228 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4229 | sed 's/^/| /' conftest.$ac_ext >&5 |
4230 | ||
81ecdfbb RW |
4231 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4232 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4233 | { as_fn_set_status 77 | |
4234 | as_fn_error "C compiler cannot create executables | |
4235 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4236 | fi |
c6b750e1 | 4237 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4238 | |
81ecdfbb | 4239 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4240 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4242 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4243 | # If not cross compiling, check that we can run a simple program. |
4244 | if test "$cross_compiling" != yes; then | |
4245 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4246 | { { case "(($ac_try" in |
4247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4248 | *) ac_try_echo=$ac_try;; | |
4249 | esac | |
4250 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4251 | $as_echo "$ac_try_echo"; } >&5 | |
4252 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4253 | ac_status=$? |
81ecdfbb RW |
4254 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4255 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4256 | cross_compiling=no |
4257 | else | |
4258 | if test "$cross_compiling" = maybe; then | |
4259 | cross_compiling=yes | |
4260 | else | |
81ecdfbb RW |
4261 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4262 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4263 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4264 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4265 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4266 | fi |
4267 | fi | |
4268 | fi | |
81ecdfbb RW |
4269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4270 | $as_echo "yes" >&6; } | |
c6b750e1 | 4271 | |
81ecdfbb | 4272 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4273 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4274 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4275 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4277 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4279 | $as_echo "$cross_compiling" >&6; } | |
4280 | ||
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4282 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4283 | if { { ac_try="$ac_link" | |
4284 | case "(($ac_try" in | |
4285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4286 | *) ac_try_echo=$ac_try;; | |
4287 | esac | |
4288 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4289 | $as_echo "$ac_try_echo"; } >&5 | |
4290 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4291 | ac_status=$? |
81ecdfbb RW |
4292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4293 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4294 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4295 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4296 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4297 | # `rm'. | |
4298 | for ac_file in conftest.exe conftest conftest.*; do | |
4299 | test -f "$ac_file" || continue | |
4300 | case $ac_file in | |
81ecdfbb | 4301 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4302 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4303 | break;; |
4304 | * ) break;; | |
4305 | esac | |
4306 | done | |
4307 | else | |
81ecdfbb RW |
4308 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4309 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4310 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4311 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4312 | fi |
c6b750e1 | 4313 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4315 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4316 | |
4317 | rm -f conftest.$ac_ext | |
4318 | EXEEXT=$ac_cv_exeext | |
4319 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4321 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4322 | if test "${ac_cv_objext+set}" = set; then : | |
4323 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4324 | else |
81ecdfbb | 4325 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4326 | /* end confdefs.h. */ |
4327 | ||
4328 | int | |
4329 | main () | |
4330 | { | |
4331 | ||
4332 | ; | |
4333 | return 0; | |
4334 | } | |
4335 | _ACEOF | |
4336 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4337 | if { { ac_try="$ac_compile" |
4338 | case "(($ac_try" in | |
4339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4340 | *) ac_try_echo=$ac_try;; | |
4341 | esac | |
4342 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4343 | $as_echo "$ac_try_echo"; } >&5 | |
4344 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4345 | ac_status=$? |
81ecdfbb RW |
4346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4347 | test $ac_status = 0; }; then : | |
4348 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4349 | test -f "$ac_file" || continue; | |
c6b750e1 | 4350 | case $ac_file in |
81ecdfbb | 4351 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4352 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4353 | break;; | |
4354 | esac | |
4355 | done | |
cac3d6c4 | 4356 | else |
81ecdfbb | 4357 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4358 | sed 's/^/| /' conftest.$ac_ext >&5 |
4359 | ||
81ecdfbb RW |
4360 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4361 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4362 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4363 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4364 | fi |
c6b750e1 DJ |
4365 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4366 | fi | |
81ecdfbb RW |
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4368 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4369 | OBJEXT=$ac_cv_objext |
4370 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4372 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4373 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4374 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4375 | else |
81ecdfbb | 4376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4377 | /* end confdefs.h. */ |
4378 | ||
4379 | int | |
4380 | main () | |
4381 | { | |
4382 | #ifndef __GNUC__ | |
4383 | choke me | |
4384 | #endif | |
4385 | ||
4386 | ; | |
4387 | return 0; | |
4388 | } | |
4389 | _ACEOF | |
81ecdfbb | 4390 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4391 | ac_compiler_gnu=yes |
4392 | else | |
81ecdfbb | 4393 | ac_compiler_gnu=no |
c6b750e1 | 4394 | fi |
81ecdfbb | 4395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4396 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4397 | ||
4398 | fi | |
81ecdfbb RW |
4399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4400 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4401 | if test $ac_compiler_gnu = yes; then | |
4402 | GCC=yes | |
4403 | else | |
4404 | GCC= | |
4405 | fi | |
c6b750e1 DJ |
4406 | ac_test_CFLAGS=${CFLAGS+set} |
4407 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4409 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4410 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4411 | $as_echo_n "(cached) " >&6 | |
4412 | else | |
4413 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4414 | ac_c_werror_flag=yes | |
4415 | ac_cv_prog_cc_g=no | |
4416 | CFLAGS="-g" | |
4417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4418 | /* end confdefs.h. */ |
4419 | ||
4420 | int | |
4421 | main () | |
4422 | { | |
4423 | ||
4424 | ; | |
4425 | return 0; | |
4426 | } | |
4427 | _ACEOF | |
81ecdfbb | 4428 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4429 | ac_cv_prog_cc_g=yes |
4430 | else | |
81ecdfbb RW |
4431 | CFLAGS="" |
4432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4433 | /* end confdefs.h. */ | |
4434 | ||
4435 | int | |
4436 | main () | |
4437 | { | |
4438 | ||
4439 | ; | |
4440 | return 0; | |
4441 | } | |
4442 | _ACEOF | |
4443 | if ac_fn_c_try_compile "$LINENO"; then : | |
4444 | ||
4445 | else | |
4446 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4447 | CFLAGS="-g" | |
4448 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4449 | /* end confdefs.h. */ | |
cac3d6c4 | 4450 | |
81ecdfbb RW |
4451 | int |
4452 | main () | |
4453 | { | |
4454 | ||
4455 | ; | |
4456 | return 0; | |
4457 | } | |
4458 | _ACEOF | |
4459 | if ac_fn_c_try_compile "$LINENO"; then : | |
4460 | ac_cv_prog_cc_g=yes | |
4461 | fi | |
4462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4463 | fi |
81ecdfbb | 4464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4465 | fi |
81ecdfbb RW |
4466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4467 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4468 | fi | |
4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4470 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4471 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4472 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4473 | elif test $ac_cv_prog_cc_g = yes; then |
4474 | if test "$GCC" = yes; then | |
4475 | CFLAGS="-g -O2" | |
4476 | else | |
4477 | CFLAGS="-g" | |
4478 | fi | |
4479 | else | |
4480 | if test "$GCC" = yes; then | |
4481 | CFLAGS="-O2" | |
4482 | else | |
4483 | CFLAGS= | |
4484 | fi | |
4485 | fi | |
81ecdfbb RW |
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4487 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4488 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4489 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4490 | else |
81ecdfbb | 4491 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4492 | ac_save_CC=$CC |
81ecdfbb | 4493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4494 | /* end confdefs.h. */ |
4495 | #include <stdarg.h> | |
4496 | #include <stdio.h> | |
4497 | #include <sys/types.h> | |
4498 | #include <sys/stat.h> | |
4499 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4500 | struct buf { int x; }; | |
4501 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4502 | static char *e (p, i) | |
4503 | char **p; | |
4504 | int i; | |
4505 | { | |
4506 | return p[i]; | |
4507 | } | |
4508 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4509 | { | |
4510 | char *s; | |
4511 | va_list v; | |
4512 | va_start (v,p); | |
4513 | s = g (p, va_arg (v,int)); | |
4514 | va_end (v); | |
4515 | return s; | |
4516 | } | |
4517 | ||
4518 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4519 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4520 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4521 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4522 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4523 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4524 | that's true only with -std. */ |
c6b750e1 DJ |
4525 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4526 | ||
81ecdfbb RW |
4527 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4528 | inside strings and character constants. */ | |
4529 | #define FOO(x) 'x' | |
4530 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4531 | ||
c6b750e1 DJ |
4532 | int test (int i, double x); |
4533 | struct s1 {int (*f) (int a);}; | |
4534 | struct s2 {int (*f) (double a);}; | |
4535 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4536 | int argc; | |
4537 | char **argv; | |
4538 | int | |
4539 | main () | |
4540 | { | |
4541 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4542 | ; | |
4543 | return 0; | |
4544 | } | |
4545 | _ACEOF | |
81ecdfbb RW |
4546 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4547 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4548 | do |
4549 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4550 | if ac_fn_c_try_compile "$LINENO"; then : |
4551 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4552 | fi |
81ecdfbb RW |
4553 | rm -f core conftest.err conftest.$ac_objext |
4554 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4555 | done |
81ecdfbb | 4556 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4557 | CC=$ac_save_CC |
4558 | ||
4559 | fi | |
81ecdfbb RW |
4560 | # AC_CACHE_VAL |
4561 | case "x$ac_cv_prog_cc_c89" in | |
4562 | x) | |
4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4564 | $as_echo "none needed" >&6; } ;; | |
4565 | xno) | |
4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4567 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4568 | *) |
81ecdfbb RW |
4569 | CC="$CC $ac_cv_prog_cc_c89" |
4570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4571 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4572 | esac |
81ecdfbb | 4573 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4574 | |
c6b750e1 DJ |
4575 | fi |
4576 | ||
c6b750e1 DJ |
4577 | ac_ext=c |
4578 | ac_cpp='$CPP $CPPFLAGS' | |
4579 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4580 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4581 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4582 | |
81ecdfbb | 4583 | ac_ext=cpp |
18f6b6ee PB |
4584 | ac_cpp='$CXXCPP $CPPFLAGS' |
4585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4588 | if test -z "$CXX"; then |
4589 | if test -n "$CCC"; then | |
4590 | CXX=$CCC | |
4591 | else | |
4592 | if test -n "$ac_tool_prefix"; then | |
4593 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4594 | do |
4595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4597 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4598 | $as_echo_n "checking for $ac_word... " >&6; } | |
4599 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4600 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4601 | else |
4602 | if test -n "$CXX"; then | |
4603 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4604 | else | |
4605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4606 | for as_dir in $PATH | |
4607 | do | |
4608 | IFS=$as_save_IFS | |
4609 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4610 | for ac_exec_ext in '' $ac_executable_extensions; do |
4611 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4612 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4613 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4614 | break 2 |
4615 | fi | |
4616 | done | |
81ecdfbb RW |
4617 | done |
4618 | IFS=$as_save_IFS | |
512b7dfb | 4619 | |
18f6b6ee PB |
4620 | fi |
4621 | fi | |
4622 | CXX=$ac_cv_prog_CXX | |
4623 | if test -n "$CXX"; then | |
81ecdfbb RW |
4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4625 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4626 | else |
81ecdfbb RW |
4627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4628 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4629 | fi |
4630 | ||
81ecdfbb | 4631 | |
18f6b6ee PB |
4632 | test -n "$CXX" && break |
4633 | done | |
4634 | fi | |
4635 | if test -z "$CXX"; then | |
4636 | ac_ct_CXX=$CXX | |
81ecdfbb | 4637 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4638 | do |
4639 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4640 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4642 | $as_echo_n "checking for $ac_word... " >&6; } | |
4643 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4644 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4645 | else |
4646 | if test -n "$ac_ct_CXX"; then | |
4647 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4648 | else | |
4649 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4650 | for as_dir in $PATH | |
4651 | do | |
4652 | IFS=$as_save_IFS | |
4653 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4654 | for ac_exec_ext in '' $ac_executable_extensions; do |
4655 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4656 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4657 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4658 | break 2 |
512b7dfb | 4659 | fi |
18f6b6ee | 4660 | done |
81ecdfbb RW |
4661 | done |
4662 | IFS=$as_save_IFS | |
512b7dfb | 4663 | |
18f6b6ee PB |
4664 | fi |
4665 | fi | |
4666 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4667 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4669 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4670 | else |
81ecdfbb RW |
4671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4672 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4673 | fi |
4674 | ||
81ecdfbb | 4675 | |
18f6b6ee PB |
4676 | test -n "$ac_ct_CXX" && break |
4677 | done | |
18f6b6ee | 4678 | |
81ecdfbb RW |
4679 | if test "x$ac_ct_CXX" = x; then |
4680 | CXX="g++" | |
4681 | else | |
4682 | case $cross_compiling:$ac_tool_warned in | |
4683 | yes:) | |
4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4685 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4686 | ac_tool_warned=yes ;; | |
4687 | esac | |
4688 | CXX=$ac_ct_CXX | |
4689 | fi | |
18f6b6ee PB |
4690 | fi |
4691 | ||
81ecdfbb RW |
4692 | fi |
4693 | fi | |
18f6b6ee | 4694 | # Provide some information about the compiler. |
81ecdfbb RW |
4695 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4696 | set X $ac_compile | |
4697 | ac_compiler=$2 | |
4698 | for ac_option in --version -v -V -qversion; do | |
4699 | { { ac_try="$ac_compiler $ac_option >&5" | |
4700 | case "(($ac_try" in | |
4701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4702 | *) ac_try_echo=$ac_try;; | |
4703 | esac | |
4704 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4705 | $as_echo "$ac_try_echo"; } >&5 | |
4706 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4707 | ac_status=$? |
81ecdfbb RW |
4708 | if test -s conftest.err; then |
4709 | sed '10a\ | |
4710 | ... rest of stderr output deleted ... | |
4711 | 10q' conftest.err >conftest.er1 | |
4712 | cat conftest.er1 >&5 | |
4713 | rm -f conftest.er1 conftest.err | |
4714 | fi | |
4715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4716 | test $ac_status = 0; } | |
4717 | done | |
18f6b6ee | 4718 | |
81ecdfbb RW |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4720 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4721 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4722 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4723 | else |
81ecdfbb | 4724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4725 | /* end confdefs.h. */ |
4726 | ||
4727 | int | |
4728 | main () | |
4729 | { | |
4730 | #ifndef __GNUC__ | |
4731 | choke me | |
4732 | #endif | |
4733 | ||
4734 | ; | |
4735 | return 0; | |
4736 | } | |
4737 | _ACEOF | |
81ecdfbb | 4738 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4739 | ac_compiler_gnu=yes |
4740 | else | |
81ecdfbb | 4741 | ac_compiler_gnu=no |
18f6b6ee | 4742 | fi |
81ecdfbb | 4743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4744 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4745 | ||
4746 | fi | |
81ecdfbb RW |
4747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4748 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4749 | if test $ac_compiler_gnu = yes; then | |
4750 | GXX=yes | |
4751 | else | |
4752 | GXX= | |
4753 | fi | |
18f6b6ee PB |
4754 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
4755 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4757 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4758 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
4759 | $as_echo_n "(cached) " >&6 | |
4760 | else | |
4761 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4762 | ac_cxx_werror_flag=yes | |
4763 | ac_cv_prog_cxx_g=no | |
4764 | CXXFLAGS="-g" | |
4765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
4766 | /* end confdefs.h. */ |
4767 | ||
4768 | int | |
4769 | main () | |
4770 | { | |
4771 | ||
4772 | ; | |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
81ecdfbb | 4776 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4777 | ac_cv_prog_cxx_g=yes |
4778 | else | |
81ecdfbb RW |
4779 | CXXFLAGS="" |
4780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4781 | /* end confdefs.h. */ |
81ecdfbb | 4782 | |
18f6b6ee PB |
4783 | int |
4784 | main () | |
4785 | { | |
81ecdfbb | 4786 | |
18f6b6ee PB |
4787 | ; |
4788 | return 0; | |
4789 | } | |
4790 | _ACEOF | |
81ecdfbb | 4791 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 4792 | |
81ecdfbb RW |
4793 | else |
4794 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4795 | CXXFLAGS="-g" | |
4796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 4797 | /* end confdefs.h. */ |
81ecdfbb | 4798 | |
18f6b6ee PB |
4799 | int |
4800 | main () | |
4801 | { | |
81ecdfbb | 4802 | |
18f6b6ee PB |
4803 | ; |
4804 | return 0; | |
4805 | } | |
4806 | _ACEOF | |
81ecdfbb RW |
4807 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4808 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 4809 | fi |
81ecdfbb RW |
4810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4811 | fi | |
4812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4813 | fi | |
4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4815 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4816 | fi | |
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4818 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4819 | if test "$ac_test_CXXFLAGS" = set; then | |
4820 | CXXFLAGS=$ac_save_CXXFLAGS | |
4821 | elif test $ac_cv_prog_cxx_g = yes; then | |
4822 | if test "$GXX" = yes; then | |
4823 | CXXFLAGS="-g -O2" | |
4824 | else | |
4825 | CXXFLAGS="-g" | |
4826 | fi | |
4827 | else | |
4828 | if test "$GXX" = yes; then | |
4829 | CXXFLAGS="-O2" | |
4830 | else | |
4831 | CXXFLAGS= | |
4832 | fi | |
18f6b6ee | 4833 | fi |
18f6b6ee PB |
4834 | ac_ext=c |
4835 | ac_cpp='$CPP $CPPFLAGS' | |
4836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4839 | ||
4840 | ||
4841 | # We must set the default linker to the linker used by gcc for the correct | |
4842 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
4843 | # set the LD default to the ld used by gcc. | |
4844 | if test -z "$LD"; then | |
4845 | if test "$GCC" = yes; then | |
4846 | case $build in | |
4847 | *-*-mingw*) | |
4848 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
4849 | *) | |
4850 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
4851 | esac | |
4852 | case $gcc_prog_ld in | |
4853 | # Accept absolute paths. | |
4854 | [\\/]* | [A-Za-z]:[\\/]*) | |
4855 | LD="$gcc_prog_ld" ;; | |
4856 | esac | |
4857 | fi | |
512b7dfb PB |
4858 | fi |
4859 | ||
4860 | ||
4861 | ||
4862 | ||
c6b750e1 | 4863 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4864 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
4865 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4867 | $as_echo_n "checking for $ac_word... " >&6; } | |
4868 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
4869 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4870 | else |
512b7dfb PB |
4871 | if test -n "$GNATBIND"; then |
4872 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 4873 | else |
c6b750e1 DJ |
4874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4875 | for as_dir in $PATH | |
4876 | do | |
4877 | IFS=$as_save_IFS | |
4878 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4879 | for ac_exec_ext in '' $ac_executable_extensions; do |
4880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4881 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 4882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4883 | break 2 |
4884 | fi | |
4885 | done | |
81ecdfbb RW |
4886 | done |
4887 | IFS=$as_save_IFS | |
c6b750e1 | 4888 | |
9e07f89d NN |
4889 | fi |
4890 | fi | |
512b7dfb PB |
4891 | GNATBIND=$ac_cv_prog_GNATBIND |
4892 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
4894 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 4895 | else |
81ecdfbb RW |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4897 | $as_echo "no" >&6; } | |
9e07f89d NN |
4898 | fi |
4899 | ||
81ecdfbb | 4900 | |
c6b750e1 | 4901 | fi |
512b7dfb PB |
4902 | if test -z "$ac_cv_prog_GNATBIND"; then |
4903 | ac_ct_GNATBIND=$GNATBIND | |
4904 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
4905 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4907 | $as_echo_n "checking for $ac_word... " >&6; } | |
4908 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
4909 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 4910 | else |
512b7dfb PB |
4911 | if test -n "$ac_ct_GNATBIND"; then |
4912 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 4913 | else |
c6b750e1 DJ |
4914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4915 | for as_dir in $PATH | |
4916 | do | |
4917 | IFS=$as_save_IFS | |
4918 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4919 | for ac_exec_ext in '' $ac_executable_extensions; do |
4920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4921 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 4922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4923 | break 2 |
4924 | fi | |
4925 | done | |
81ecdfbb RW |
4926 | done |
4927 | IFS=$as_save_IFS | |
c6b750e1 | 4928 | |
9e07f89d NN |
4929 | fi |
4930 | fi | |
512b7dfb PB |
4931 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
4932 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
4933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
4934 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 4935 | else |
81ecdfbb RW |
4936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4937 | $as_echo "no" >&6; } | |
9e07f89d NN |
4938 | fi |
4939 | ||
81ecdfbb RW |
4940 | if test "x$ac_ct_GNATBIND" = x; then |
4941 | GNATBIND="no" | |
4942 | else | |
4943 | case $cross_compiling:$ac_tool_warned in | |
4944 | yes:) | |
4945 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4946 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4947 | ac_tool_warned=yes ;; | |
4948 | esac | |
4949 | GNATBIND=$ac_ct_GNATBIND | |
4950 | fi | |
24ff9987 | 4951 | else |
512b7dfb | 4952 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
4953 | fi |
4954 | ||
7df2cd5d | 4955 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
4956 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
4957 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4959 | $as_echo_n "checking for $ac_word... " >&6; } | |
4960 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
4961 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 4962 | else |
512b7dfb PB |
4963 | if test -n "$GNATMAKE"; then |
4964 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
4965 | else |
4966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4967 | for as_dir in $PATH | |
4968 | do | |
4969 | IFS=$as_save_IFS | |
4970 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4971 | for ac_exec_ext in '' $ac_executable_extensions; do |
4972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 4973 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 4974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
4975 | break 2 |
4976 | fi | |
4977 | done | |
81ecdfbb RW |
4978 | done |
4979 | IFS=$as_save_IFS | |
7df2cd5d PB |
4980 | |
4981 | fi | |
4982 | fi | |
512b7dfb PB |
4983 | GNATMAKE=$ac_cv_prog_GNATMAKE |
4984 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
4985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
4986 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 4987 | else |
81ecdfbb RW |
4988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4989 | $as_echo "no" >&6; } | |
7df2cd5d PB |
4990 | fi |
4991 | ||
81ecdfbb | 4992 | |
7df2cd5d | 4993 | fi |
512b7dfb PB |
4994 | if test -z "$ac_cv_prog_GNATMAKE"; then |
4995 | ac_ct_GNATMAKE=$GNATMAKE | |
4996 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
4997 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4999 | $as_echo_n "checking for $ac_word... " >&6; } | |
5000 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5001 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5002 | else |
512b7dfb PB |
5003 | if test -n "$ac_ct_GNATMAKE"; then |
5004 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5005 | else |
5006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5007 | for as_dir in $PATH | |
5008 | do | |
5009 | IFS=$as_save_IFS | |
5010 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5011 | for ac_exec_ext in '' $ac_executable_extensions; do |
5012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5013 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5015 | break 2 |
5016 | fi | |
5017 | done | |
81ecdfbb RW |
5018 | done |
5019 | IFS=$as_save_IFS | |
7df2cd5d | 5020 | |
7df2cd5d PB |
5021 | fi |
5022 | fi | |
512b7dfb PB |
5023 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5024 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5026 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5027 | else |
81ecdfbb RW |
5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5029 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5030 | fi |
5031 | ||
81ecdfbb RW |
5032 | if test "x$ac_ct_GNATMAKE" = x; then |
5033 | GNATMAKE="no" | |
5034 | else | |
5035 | case $cross_compiling:$ac_tool_warned in | |
5036 | yes:) | |
5037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5039 | ac_tool_warned=yes ;; | |
5040 | esac | |
5041 | GNATMAKE=$ac_ct_GNATMAKE | |
5042 | fi | |
7df2cd5d | 5043 | else |
512b7dfb | 5044 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5045 | fi |
5046 | ||
81ecdfbb RW |
5047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5048 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5049 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5050 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5051 | else |
5052 | cat >conftest.adb <<EOF | |
5053 | procedure conftest is begin null; end conftest; | |
5054 | EOF | |
5055 | acx_cv_cc_gcc_supports_ada=no | |
5056 | # There is a bug in old released versions of GCC which causes the | |
5057 | # driver to exit successfully when the appropriate language module | |
5058 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5059 | # Therefore we must check for the error message as well as an | |
5060 | # unsuccessful exit. | |
b8908782 DD |
5061 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5062 | # given a .adb file, but produce no object file. So we must check | |
5063 | # if an object file was really produced to guard against this. | |
9e07f89d | 5064 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5065 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5066 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5067 | fi |
5068 | rm -f conftest.* | |
5069 | fi | |
81ecdfbb RW |
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5071 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5072 | |
512b7dfb | 5073 | if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5074 | have_gnat=yes |
5075 | else | |
5076 | have_gnat=no | |
5077 | fi | |
5078 | ||
81ecdfbb RW |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5080 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5081 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5082 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5083 | else |
5084 | echo abfoo >t1 | |
5085 | echo cdfoo >t2 | |
5086 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5087 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5088 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5089 | : | |
5090 | else | |
5091 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5092 | fi | |
5093 | fi | |
b8908782 DD |
5094 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5095 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5096 | : |
b8908782 DD |
5097 | else |
5098 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5099 | fi | |
5100 | fi | |
5101 | rm t1 t2 | |
5102 | ||
5103 | fi | |
81ecdfbb RW |
5104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5105 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5106 | do_compare="$gcc_cv_prog_cmp_skip" |
5107 | ||
5108 | ||
9e07f89d | 5109 | |
e8a5fa9c | 5110 | # See if we are building gcc with C++. |
81ecdfbb RW |
5111 | # Check whether --enable-build-with-cxx was given. |
5112 | if test "${enable_build_with_cxx+set}" = set; then : | |
5113 | enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval | |
e8a5fa9c RW |
5114 | else |
5115 | ENABLE_BUILD_WITH_CXX=no | |
81ecdfbb RW |
5116 | fi |
5117 | ||
e8a5fa9c | 5118 | |
d5f2ee2e KG |
5119 | # Used for setting $lt_cv_objdir |
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5121 | $as_echo_n "checking for objdir... " >&6; } | |
5122 | if test "${lt_cv_objdir+set}" = set; then : | |
5123 | $as_echo_n "(cached) " >&6 | |
5124 | else | |
5125 | rm -f .libs 2>/dev/null | |
5126 | mkdir .libs 2>/dev/null | |
5127 | if test -d .libs; then | |
5128 | lt_cv_objdir=.libs | |
5129 | else | |
5130 | # MS-DOS does not allow filenames that begin with a dot. | |
5131 | lt_cv_objdir=_libs | |
5132 | fi | |
5133 | rmdir .libs 2>/dev/null | |
5134 | fi | |
5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5136 | $as_echo "$lt_cv_objdir" >&6; } | |
5137 | objdir=$lt_cv_objdir | |
5138 | ||
5139 | ||
5140 | ||
5141 | ||
5142 | ||
5143 | cat >>confdefs.h <<_ACEOF | |
5144 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5145 | _ACEOF | |
5146 | ||
5147 | ||
5148 | ||
e8a5fa9c | 5149 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5150 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5151 | gmpinc= |
4b900473 | 5152 | have_gmp=no |
e8a5fa9c RW |
5153 | |
5154 | # Specify a location for mpc | |
5155 | # check for this first so it ends up on the link line before mpfr. | |
5156 | ||
81ecdfbb RW |
5157 | # Check whether --with-mpc was given. |
5158 | if test "${with_mpc+set}" = set; then : | |
5159 | withval=$with_mpc; | |
5160 | fi | |
e8a5fa9c | 5161 | |
e8a5fa9c | 5162 | |
e552509b | 5163 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5164 | if test "${with_mpc_include+set}" = set; then : |
5165 | withval=$with_mpc_include; | |
5166 | fi | |
e8a5fa9c | 5167 | |
e8a5fa9c | 5168 | |
e552509b | 5169 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5170 | if test "${with_mpc_lib+set}" = set; then : |
5171 | withval=$with_mpc_lib; | |
5172 | fi | |
e8a5fa9c | 5173 | |
e8a5fa9c RW |
5174 | |
5175 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5176 | gmplibs="-L$with_mpc/lib $gmplibs" |
5177 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5178 | fi |
5179 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5180 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5181 | fi |
5182 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5183 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5184 | fi |
5185 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5186 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5187 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5188 | # Do not test the mpc version. Assume that it is sufficient, since |
5189 | # it is in the source tree, and the library has not been built yet | |
5190 | # but it would be included on the link line in the version check below | |
5191 | # hence making the test fail. | |
d9b76ff9 | 5192 | have_gmp=yes |
e8a5fa9c | 5193 | fi |
4b900473 | 5194 | |
11b04d1f DD |
5195 | # Specify a location for mpfr |
5196 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5197 | |
81ecdfbb RW |
5198 | # Check whether --with-mpfr-dir was given. |
5199 | if test "${with_mpfr_dir+set}" = set; then : | |
5200 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5201 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5202 | fi | |
5203 | ||
11b04d1f DD |
5204 | |
5205 | ||
81ecdfbb RW |
5206 | # Check whether --with-mpfr was given. |
5207 | if test "${with_mpfr+set}" = set; then : | |
5208 | withval=$with_mpfr; | |
5209 | fi | |
c6b750e1 | 5210 | |
11b04d1f | 5211 | |
e552509b | 5212 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5213 | if test "${with_mpfr_include+set}" = set; then : |
5214 | withval=$with_mpfr_include; | |
5215 | fi | |
c6b750e1 | 5216 | |
8a0d8a5c | 5217 | |
e552509b | 5218 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5219 | if test "${with_mpfr_lib+set}" = set; then : |
5220 | withval=$with_mpfr_lib; | |
5221 | fi | |
8a0d8a5c | 5222 | |
11b04d1f DD |
5223 | |
5224 | if test "x$with_mpfr" != x; then | |
5225 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5226 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5227 | fi |
8a0d8a5c | 5228 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5229 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5230 | fi |
5231 | if test "x$with_mpfr_lib" != x; then | |
5232 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5233 | fi | |
4b900473 | 5234 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
d5f2ee2e | 5235 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5236 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" |
d5f2ee2e | 5237 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" |
4b900473 PB |
5238 | # Do not test the mpfr version. Assume that it is sufficient, since |
5239 | # it is in the source tree, and the library has not been built yet | |
5240 | # but it would be included on the link line in the version check below | |
5241 | # hence making the test fail. | |
5242 | have_gmp=yes | |
5243 | fi | |
11b04d1f | 5244 | |
4b1cb4fe | 5245 | # Specify a location for gmp |
c6b750e1 | 5246 | |
81ecdfbb RW |
5247 | # Check whether --with-gmp-dir was given. |
5248 | if test "${with_gmp_dir+set}" = set; then : | |
5249 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5250 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5251 | fi | |
5252 | ||
4b1cb4fe DD |
5253 | |
5254 | ||
81ecdfbb RW |
5255 | # Check whether --with-gmp was given. |
5256 | if test "${with_gmp+set}" = set; then : | |
5257 | withval=$with_gmp; | |
5258 | fi | |
c6b750e1 | 5259 | |
4b1cb4fe | 5260 | |
e552509b | 5261 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5262 | if test "${with_gmp_include+set}" = set; then : |
5263 | withval=$with_gmp_include; | |
5264 | fi | |
c6b750e1 | 5265 | |
8a0d8a5c | 5266 | |
e552509b | 5267 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5268 | if test "${with_gmp_lib+set}" = set; then : |
5269 | withval=$with_gmp_lib; | |
5270 | fi | |
8a0d8a5c PB |
5271 | |
5272 | ||
4b1cb4fe | 5273 | |
11b04d1f DD |
5274 | if test "x$with_gmp" != x; then |
5275 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5276 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5277 | fi |
8a0d8a5c PB |
5278 | if test "x$with_gmp_include" != x; then |
5279 | gmpinc="-I$with_gmp_include $gmpinc" | |
5280 | fi | |
5281 | if test "x$with_gmp_lib" != x; then | |
5282 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5283 | fi | |
4b900473 | 5284 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5285 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5286 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5287 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5288 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
4b900473 PB |
5289 | # Do not test the gmp version. Assume that it is sufficient, since |
5290 | # it is in the source tree, and the library has not been built yet | |
5291 | # but it would be included on the link line in the version check below | |
5292 | # hence making the test fail. | |
5293 | have_gmp=yes | |
5294 | fi | |
4b1cb4fe | 5295 | |
ceb92e78 | 5296 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5297 | have_gmp=yes |
5298 | saved_CFLAGS="$CFLAGS" | |
5299 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5300 | # Check for the recommended and required versions of GMP. |
5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5302 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5303 | |
5304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5305 | /* end confdefs.h. */ |
5306 | #include "gmp.h" | |
5307 | int | |
5308 | main () | |
5309 | { | |
5310 | ||
5311 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5312 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5313 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0) | |
5314 | choke me | |
5315 | #endif | |
5316 | ||
5317 | ; | |
5318 | return 0; | |
5319 | } | |
5320 | _ACEOF | |
5321 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5323 | /* end confdefs.h. */ |
a6b5846e | 5324 | #include <gmp.h> |
c6b750e1 DJ |
5325 | int |
5326 | main () | |
5327 | { | |
4b1cb4fe | 5328 | |
a6b5846e KG |
5329 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5330 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5331 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5332 | choke me |
5333 | #endif | |
c6b750e1 DJ |
5334 | |
5335 | ; | |
5336 | return 0; | |
5337 | } | |
5338 | _ACEOF | |
81ecdfbb RW |
5339 | if ac_fn_c_try_compile "$LINENO"; then : |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5341 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5342 | else |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5344 | $as_echo "buggy but acceptable" >&6; } | |
5345 | fi | |
5346 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5347 | else |
81ecdfbb RW |
5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5349 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5350 | fi |
81ecdfbb | 5351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5352 | |
e8a5fa9c | 5353 | # If we have GMP, check the MPFR version. |
4b900473 | 5354 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5355 | # Check for the recommended and required versions of MPFR. |
5356 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5357 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5359 | /* end confdefs.h. */ |
9b134994 | 5360 | #include <gmp.h> |
4b900473 | 5361 | #include <mpfr.h> |
c6b750e1 DJ |
5362 | int |
5363 | main () | |
5364 | { | |
9b134994 | 5365 | |
ef699244 | 5366 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1) |
4b900473 PB |
5367 | choke me |
5368 | #endif | |
c6b750e1 DJ |
5369 | |
5370 | ; | |
5371 | return 0; | |
5372 | } | |
5373 | _ACEOF | |
81ecdfbb RW |
5374 | if ac_fn_c_try_compile "$LINENO"; then : |
5375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5376 | /* end confdefs.h. */ |
4b1cb4fe | 5377 | #include <gmp.h> |
4b900473 | 5378 | #include <mpfr.h> |
c6b750e1 DJ |
5379 | int |
5380 | main () | |
5381 | { | |
9dbaa842 | 5382 | |
a6b5846e | 5383 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5384 | choke me |
5385 | #endif | |
e8a5fa9c RW |
5386 | |
5387 | ; | |
5388 | return 0; | |
5389 | } | |
5390 | _ACEOF | |
81ecdfbb RW |
5391 | if ac_fn_c_try_compile "$LINENO"; then : |
5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5393 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5394 | else |
81ecdfbb RW |
5395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5396 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5397 | fi |
81ecdfbb | 5398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5399 | else |
81ecdfbb RW |
5400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5401 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5402 | fi |
81ecdfbb | 5403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5404 | fi |
5405 | ||
5406 | # Check for the MPC header version. | |
d9b76ff9 | 5407 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5408 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5410 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5412 | /* end confdefs.h. */ |
5413 | #include <mpc.h> | |
5414 | int | |
5415 | main () | |
5416 | { | |
5417 | ||
a6b5846e KG |
5418 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5419 | choke me | |
5420 | #endif | |
5421 | ||
5422 | ; | |
5423 | return 0; | |
5424 | } | |
5425 | _ACEOF | |
5426 | if ac_fn_c_try_compile "$LINENO"; then : | |
5427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5428 | /* end confdefs.h. */ | |
5429 | #include <mpc.h> | |
5430 | int | |
5431 | main () | |
5432 | { | |
5433 | ||
5434 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5435 | choke me |
5436 | #endif | |
5437 | ||
5438 | ; | |
5439 | return 0; | |
5440 | } | |
5441 | _ACEOF | |
81ecdfbb RW |
5442 | if ac_fn_c_try_compile "$LINENO"; then : |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5444 | $as_echo "yes" >&6; } |
a6b5846e KG |
5445 | else |
5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5447 | $as_echo "buggy but acceptable" >&6; } | |
5448 | fi | |
5449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5450 | else |
81ecdfbb | 5451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5452 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5453 | fi |
81ecdfbb | 5454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5455 | fi |
5456 | ||
5457 | # Now check the MPFR library. | |
5458 | if test x"$have_gmp" = xyes; then | |
5459 | saved_LIBS="$LIBS" | |
5460 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5462 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5464 | /* end confdefs.h. */ |
d9b76ff9 | 5465 | #include <mpc.h> |
e8a5fa9c RW |
5466 | int |
5467 | main () | |
5468 | { | |
5469 | ||
5470 | mpfr_t n; | |
5471 | mpfr_t x; | |
d9b76ff9 | 5472 | mpc_t c; |
e8a5fa9c RW |
5473 | int t; |
5474 | mpfr_init (n); | |
5475 | mpfr_init (x); | |
5476 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5477 | mpfr_erfc (n, x, GMP_RNDN); | |
5478 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5479 | mpfr_clear(n); |
5480 | mpfr_clear(x); | |
5481 | mpc_init2 (c, 53); | |
5482 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5483 | mpc_cosh (c, c, MPC_RNDNN); | |
5484 | mpc_pow (c, c, c, MPC_RNDNN); | |
5485 | mpc_acosh (c, c, MPC_RNDNN); | |
5486 | mpc_clear (c); | |
c6b750e1 DJ |
5487 | |
5488 | ; | |
5489 | return 0; | |
5490 | } | |
5491 | _ACEOF | |
81ecdfbb RW |
5492 | if ac_fn_c_try_link "$LINENO"; then : |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5494 | $as_echo "yes" >&6; } | |
c6b750e1 | 5495 | else |
81ecdfbb RW |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5497 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5498 | fi |
81ecdfbb RW |
5499 | rm -f core conftest.err conftest.$ac_objext \ |
5500 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5501 | LIBS="$saved_LIBS" |
5502 | fi | |
5503 | ||
4b900473 | 5504 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5505 | |
a6b5846e KG |
5506 | # The library versions listed in the error message below should match |
5507 | # the HARD-minimums enforced above. | |
4b900473 | 5508 | if test x$have_gmp != xyes; then |
a6b5846e | 5509 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+. |
d9b76ff9 KG |
5510 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5511 | their locations. Source code for these libraries can be found at | |
5512 | their respective hosting sites as well as at | |
5513 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5514 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5515 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5516 | make sure that you have installed both the libraries and the header | |
5517 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5518 | fi |
9dbaa842 DD |
5519 | fi |
5520 | ||
e8a5fa9c RW |
5521 | # Flags needed for both GMP, MPFR and/or MPC. |
5522 | ||
5523 | ||
5524 | ||
4b1cb4fe DD |
5525 | |
5526 | ||
5527 | ||
29383458 JM |
5528 | # Allow host libstdc++ to be specified for static linking with PPL. |
5529 | ||
81ecdfbb RW |
5530 | # Check whether --with-host-libstdcxx was given. |
5531 | if test "${with_host_libstdcxx+set}" = set; then : | |
5532 | withval=$with_host_libstdcxx; | |
5533 | fi | |
29383458 | 5534 | |
29383458 JM |
5535 | |
5536 | case $with_host_libstdcxx in | |
5537 | no|yes) | |
81ecdfbb | 5538 | as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5 |
29383458 JM |
5539 | ;; |
5540 | esac | |
e28c595f | 5541 | |
e8a5fa9c RW |
5542 | # Linker flags to use for stage1 or when not boostrapping. |
5543 | ||
81ecdfbb RW |
5544 | # Check whether --with-stage1-ldflags was given. |
5545 | if test "${with_stage1_ldflags+set}" = set; then : | |
5546 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5547 | stage1_ldflags= |
5548 | else | |
5549 | stage1_ldflags=$withval | |
5550 | fi | |
5551 | else | |
5552 | stage1_ldflags= | |
81ecdfbb RW |
5553 | fi |
5554 | ||
e8a5fa9c RW |
5555 | |
5556 | ||
5557 | # Libraries to use for stage1 or when not bootstrapping. | |
5558 | ||
81ecdfbb RW |
5559 | # Check whether --with-stage1-libs was given. |
5560 | if test "${with_stage1_libs+set}" = set; then : | |
5561 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5562 | stage1_libs= |
5563 | else | |
5564 | stage1_libs=$withval | |
5565 | fi | |
5566 | else | |
5567 | stage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5568 | fi |
5569 | ||
e8a5fa9c RW |
5570 | |
5571 | ||
e8a5fa9c RW |
5572 | # Libraries to use for stage2 and later builds. This defaults to the |
5573 | # argument passed to --with-host-libstdcxx. | |
5574 | ||
81ecdfbb RW |
5575 | # Check whether --with-boot-libs was given. |
5576 | if test "${with_boot_libs+set}" = set; then : | |
5577 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5578 | poststage1_libs= |
5579 | else | |
5580 | poststage1_libs=$withval | |
5581 | fi | |
5582 | else | |
5583 | poststage1_libs=$with_host_libstdcxx | |
81ecdfbb RW |
5584 | fi |
5585 | ||
e8a5fa9c RW |
5586 | |
5587 | ||
143754cd NC |
5588 | # Linker flags to use for stage2 and later builds. |
5589 | ||
5590 | # Check whether --with-boot-ldflags was given. | |
5591 | if test "${with_boot_ldflags+set}" = set; then : | |
5592 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5593 | poststage1_ldflags= | |
5594 | else | |
5595 | poststage1_ldflags=$withval | |
5596 | fi | |
5597 | else | |
5598 | poststage1_ldflags= | |
4f11b223 ILT |
5599 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5600 | # statically. But if the user explicitly specified the libraries to | |
5601 | # use, trust that they are doing what they want. | |
5602 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5603 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5604 | fi | |
5605 | fi | |
5606 | ||
5607 | ||
5608 | ||
e28c595f | 5609 | # Check for PPL |
b123da99 | 5610 | ppllibs= |
e28c595f | 5611 | pplinc= |
b123da99 | 5612 | pwllib= |
e28c595f JM |
5613 | |
5614 | ||
81ecdfbb RW |
5615 | # Check whether --with-ppl was given. |
5616 | if test "${with_ppl+set}" = set; then : | |
5617 | withval=$with_ppl; | |
81ecdfbb | 5618 | fi |
e28c595f | 5619 | |
e28c595f | 5620 | |
e552509b | 5621 | # Check whether --with-ppl-include was given. |
81ecdfbb RW |
5622 | if test "${with_ppl_include+set}" = set; then : |
5623 | withval=$with_ppl_include; | |
5624 | fi | |
5625 | ||
e28c595f | 5626 | |
e552509b | 5627 | # Check whether --with-ppl-lib was given. |
81ecdfbb RW |
5628 | if test "${with_ppl_lib+set}" = set; then : |
5629 | withval=$with_ppl_lib; | |
5630 | fi | |
e28c595f | 5631 | |
e28c595f | 5632 | |
b123da99 SP |
5633 | # Check whether --enable-ppl-version-check was given. |
5634 | if test "${enable_ppl_version_check+set}" = set; then : | |
5635 | enableval=$enable_ppl_version_check; | |
5636 | fi | |
5637 | ||
5638 | ||
29383458 | 5639 | case $with_ppl in |
b123da99 | 5640 | yes | no | "") |
1f53ca9a | 5641 | ;; |
29383458 | 5642 | *) |
b123da99 | 5643 | ppllibs="-L$with_ppl/lib" |
29383458 | 5644 | pplinc="-I$with_ppl/include $pplinc" |
b123da99 SP |
5645 | if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then |
5646 | with_ppl=yes | |
5647 | else | |
5648 | as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5 | |
5649 | fi | |
29383458 JM |
5650 | ;; |
5651 | esac | |
b123da99 SP |
5652 | |
5653 | if test x"$with_ppl_include" != x; then | |
e28c595f | 5654 | pplinc="-I$with_ppl_include $pplinc" |
b123da99 | 5655 | with_ppl=yes |
e28c595f | 5656 | fi |
b123da99 | 5657 | |
e28c595f | 5658 | if test "x$with_ppl_lib" != x; then |
b123da99 SP |
5659 | ppllibs="-L$with_ppl_lib" |
5660 | with_ppl=yes | |
e28c595f | 5661 | fi |
b123da99 SP |
5662 | |
5663 | if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then | |
5664 | if test x"$enable_watchdog" = xyes; then | |
5665 | pwllib="-lpwl" | |
5666 | fi | |
5667 | ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir" | |
1f53ca9a AO |
5668 | pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C ' |
5669 | enable_ppl_version_check=no | |
b123da99 | 5670 | with_ppl=yes |
e28c595f JM |
5671 | fi |
5672 | ||
86ed8cf6 | 5673 | if test "x$with_ppl" != xno; then |
b123da99 | 5674 | if test "x$pwllib" = x; then |
0e8ad34f RO |
5675 | saved_LIBS="$LIBS" |
5676 | LIBS="$LIBS $ppllibs -lstdc++ -lm" | |
b123da99 SP |
5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5 |
5678 | $as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; } | |
5679 | if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then : | |
5680 | $as_echo_n "(cached) " >&6 | |
5681 | else | |
5682 | ac_check_lib_save_LIBS=$LIBS | |
5683 | LIBS="-lpwl $LIBS" | |
5684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5685 | /* end confdefs.h. */ | |
5686 | ||
5687 | /* Override any GCC internal prototype to avoid an error. | |
5688 | Use char because int might match the return type of a GCC | |
5689 | builtin and then its argument prototype would still apply. */ | |
5690 | #ifdef __cplusplus | |
5691 | extern "C" | |
5692 | #endif | |
5693 | char PWL_handle_timeout (); | |
5694 | int | |
5695 | main () | |
5696 | { | |
5697 | return PWL_handle_timeout (); | |
5698 | ; | |
5699 | return 0; | |
5700 | } | |
5701 | _ACEOF | |
5702 | if ac_fn_c_try_link "$LINENO"; then : | |
5703 | ac_cv_lib_pwl_PWL_handle_timeout=yes | |
e28c595f | 5704 | else |
b123da99 SP |
5705 | ac_cv_lib_pwl_PWL_handle_timeout=no |
5706 | fi | |
5707 | rm -f core conftest.err conftest.$ac_objext \ | |
5708 | conftest$ac_exeext conftest.$ac_ext | |
5709 | LIBS=$ac_check_lib_save_LIBS | |
5710 | fi | |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5 | |
5712 | $as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; } | |
5713 | if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then : | |
5714 | pwllib="-lpwl" | |
81ecdfbb RW |
5715 | fi |
5716 | ||
0e8ad34f | 5717 | LIBS="$saved_LIBS" |
b123da99 | 5718 | fi |
e28c595f | 5719 | |
b123da99 SP |
5720 | ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx" |
5721 | ||
5722 | if test "$enable_ppl_version_check" != no; then | |
5723 | saved_CFLAGS="$CFLAGS" | |
5724 | CFLAGS="$CFLAGS $pplinc $gmpinc" | |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5 | |
5726 | $as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; } | |
5727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e28c595f JM |
5728 | /* end confdefs.h. */ |
5729 | #include "ppl_c.h" | |
5730 | int | |
5731 | main () | |
5732 | { | |
5733 | ||
b123da99 SP |
5734 | #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11 |
5735 | choke me | |
5736 | #endif | |
e28c595f JM |
5737 | |
5738 | ; | |
5739 | return 0; | |
5740 | } | |
5741 | _ACEOF | |
81ecdfbb RW |
5742 | if ac_fn_c_try_compile "$LINENO"; then : |
5743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5744 | $as_echo "yes" >&6; } | |
e28c595f | 5745 | else |
81ecdfbb | 5746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1f53ca9a | 5747 | $as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no |
e28c595f | 5748 | fi |
81ecdfbb | 5749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b123da99 SP |
5750 | CFLAGS="$saved_CFLAGS" |
5751 | fi | |
e28c595f JM |
5752 | fi |
5753 | ||
5754 | # Flags needed for PPL | |
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | # Check for CLOOG | |
e552509b | 5760 | |
e28c595f JM |
5761 | |
5762 | ||
81ecdfbb RW |
5763 | # Check whether --with-cloog was given. |
5764 | if test "${with_cloog+set}" = set; then : | |
5765 | withval=$with_cloog; | |
81ecdfbb RW |
5766 | fi |
5767 | ||
e28c595f | 5768 | |
e552509b | 5769 | # Check whether --with-cloog-include was given. |
81ecdfbb RW |
5770 | if test "${with_cloog_include+set}" = set; then : |
5771 | withval=$with_cloog_include; | |
5772 | fi | |
e28c595f | 5773 | |
e28c595f | 5774 | |
e552509b | 5775 | # Check whether --with-cloog-lib was given. |
81ecdfbb RW |
5776 | if test "${with_cloog_lib+set}" = set; then : |
5777 | withval=$with_cloog_lib; | |
5778 | fi | |
e28c595f | 5779 | |
e28c595f | 5780 | |
e552509b ILT |
5781 | # Check whether --enable-cloog-backend was given. |
5782 | if test "${enable_cloog_backend+set}" = set; then : | |
5783 | enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then | |
5784 | cloog_backend=isl | |
5785 | elif test "x${enableval}" = "xppl"; then | |
5786 | cloog_backend=ppl | |
5787 | else | |
5788 | cloog_backend=ppl-legacy | |
5789 | fi | |
5790 | else | |
5791 | cloog_backend=ppl-legacy | |
5792 | fi | |
5793 | ||
5794 | # Check whether --enable-cloog-version-check was given. | |
5795 | if test "${enable_cloog_version_check+set}" = set; then : | |
5796 | enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval | |
5797 | else | |
5798 | ENABLE_CLOOG_CHECK=yes | |
5799 | fi | |
5800 | ||
5801 | ||
5802 | # Initialize clooglibs and clooginc. | |
5803 | case $with_cloog in | |
5804 | no) | |
5805 | clooglibs= | |
5806 | clooginc= | |
5807 | ;; | |
5808 | "" | yes) | |
5809 | ;; | |
5810 | *) | |
5811 | clooglibs="-L$with_cloog/lib" | |
5812 | clooginc="-I$with_cloog/include" | |
5813 | ;; | |
5814 | esac | |
5815 | if test "x${with_cloog_include}" != x ; then | |
5816 | clooginc="-I$with_cloog_include" | |
5817 | fi | |
5818 | if test "x${with_cloog_lib}" != x; then | |
5819 | clooglibs="-L$with_cloog_lib" | |
5820 | fi | |
5821 | ||
5822 | ||
5823 | ||
5824 | ||
5825 | ||
1f53ca9a | 5826 | if test "x$with_ppl" = "xno"; then |
8d8eef9a RW |
5827 | |
5828 | ||
5829 | ||
5830 | if test "x${with_cloog}" = xno; then | |
5831 | graphite_requested=no | |
5832 | elif test "x${with_cloog}" != x \ | |
5833 | || test "x${with_cloog_include}" != x \ | |
5834 | || test "x${with_cloog_lib}" != x ; then | |
5835 | graphite_requested=yes | |
5836 | else | |
5837 | graphite_requested=no | |
5838 | fi | |
5839 | ||
5840 | ||
5841 | if test "${graphite_requested}" = yes; then | |
5842 | as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5 | |
5843 | fi | |
1f53ca9a AO |
5844 | with_cloog=no |
5845 | fi | |
e552509b ILT |
5846 | if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \ |
5847 | && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then | |
5848 | clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' ' | |
5849 | clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include ' | |
5850 | fi | |
5851 | if test "x$with_cloog" != "xno"; then | |
1f53ca9a | 5852 | |
e552509b ILT |
5853 | |
5854 | ||
5855 | _cloog_saved_CFLAGS=$CFLAGS | |
5856 | _cloog_saved_CPPFLAGS=$CPPFLAGS | |
5857 | _cloog_saved_LDFLAGS=$LDFLAGS | |
5858 | _cloog_saved_LIBS=$LIBS | |
5859 | ||
5860 | _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG" | |
5861 | ||
5862 | CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}" | |
5863 | CPPFLAGS="${CPPFLAGS} ${_cloogorginc}" | |
5864 | LDFLAGS="${LDFLAGS} ${clooglibs}" | |
5865 | ||
5866 | case $cloog_backend in | |
5867 | "ppl-legacy") | |
5868 | CFLAGS="${CFLAGS} ${pplinc}" | |
5869 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5 | |
5871 | $as_echo_n "checking for installed CLooG PPL Legacy... " >&6; } | |
5872 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5873 | $as_echo_n "(cached) " >&6 | |
5874 | else | |
5875 | LIBS="-lcloog ${_cloog_saved_LIBS}" | |
5876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5877 | /* end confdefs.h. */ | |
5878 | #include "cloog/cloog.h" | |
5879 | int | |
5880 | main () | |
5881 | { | |
5882 | #ifndef CLOOG_PPL_BACKEND | |
5883 | choke me | |
5884 | #endif | |
5885 | ; | |
5886 | return 0; | |
5887 | } | |
5888 | _ACEOF | |
5889 | if ac_fn_c_try_link "$LINENO"; then : | |
5890 | gcc_cv_cloog_type="PPL Legacy" | |
5891 | else | |
5892 | gcc_cv_cloog_type=no | |
5893 | fi | |
5894 | rm -f core conftest.err conftest.$ac_objext \ | |
5895 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5896 | fi |
e552509b ILT |
5897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5898 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5899 | ;; | |
5900 | "isl") | |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5 | |
5902 | $as_echo_n "checking for installed CLooG ISL... " >&6; } | |
5903 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5904 | $as_echo_n "(cached) " >&6 | |
5905 | else | |
5906 | LIBS="-lcloog-isl ${_cloog_saved_LIBS}" | |
5907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5908 | /* end confdefs.h. */ | |
5909 | #include "cloog/cloog.h" | |
5910 | int | |
5911 | main () | |
5912 | { | |
5913 | cloog_version () | |
5914 | ; | |
5915 | return 0; | |
5916 | } | |
5917 | _ACEOF | |
5918 | if ac_fn_c_try_link "$LINENO"; then : | |
5919 | gcc_cv_cloog_type="ISL" | |
5920 | else | |
5921 | gcc_cv_cloog_type=no | |
e28c595f | 5922 | fi |
e552509b ILT |
5923 | rm -f core conftest.err conftest.$ac_objext \ |
5924 | conftest$ac_exeext conftest.$ac_ext | |
e28c595f | 5925 | fi |
e552509b ILT |
5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 |
5927 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5928 | ;; | |
5929 | "ppl") | |
5930 | CFLAGS="${CFLAGS} ${pplinc}" | |
5931 | LDFLAGS="${LDFLAGS} ${ppllibs}" | |
5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5 | |
5933 | $as_echo_n "checking for installed CLooG PPL... " >&6; } | |
5934 | if test "${gcc_cv_cloog_type+set}" = set; then : | |
5935 | $as_echo_n "(cached) " >&6 | |
e28c595f | 5936 | else |
e552509b ILT |
5937 | LIBS="-lcloog-ppl ${_cloog_saved_LIBS}" |
5938 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5939 | /* end confdefs.h. */ | |
5940 | #include "cloog/cloog.h" | |
5941 | #include "cloog/ppl/cloog.h" | |
5942 | int | |
5943 | main () | |
5944 | { | |
5945 | cloog_version () | |
5946 | ; | |
5947 | return 0; | |
5948 | } | |
5949 | _ACEOF | |
5950 | if ac_fn_c_try_link "$LINENO"; then : | |
5951 | gcc_cv_cloog_type="PPL" | |
5952 | else | |
5953 | gcc_cv_cloog_type=no | |
81ecdfbb | 5954 | fi |
e552509b ILT |
5955 | rm -f core conftest.err conftest.$ac_objext \ |
5956 | conftest$ac_exeext conftest.$ac_ext | |
5957 | fi | |
5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5 | |
5959 | $as_echo "$gcc_cv_cloog_type" >&6; } | |
5960 | ;; | |
5961 | *) | |
5962 | gcc_cv_cloog_type="" | |
5963 | esac | |
5964 | ||
5965 | case $gcc_cv_cloog_type in | |
5966 | "PPL Legacy") | |
5967 | clooginc="${clooginc}" | |
5968 | clooglibs="${clooglibs} -lcloog" | |
5969 | cloog_org=no | |
5970 | ;; | |
5971 | "ISL") | |
5972 | clooginc="${clooginc} ${_cloogorginc}" | |
b123da99 | 5973 | clooglibs="${clooglibs} -lcloog-isl -lisl" |
e552509b ILT |
5974 | cloog_org=yes |
5975 | ;; | |
5976 | "PPL") | |
5977 | clooginc="${clooginc} ${_cloogorginc}" | |
5978 | clooglibs="${clooglibs} -lcloog-ppl" | |
5979 | cloog_org=yes | |
5980 | ;; | |
5981 | *) | |
5982 | clooglibs= | |
5983 | clooginc= | |
5984 | cloog_org= | |
5985 | ;; | |
5986 | esac | |
81ecdfbb | 5987 | |
e552509b ILT |
5988 | LIBS=$_cloog_saved_LIBS |
5989 | CFLAGS=$_cloog_saved_CFLAGS | |
5990 | CPPFLAGS=$_cloog_saved_CPPFLAGS | |
5991 | LDFLAGS=$_cloog_saved_LDFLAGS | |
e28c595f | 5992 | |
e552509b ILT |
5993 | |
5994 | ||
5995 | ||
5996 | ||
5997 | if test "${ENABLE_CLOOG_CHECK}" = yes ; then | |
5998 | _cloog_saved_CFLAGS=$CFLAGS | |
5999 | _cloog_saved_LDFLAGS=$LDFLAGS | |
6000 | ||
6001 | CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}" | |
6002 | LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}" | |
6003 | ||
6004 | if test "${cloog_org}" = yes ; then | |
8d8eef9a RW |
6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5 |
6006 | $as_echo_n "checking for version 0.16.1 of CLooG... " >&6; } | |
e552509b ILT |
6007 | if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then : |
6008 | $as_echo_n "(cached) " >&6 | |
6009 | else | |
6010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6011 | /* end confdefs.h. */ | |
6012 | #include "cloog/cloog.h" | |
6013 | int | |
6014 | main () | |
6015 | { | |
6016 | #if CLOOG_VERSION_MAJOR != 0 \ | |
8d8eef9a RW |
6017 | || CLOOG_VERSION_MINOR != 16 \ |
6018 | || CLOOG_VERSION_REVISION < 1 | |
e552509b ILT |
6019 | choke me |
6020 | #endif | |
6021 | ; | |
6022 | return 0; | |
6023 | } | |
6024 | _ACEOF | |
6025 | if ac_fn_c_try_compile "$LINENO"; then : | |
6026 | gcc_cv_cloog_ct_0_14_0=yes | |
6027 | else | |
6028 | gcc_cv_cloog_ct_0_14_0=no | |
6029 | fi | |
6030 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6031 | fi | |
6032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5 | |
6033 | $as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; } | |
6034 | elif test "${cloog_org}" = no ; then | |
6035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5 | |
143754cd | 6036 | $as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; } |
e552509b ILT |
6037 | if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then : |
6038 | $as_echo_n "(cached) " >&6 | |
6039 | else | |
81ecdfbb | 6040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e28c595f JM |
6041 | /* end confdefs.h. */ |
6042 | #include "cloog/cloog.h" | |
6043 | int | |
6044 | main () | |
6045 | { | |
e552509b ILT |
6046 | #if CLOOG_VERSION_MAJOR != 0 \ |
6047 | || CLOOG_VERSION_MINOR != 15 \ | |
6048 | || CLOOG_VERSION_REVISION < 5 | |
6049 | choke me | |
6050 | #endif | |
e28c595f JM |
6051 | ; |
6052 | return 0; | |
6053 | } | |
6054 | _ACEOF | |
a009f2e7 RW |
6055 | if ac_fn_c_try_compile "$LINENO"; then : |
6056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6057 | /* end confdefs.h. */ | |
6058 | #include "cloog/cloog.h" | |
6059 | int | |
6060 | main () | |
6061 | { | |
e552509b ILT |
6062 | #if CLOOG_VERSION_MAJOR != 0 \ |
6063 | || CLOOG_VERSION_MINOR != 15 \ | |
6064 | || CLOOG_VERSION_REVISION < 9 | |
6065 | choke me | |
6066 | #endif | |
a009f2e7 RW |
6067 | ; |
6068 | return 0; | |
6069 | } | |
6070 | _ACEOF | |
81ecdfbb | 6071 | if ac_fn_c_try_compile "$LINENO"; then : |
e552509b | 6072 | gcc_cv_cloog_ct_0_15_5=yes |
a009f2e7 | 6073 | else |
e552509b | 6074 | gcc_cv_cloog_ct_0_15_5="buggy but acceptable" |
a009f2e7 RW |
6075 | fi |
6076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e28c595f | 6077 | else |
e552509b | 6078 | gcc_cv_cloog_ct_0_15_5=no |
e28c595f | 6079 | fi |
81ecdfbb | 6080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e28c595f | 6081 | fi |
e552509b ILT |
6082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5 |
6083 | $as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; } | |
6084 | fi | |
6085 | ||
6086 | CFLAGS=$_cloog_saved_CFLAGS | |
6087 | LDFLAGS=$_cloog_saved_LDFLAGS | |
6088 | fi | |
6089 | ||
6090 | ||
6091 | ||
e28c595f | 6092 | |
e28c595f JM |
6093 | |
6094 | ||
6095 | ||
8d8eef9a RW |
6096 | if test "x${with_cloog}" = xno; then |
6097 | graphite_requested=no | |
6098 | elif test "x${with_cloog}" != x \ | |
e552509b ILT |
6099 | || test "x${with_cloog_include}" != x \ |
6100 | || test "x${with_cloog_lib}" != x ; then | |
6101 | graphite_requested=yes | |
6102 | else | |
6103 | graphite_requested=no | |
6104 | fi | |
6105 | ||
6106 | ||
6107 | ||
6108 | if test "${gcc_cv_cloog_ct_0_14_0}" = no \ | |
6109 | || test "${gcc_cv_cloog_rt_0_14_0}" = no \ | |
6110 | || test "${gcc_cv_cloog_ct_0_15_5}" = no; then | |
6111 | clooglibs= | |
6112 | clooginc= | |
6113 | fi | |
6114 | ||
6115 | if test "${graphite_requested}" = yes \ | |
6116 | && test "x${clooglibs}" = x \ | |
6117 | && test "x${clooginc}" = x ; then | |
6118 | ||
8d8eef9a | 6119 | as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5 |
e552509b ILT |
6120 | fi |
6121 | ||
6122 | ||
6123 | fi | |
6124 | ||
700d40ca ILT |
6125 | # Check for LTO support. |
6126 | # Check whether --enable-lto was given. | |
6127 | if test "${enable_lto+set}" = set; then : | |
6128 | enableval=$enable_lto; enable_lto=$enableval | |
6129 | else | |
6130 | enable_lto=yes; default_enable_lto=yes | |
6131 | fi | |
6132 | ||
6133 | ||
143754cd | 6134 | |
e49e5c92 DK |
6135 | |
6136 | ||
6137 | target_elf=no | |
6138 | case $target in | |
6139 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
6140 | *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \ | |
a009f2e7 | 6141 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*) |
e49e5c92 DK |
6142 | target_elf=no |
6143 | ;; | |
6144 | *) | |
6145 | target_elf=yes | |
6146 | ;; | |
6147 | esac | |
6148 | ||
6149 | if test $target_elf = yes; then : | |
74cea91b DK |
6150 | # ELF platforms build the lto-plugin always. |
6151 | build_lto_plugin=yes | |
e49e5c92 | 6152 | |
e49e5c92 DK |
6153 | else |
6154 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6155 | case $target in |
899b04ef | 6156 | *-apple-darwin9* | *-cygwin* | *-mingw*) ;; |
74cea91b | 6157 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6158 | *) enable_lto=no ;; |
6159 | esac | |
e49e5c92 | 6160 | else |
29821356 RW |
6161 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6162 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6163 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6164 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6165 | # -flto it won't be needed until after installation anyway. | |
6166 | case $target in | |
a8eb3f0a | 6167 | *-cygwin* | *-mingw* | *-apple-darwin*) ;; |
e49e5c92 DK |
6168 | *) if test x"$enable_lto" = x"yes"; then |
6169 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6170 | fi | |
6171 | ;; | |
6172 | esac | |
6173 | fi | |
a8eb3f0a | 6174 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6175 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6176 | case $target in |
74cea91b | 6177 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6178 | *) ;; |
6179 | esac | |
74cea91b | 6180 | |
e49e5c92 DK |
6181 | fi |
6182 | ||
700d40ca | 6183 | |
e28c595f | 6184 | |
947f426e | 6185 | # By default, C is the only stage 1 language. |
9b134994 | 6186 | stage1_languages=,c, |
1d39f329 | 6187 | |
e8a5fa9c | 6188 | # Target libraries that we bootstrap. |
2aa2364a | 6189 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6190 | |
9e07f89d NN |
6191 | # Figure out what language subdirectories are present. |
6192 | # Look if the user specified --enable-languages="..."; if not, use | |
6193 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6194 | # go away some day. | |
6195 | # NB: embedded tabs in this IF block -- do not untabify | |
6196 | if test -d ${srcdir}/gcc; then | |
6197 | if test x"${enable_languages+set}" != xset; then | |
6198 | if test x"${LANGUAGES+set}" = xset; then | |
6199 | enable_languages="${LANGUAGES}" | |
6200 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
6201 | else | |
6202 | enable_languages=all | |
6203 | fi | |
6204 | else | |
6205 | if test x"${enable_languages}" = x || | |
6206 | test x"${enable_languages}" = xyes; | |
6207 | then | |
6208 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
6209 | exit 1 | |
6210 | fi | |
6211 | fi | |
6212 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6213 | ||
096f7d00 DE |
6214 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6215 | # and make the substitution. | |
6216 | case ,${enable_languages}, in | |
6217 | *,f95,*) | |
6218 | echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 | |
6219 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` | |
6220 | ;; | |
6221 | esac | |
6222 | ||
9e07f89d NN |
6223 | # First scan to see if an enabled language requires some other language. |
6224 | # We assume that a given config-lang.in will list all the language | |
6225 | # front ends it requires, even if some are required indirectly. | |
6226 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6227 | case ${lang_frag} in | |
6228 | ..) ;; | |
6229 | # The odd quoting in the next line works around | |
6230 | # an apparent bug in bash 1.12 on linux. | |
6231 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6232 | *) | |
e552509b ILT |
6233 | # From the config-lang.in, get $language, $lang_requires, and |
6234 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6235 | language= |
6236 | lang_requires= | |
e552509b | 6237 | lang_requires_boot_languages= |
9e07f89d | 6238 | . ${lang_frag} |
e552509b | 6239 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6240 | case ,${enable_languages}, in |
6241 | *,$other,*) ;; | |
6242 | *,all,*) ;; | |
6243 | *,$language,*) | |
6244 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6245 | enable_languages="${enable_languages},${other}" | |
6246 | ;; | |
6247 | esac | |
6248 | done | |
e552509b ILT |
6249 | for other in ${lang_requires_boot_languages} ; do |
6250 | if test "$other" != "c"; then | |
6251 | case ,${enable_stage1_languages}, in | |
6252 | *,$other,*) ;; | |
6253 | *,all,*) ;; | |
6254 | *) | |
6255 | case ,${enable_languages}, in | |
6256 | *,$language,*) | |
6257 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6258 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6259 | ;; | |
6260 | esac | |
6261 | ;; | |
6262 | esac | |
6263 | fi | |
6264 | done | |
9e07f89d NN |
6265 | ;; |
6266 | esac | |
6267 | done | |
6268 | ||
9b134994 | 6269 | new_enable_languages=,c, |
700d40ca ILT |
6270 | |
6271 | # If LTO is enabled, add the LTO front end. | |
6272 | extra_host_libiberty_configure_flags= | |
6273 | if test "$enable_lto" = "yes" ; then | |
6811fb56 RW |
6274 | case ,${enable_languages}, in |
6275 | *,lto,*) ;; | |
6276 | *) enable_languages="${enable_languages},lto" ;; | |
6277 | esac | |
a8eb3f0a | 6278 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca ILT |
6279 | configdirs="$configdirs lto-plugin" |
6280 | extra_host_libiberty_configure_flags=--enable-shared | |
6281 | fi | |
6282 | fi | |
6283 | ||
6284 | ||
9e07f89d | 6285 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6286 | potential_languages=,c, |
9e07f89d | 6287 | |
9e1a94f4 ILT |
6288 | enabled_target_libs= |
6289 | disabled_target_libs= | |
6290 | ||
9e07f89d NN |
6291 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6292 | case ${lang_frag} in | |
6293 | ..) ;; | |
6294 | # The odd quoting in the next line works around | |
6295 | # an apparent bug in bash 1.12 on linux. | |
6296 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6297 | *) | |
c6b750e1 | 6298 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6299 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6300 | language= |
6301 | target_libs= | |
6302 | lang_dirs= | |
64ce424c | 6303 | subdir_requires= |
9b134994 PB |
6304 | boot_language=no |
6305 | build_by_default=yes | |
9e07f89d | 6306 | . ${lang_frag} |
9b134994 PB |
6307 | if test x${language} = x; then |
6308 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6309 | exit 1 | |
6310 | fi | |
6311 | ||
1f53ca9a AO |
6312 | if test "$language" = "c++" \ |
6313 | && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then | |
e8a5fa9c RW |
6314 | boot_language=yes |
6315 | fi | |
6316 | ||
9b134994 PB |
6317 | case ,${enable_languages}, in |
6318 | *,${language},*) | |
9e07f89d NN |
6319 | # Language was explicitly selected; include it. |
6320 | add_this_lang=yes | |
6321 | ;; | |
9b134994 PB |
6322 | *,all,*) |
6323 | # 'all' was selected, select it if it is a default language | |
6324 | add_this_lang=${build_by_default} | |
9e07f89d NN |
6325 | ;; |
6326 | *) | |
6327 | add_this_lang=no | |
6328 | ;; | |
6329 | esac | |
4b1cb4fe | 6330 | |
64ce424c | 6331 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6332 | for i in $subdir_requires; do |
3d3adb43 | 6333 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6334 | case ,${enable_languages}, in |
6335 | *,${language},*) | |
6336 | # Specifically requested language; tell them. | |
81ecdfbb | 6337 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6338 | ;; |
6339 | *) | |
6340 | # Silently disable. | |
9b134994 | 6341 | add_this_lang=unsupported |
64ce424c PB |
6342 | ;; |
6343 | esac | |
6344 | done | |
6345 | ||
9b134994 PB |
6346 | # Disable Ada if no preexisting GNAT is available. |
6347 | case ,${enable_languages},:${language}:${have_gnat} in | |
6348 | *,${language},*:ada:no) | |
6349 | # Specifically requested language; tell them. | |
81ecdfbb | 6350 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6351 | ;; |
6352 | *:ada:no) | |
6353 | # Silently disable. | |
6354 | add_this_lang=unsupported | |
6355 | ;; | |
6356 | esac | |
6357 | ||
59f7ec45 HPN |
6358 | # Disable a language that is unsupported by the target. |
6359 | case " $unsupported_languages " in | |
6360 | *" $language "*) | |
9b134994 | 6361 | add_this_lang=unsupported |
59f7ec45 HPN |
6362 | ;; |
6363 | esac | |
6364 | ||
4b1cb4fe | 6365 | case $add_this_lang in |
9b134994 | 6366 | unsupported) |
9e07f89d | 6367 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6368 | disabled_target_libs="$disabled_target_libs $target_libs" |
6369 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6370 | ;; |
9b134994 PB |
6371 | no) |
6372 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6373 | disabled_target_libs="$disabled_target_libs $target_libs" |
6374 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6375 | potential_languages="${potential_languages}${language}," |
6376 | ;; | |
6377 | yes) | |
6378 | new_enable_languages="${new_enable_languages}${language}," | |
6379 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6380 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6381 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6382 | case "${boot_language}:,$enable_stage1_languages," in |
6383 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6384 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6385 | case ",$stage1_languages," in |
6386 | *,$language,* | ,yes, | ,all,) ;; | |
6387 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6388 | esac | |
e8a5fa9c RW |
6389 | # We need to bootstrap any supporting libraries. |
6390 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6391 | ;; |
6392 | esac | |
6393 | ;; | |
9e07f89d NN |
6394 | esac |
6395 | ;; | |
6396 | esac | |
6397 | done | |
6398 | ||
9e1a94f4 ILT |
6399 | # Add target libraries which are only needed for disabled languages |
6400 | # to noconfigdirs. | |
6401 | if test -n "$disabled_target_libs"; then | |
6402 | for dir in $disabled_target_libs; do | |
6403 | case " $enabled_target_libs " in | |
6404 | *" ${dir} "*) ;; | |
6405 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6406 | esac | |
6407 | done | |
6408 | fi | |
6409 | ||
81ecdfbb RW |
6410 | # Check whether --enable-stage1-languages was given. |
6411 | if test "${enable_stage1_languages+set}" = set; then : | |
6412 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6413 | ,no,|,,) |
6414 | # Set it to something that will have no effect in the loop below | |
6415 | enable_stage1_languages=c ;; | |
6416 | ,yes,) | |
6417 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6418 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6419 | *,all,*) | |
6420 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6421 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6422 | esac | |
6423 | ||
6424 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6425 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6426 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6427 | case $potential_languages in | |
6428 | *,$i,*) | |
6429 | case $stage1_languages in | |
6430 | *,$i,*) ;; | |
6431 | *) stage1_languages="$stage1_languages$i," ;; | |
6432 | esac ;; | |
6433 | *) | |
6434 | case $missing_languages in | |
6435 | *,$i,*) ;; | |
6436 | *) missing_languages="$missing_languages$i," ;; | |
6437 | esac ;; | |
6438 | esac | |
6439 | done | |
81ecdfbb RW |
6440 | fi |
6441 | ||
9b134994 PB |
6442 | |
6443 | # Remove leading/trailing commas that were added for simplicity | |
6444 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6445 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6446 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6447 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6448 | ||
9e07f89d | 6449 | if test "x$missing_languages" != x; then |
81ecdfbb | 6450 | as_fn_error " |
27258dd4 | 6451 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6452 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6453 | fi |
9e07f89d NN |
6454 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6455 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6456 | enable_languages="$new_enable_languages" |
9e07f89d | 6457 | fi |
9b134994 | 6458 | |
c6b750e1 | 6459 | |
81ec575a | 6460 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6461 | fi |
6462 | ||
a6df5a19 PB |
6463 | # Handle --disable-<component> generically. |
6464 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6465 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6466 | varname=`echo $dirname | sed -e s/+/_/g` |
6467 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6468 | noconfigdirs="$noconfigdirs $dir" |
6469 | fi | |
6470 | done | |
6471 | ||
4f0ef2d8 | 6472 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6473 | # Check whether --enable-objc-gc was given. |
6474 | if test "${enable_objc_gc+set}" = set; then : | |
6475 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6476 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6477 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6478 | ;; |
6479 | esac | |
81ecdfbb RW |
6480 | fi |
6481 | ||
4f0ef2d8 CD |
6482 | |
6483 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6484 | case ,${enable_languages},:${enable_objc_gc} in |
6485 | *,objc,*:yes) | |
4f0ef2d8 CD |
6486 | # Keep target-boehm-gc if requested for Objective-C. |
6487 | ;; | |
4f0ef2d8 | 6488 | *) |
d42c4017 DA |
6489 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6490 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6491 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6492 | fi | |
4f0ef2d8 CD |
6493 | ;; |
6494 | esac | |
6495 | ||
caeba88f AL |
6496 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6497 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6498 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6499 | ||
6500 | notsupp="" | |
6501 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6502 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6503 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6504 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6505 | if test -r $srcdir/$dirname/configure ; then | |
6506 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6507 | true | |
6508 | else | |
6509 | notsupp="$notsupp $dir" | |
6510 | fi | |
6511 | fi | |
6512 | fi | |
caeba88f AL |
6513 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6514 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6515 | if test -r $srcdir/$dirname/configure ; then | |
6516 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6517 | true | |
6518 | else | |
6519 | notsupp="$notsupp $dir" | |
6520 | fi | |
6521 | fi | |
6522 | fi | |
9e07f89d NN |
6523 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6524 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6525 | if test -r $srcdir/$dirname/configure ; then | |
6526 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6527 | true | |
6528 | else | |
6529 | notsupp="$notsupp $dir" | |
6530 | fi | |
6531 | fi | |
6532 | fi | |
6533 | done | |
6534 | ||
6535 | # Sometimes the tools are distributed with libiberty but with no other | |
6536 | # libraries. In that case, we don't want to build target-libiberty. | |
f86e35b8 | 6537 | # Don't let libgcc imply libiberty either. |
9e07f89d | 6538 | if test -n "${target_configdirs}" ; then |
f86e35b8 | 6539 | libgcc= |
9e07f89d NN |
6540 | others= |
6541 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
f86e35b8 NC |
6542 | if test "$i" = "libgcc"; then |
6543 | libgcc=target-libgcc | |
6544 | elif test "$i" != "libiberty" ; then | |
9e07f89d NN |
6545 | if test -r $srcdir/$i/configure ; then |
6546 | others=yes; | |
6547 | break; | |
6548 | fi | |
6549 | fi | |
6550 | done | |
6551 | if test -z "${others}" ; then | |
f86e35b8 | 6552 | target_configdirs=$libgcc |
9e07f89d NN |
6553 | fi |
6554 | fi | |
6555 | ||
6556 | # Quietly strip out all directories which aren't configurable in this tree. | |
6557 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6558 | # is now the case. | |
6a9cf61e PB |
6559 | build_configdirs_all="$build_configdirs" |
6560 | build_configdirs= | |
6561 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6562 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6563 | if test -f ${srcdir}/$j/configure ; then |
6564 | build_configdirs="${build_configdirs} $i" | |
6565 | fi | |
6566 | done | |
6567 | ||
9e07f89d NN |
6568 | configdirs_all="$configdirs" |
6569 | configdirs= | |
6570 | for i in ${configdirs_all} ; do | |
6571 | if test -f ${srcdir}/$i/configure ; then | |
6572 | configdirs="${configdirs} $i" | |
6573 | fi | |
6574 | done | |
6a9cf61e | 6575 | |
9e07f89d NN |
6576 | target_configdirs_all="$target_configdirs" |
6577 | target_configdirs= | |
6578 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6579 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6580 | if test -f ${srcdir}/$j/configure ; then |
6581 | target_configdirs="${target_configdirs} $i" | |
6582 | fi | |
6583 | done | |
6584 | ||
6585 | # Produce a warning message for the subdirs we can't configure. | |
6586 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6587 | # FSF releases, it's important to let people know when their machine isn't | |
6588 | # supported by the one or two programs in a package. | |
6589 | ||
6590 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6591 | # If $appdirs is non-empty, at least one of those directories must still | |
6592 | # be configured, or we error out. (E.g., if the gas release supports a | |
6593 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6594 | # pretend that all is well.) | |
6595 | if test -n "$appdirs" ; then | |
6596 | for dir in $appdirs ; do | |
6597 | if test -r $dir/Makefile.in ; then | |
6598 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6599 | appdirs="" | |
6600 | break | |
6601 | fi | |
6a9cf61e | 6602 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6603 | appdirs="" |
6604 | break | |
6605 | fi | |
6606 | fi | |
6607 | done | |
6608 | if test -n "$appdirs" ; then | |
6609 | echo "*** This configuration is not supported by this package." 1>&2 | |
6610 | exit 1 | |
6611 | fi | |
6612 | fi | |
6613 | # Okay, some application will build, or we don't care to check. Still | |
6614 | # notify of subdirs not getting built. | |
6615 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6616 | echo " ${notsupp}" 1>&2 | |
6617 | echo " (Any other directories should still work fine.)" 1>&2 | |
6618 | fi | |
6619 | ||
6620 | case "$host" in | |
6621 | *msdosdjgpp*) | |
6622 | enable_gdbtk=no ;; | |
6623 | esac | |
6624 | ||
18f6b6ee PB |
6625 | # To find our prefix, in gcc_cv_tool_prefix. |
6626 | ||
6627 | # The user is always right. | |
6628 | if test "${PATH_SEPARATOR+set}" != set; then | |
6629 | echo "#! /bin/sh" >conf$$.sh | |
6630 | echo "exit 0" >>conf$$.sh | |
6631 | chmod +x conf$$.sh | |
6632 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6633 | PATH_SEPARATOR=';' | |
6634 | else | |
6635 | PATH_SEPARATOR=: | |
6636 | fi | |
6637 | rm -f conf$$.sh | |
6638 | fi | |
6639 | ||
6640 | ||
6641 | ||
6642 | if test "x$exec_prefix" = xNONE; then | |
6643 | if test "x$prefix" = xNONE; then | |
6644 | gcc_cv_tool_prefix=$ac_default_prefix | |
6645 | else | |
6646 | gcc_cv_tool_prefix=$prefix | |
6647 | fi | |
6648 | else | |
6649 | gcc_cv_tool_prefix=$exec_prefix | |
6650 | fi | |
6651 | ||
6652 | # If there is no compiler in the tree, use the PATH only. In any | |
6653 | # case, if there is no compiler in the tree nobody should use | |
6654 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6655 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6656 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6657 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6658 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6659 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6660 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6661 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6662 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6663 | else | |
6664 | gcc_cv_tool_dirs= | |
6665 | fi | |
6666 | ||
6667 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6668 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6669 | fi | |
6670 | ||
6671 | ||
6672 | ||
9e07f89d NN |
6673 | copy_dirs= |
6674 | ||
c6b750e1 | 6675 | |
81ecdfbb RW |
6676 | # Check whether --with-build-sysroot was given. |
6677 | if test "${with_build_sysroot+set}" = set; then : | |
6678 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6679 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6680 | fi | |
6681 | else | |
6682 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6683 | fi |
a19b6204 MM |
6684 | |
6685 | ||
8a6ee3ab | 6686 | |
81ecdfbb RW |
6687 | |
6688 | # Check whether --with-debug-prefix-map was given. | |
6689 | if test "${with_debug_prefix_map+set}" = set; then : | |
6690 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6691 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6692 | for debug_map in $withval; do | |
6693 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6694 | done | |
6695 | fi | |
6696 | else | |
6697 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6698 | fi |
6699 | ||
8a6ee3ab JM |
6700 | |
6701 | ||
7f6ef0c0 PB |
6702 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6703 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6704 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6705 | # We want to ensure that TARGET libraries (which we know are built with | |
6706 | # gcc) are built with "-O2 -g", so include those options when setting | |
6707 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6708 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
6709 | CFLAGS_FOR_TARGET=$CFLAGS | |
6710 | case " $CFLAGS " in | |
6711 | *" -O2 "*) ;; | |
6712 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;; | |
6713 | esac | |
6714 | case " $CFLAGS " in | |
6715 | *" -g "* | *" -g3 "*) ;; | |
6716 | *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;; | |
6717 | esac | |
6718 | fi | |
6719 | ||
6720 | ||
6721 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
6722 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6723 | case " $CXXFLAGS " in | |
6724 | *" -O2 "*) ;; | |
6725 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;; | |
6726 | esac | |
6727 | case " $CXXFLAGS " in | |
6728 | *" -g "* | *" -g3 "*) ;; | |
6729 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;; | |
6730 | esac | |
6731 | fi | |
6732 | ||
6733 | ||
9e07f89d NN |
6734 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6735 | # the named directory are copied to $(tooldir)/sys-include. | |
6736 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6737 | if test x${is_cross_compiler} = xno ; then | |
6738 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6739 | exit 1 | |
6740 | fi | |
6741 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6742 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6743 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6744 | fi |
6745 | fi | |
6746 | ||
6747 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6748 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6749 | # are permitted. | |
6750 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6751 | if test x${is_cross_compiler} = xno ; then | |
6752 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6753 | exit 1 | |
6754 | fi | |
6755 | if test x"${with_libs}" != xyes ; then | |
6756 | # Copy the libraries in reverse order, so that files in the first named | |
6757 | # library override files in subsequent libraries. | |
18f6b6ee | 6758 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6759 | for l in ${with_libs}; do |
c6b750e1 | 6760 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6761 | done |
6762 | fi | |
6763 | fi | |
6764 | ||
700d40ca | 6765 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6766 | # |
6767 | # This is done by determining whether or not the appropriate directory | |
6768 | # is available, and by checking whether or not specific configurations | |
6769 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6770 | # |
6771 | # The command line options always override the explicit settings in | |
2429c060 PB |
6772 | # configure.in, and the settings in configure.in override this magic. |
6773 | # | |
c6b750e1 | 6774 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6775 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6776 | # --without-gnu-ld options for the configure script. Similarly, if |
6777 | # the default is to use the included zlib and you don't want to do that, | |
6778 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6779 | |
6780 | if test x${use_gnu_as} = x && | |
6781 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6782 | with_gnu_as=yes | |
6783 | extra_host_args="$extra_host_args --with-gnu-as" | |
6784 | fi | |
6785 | ||
6786 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6787 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6788 | with_gnu_ld=yes |
6789 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6790 | fi | |
6791 | ||
700d40ca ILT |
6792 | if test x${use_included_zlib} = x && |
6793 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6794 | : | |
6795 | else | |
6796 | with_system_zlib=yes | |
6797 | extra_host_args="$extra_host_args --with-system-zlib" | |
6798 | fi | |
6799 | ||
2429c060 PB |
6800 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6801 | # can detect this case. | |
6802 | ||
6803 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6804 | with_newlib=yes | |
6805 | extra_host_args="$extra_host_args --with-newlib" | |
6806 | fi | |
6807 | ||
9e07f89d NN |
6808 | # Handle ${copy_dirs} |
6809 | set fnord ${copy_dirs} | |
6810 | shift | |
6811 | while test $# != 0 ; do | |
6812 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6813 | : | |
6814 | else | |
6815 | echo Copying $1 to $2 | |
6816 | ||
6817 | # Use the install script to create the directory and all required | |
6818 | # parent directories. | |
6819 | if test -d $2 ; then | |
6820 | : | |
6821 | else | |
6822 | echo >config.temp | |
6823 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6824 | fi | |
6825 | ||
6826 | # Copy the directory, assuming we have tar. | |
6827 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6828 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6829 | ||
6830 | # It is the responsibility of the user to correctly adjust all | |
6831 | # symlinks. If somebody can figure out how to handle them correctly | |
6832 | # here, feel free to add the code. | |
6833 | ||
6834 | echo $1 > $2/COPIED | |
6835 | fi | |
6836 | shift; shift | |
6837 | done | |
6838 | ||
2429c060 PB |
6839 | # Determine a target-dependent exec_prefix that the installed |
6840 | # gcc will search in. Keep this list sorted by triplet, with | |
6841 | # the *-*-osname triplets last. | |
6842 | md_exec_prefix= | |
6843 | case "${target}" in | |
521ec477 | 6844 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6845 | md_exec_prefix=/dev/env/DJDIR/bin |
6846 | ;; | |
2429c060 | 6847 | *-*-hpux* | \ |
2429c060 | 6848 | *-*-nto-qnx* | \ |
1f111696 | 6849 | *-*-solaris2*) |
2429c060 PB |
6850 | md_exec_prefix=/usr/ccs/bin |
6851 | ;; | |
6852 | esac | |
6853 | ||
a0da8069 NN |
6854 | extra_arflags_for_target= |
6855 | extra_nmflags_for_target= | |
6856 | extra_ranlibflags_for_target= | |
6857 | target_makefile_frag=/dev/null | |
6858 | case "${target}" in | |
77d7106f AM |
6859 | spu-*-*) |
6860 | target_makefile_frag="config/mt-spu" | |
6861 | ;; | |
429acdec RS |
6862 | mips*-sde-elf*) |
6863 | target_makefile_frag="config/mt-sde" | |
6864 | ;; | |
f3b1e08e RS |
6865 | mipsisa*-*-elfoabi*) |
6866 | target_makefile_frag="config/mt-mips-elfoabi" | |
6867 | ;; | |
e7c8859c RS |
6868 | mips*-*-*linux* | mips*-*-gnu*) |
6869 | target_makefile_frag="config/mt-mips-gnu" | |
6870 | ;; | |
29383458 | 6871 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6872 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6873 | ;; |
6874 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6875 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6876 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6877 | # harmless if we're using GNU nm or ar. | |
6878 | extra_arflags_for_target=" -X32_64" | |
6879 | extra_nmflags_for_target=" -B -X32_64" | |
6880 | ;; | |
92f4e989 JM |
6881 | *-*-darwin[3-9]*) |
6882 | # ranlib before Darwin10 requires the -c flag to look at common symbols. | |
a0da8069 NN |
6883 | extra_ranlibflags_for_target=" -c" |
6884 | ;; | |
a0da8069 NN |
6885 | esac |
6886 | ||
6887 | alphaieee_frag=/dev/null | |
6888 | case $target in | |
6889 | alpha*-*-*) | |
6890 | # This just makes sure to use the -mieee option to build target libs. | |
6891 | # This should probably be set individually by each library. | |
6892 | alphaieee_frag="config/mt-alphaieee" | |
6893 | ;; | |
6894 | esac | |
6895 | ||
6896 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6897 | # the target libraries, similarly if it is not specified, use -Os | |
6898 | # on selected platforms. | |
6899 | ospace_frag=/dev/null | |
6900 | case "${enable_target_optspace}:${target}" in | |
6901 | yes:*) | |
6902 | ospace_frag="config/mt-ospace" | |
6903 | ;; | |
6904 | :d30v-*) | |
6905 | ospace_frag="config/mt-d30v" | |
6906 | ;; | |
6907 | :m32r-* | :d10v-* | :fr30-*) | |
6908 | ospace_frag="config/mt-ospace" | |
6909 | ;; | |
6910 | no:* | :*) | |
6911 | ;; | |
6912 | *) | |
6913 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
6914 | ;; | |
6915 | esac | |
6916 | ||
a0da8069 NN |
6917 | # Default to using --with-stabs for certain targets. |
6918 | if test x${with_stabs} = x ; then | |
6919 | case "${target}" in | |
e31d1ea3 | 6920 | mips*-*-irix[56]*) |
a0da8069 NN |
6921 | ;; |
6922 | mips*-*-* | alpha*-*-osf*) | |
6923 | with_stabs=yes; | |
6924 | extra_host_args="${extra_host_args} --with-stabs" | |
6925 | ;; | |
6926 | esac | |
6927 | fi | |
6928 | ||
6929 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
6930 | # them automatically. | |
6931 | case "${host}" in | |
c6b750e1 | 6932 | hppa*64*-*-hpux11*) |
a0da8069 NN |
6933 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" |
6934 | ;; | |
6935 | esac | |
6936 | ||
a0da8069 NN |
6937 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
6938 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 6939 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
6940 | build_tooldir=${tooldir} |
6941 | ||
a0da8069 NN |
6942 | # Create a .gdbinit file which runs the one in srcdir |
6943 | # and tells GDB to look there for source files. | |
6944 | ||
6945 | if test -r ${srcdir}/.gdbinit ; then | |
6946 | case ${srcdir} in | |
6947 | .) ;; | |
6948 | *) cat > ./.gdbinit <<EOF | |
6949 | # ${NO_EDIT} | |
6950 | dir ${srcdir} | |
6951 | dir . | |
6952 | source ${srcdir}/.gdbinit | |
6953 | EOF | |
6954 | ;; | |
6955 | esac | |
6956 | fi | |
6957 | ||
a0da8069 NN |
6958 | # Make sure that the compiler is able to generate an executable. If it |
6959 | # can't, we are probably in trouble. We don't care whether we can run the | |
6960 | # executable--we might be using a cross compiler--we only care whether it | |
6961 | # can be created. At this point the main configure script has set CC. | |
6962 | we_are_ok=no | |
6963 | echo "int main () { return 0; }" > conftest.c | |
6964 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
6965 | if test $? = 0 ; then | |
6966 | if test -s conftest || test -s conftest.exe ; then | |
6967 | we_are_ok=yes | |
6968 | fi | |
c6b750e1 | 6969 | fi |
a0da8069 NN |
6970 | case $we_are_ok in |
6971 | no) | |
6972 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
6973 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
6974 | rm -f conftest* | |
6975 | exit 1 | |
6976 | ;; | |
6977 | esac | |
6978 | rm -f conftest* | |
6979 | ||
6980 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
6981 | case "${host}" in | |
6982 | sparc-sun-solaris2*) | |
6983 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
6984 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
6985 | could_use= | |
6986 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
6987 | if test -d /opt/cygnus/bin ; then | |
6988 | if test "$could_use" = "" ; then | |
6989 | could_use="/opt/cygnus/bin" | |
6990 | else | |
6991 | could_use="$could_use or /opt/cygnus/bin" | |
6992 | fi | |
6993 | fi | |
6994 | if test "$could_use" = "" ; then | |
6995 | echo "Warning: compilation may fail because you're using" | |
6996 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
6997 | echo "variable and rerun configure." | |
6998 | else | |
6999 | echo "Warning: compilation may fail because you're using" | |
7000 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
7001 | echo "$could_use. You should change your" | |
7002 | echo "PATH or CC variable and rerun configure." | |
7003 | fi | |
7004 | fi | |
7005 | ;; | |
7006 | esac | |
7007 | ||
3bbd2f8f | 7008 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7009 | case "${host}" in |
7010 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7011 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7012 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7013 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7014 | esac | |
7015 | ||
3bbd2f8f | 7016 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7017 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7018 | # built executables to PATH. | |
3bbd2f8f AL |
7019 | if test "$RPATH_ENVVAR" = PATH; then |
7020 | GCC_SHLIB_SUBDIR=/shlib | |
7021 | else | |
7022 | GCC_SHLIB_SUBDIR= | |
7023 | fi | |
7024 | ||
a0da8069 NN |
7025 | # Record target_configdirs and the configure arguments for target and |
7026 | # build configuration in Makefile. | |
7027 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7028 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
a0da8069 | 7029 | |
2aa2364a JR |
7030 | # If we are building libgomp, bootstrap it. |
7031 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7032 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7033 | fi | |
7034 | ||
a0da8069 NN |
7035 | # Determine whether gdb needs tk/tcl or not. |
7036 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7037 | # and in that case we want gdb to be built without tk. Ugh! | |
7038 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7039 | # so we should be able to put the 'maybe's in unconditionally and | |
7040 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7041 | # 100% sure that that's safe though. | |
c180f501 | 7042 | |
675c6968 | 7043 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7044 | case "$enable_gdbtk" in |
7045 | no) | |
7046 | GDB_TK="" ;; | |
c180f501 AC |
7047 | yes) |
7048 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7049 | *) |
c180f501 AC |
7050 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7051 | # distro. Eventually someone will fix this and move Insight, nee | |
7052 | # gdbtk to a separate directory. | |
7053 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7054 | GDB_TK="${gdb_tk}" | |
7055 | else | |
7056 | GDB_TK="" | |
7057 | fi | |
7058 | ;; | |
a0da8069 | 7059 | esac |
907be67c DJ |
7060 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7061 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7062 | |
6bd3dfaa | 7063 | # Strip out unwanted targets. |
dd12c3a8 NN |
7064 | |
7065 | # While at that, we remove Makefiles if we were started for recursive | |
7066 | # configuration, so that the top-level Makefile reconfigures them, | |
7067 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7068 | |
06a51eac RW |
7069 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7070 | # but now we're fixing up the Makefile ourselves with the additional | |
7071 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7072 | # extrasub-{build,host,target} not because there is any reason to split | |
7073 | # the substitutions up that way, but only to remain below the limit of | |
7074 | # 99 commands in a script, for HP-UX sed. | |
7075 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7076 | |
81ecdfbb RW |
7077 | # Check whether --enable-bootstrap was given. |
7078 | if test "${enable_bootstrap+set}" = set; then : | |
7079 | enableval=$enable_bootstrap; | |
319cab08 | 7080 | else |
9cb3fa6f | 7081 | enable_bootstrap=default |
81ecdfbb RW |
7082 | fi |
7083 | ||
319cab08 | 7084 | |
9cb3fa6f PB |
7085 | # Issue errors and warnings for invalid/strange bootstrap combinations. |
7086 | case "$configdirs" in | |
7087 | *gcc*) have_compiler=yes ;; | |
7088 | *) have_compiler=no ;; | |
7089 | esac | |
7090 | ||
7091 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
7092 | *:*:*:no) ;; | |
7093 | ||
0aed8855 | 7094 | # Default behavior. Enable bootstrap if we have a compiler |
9cb3fa6f PB |
7095 | # and we are in a native configuration. |
7096 | yes:$build:$build:default) | |
0aed8855 | 7097 | enable_bootstrap=yes ;; |
9cb3fa6f PB |
7098 | |
7099 | *:*:*:default) | |
7100 | enable_bootstrap=no ;; | |
7101 | ||
7102 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
80911fe1 | 7103 | yes:$build:$build:yes) |
9cb3fa6f PB |
7104 | ;; |
7105 | ||
7106 | # Other configurations, but we have a compiler. Assume the user knows | |
7107 | # what he's doing. | |
80911fe1 | 7108 | yes:*:*:yes) |
81ecdfbb RW |
7109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 |
7110 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
9cb3fa6f PB |
7111 | ;; |
7112 | ||
7113 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
80911fe1 | 7114 | no:*:*:yes) |
81ecdfbb | 7115 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; |
9cb3fa6f PB |
7116 | |
7117 | # Fail if wrong command line | |
7118 | *) | |
81ecdfbb | 7119 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 |
9cb3fa6f PB |
7120 | ;; |
7121 | esac | |
7122 | ||
4385ad3c RW |
7123 | case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in |
7124 | *,c++,*:yes:yes) ;; | |
7125 | *:yes:yes) | |
7126 | as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5 | |
7127 | ;; | |
7128 | esac | |
7129 | ||
16b1ad29 RW |
7130 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7131 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7132 | yes:yes:*\ gold\ *:*) | |
7133 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7134 | ;; | |
7135 | esac | |
7136 | ||
9cb3fa6f | 7137 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
96655cc4 | 7138 | case $enable_bootstrap in |
319cab08 | 7139 | yes) |
96655cc4 AO |
7140 | bootstrap_suffix=bootstrap |
7141 | BUILD_CONFIG=bootstrap-debug | |
7142 | ;; | |
319cab08 | 7143 | no) |
96655cc4 AO |
7144 | bootstrap_suffix=no-bootstrap |
7145 | BUILD_CONFIG= | |
7146 | ;; | |
319cab08 PB |
7147 | esac |
7148 | ||
96655cc4 AO |
7149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 |
7150 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7151 | ||
7152 | ||
7153 | # Check whether --with-build-config was given. | |
7154 | if test "${with_build_config+set}" = set; then : | |
7155 | withval=$with_build_config; case $with_build_config in | |
7156 | yes) with_build_config= ;; | |
7157 | no) with_build_config= BUILD_CONFIG= ;; | |
7158 | esac | |
7159 | fi | |
7160 | ||
7161 | ||
7162 | if test "x${with_build_config}" != x; then | |
7163 | BUILD_CONFIG=$with_build_config | |
7164 | else | |
7165 | case $BUILD_CONFIG in | |
7166 | bootstrap-debug) | |
7167 | if echo "int f (void) { return 0; }" > conftest.c && | |
7168 | ${CC} -c conftest.c && | |
7169 | mv conftest.o conftest.o.g0 && | |
7170 | ${CC} -c -g conftest.c && | |
7171 | mv conftest.o conftest.o.g && | |
a009f2e7 | 7172 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then |
96655cc4 AO |
7173 | : |
7174 | else | |
7175 | BUILD_CONFIG= | |
7176 | fi | |
7177 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7178 | ;; | |
7179 | esac | |
7180 | fi | |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7182 | $as_echo "$BUILD_CONFIG" >&6; } | |
7183 | ||
7184 | ||
06a51eac | 7185 | extrasub_build= |
6a9cf61e | 7186 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7187 | if test -z "${no_recursion}" \ |
7188 | && test -f ${build_subdir}/${module}/Makefile; then | |
7189 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7190 | rm -f ${build_subdir}/${module}/Makefile | |
7191 | fi | |
06a51eac | 7192 | extrasub_build="$extrasub_build |
498d4a71 CF |
7193 | /^@if build-$module\$/d |
7194 | /^@endif build-$module\$/d | |
7195 | /^@if build-$module-$bootstrap_suffix\$/d | |
7196 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7197 | done | |
06a51eac | 7198 | extrasub_host= |
498d4a71 | 7199 | for module in ${configdirs} ; do |
80911fe1 | 7200 | if test -z "${no_recursion}"; then |
8cf39b1b | 7201 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7202 | if test -f ${file}; then |
7203 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7204 | rm -f ${file} | |
7205 | fi | |
7206 | done | |
498d4a71 | 7207 | fi |
06a51eac | 7208 | extrasub_host="$extrasub_host |
498d4a71 CF |
7209 | /^@if $module\$/d |
7210 | /^@endif $module\$/d | |
7211 | /^@if $module-$bootstrap_suffix\$/d | |
7212 | /^@endif $module-$bootstrap_suffix\$/d" | |
7213 | done | |
06a51eac | 7214 | extrasub_target= |
498d4a71 CF |
7215 | for module in ${target_configdirs} ; do |
7216 | if test -z "${no_recursion}" \ | |
7217 | && test -f ${target_subdir}/${module}/Makefile; then | |
7218 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7219 | rm -f ${target_subdir}/${module}/Makefile | |
7220 | fi | |
e8a5fa9c RW |
7221 | |
7222 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7223 | case $bootstrap_target_libs in | |
7224 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7225 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7226 | esac | |
7227 | ||
06a51eac | 7228 | extrasub_target="$extrasub_target |
498d4a71 CF |
7229 | /^@if target-$module\$/d |
7230 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7231 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7232 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7233 | done |
7234 | ||
06a51eac RW |
7235 | # Do the final fixup along with target modules. |
7236 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7237 | /^@if /,/^@endif /d" |
a0da8069 NN |
7238 | |
7239 | # Create the serialization dependencies. This uses a temporary file. | |
7240 | ||
81ecdfbb RW |
7241 | # Check whether --enable-serial-configure was given. |
7242 | if test "${enable_serial_configure+set}" = set; then : | |
7243 | enableval=$enable_serial_configure; | |
7244 | fi | |
e6bfb94a AO |
7245 | |
7246 | ||
1047cb91 DD |
7247 | case ${enable_serial_configure} in |
7248 | yes) | |
7249 | enable_serial_build_configure=yes | |
7250 | enable_serial_host_configure=yes | |
7251 | enable_serial_target_configure=yes | |
7252 | ;; | |
7253 | esac | |
7254 | ||
a0da8069 NN |
7255 | # These force 'configure's to be done one at a time, to avoid problems |
7256 | # with contention over a shared config.cache. | |
7257 | rm -f serdep.tmp | |
e6bfb94a | 7258 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7259 | olditem= |
1047cb91 | 7260 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7261 | for item in ${build_configdirs} ; do |
7262 | case ${olditem} in | |
7263 | "") ;; | |
e6bfb94a | 7264 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7265 | esac |
7266 | olditem=${item} | |
7267 | done | |
7268 | olditem= | |
1047cb91 | 7269 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7270 | for item in ${configdirs} ; do |
7271 | case ${olditem} in | |
7272 | "") ;; | |
e6bfb94a | 7273 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7274 | esac |
7275 | olditem=${item} | |
7276 | done | |
7277 | olditem= | |
1047cb91 | 7278 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7279 | for item in ${target_configdirs} ; do |
7280 | case ${olditem} in | |
7281 | "") ;; | |
e6bfb94a | 7282 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7283 | esac |
7284 | olditem=${item} | |
7285 | done | |
7286 | serialization_dependencies=serdep.tmp | |
7287 | ||
7288 | ||
e6bfb94a | 7289 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7290 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7291 | # might not want to pass down to subconfigures. The exception being |
7292 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7293 | # files altogether, and which should be passed on to subconfigures. | |
7294 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7295 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7296 | baseargs= |
65b4571a | 7297 | tbaseargs= |
c6b750e1 DJ |
7298 | keep_next=no |
7299 | skip_next=no | |
7300 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7301 | for ac_arg |
7302 | do | |
c6b750e1 DJ |
7303 | if test X"$skip_next" = X"yes"; then |
7304 | skip_next=no | |
7305 | continue | |
7306 | fi | |
7307 | if test X"$keep_next" = X"yes"; then | |
7308 | case $ac_arg in | |
7309 | *\'*) | |
7310 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7311 | esac | |
7312 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7313 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7314 | keep_next=no |
7315 | continue | |
7316 | fi | |
7317 | ||
7318 | # Handle separated arguments. Based on the logic generated by | |
7319 | # autoconf 2.59. | |
7320 | case $ac_arg in | |
7321 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7322 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7323 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7324 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7325 | separate_arg=no | |
7326 | ;; | |
7327 | -*) | |
7328 | separate_arg=yes | |
7329 | ;; | |
7330 | *) | |
7331 | separate_arg=no | |
7332 | ;; | |
7333 | esac | |
7334 | ||
65b4571a AO |
7335 | skip_targ=no |
7336 | case $ac_arg in | |
7337 | ||
7338 | --with-* | --without-*) | |
7339 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7340 | ||
7341 | case $libopt in | |
7342 | *[-_]include) | |
7343 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7344 | ;; | |
7345 | *[-_]lib) | |
7346 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7347 | ;; | |
7348 | *) | |
7349 | lib=$libopt | |
7350 | ;; | |
7351 | esac | |
7352 | ||
7353 | ||
7354 | case $lib in | |
7355 | mpc | mpfr | gmp | ppl | cloog) | |
7356 | # If we're processing --with-$lib, --with-$lib-include or | |
7357 | # --with-$lib-lib, for one of the libs above, and target is | |
7358 | # different from host, don't pass the current argument to any | |
7359 | # target library's configure. | |
7360 | if test x$is_cross_compiler = xyes; then | |
7361 | skip_targ=yes | |
7362 | fi | |
7363 | ;; | |
7364 | esac | |
7365 | ;; | |
7366 | esac | |
7367 | ||
c6b750e1 | 7368 | case "$ac_arg" in |
30167e0a NC |
7369 | --cache-file=/dev/null | \ |
7370 | -cache-file=/dev/null ) | |
7371 | # Handled here to avoid the test to skip args below. | |
7372 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7373 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7374 | # Assert: $separate_arg should always be no. |
7375 | keep_next=$separate_arg | |
7376 | ;; | |
c6b750e1 DJ |
7377 | --no*) |
7378 | continue | |
7379 | ;; | |
7380 | --c* | \ | |
7381 | --sr* | \ | |
7382 | --ho* | \ | |
7383 | --bu* | \ | |
7384 | --t* | \ | |
7385 | --program-* | \ | |
7386 | -cache_file* | \ | |
7387 | -srcdir* | \ | |
7388 | -host* | \ | |
7389 | -build* | \ | |
7390 | -target* | \ | |
7391 | -program-prefix* | \ | |
7392 | -program-suffix* | \ | |
7393 | -program-transform-name* ) | |
7394 | skip_next=$separate_arg | |
7395 | continue | |
7396 | ;; | |
7397 | -*) | |
7398 | # An option. Add it. | |
7399 | case $ac_arg in | |
7400 | *\'*) | |
7401 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7402 | esac | |
7403 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7404 | if test X"$skip_targ" = Xno; then |
7405 | tbaseargs="$tbaseargs '$ac_arg'" | |
7406 | fi | |
c6b750e1 DJ |
7407 | keep_next=$separate_arg |
7408 | ;; | |
7409 | *) | |
7410 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7411 | # pass it down; let the Makefile handle this. | |
7412 | continue | |
7413 | ;; | |
7414 | esac | |
7415 | done | |
7416 | # Remove the initial space we just introduced and, as these will be | |
7417 | # expanded by make, quote '$'. | |
7418 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7419 | |
f27d4f92 DJ |
7420 | # Add in --program-transform-name, after --program-prefix and |
7421 | # --program-suffix have been applied to it. Autoconf has already | |
7422 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7423 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7424 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7425 | # Also, because we want to override the logic in subdir configure scripts to |
7426 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7427 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7428 | ${program_transform_name} | |
7429 | EOF_SED | |
7430 | gcc_transform_name=`cat conftestsed.out` | |
7431 | rm -f conftestsed.out | |
7432 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7433 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7434 | if test "$silent" = yes; then |
7435 | baseargs="$baseargs --silent" | |
65b4571a | 7436 | tbaseargs="$tbaseargs --silent" |
2444379b | 7437 | fi |
34a0f3cf | 7438 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7439 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7440 | |
4074d5f2 RW |
7441 | # Record and document user additions to sub configure arguments. |
7442 | ||
7443 | ||
7444 | ||
7445 | ||
a0da8069 NN |
7446 | # For the build-side libraries, we just need to pretend we're native, |
7447 | # and not use the same cache file. Multilibs are neither needed nor | |
7448 | # desired. | |
4074d5f2 | 7449 | build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}" |
a0da8069 NN |
7450 | |
7451 | # For host modules, accept cache file option, or specification as blank. | |
7452 | case "${cache_file}" in | |
7453 | "") # empty | |
7454 | cache_file_option="" ;; | |
7455 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7456 | cache_file_option="--cache-file=${cache_file}" ;; | |
7457 | *) # relative path | |
7458 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7459 | esac | |
7460 | ||
82252c06 NN |
7461 | # Host dirs don't like to share a cache file either, horribly enough. |
7462 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7463 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7464 | |
65b4571a | 7465 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7466 | |
7467 | # Passing a --with-cross-host argument lets the target libraries know | |
7468 | # whether they are being built with a cross-compiler or being built | |
7469 | # native. However, it would be better to use other mechanisms to make the | |
7470 | # sorts of decisions they want to make on this basis. Please consider | |
7471 | # this option to be deprecated. FIXME. | |
7472 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7473 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7474 | fi |
7475 | ||
938d2b74 RW |
7476 | # Default to --enable-multilib. |
7477 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7478 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7479 | fi |
a0da8069 NN |
7480 | |
7481 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7482 | # changed from the earlier setting of with_newlib. | |
7483 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7484 | target_configargs="--with-newlib ${target_configargs}" | |
7485 | fi | |
7486 | ||
95036d20 NN |
7487 | # Different target subdirs use different values of certain variables |
7488 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7489 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7490 | # it doesn't automatically accept command-line overrides of them. | |
7491 | # This means it's not safe for target subdirs to share a cache file, | |
7492 | # which is disgusting, but there you have it. Hopefully this can be | |
7493 | # fixed in future. It's still worthwhile to use a cache file for each | |
7494 | # directory. I think. | |
7495 | ||
ae380b45 MS |
7496 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7497 | # We need to pass --target, as newer autoconf's requires consistency | |
7498 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7499 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7500 | |
a0da8069 NN |
7501 | FLAGS_FOR_TARGET= |
7502 | case " $target_configdirs " in | |
7503 | *" newlib "*) | |
7504 | case " $target_configargs " in | |
7505 | *" --with-newlib "*) | |
7506 | case "$target" in | |
1f53ca9a AO |
7507 | *-cygwin*) |
7508 | 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' | |
7509 | ;; | |
a0da8069 NN |
7510 | esac |
7511 | ||
7512 | # If we're not building GCC, don't discard standard headers. | |
7513 | if test -d ${srcdir}/gcc; then | |
7514 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7515 | ||
7516 | if test "${build}" != "${host}"; then | |
7517 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7518 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7519 | # to it. This is right: we don't want to search that directory | |
7520 | # for binaries, but we want the header files in there, so add | |
7521 | # them explicitly. | |
e552509b | 7522 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7523 | |
7524 | # Someone might think of using the pre-installed headers on | |
7525 | # Canadian crosses, in case the installed compiler is not fully | |
7526 | # compatible with the compiler being built. In this case, it | |
7527 | # would be better to flag an error than risking having | |
7528 | # incompatible object files being constructed. We can't | |
7529 | # guarantee that an error will be flagged, but let's hope the | |
7530 | # compiler will do it, when presented with incompatible header | |
7531 | # files. | |
7532 | fi | |
7533 | fi | |
7534 | ||
7535 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7536 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7537 | # Here host == target, so we don't need to build gcc, |
7538 | # so we don't want to discard standard headers. | |
7539 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7540 | ;; | |
7541 | *) | |
7542 | # If we're building newlib, use its generic headers last, but search | |
7543 | # for any libc-related directories first (so make it the last -B | |
7544 | # switch). | |
7545 | 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 |
7546 | |
7547 | # If we're building libgloss, find the startup file, simulator library | |
7548 | # and linker script. | |
7549 | case " $target_configdirs " in | |
7550 | *" libgloss "*) | |
7551 | # Look for startup file, simulator library and maybe linker script. | |
7552 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7553 | # Look for libnosys.a in case the target needs it. | |
7554 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7555 | # Most targets have the linker script in the source directory. | |
7556 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7557 | ;; | |
7558 | esac | |
a0da8069 NN |
7559 | ;; |
7560 | esac | |
7561 | ;; | |
7562 | esac | |
7563 | ;; | |
7564 | esac | |
1f53ca9a | 7565 | |
45055374 | 7566 | case "$target" in |
1f53ca9a AO |
7567 | x86_64-*mingw* | *-w64-mingw*) |
7568 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7569 | # however, use a symlink named 'mingw' in ${prefix} . | |
7570 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7571 | ;; | |
7572 | *-mingw*) | |
7573 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7574 | 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' | |
7575 | ;; | |
45055374 | 7576 | esac |
a0da8069 | 7577 | |
5fbad20a DD |
7578 | # Allow the user to override the flags for |
7579 | # our build compiler if desired. | |
c66487f8 NC |
7580 | if test x"${build}" = x"${host}" ; then |
7581 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7582 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7583 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7584 | fi | |
5fbad20a | 7585 | |
a0da8069 NN |
7586 | # On Canadian crosses, we'll be searching the right directories for |
7587 | # the previously-installed cross compiler, so don't bother to add | |
7588 | # flags for directories within the install tree of the compiler | |
7589 | # being built; programs in there won't even run. | |
7590 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7591 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7592 | 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 |
7593 | fi |
7594 | ||
7595 | if test "x${use_gnu_ld}" = x && | |
7596 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7597 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7598 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7599 | fi |
7600 | ||
a481dbb7 DD |
7601 | # Search for other target-specific linker scripts and such. |
7602 | case "${target}" in | |
4e206d7e DB |
7603 | mep*) |
7604 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7605 | ;; | |
7606 | esac | |
7607 | ||
a0da8069 | 7608 | # Makefile fragments. |
3e707e94 PB |
7609 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7610 | do | |
7611 | eval fragval=\$$frag | |
7612 | if test $fragval != /dev/null; then | |
7613 | eval $frag=${srcdir}/$fragval | |
7614 | fi | |
7615 | done | |
a0da8069 NN |
7616 | |
7617 | ||
7618 | ||
7619 | ||
7620 | ||
7621 | # Miscellanea: directories, flags, etc. | |
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | ||
3bbd2f8f | 7629 | |
6a9cf61e | 7630 | # Build module lists & subconfigure args. |
a0da8069 NN |
7631 | |
7632 | ||
7633 | ||
be01d343 PB |
7634 | # Host module lists & subconfigure args. |
7635 | ||
7636 | ||
7637 | ||
911e63d0 | 7638 | |
be01d343 PB |
7639 | # Target module lists & subconfigure args. |
7640 | ||
7641 | ||
7642 | ||
7643 | # Build tools. | |
7644 | ||
7645 | ||
7646 | ||
1576798e PB |
7647 | |
7648 | ||
7649 | ||
7650 | ||
7651 | ||
7652 | ||
7653 | ||
7654 | ||
7655 | ||
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
be01d343 PB |
7661 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7662 | # on the build machine. These are used if the Makefile can't locate these | |
7663 | # programs in objdir. | |
7664 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7665 | ||
7666 | for ac_prog in 'bison -y' byacc yacc | |
7667 | do | |
c6b750e1 | 7668 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7669 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7671 | $as_echo_n "checking for $ac_word... " >&6; } | |
7672 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7673 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7674 | else |
7675 | if test -n "$YACC"; then | |
7676 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7677 | else | |
c6b750e1 DJ |
7678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7679 | for as_dir in $PATH | |
7680 | do | |
7681 | IFS=$as_save_IFS | |
7682 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7683 | for ac_exec_ext in '' $ac_executable_extensions; do |
7684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7685 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7686 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7687 | break 2 |
7688 | fi | |
7689 | done | |
81ecdfbb RW |
7690 | done |
7691 | IFS=$as_save_IFS | |
c6b750e1 | 7692 | |
be01d343 PB |
7693 | fi |
7694 | fi | |
c6b750e1 | 7695 | YACC=$ac_cv_prog_YACC |
be01d343 | 7696 | if test -n "$YACC"; then |
81ecdfbb RW |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7698 | $as_echo "$YACC" >&6; } | |
be01d343 | 7699 | else |
81ecdfbb RW |
7700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7701 | $as_echo "no" >&6; } | |
be01d343 PB |
7702 | fi |
7703 | ||
81ecdfbb | 7704 | |
c6b750e1 | 7705 | test -n "$YACC" && break |
be01d343 PB |
7706 | done |
7707 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7708 | ||
7709 | case " $build_configdirs " in | |
7710 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7711 | esac |
7712 | ||
7713 | for ac_prog in bison | |
7714 | do | |
c6b750e1 | 7715 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7716 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7718 | $as_echo_n "checking for $ac_word... " >&6; } | |
7719 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7720 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7721 | else |
7722 | if test -n "$BISON"; then | |
7723 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7724 | else | |
c6b750e1 DJ |
7725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7726 | for as_dir in $PATH | |
7727 | do | |
7728 | IFS=$as_save_IFS | |
7729 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7730 | for ac_exec_ext in '' $ac_executable_extensions; do |
7731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7732 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7734 | break 2 |
7735 | fi | |
7736 | done | |
81ecdfbb RW |
7737 | done |
7738 | IFS=$as_save_IFS | |
c6b750e1 | 7739 | |
be01d343 PB |
7740 | fi |
7741 | fi | |
c6b750e1 | 7742 | BISON=$ac_cv_prog_BISON |
be01d343 | 7743 | if test -n "$BISON"; then |
81ecdfbb RW |
7744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7745 | $as_echo "$BISON" >&6; } | |
be01d343 | 7746 | else |
81ecdfbb RW |
7747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7748 | $as_echo "no" >&6; } | |
be01d343 PB |
7749 | fi |
7750 | ||
81ecdfbb | 7751 | |
c6b750e1 | 7752 | test -n "$BISON" && break |
be01d343 PB |
7753 | done |
7754 | test -n "$BISON" || BISON="$MISSING bison" | |
7755 | ||
7756 | case " $build_configdirs " in | |
7757 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7758 | esac | |
7759 | ||
7760 | for ac_prog in gm4 gnum4 m4 | |
7761 | do | |
c6b750e1 | 7762 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7763 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7765 | $as_echo_n "checking for $ac_word... " >&6; } | |
7766 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7767 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7768 | else |
7769 | if test -n "$M4"; then | |
7770 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7771 | else | |
c6b750e1 DJ |
7772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7773 | for as_dir in $PATH | |
7774 | do | |
7775 | IFS=$as_save_IFS | |
7776 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7777 | for ac_exec_ext in '' $ac_executable_extensions; do |
7778 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7779 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7780 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7781 | break 2 |
7782 | fi | |
7783 | done | |
81ecdfbb RW |
7784 | done |
7785 | IFS=$as_save_IFS | |
c6b750e1 | 7786 | |
be01d343 PB |
7787 | fi |
7788 | fi | |
c6b750e1 | 7789 | M4=$ac_cv_prog_M4 |
be01d343 | 7790 | if test -n "$M4"; then |
81ecdfbb RW |
7791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7792 | $as_echo "$M4" >&6; } | |
be01d343 | 7793 | else |
81ecdfbb RW |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7795 | $as_echo "no" >&6; } | |
be01d343 PB |
7796 | fi |
7797 | ||
81ecdfbb | 7798 | |
c6b750e1 | 7799 | test -n "$M4" && break |
be01d343 PB |
7800 | done |
7801 | test -n "$M4" || M4="$MISSING m4" | |
7802 | ||
7803 | case " $build_configdirs " in | |
7804 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7805 | esac | |
7806 | ||
7807 | for ac_prog in flex lex | |
7808 | do | |
c6b750e1 | 7809 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7810 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7812 | $as_echo_n "checking for $ac_word... " >&6; } | |
7813 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7814 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7815 | else |
7816 | if test -n "$LEX"; then | |
7817 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7818 | else | |
c6b750e1 DJ |
7819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7820 | for as_dir in $PATH | |
7821 | do | |
7822 | IFS=$as_save_IFS | |
7823 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7824 | for ac_exec_ext in '' $ac_executable_extensions; do |
7825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7826 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7828 | break 2 |
7829 | fi | |
7830 | done | |
81ecdfbb RW |
7831 | done |
7832 | IFS=$as_save_IFS | |
c6b750e1 | 7833 | |
be01d343 PB |
7834 | fi |
7835 | fi | |
c6b750e1 | 7836 | LEX=$ac_cv_prog_LEX |
be01d343 | 7837 | if test -n "$LEX"; then |
81ecdfbb RW |
7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7839 | $as_echo "$LEX" >&6; } | |
be01d343 | 7840 | else |
81ecdfbb RW |
7841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7842 | $as_echo "no" >&6; } | |
be01d343 PB |
7843 | fi |
7844 | ||
81ecdfbb | 7845 | |
c6b750e1 | 7846 | test -n "$LEX" && break |
be01d343 PB |
7847 | done |
7848 | test -n "$LEX" || LEX="$MISSING flex" | |
7849 | ||
7850 | case " $build_configdirs " in | |
7851 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7852 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7853 | esac | |
7854 | ||
7855 | for ac_prog in flex | |
7856 | do | |
c6b750e1 | 7857 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7858 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7860 | $as_echo_n "checking for $ac_word... " >&6; } | |
7861 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7862 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7863 | else |
7864 | if test -n "$FLEX"; then | |
7865 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7866 | else | |
c6b750e1 DJ |
7867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7868 | for as_dir in $PATH | |
7869 | do | |
7870 | IFS=$as_save_IFS | |
7871 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7872 | for ac_exec_ext in '' $ac_executable_extensions; do |
7873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7874 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7876 | break 2 |
7877 | fi | |
7878 | done | |
81ecdfbb RW |
7879 | done |
7880 | IFS=$as_save_IFS | |
c6b750e1 | 7881 | |
be01d343 PB |
7882 | fi |
7883 | fi | |
c6b750e1 | 7884 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7885 | if test -n "$FLEX"; then |
81ecdfbb RW |
7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7887 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7888 | else |
81ecdfbb RW |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7890 | $as_echo "no" >&6; } | |
be01d343 PB |
7891 | fi |
7892 | ||
81ecdfbb | 7893 | |
c6b750e1 | 7894 | test -n "$FLEX" && break |
be01d343 PB |
7895 | done |
7896 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7897 | ||
7898 | case " $build_configdirs " in | |
7899 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7900 | esac | |
7901 | ||
7902 | for ac_prog in makeinfo | |
7903 | do | |
c6b750e1 | 7904 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7905 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7907 | $as_echo_n "checking for $ac_word... " >&6; } | |
7908 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7909 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7910 | else |
7911 | if test -n "$MAKEINFO"; then | |
7912 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7913 | else | |
c6b750e1 DJ |
7914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7915 | for as_dir in $PATH | |
7916 | do | |
7917 | IFS=$as_save_IFS | |
7918 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7919 | for ac_exec_ext in '' $ac_executable_extensions; do |
7920 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7921 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7922 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7923 | break 2 |
7924 | fi | |
7925 | done | |
81ecdfbb RW |
7926 | done |
7927 | IFS=$as_save_IFS | |
c6b750e1 | 7928 | |
be01d343 PB |
7929 | fi |
7930 | fi | |
c6b750e1 | 7931 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7932 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7934 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7935 | else |
81ecdfbb RW |
7936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7937 | $as_echo "no" >&6; } | |
be01d343 PB |
7938 | fi |
7939 | ||
81ecdfbb | 7940 | |
c6b750e1 | 7941 | test -n "$MAKEINFO" && break |
be01d343 PB |
7942 | done |
7943 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7944 | ||
7945 | case " $build_configdirs " in | |
7946 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
7947 | *) | |
7948 | ||
10ad8ef3 | 7949 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
7950 | # higher, else we use the "missing" dummy. |
7951 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 7952 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
7953 | : |
7954 | else | |
7955 | MAKEINFO="$MISSING makeinfo" | |
7956 | fi | |
7957 | ;; | |
7958 | ||
7959 | esac | |
a0da8069 | 7960 | |
be01d343 | 7961 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 7962 | |
be01d343 PB |
7963 | for ac_prog in expect |
7964 | do | |
c6b750e1 | 7965 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7966 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7968 | $as_echo_n "checking for $ac_word... " >&6; } | |
7969 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
7970 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7971 | else |
7972 | if test -n "$EXPECT"; then | |
7973 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
7974 | else | |
c6b750e1 DJ |
7975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7976 | for as_dir in $PATH | |
7977 | do | |
7978 | IFS=$as_save_IFS | |
7979 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7980 | for ac_exec_ext in '' $ac_executable_extensions; do |
7981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7982 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 7983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7984 | break 2 |
7985 | fi | |
7986 | done | |
81ecdfbb RW |
7987 | done |
7988 | IFS=$as_save_IFS | |
c6b750e1 | 7989 | |
be01d343 PB |
7990 | fi |
7991 | fi | |
c6b750e1 | 7992 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 7993 | if test -n "$EXPECT"; then |
81ecdfbb RW |
7994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
7995 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 7996 | else |
81ecdfbb RW |
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7998 | $as_echo "no" >&6; } | |
be01d343 | 7999 | fi |
a0da8069 | 8000 | |
81ecdfbb | 8001 | |
c6b750e1 | 8002 | test -n "$EXPECT" && break |
be01d343 PB |
8003 | done |
8004 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8005 | |
be01d343 PB |
8006 | case " $configdirs " in |
8007 | *" expect "*) | |
8008 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8009 | ;; | |
8010 | esac | |
a0da8069 | 8011 | |
be01d343 PB |
8012 | for ac_prog in runtest |
8013 | do | |
c6b750e1 | 8014 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8015 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8017 | $as_echo_n "checking for $ac_word... " >&6; } | |
8018 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8019 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8020 | else |
8021 | if test -n "$RUNTEST"; then | |
8022 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8023 | else | |
c6b750e1 DJ |
8024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8025 | for as_dir in $PATH | |
8026 | do | |
8027 | IFS=$as_save_IFS | |
8028 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8029 | for ac_exec_ext in '' $ac_executable_extensions; do |
8030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8031 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8033 | break 2 |
8034 | fi | |
8035 | done | |
81ecdfbb RW |
8036 | done |
8037 | IFS=$as_save_IFS | |
c6b750e1 | 8038 | |
be01d343 PB |
8039 | fi |
8040 | fi | |
c6b750e1 | 8041 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8042 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8044 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8045 | else |
81ecdfbb RW |
8046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8047 | $as_echo "no" >&6; } | |
be01d343 | 8048 | fi |
a0da8069 | 8049 | |
81ecdfbb | 8050 | |
c6b750e1 | 8051 | test -n "$RUNTEST" && break |
be01d343 PB |
8052 | done |
8053 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8054 | |
be01d343 PB |
8055 | case " $configdirs " in |
8056 | *" dejagnu "*) | |
6b89cc21 | 8057 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8058 | ;; |
8059 | esac | |
a0da8069 NN |
8060 | |
8061 | ||
a0da8069 | 8062 | # Host tools. |
859789af AC |
8063 | ncn_tool_prefix= |
8064 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8065 | ncn_target_tool_prefix= | |
8066 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8067 | ||
9a819804 AO |
8068 | |
8069 | ||
8070 | if test -n "$AR"; then | |
8071 | ac_cv_prog_AR=$AR | |
8072 | elif test -n "$ac_cv_prog_AR"; then | |
8073 | AR=$ac_cv_prog_AR | |
8074 | fi | |
8075 | ||
8076 | if test -n "$ac_cv_prog_AR"; then | |
8077 | for ncn_progname in ar; do | |
8078 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8079 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8081 | $as_echo_n "checking for $ac_word... " >&6; } | |
8082 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8083 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8084 | else |
8085 | if test -n "$AR"; then | |
8086 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8087 | else | |
8088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8089 | for as_dir in $PATH | |
8090 | do | |
8091 | IFS=$as_save_IFS | |
8092 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8093 | for ac_exec_ext in '' $ac_executable_extensions; do |
8094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8095 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8097 | break 2 |
8098 | fi | |
8099 | done | |
81ecdfbb RW |
8100 | done |
8101 | IFS=$as_save_IFS | |
9a819804 AO |
8102 | |
8103 | fi | |
8104 | fi | |
8105 | AR=$ac_cv_prog_AR | |
8106 | if test -n "$AR"; then | |
81ecdfbb RW |
8107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8108 | $as_echo "$AR" >&6; } | |
9a819804 | 8109 | else |
81ecdfbb RW |
8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8111 | $as_echo "no" >&6; } | |
9a819804 AO |
8112 | fi |
8113 | ||
81ecdfbb | 8114 | |
9a819804 AO |
8115 | done |
8116 | fi | |
8117 | ||
8118 | for ncn_progname in ar; do | |
05cbd757 PB |
8119 | if test -n "$ncn_tool_prefix"; then |
8120 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8121 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8123 | $as_echo_n "checking for $ac_word... " >&6; } | |
8124 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8125 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8126 | else |
8127 | if test -n "$AR"; then | |
8128 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8129 | else | |
c6b750e1 DJ |
8130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8131 | for as_dir in $PATH | |
8132 | do | |
8133 | IFS=$as_save_IFS | |
8134 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8135 | for ac_exec_ext in '' $ac_executable_extensions; do |
8136 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8137 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8138 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8139 | break 2 |
8140 | fi | |
8141 | done | |
81ecdfbb RW |
8142 | done |
8143 | IFS=$as_save_IFS | |
c6b750e1 | 8144 | |
859789af AC |
8145 | fi |
8146 | fi | |
c6b750e1 | 8147 | AR=$ac_cv_prog_AR |
859789af | 8148 | if test -n "$AR"; then |
81ecdfbb RW |
8149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8150 | $as_echo "$AR" >&6; } | |
859789af | 8151 | else |
81ecdfbb RW |
8152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8153 | $as_echo "no" >&6; } | |
859789af AC |
8154 | fi |
8155 | ||
81ecdfbb | 8156 | |
05cbd757 PB |
8157 | fi |
8158 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8159 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8160 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8162 | $as_echo_n "checking for $ac_word... " >&6; } | |
8163 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8164 | $as_echo_n "(cached) " >&6 | |
859789af | 8165 | else |
05cbd757 PB |
8166 | if test -n "$AR"; then |
8167 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8168 | else |
c6b750e1 DJ |
8169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8170 | for as_dir in $PATH | |
8171 | do | |
8172 | IFS=$as_save_IFS | |
8173 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8174 | for ac_exec_ext in '' $ac_executable_extensions; do |
8175 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8176 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8178 | break 2 |
8179 | fi | |
8180 | done | |
81ecdfbb RW |
8181 | done |
8182 | IFS=$as_save_IFS | |
c6b750e1 | 8183 | |
859789af AC |
8184 | fi |
8185 | fi | |
c6b750e1 | 8186 | AR=$ac_cv_prog_AR |
05cbd757 | 8187 | if test -n "$AR"; then |
81ecdfbb RW |
8188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8189 | $as_echo "$AR" >&6; } | |
859789af | 8190 | else |
81ecdfbb RW |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8192 | $as_echo "no" >&6; } | |
859789af | 8193 | fi |
c6b750e1 | 8194 | |
81ecdfbb | 8195 | |
05cbd757 PB |
8196 | fi |
8197 | test -n "$ac_cv_prog_AR" && break | |
8198 | done | |
8199 | ||
8200 | if test -z "$ac_cv_prog_AR" ; then | |
8201 | set dummy ar | |
8202 | if test $build = $host ; then | |
8203 | AR="$2" | |
859789af | 8204 | else |
05cbd757 | 8205 | AR="${ncn_tool_prefix}$2" |
859789af | 8206 | fi |
859789af AC |
8207 | fi |
8208 | ||
9a819804 AO |
8209 | |
8210 | ||
8211 | if test -n "$AS"; then | |
8212 | ac_cv_prog_AS=$AS | |
8213 | elif test -n "$ac_cv_prog_AS"; then | |
8214 | AS=$ac_cv_prog_AS | |
8215 | fi | |
8216 | ||
8217 | if test -n "$ac_cv_prog_AS"; then | |
8218 | for ncn_progname in as; do | |
8219 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8220 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8222 | $as_echo_n "checking for $ac_word... " >&6; } | |
8223 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8224 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8225 | else |
8226 | if test -n "$AS"; then | |
8227 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8228 | else | |
8229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8230 | for as_dir in $PATH | |
8231 | do | |
8232 | IFS=$as_save_IFS | |
8233 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8234 | for ac_exec_ext in '' $ac_executable_extensions; do |
8235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8236 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8238 | break 2 |
8239 | fi | |
8240 | done | |
81ecdfbb RW |
8241 | done |
8242 | IFS=$as_save_IFS | |
9a819804 AO |
8243 | |
8244 | fi | |
8245 | fi | |
8246 | AS=$ac_cv_prog_AS | |
8247 | if test -n "$AS"; then | |
81ecdfbb RW |
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8249 | $as_echo "$AS" >&6; } | |
9a819804 | 8250 | else |
81ecdfbb RW |
8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8252 | $as_echo "no" >&6; } | |
9a819804 AO |
8253 | fi |
8254 | ||
81ecdfbb | 8255 | |
9a819804 AO |
8256 | done |
8257 | fi | |
8258 | ||
8259 | for ncn_progname in as; do | |
05cbd757 PB |
8260 | if test -n "$ncn_tool_prefix"; then |
8261 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8262 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8264 | $as_echo_n "checking for $ac_word... " >&6; } | |
8265 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8266 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8267 | else |
8268 | if test -n "$AS"; then | |
8269 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8270 | else |
8271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8272 | for as_dir in $PATH | |
8273 | do | |
8274 | IFS=$as_save_IFS | |
8275 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8276 | for ac_exec_ext in '' $ac_executable_extensions; do |
8277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8278 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8280 | break 2 |
8281 | fi | |
8282 | done | |
81ecdfbb RW |
8283 | done |
8284 | IFS=$as_save_IFS | |
c6b750e1 | 8285 | |
859789af AC |
8286 | fi |
8287 | fi | |
c6b750e1 | 8288 | AS=$ac_cv_prog_AS |
859789af | 8289 | if test -n "$AS"; then |
81ecdfbb RW |
8290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8291 | $as_echo "$AS" >&6; } | |
859789af | 8292 | else |
81ecdfbb RW |
8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8294 | $as_echo "no" >&6; } | |
859789af AC |
8295 | fi |
8296 | ||
81ecdfbb | 8297 | |
05cbd757 PB |
8298 | fi |
8299 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8300 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8301 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8303 | $as_echo_n "checking for $ac_word... " >&6; } | |
8304 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8305 | $as_echo_n "(cached) " >&6 | |
859789af | 8306 | else |
05cbd757 PB |
8307 | if test -n "$AS"; then |
8308 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8309 | else |
c6b750e1 DJ |
8310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8311 | for as_dir in $PATH | |
8312 | do | |
8313 | IFS=$as_save_IFS | |
8314 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8315 | for ac_exec_ext in '' $ac_executable_extensions; do |
8316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8317 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8319 | break 2 |
8320 | fi | |
8321 | done | |
81ecdfbb RW |
8322 | done |
8323 | IFS=$as_save_IFS | |
c6b750e1 | 8324 | |
859789af AC |
8325 | fi |
8326 | fi | |
c6b750e1 | 8327 | AS=$ac_cv_prog_AS |
05cbd757 | 8328 | if test -n "$AS"; then |
81ecdfbb RW |
8329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8330 | $as_echo "$AS" >&6; } | |
859789af | 8331 | else |
81ecdfbb RW |
8332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8333 | $as_echo "no" >&6; } | |
859789af | 8334 | fi |
c6b750e1 | 8335 | |
81ecdfbb | 8336 | |
05cbd757 PB |
8337 | fi |
8338 | test -n "$ac_cv_prog_AS" && break | |
8339 | done | |
8340 | ||
8341 | if test -z "$ac_cv_prog_AS" ; then | |
8342 | set dummy as | |
8343 | if test $build = $host ; then | |
8344 | AS="$2" | |
859789af | 8345 | else |
05cbd757 | 8346 | AS="${ncn_tool_prefix}$2" |
859789af | 8347 | fi |
859789af AC |
8348 | fi |
8349 | ||
9a819804 AO |
8350 | |
8351 | ||
8352 | if test -n "$DLLTOOL"; then | |
8353 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8354 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8355 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8356 | fi | |
8357 | ||
8358 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8359 | for ncn_progname in dlltool; do | |
8360 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8361 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8363 | $as_echo_n "checking for $ac_word... " >&6; } | |
8364 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8365 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8366 | else |
8367 | if test -n "$DLLTOOL"; then | |
8368 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8369 | else | |
8370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8371 | for as_dir in $PATH | |
8372 | do | |
8373 | IFS=$as_save_IFS | |
8374 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8375 | for ac_exec_ext in '' $ac_executable_extensions; do |
8376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8377 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8378 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8379 | break 2 |
8380 | fi | |
8381 | done | |
81ecdfbb RW |
8382 | done |
8383 | IFS=$as_save_IFS | |
9a819804 AO |
8384 | |
8385 | fi | |
8386 | fi | |
8387 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8388 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8390 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8391 | else |
81ecdfbb RW |
8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8393 | $as_echo "no" >&6; } | |
9a819804 AO |
8394 | fi |
8395 | ||
81ecdfbb | 8396 | |
9a819804 AO |
8397 | done |
8398 | fi | |
8399 | ||
8400 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8401 | if test -n "$ncn_tool_prefix"; then |
8402 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8403 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8405 | $as_echo_n "checking for $ac_word... " >&6; } | |
8406 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8407 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8408 | else |
8409 | if test -n "$DLLTOOL"; then | |
8410 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8411 | else | |
c6b750e1 DJ |
8412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8413 | for as_dir in $PATH | |
8414 | do | |
8415 | IFS=$as_save_IFS | |
8416 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8417 | for ac_exec_ext in '' $ac_executable_extensions; do |
8418 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8419 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8420 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8421 | break 2 |
8422 | fi | |
8423 | done | |
81ecdfbb RW |
8424 | done |
8425 | IFS=$as_save_IFS | |
c6b750e1 | 8426 | |
859789af AC |
8427 | fi |
8428 | fi | |
c6b750e1 | 8429 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8430 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8432 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8433 | else |
81ecdfbb RW |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8435 | $as_echo "no" >&6; } | |
859789af AC |
8436 | fi |
8437 | ||
81ecdfbb | 8438 | |
05cbd757 PB |
8439 | fi |
8440 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8441 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8442 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8444 | $as_echo_n "checking for $ac_word... " >&6; } | |
8445 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8446 | $as_echo_n "(cached) " >&6 | |
859789af | 8447 | else |
05cbd757 PB |
8448 | if test -n "$DLLTOOL"; then |
8449 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8450 | else |
c6b750e1 DJ |
8451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8452 | for as_dir in $PATH | |
8453 | do | |
8454 | IFS=$as_save_IFS | |
8455 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8456 | for ac_exec_ext in '' $ac_executable_extensions; do |
8457 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8458 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8460 | break 2 |
8461 | fi | |
8462 | done | |
81ecdfbb RW |
8463 | done |
8464 | IFS=$as_save_IFS | |
c6b750e1 | 8465 | |
859789af AC |
8466 | fi |
8467 | fi | |
c6b750e1 | 8468 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8469 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8471 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8472 | else |
81ecdfbb RW |
8473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8474 | $as_echo "no" >&6; } | |
859789af | 8475 | fi |
c6b750e1 | 8476 | |
81ecdfbb | 8477 | |
05cbd757 PB |
8478 | fi |
8479 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8480 | done | |
8481 | ||
8482 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8483 | set dummy dlltool | |
8484 | if test $build = $host ; then | |
8485 | DLLTOOL="$2" | |
859789af | 8486 | else |
05cbd757 | 8487 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8488 | fi |
859789af AC |
8489 | fi |
8490 | ||
9a819804 AO |
8491 | |
8492 | ||
8493 | if test -n "$LD"; then | |
8494 | ac_cv_prog_LD=$LD | |
8495 | elif test -n "$ac_cv_prog_LD"; then | |
8496 | LD=$ac_cv_prog_LD | |
8497 | fi | |
8498 | ||
8499 | if test -n "$ac_cv_prog_LD"; then | |
8500 | for ncn_progname in ld; do | |
8501 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8502 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8504 | $as_echo_n "checking for $ac_word... " >&6; } | |
8505 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8506 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8507 | else |
8508 | if test -n "$LD"; then | |
8509 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8510 | else | |
8511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8512 | for as_dir in $PATH | |
8513 | do | |
8514 | IFS=$as_save_IFS | |
8515 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8516 | for ac_exec_ext in '' $ac_executable_extensions; do |
8517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8518 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8519 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8520 | break 2 |
8521 | fi | |
8522 | done | |
81ecdfbb RW |
8523 | done |
8524 | IFS=$as_save_IFS | |
9a819804 AO |
8525 | |
8526 | fi | |
8527 | fi | |
8528 | LD=$ac_cv_prog_LD | |
8529 | if test -n "$LD"; then | |
81ecdfbb RW |
8530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8531 | $as_echo "$LD" >&6; } | |
9a819804 | 8532 | else |
81ecdfbb RW |
8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8534 | $as_echo "no" >&6; } | |
9a819804 AO |
8535 | fi |
8536 | ||
81ecdfbb | 8537 | |
9a819804 AO |
8538 | done |
8539 | fi | |
8540 | ||
8541 | for ncn_progname in ld; do | |
05cbd757 PB |
8542 | if test -n "$ncn_tool_prefix"; then |
8543 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8544 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8546 | $as_echo_n "checking for $ac_word... " >&6; } | |
8547 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8548 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8549 | else |
8550 | if test -n "$LD"; then | |
8551 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8552 | else | |
c6b750e1 DJ |
8553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8554 | for as_dir in $PATH | |
8555 | do | |
8556 | IFS=$as_save_IFS | |
8557 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8558 | for ac_exec_ext in '' $ac_executable_extensions; do |
8559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8560 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8562 | break 2 |
8563 | fi | |
8564 | done | |
81ecdfbb RW |
8565 | done |
8566 | IFS=$as_save_IFS | |
c6b750e1 | 8567 | |
859789af AC |
8568 | fi |
8569 | fi | |
c6b750e1 | 8570 | LD=$ac_cv_prog_LD |
859789af | 8571 | if test -n "$LD"; then |
81ecdfbb RW |
8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8573 | $as_echo "$LD" >&6; } | |
859789af | 8574 | else |
81ecdfbb RW |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8576 | $as_echo "no" >&6; } | |
859789af AC |
8577 | fi |
8578 | ||
81ecdfbb | 8579 | |
05cbd757 PB |
8580 | fi |
8581 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8583 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8585 | $as_echo_n "checking for $ac_word... " >&6; } | |
8586 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8587 | $as_echo_n "(cached) " >&6 | |
859789af | 8588 | else |
05cbd757 PB |
8589 | if test -n "$LD"; then |
8590 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8591 | else |
c6b750e1 DJ |
8592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8593 | for as_dir in $PATH | |
8594 | do | |
8595 | IFS=$as_save_IFS | |
8596 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8597 | for ac_exec_ext in '' $ac_executable_extensions; do |
8598 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8599 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8601 | break 2 |
8602 | fi | |
8603 | done | |
81ecdfbb RW |
8604 | done |
8605 | IFS=$as_save_IFS | |
c6b750e1 | 8606 | |
859789af AC |
8607 | fi |
8608 | fi | |
c6b750e1 | 8609 | LD=$ac_cv_prog_LD |
05cbd757 | 8610 | if test -n "$LD"; then |
81ecdfbb RW |
8611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8612 | $as_echo "$LD" >&6; } | |
859789af | 8613 | else |
81ecdfbb RW |
8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8615 | $as_echo "no" >&6; } | |
859789af | 8616 | fi |
c6b750e1 | 8617 | |
81ecdfbb | 8618 | |
05cbd757 PB |
8619 | fi |
8620 | test -n "$ac_cv_prog_LD" && break | |
8621 | done | |
8622 | ||
8623 | if test -z "$ac_cv_prog_LD" ; then | |
8624 | set dummy ld | |
8625 | if test $build = $host ; then | |
8626 | LD="$2" | |
859789af | 8627 | else |
05cbd757 | 8628 | LD="${ncn_tool_prefix}$2" |
859789af | 8629 | fi |
859789af AC |
8630 | fi |
8631 | ||
9a819804 AO |
8632 | |
8633 | ||
8634 | if test -n "$LIPO"; then | |
8635 | ac_cv_prog_LIPO=$LIPO | |
8636 | elif test -n "$ac_cv_prog_LIPO"; then | |
8637 | LIPO=$ac_cv_prog_LIPO | |
8638 | fi | |
8639 | ||
8640 | if test -n "$ac_cv_prog_LIPO"; then | |
8641 | for ncn_progname in lipo; do | |
8642 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8643 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8645 | $as_echo_n "checking for $ac_word... " >&6; } | |
8646 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8647 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8648 | else |
8649 | if test -n "$LIPO"; then | |
8650 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8651 | else | |
8652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8653 | for as_dir in $PATH | |
8654 | do | |
8655 | IFS=$as_save_IFS | |
8656 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8657 | for ac_exec_ext in '' $ac_executable_extensions; do |
8658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8659 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8660 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8661 | break 2 |
8662 | fi | |
8663 | done | |
81ecdfbb RW |
8664 | done |
8665 | IFS=$as_save_IFS | |
9a819804 AO |
8666 | |
8667 | fi | |
8668 | fi | |
8669 | LIPO=$ac_cv_prog_LIPO | |
8670 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8672 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8673 | else |
81ecdfbb RW |
8674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8675 | $as_echo "no" >&6; } | |
9a819804 AO |
8676 | fi |
8677 | ||
81ecdfbb | 8678 | |
9a819804 AO |
8679 | done |
8680 | fi | |
8681 | ||
8682 | for ncn_progname in lipo; do | |
be01d343 PB |
8683 | if test -n "$ncn_tool_prefix"; then |
8684 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8685 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8687 | $as_echo_n "checking for $ac_word... " >&6; } | |
8688 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8689 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8690 | else |
8691 | if test -n "$LIPO"; then | |
8692 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8693 | else | |
c6b750e1 DJ |
8694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8695 | for as_dir in $PATH | |
8696 | do | |
8697 | IFS=$as_save_IFS | |
8698 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8699 | for ac_exec_ext in '' $ac_executable_extensions; do |
8700 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8701 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8703 | break 2 |
8704 | fi | |
8705 | done | |
81ecdfbb RW |
8706 | done |
8707 | IFS=$as_save_IFS | |
c6b750e1 | 8708 | |
be01d343 PB |
8709 | fi |
8710 | fi | |
c6b750e1 | 8711 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8712 | if test -n "$LIPO"; then |
81ecdfbb RW |
8713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8714 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8715 | else |
81ecdfbb RW |
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8717 | $as_echo "no" >&6; } | |
be01d343 PB |
8718 | fi |
8719 | ||
81ecdfbb | 8720 | |
be01d343 PB |
8721 | fi |
8722 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8723 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8724 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8726 | $as_echo_n "checking for $ac_word... " >&6; } | |
8727 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8728 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8729 | else |
8730 | if test -n "$LIPO"; then | |
8731 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8732 | else | |
c6b750e1 DJ |
8733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8734 | for as_dir in $PATH | |
8735 | do | |
8736 | IFS=$as_save_IFS | |
8737 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8738 | for ac_exec_ext in '' $ac_executable_extensions; do |
8739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8740 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8742 | break 2 |
8743 | fi | |
8744 | done | |
81ecdfbb RW |
8745 | done |
8746 | IFS=$as_save_IFS | |
c6b750e1 | 8747 | |
be01d343 PB |
8748 | fi |
8749 | fi | |
c6b750e1 | 8750 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8751 | if test -n "$LIPO"; then |
81ecdfbb RW |
8752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8753 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8754 | else |
81ecdfbb RW |
8755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8756 | $as_echo "no" >&6; } | |
be01d343 | 8757 | fi |
c6b750e1 | 8758 | |
81ecdfbb | 8759 | |
be01d343 PB |
8760 | fi |
8761 | test -n "$ac_cv_prog_LIPO" && break | |
8762 | done | |
8763 | ||
8764 | if test -z "$ac_cv_prog_LIPO" ; then | |
8765 | set dummy lipo | |
8766 | if test $build = $host ; then | |
8767 | LIPO="$2" | |
8768 | else | |
8769 | LIPO="${ncn_tool_prefix}$2" | |
8770 | fi | |
8771 | fi | |
8772 | ||
9a819804 AO |
8773 | |
8774 | ||
8775 | if test -n "$NM"; then | |
8776 | ac_cv_prog_NM=$NM | |
8777 | elif test -n "$ac_cv_prog_NM"; then | |
8778 | NM=$ac_cv_prog_NM | |
8779 | fi | |
8780 | ||
8781 | if test -n "$ac_cv_prog_NM"; then | |
8782 | for ncn_progname in nm; do | |
8783 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8784 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8786 | $as_echo_n "checking for $ac_word... " >&6; } | |
8787 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8788 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8789 | else |
8790 | if test -n "$NM"; then | |
8791 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8792 | else | |
c6b750e1 DJ |
8793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8794 | for as_dir in $PATH | |
8795 | do | |
8796 | IFS=$as_save_IFS | |
8797 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8798 | for ac_exec_ext in '' $ac_executable_extensions; do |
8799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8800 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8802 | break 2 |
8803 | fi | |
8804 | done | |
81ecdfbb RW |
8805 | done |
8806 | IFS=$as_save_IFS | |
c6b750e1 | 8807 | |
859789af AC |
8808 | fi |
8809 | fi | |
c6b750e1 | 8810 | NM=$ac_cv_prog_NM |
859789af | 8811 | if test -n "$NM"; then |
81ecdfbb RW |
8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8813 | $as_echo "$NM" >&6; } | |
859789af | 8814 | else |
81ecdfbb RW |
8815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8816 | $as_echo "no" >&6; } | |
859789af AC |
8817 | fi |
8818 | ||
81ecdfbb | 8819 | |
9a819804 AO |
8820 | done |
8821 | fi | |
8822 | ||
8823 | for ncn_progname in nm; do | |
8824 | if test -n "$ncn_tool_prefix"; then | |
8825 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8826 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8828 | $as_echo_n "checking for $ac_word... " >&6; } | |
8829 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8830 | $as_echo_n "(cached) " >&6 | |
859789af | 8831 | else |
05cbd757 PB |
8832 | if test -n "$NM"; then |
8833 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8834 | else |
c6b750e1 DJ |
8835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8836 | for as_dir in $PATH | |
8837 | do | |
8838 | IFS=$as_save_IFS | |
8839 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8840 | for ac_exec_ext in '' $ac_executable_extensions; do |
8841 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8842 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8843 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8844 | break 2 |
8845 | fi | |
8846 | done | |
81ecdfbb RW |
8847 | done |
8848 | IFS=$as_save_IFS | |
c6b750e1 | 8849 | |
859789af AC |
8850 | fi |
8851 | fi | |
c6b750e1 | 8852 | NM=$ac_cv_prog_NM |
05cbd757 | 8853 | if test -n "$NM"; then |
81ecdfbb RW |
8854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8855 | $as_echo "$NM" >&6; } | |
859789af | 8856 | else |
81ecdfbb RW |
8857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8858 | $as_echo "no" >&6; } | |
859789af | 8859 | fi |
c6b750e1 | 8860 | |
81ecdfbb | 8861 | |
05cbd757 | 8862 | fi |
9a819804 AO |
8863 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8864 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8865 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8867 | $as_echo_n "checking for $ac_word... " >&6; } | |
8868 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8869 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8870 | else |
8871 | if test -n "$NM"; then | |
8872 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8873 | else | |
8874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8875 | for as_dir in $PATH | |
8876 | do | |
8877 | IFS=$as_save_IFS | |
8878 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8879 | for ac_exec_ext in '' $ac_executable_extensions; do |
8880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8881 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8883 | break 2 |
8884 | fi | |
8885 | done | |
81ecdfbb RW |
8886 | done |
8887 | IFS=$as_save_IFS | |
9a819804 AO |
8888 | |
8889 | fi | |
8890 | fi | |
8891 | NM=$ac_cv_prog_NM | |
8892 | if test -n "$NM"; then | |
81ecdfbb RW |
8893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8894 | $as_echo "$NM" >&6; } | |
9a819804 | 8895 | else |
81ecdfbb RW |
8896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8897 | $as_echo "no" >&6; } | |
9a819804 AO |
8898 | fi |
8899 | ||
81ecdfbb | 8900 | |
9a819804 AO |
8901 | fi |
8902 | test -n "$ac_cv_prog_NM" && break | |
8903 | done | |
8904 | ||
8905 | if test -z "$ac_cv_prog_NM" ; then | |
8906 | set dummy nm | |
8907 | if test $build = $host ; then | |
8908 | NM="$2" | |
8909 | else | |
8910 | NM="${ncn_tool_prefix}$2" | |
8911 | fi | |
8912 | fi | |
8913 | ||
8914 | ||
8915 | ||
8916 | if test -n "$RANLIB"; then | |
8917 | ac_cv_prog_RANLIB=$RANLIB | |
8918 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8919 | RANLIB=$ac_cv_prog_RANLIB | |
8920 | fi | |
8921 | ||
8922 | if test -n "$ac_cv_prog_RANLIB"; then | |
8923 | for ncn_progname in ranlib; do | |
8924 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8925 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8927 | $as_echo_n "checking for $ac_word... " >&6; } | |
8928 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8929 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8930 | else |
8931 | if test -n "$RANLIB"; then | |
8932 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8933 | else | |
8934 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8935 | for as_dir in $PATH | |
8936 | do | |
8937 | IFS=$as_save_IFS | |
8938 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8939 | for ac_exec_ext in '' $ac_executable_extensions; do |
8940 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8941 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8942 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8943 | break 2 |
8944 | fi | |
8945 | done | |
81ecdfbb RW |
8946 | done |
8947 | IFS=$as_save_IFS | |
9a819804 AO |
8948 | |
8949 | fi | |
8950 | fi | |
8951 | RANLIB=$ac_cv_prog_RANLIB | |
8952 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
8953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8954 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 8955 | else |
81ecdfbb RW |
8956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8957 | $as_echo "no" >&6; } | |
9a819804 AO |
8958 | fi |
8959 | ||
81ecdfbb | 8960 | |
9a819804 AO |
8961 | done |
8962 | fi | |
859789af | 8963 | |
9a819804 | 8964 | for ncn_progname in ranlib; do |
05cbd757 PB |
8965 | if test -n "$ncn_tool_prefix"; then |
8966 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8967 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8969 | $as_echo_n "checking for $ac_word... " >&6; } | |
8970 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8971 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8972 | else |
8973 | if test -n "$RANLIB"; then | |
8974 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8975 | else | |
c6b750e1 DJ |
8976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8977 | for as_dir in $PATH | |
8978 | do | |
8979 | IFS=$as_save_IFS | |
8980 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8981 | for ac_exec_ext in '' $ac_executable_extensions; do |
8982 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8983 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8984 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8985 | break 2 |
8986 | fi | |
8987 | done | |
81ecdfbb RW |
8988 | done |
8989 | IFS=$as_save_IFS | |
c6b750e1 | 8990 | |
859789af AC |
8991 | fi |
8992 | fi | |
c6b750e1 | 8993 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 8994 | if test -n "$RANLIB"; then |
81ecdfbb RW |
8995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8996 | $as_echo "$RANLIB" >&6; } | |
859789af | 8997 | else |
81ecdfbb RW |
8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8999 | $as_echo "no" >&6; } | |
859789af AC |
9000 | fi |
9001 | ||
81ecdfbb | 9002 | |
05cbd757 PB |
9003 | fi |
9004 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
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_RANLIB+set}" = set; then : | |
9010 | $as_echo_n "(cached) " >&6 | |
859789af | 9011 | else |
05cbd757 PB |
9012 | if test -n "$RANLIB"; then |
9013 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9014 | else |
c6b750e1 DJ |
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 | |
c6b750e1 | 9022 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9024 | break 2 |
9025 | fi | |
9026 | done | |
81ecdfbb RW |
9027 | done |
9028 | IFS=$as_save_IFS | |
c6b750e1 | 9029 | |
859789af AC |
9030 | fi |
9031 | fi | |
c6b750e1 | 9032 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9033 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9035 | $as_echo "$RANLIB" >&6; } | |
859789af | 9036 | else |
81ecdfbb RW |
9037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9038 | $as_echo "no" >&6; } | |
859789af | 9039 | fi |
c6b750e1 | 9040 | |
81ecdfbb | 9041 | |
859789af | 9042 | fi |
05cbd757 PB |
9043 | test -n "$ac_cv_prog_RANLIB" && break |
9044 | done | |
9045 | ||
9046 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9047 | RANLIB="true" |
859789af AC |
9048 | fi |
9049 | ||
9a819804 AO |
9050 | |
9051 | ||
9052 | if test -n "$STRIP"; then | |
9053 | ac_cv_prog_STRIP=$STRIP | |
9054 | elif test -n "$ac_cv_prog_STRIP"; then | |
9055 | STRIP=$ac_cv_prog_STRIP | |
9056 | fi | |
9057 | ||
9058 | if test -n "$ac_cv_prog_STRIP"; then | |
9059 | for ncn_progname in strip; do | |
9060 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9061 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9063 | $as_echo_n "checking for $ac_word... " >&6; } | |
9064 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9065 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9066 | else |
9067 | if test -n "$STRIP"; then | |
9068 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9069 | else | |
9070 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9071 | for as_dir in $PATH | |
9072 | do | |
9073 | IFS=$as_save_IFS | |
9074 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9075 | for ac_exec_ext in '' $ac_executable_extensions; do |
9076 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9077 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9079 | break 2 |
9080 | fi | |
9081 | done | |
81ecdfbb RW |
9082 | done |
9083 | IFS=$as_save_IFS | |
9a819804 AO |
9084 | |
9085 | fi | |
9086 | fi | |
9087 | STRIP=$ac_cv_prog_STRIP | |
9088 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9090 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9091 | else |
81ecdfbb RW |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9093 | $as_echo "no" >&6; } | |
9a819804 AO |
9094 | fi |
9095 | ||
81ecdfbb | 9096 | |
9a819804 AO |
9097 | done |
9098 | fi | |
9099 | ||
9100 | for ncn_progname in strip; do | |
be01d343 PB |
9101 | if test -n "$ncn_tool_prefix"; then |
9102 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9103 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9105 | $as_echo_n "checking for $ac_word... " >&6; } | |
9106 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9107 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9108 | else |
9109 | if test -n "$STRIP"; then | |
9110 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9111 | else | |
c6b750e1 DJ |
9112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9113 | for as_dir in $PATH | |
9114 | do | |
9115 | IFS=$as_save_IFS | |
9116 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9117 | for ac_exec_ext in '' $ac_executable_extensions; do |
9118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9119 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9121 | break 2 |
9122 | fi | |
9123 | done | |
81ecdfbb RW |
9124 | done |
9125 | IFS=$as_save_IFS | |
c6b750e1 | 9126 | |
be01d343 PB |
9127 | fi |
9128 | fi | |
c6b750e1 | 9129 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9130 | if test -n "$STRIP"; then |
81ecdfbb RW |
9131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9132 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9133 | else |
81ecdfbb RW |
9134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9135 | $as_echo "no" >&6; } | |
be01d343 PB |
9136 | fi |
9137 | ||
81ecdfbb | 9138 | |
be01d343 PB |
9139 | fi |
9140 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
9141 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9142 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9144 | $as_echo_n "checking for $ac_word... " >&6; } | |
9145 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9146 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9147 | else |
9148 | if test -n "$STRIP"; then | |
9149 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9150 | else | |
c6b750e1 DJ |
9151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9152 | for as_dir in $PATH | |
9153 | do | |
9154 | IFS=$as_save_IFS | |
9155 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9156 | for ac_exec_ext in '' $ac_executable_extensions; do |
9157 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9158 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9159 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9160 | break 2 |
9161 | fi | |
9162 | done | |
81ecdfbb RW |
9163 | done |
9164 | IFS=$as_save_IFS | |
c6b750e1 | 9165 | |
be01d343 PB |
9166 | fi |
9167 | fi | |
c6b750e1 | 9168 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9169 | if test -n "$STRIP"; then |
81ecdfbb RW |
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9171 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9172 | else |
81ecdfbb RW |
9173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9174 | $as_echo "no" >&6; } | |
be01d343 | 9175 | fi |
c6b750e1 | 9176 | |
81ecdfbb | 9177 | |
be01d343 PB |
9178 | fi |
9179 | test -n "$ac_cv_prog_STRIP" && break | |
9180 | done | |
9181 | ||
9182 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9183 | STRIP="true" |
be01d343 PB |
9184 | fi |
9185 | ||
9a819804 AO |
9186 | |
9187 | ||
9188 | if test -n "$WINDRES"; then | |
9189 | ac_cv_prog_WINDRES=$WINDRES | |
9190 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9191 | WINDRES=$ac_cv_prog_WINDRES | |
9192 | fi | |
9193 | ||
9194 | if test -n "$ac_cv_prog_WINDRES"; then | |
9195 | for ncn_progname in windres; do | |
9196 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9197 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9199 | $as_echo_n "checking for $ac_word... " >&6; } | |
9200 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9201 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9202 | else |
9203 | if test -n "$WINDRES"; then | |
9204 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9205 | else | |
9206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9207 | for as_dir in $PATH | |
9208 | do | |
9209 | IFS=$as_save_IFS | |
9210 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9211 | for ac_exec_ext in '' $ac_executable_extensions; do |
9212 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9213 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9215 | break 2 |
9216 | fi | |
9217 | done | |
81ecdfbb RW |
9218 | done |
9219 | IFS=$as_save_IFS | |
9a819804 AO |
9220 | |
9221 | fi | |
9222 | fi | |
9223 | WINDRES=$ac_cv_prog_WINDRES | |
9224 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9226 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9227 | else |
81ecdfbb RW |
9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9229 | $as_echo "no" >&6; } | |
9a819804 AO |
9230 | fi |
9231 | ||
81ecdfbb | 9232 | |
9a819804 AO |
9233 | done |
9234 | fi | |
9235 | ||
9236 | for ncn_progname in windres; do | |
05cbd757 PB |
9237 | if test -n "$ncn_tool_prefix"; then |
9238 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9239 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9241 | $as_echo_n "checking for $ac_word... " >&6; } | |
9242 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9243 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9244 | else |
9245 | if test -n "$WINDRES"; then | |
9246 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9247 | else | |
c6b750e1 DJ |
9248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9249 | for as_dir in $PATH | |
9250 | do | |
9251 | IFS=$as_save_IFS | |
9252 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9253 | for ac_exec_ext in '' $ac_executable_extensions; do |
9254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9255 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9256 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9257 | break 2 |
9258 | fi | |
9259 | done | |
81ecdfbb RW |
9260 | done |
9261 | IFS=$as_save_IFS | |
c6b750e1 | 9262 | |
859789af AC |
9263 | fi |
9264 | fi | |
c6b750e1 | 9265 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9266 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9268 | $as_echo "$WINDRES" >&6; } | |
859789af | 9269 | else |
81ecdfbb RW |
9270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9271 | $as_echo "no" >&6; } | |
859789af AC |
9272 | fi |
9273 | ||
81ecdfbb | 9274 | |
05cbd757 PB |
9275 | fi |
9276 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9277 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9278 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9280 | $as_echo_n "checking for $ac_word... " >&6; } | |
9281 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9282 | $as_echo_n "(cached) " >&6 | |
859789af | 9283 | else |
05cbd757 PB |
9284 | if test -n "$WINDRES"; then |
9285 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9286 | else |
c6b750e1 DJ |
9287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9288 | for as_dir in $PATH | |
9289 | do | |
9290 | IFS=$as_save_IFS | |
9291 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9292 | for ac_exec_ext in '' $ac_executable_extensions; do |
9293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9294 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9296 | break 2 |
9297 | fi | |
9298 | done | |
81ecdfbb RW |
9299 | done |
9300 | IFS=$as_save_IFS | |
c6b750e1 | 9301 | |
859789af AC |
9302 | fi |
9303 | fi | |
c6b750e1 | 9304 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9305 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9307 | $as_echo "$WINDRES" >&6; } | |
859789af | 9308 | else |
81ecdfbb RW |
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9310 | $as_echo "no" >&6; } | |
859789af | 9311 | fi |
c6b750e1 | 9312 | |
81ecdfbb | 9313 | |
05cbd757 PB |
9314 | fi |
9315 | test -n "$ac_cv_prog_WINDRES" && break | |
9316 | done | |
9317 | ||
9318 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9319 | set dummy windres | |
9320 | if test $build = $host ; then | |
9321 | WINDRES="$2" | |
859789af | 9322 | else |
05cbd757 | 9323 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9324 | fi |
859789af AC |
9325 | fi |
9326 | ||
9a819804 AO |
9327 | |
9328 | ||
0c24b341 NC |
9329 | if test -n "$WINDMC"; then |
9330 | ac_cv_prog_WINDMC=$WINDMC | |
9331 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9332 | WINDMC=$ac_cv_prog_WINDMC | |
9333 | fi | |
9334 | ||
9335 | if test -n "$ac_cv_prog_WINDMC"; then | |
9336 | for ncn_progname in windmc; do | |
9337 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9338 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9340 | $as_echo_n "checking for $ac_word... " >&6; } | |
9341 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9342 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9343 | else |
9344 | if test -n "$WINDMC"; then | |
9345 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9346 | else | |
9347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9348 | for as_dir in $PATH | |
9349 | do | |
9350 | IFS=$as_save_IFS | |
9351 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9352 | for ac_exec_ext in '' $ac_executable_extensions; do |
9353 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9354 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9355 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9356 | break 2 |
9357 | fi | |
9358 | done | |
81ecdfbb RW |
9359 | done |
9360 | IFS=$as_save_IFS | |
0c24b341 NC |
9361 | |
9362 | fi | |
9363 | fi | |
9364 | WINDMC=$ac_cv_prog_WINDMC | |
9365 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9367 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9368 | else |
81ecdfbb RW |
9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9370 | $as_echo "no" >&6; } | |
0c24b341 NC |
9371 | fi |
9372 | ||
81ecdfbb | 9373 | |
0c24b341 NC |
9374 | done |
9375 | fi | |
9376 | ||
9377 | for ncn_progname in windmc; do | |
9378 | if test -n "$ncn_tool_prefix"; then | |
9379 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9380 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9382 | $as_echo_n "checking for $ac_word... " >&6; } | |
9383 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9384 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9385 | else |
9386 | if test -n "$WINDMC"; then | |
9387 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9388 | else | |
9389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9390 | for as_dir in $PATH | |
9391 | do | |
9392 | IFS=$as_save_IFS | |
9393 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9394 | for ac_exec_ext in '' $ac_executable_extensions; do |
9395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9396 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9398 | break 2 |
9399 | fi | |
9400 | done | |
81ecdfbb RW |
9401 | done |
9402 | IFS=$as_save_IFS | |
0c24b341 NC |
9403 | |
9404 | fi | |
9405 | fi | |
9406 | WINDMC=$ac_cv_prog_WINDMC | |
9407 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9409 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9410 | else |
81ecdfbb RW |
9411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9412 | $as_echo "no" >&6; } | |
0c24b341 NC |
9413 | fi |
9414 | ||
81ecdfbb | 9415 | |
0c24b341 NC |
9416 | fi |
9417 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9418 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9419 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9421 | $as_echo_n "checking for $ac_word... " >&6; } | |
9422 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9423 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9424 | else |
9425 | if test -n "$WINDMC"; then | |
9426 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9427 | else | |
9428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9429 | for as_dir in $PATH | |
9430 | do | |
9431 | IFS=$as_save_IFS | |
9432 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9433 | for ac_exec_ext in '' $ac_executable_extensions; do |
9434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9435 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9437 | break 2 |
9438 | fi | |
9439 | done | |
81ecdfbb RW |
9440 | done |
9441 | IFS=$as_save_IFS | |
0c24b341 NC |
9442 | |
9443 | fi | |
9444 | fi | |
9445 | WINDMC=$ac_cv_prog_WINDMC | |
9446 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9448 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9449 | else |
81ecdfbb RW |
9450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9451 | $as_echo "no" >&6; } | |
0c24b341 NC |
9452 | fi |
9453 | ||
81ecdfbb | 9454 | |
0c24b341 NC |
9455 | fi |
9456 | test -n "$ac_cv_prog_WINDMC" && break | |
9457 | done | |
9458 | ||
9459 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9460 | set dummy windmc | |
9461 | if test $build = $host ; then | |
9462 | WINDMC="$2" | |
9463 | else | |
9464 | WINDMC="${ncn_tool_prefix}$2" | |
9465 | fi | |
9466 | fi | |
9467 | ||
9468 | ||
9469 | ||
9a819804 AO |
9470 | if test -n "$OBJCOPY"; then |
9471 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9472 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9473 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9474 | fi | |
9475 | ||
9476 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9477 | for ncn_progname in objcopy; do | |
9478 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9479 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9481 | $as_echo_n "checking for $ac_word... " >&6; } | |
9482 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9483 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9484 | else |
9485 | if test -n "$OBJCOPY"; then | |
9486 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9487 | else | |
9488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9489 | for as_dir in $PATH | |
9490 | do | |
9491 | IFS=$as_save_IFS | |
9492 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9493 | for ac_exec_ext in '' $ac_executable_extensions; do |
9494 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9495 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9496 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9497 | break 2 |
9498 | fi | |
9499 | done | |
81ecdfbb RW |
9500 | done |
9501 | IFS=$as_save_IFS | |
9a819804 AO |
9502 | |
9503 | fi | |
9504 | fi | |
9505 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9506 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9508 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9509 | else |
81ecdfbb RW |
9510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9511 | $as_echo "no" >&6; } | |
9a819804 AO |
9512 | fi |
9513 | ||
81ecdfbb | 9514 | |
9a819804 AO |
9515 | done |
9516 | fi | |
9517 | ||
9518 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9519 | if test -n "$ncn_tool_prefix"; then |
9520 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9521 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9523 | $as_echo_n "checking for $ac_word... " >&6; } | |
9524 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9525 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9526 | else |
9527 | if test -n "$OBJCOPY"; then | |
9528 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9529 | else | |
c6b750e1 DJ |
9530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9531 | for as_dir in $PATH | |
9532 | do | |
9533 | IFS=$as_save_IFS | |
9534 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9535 | for ac_exec_ext in '' $ac_executable_extensions; do |
9536 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9537 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9538 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9539 | break 2 |
9540 | fi | |
9541 | done | |
81ecdfbb RW |
9542 | done |
9543 | IFS=$as_save_IFS | |
c6b750e1 | 9544 | |
859789af AC |
9545 | fi |
9546 | fi | |
c6b750e1 | 9547 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9548 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9550 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9551 | else |
81ecdfbb RW |
9552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9553 | $as_echo "no" >&6; } | |
859789af AC |
9554 | fi |
9555 | ||
81ecdfbb | 9556 | |
05cbd757 PB |
9557 | fi |
9558 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9559 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9560 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9562 | $as_echo_n "checking for $ac_word... " >&6; } | |
9563 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9564 | $as_echo_n "(cached) " >&6 | |
859789af | 9565 | else |
05cbd757 PB |
9566 | if test -n "$OBJCOPY"; then |
9567 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9568 | else |
c6b750e1 DJ |
9569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9570 | for as_dir in $PATH | |
9571 | do | |
9572 | IFS=$as_save_IFS | |
9573 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9574 | for ac_exec_ext in '' $ac_executable_extensions; do |
9575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9576 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9577 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9578 | break 2 |
9579 | fi | |
9580 | done | |
81ecdfbb RW |
9581 | done |
9582 | IFS=$as_save_IFS | |
c6b750e1 | 9583 | |
859789af AC |
9584 | fi |
9585 | fi | |
c6b750e1 | 9586 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9587 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9589 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9590 | else |
81ecdfbb RW |
9591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9592 | $as_echo "no" >&6; } | |
859789af | 9593 | fi |
c6b750e1 | 9594 | |
81ecdfbb | 9595 | |
05cbd757 PB |
9596 | fi |
9597 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9598 | done | |
9599 | ||
9600 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9601 | set dummy objcopy | |
9602 | if test $build = $host ; then | |
9603 | OBJCOPY="$2" | |
859789af | 9604 | else |
05cbd757 | 9605 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9606 | fi |
859789af AC |
9607 | fi |
9608 | ||
9a819804 AO |
9609 | |
9610 | ||
9611 | if test -n "$OBJDUMP"; then | |
9612 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9613 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9614 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9615 | fi | |
9616 | ||
9617 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9618 | for ncn_progname in objdump; do | |
9619 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9620 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9622 | $as_echo_n "checking for $ac_word... " >&6; } | |
9623 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9624 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9625 | else |
9626 | if test -n "$OBJDUMP"; then | |
9627 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9628 | else | |
9629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9630 | for as_dir in $PATH | |
9631 | do | |
9632 | IFS=$as_save_IFS | |
9633 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9634 | for ac_exec_ext in '' $ac_executable_extensions; do |
9635 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9636 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9638 | break 2 |
9639 | fi | |
9640 | done | |
81ecdfbb RW |
9641 | done |
9642 | IFS=$as_save_IFS | |
9a819804 AO |
9643 | |
9644 | fi | |
9645 | fi | |
9646 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9647 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9649 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9650 | else |
81ecdfbb RW |
9651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9652 | $as_echo "no" >&6; } | |
9a819804 AO |
9653 | fi |
9654 | ||
81ecdfbb | 9655 | |
9a819804 AO |
9656 | done |
9657 | fi | |
9658 | ||
9659 | for ncn_progname in objdump; do | |
05cbd757 PB |
9660 | if test -n "$ncn_tool_prefix"; then |
9661 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9662 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9664 | $as_echo_n "checking for $ac_word... " >&6; } | |
9665 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9666 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9667 | else |
9668 | if test -n "$OBJDUMP"; then | |
9669 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9670 | else | |
c6b750e1 DJ |
9671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9672 | for as_dir in $PATH | |
9673 | do | |
9674 | IFS=$as_save_IFS | |
9675 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9676 | for ac_exec_ext in '' $ac_executable_extensions; do |
9677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9678 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9680 | break 2 |
9681 | fi | |
9682 | done | |
81ecdfbb RW |
9683 | done |
9684 | IFS=$as_save_IFS | |
c6b750e1 | 9685 | |
859789af AC |
9686 | fi |
9687 | fi | |
c6b750e1 | 9688 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9689 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9691 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9692 | else |
81ecdfbb RW |
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9694 | $as_echo "no" >&6; } | |
859789af AC |
9695 | fi |
9696 | ||
81ecdfbb | 9697 | |
05cbd757 PB |
9698 | fi |
9699 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9700 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9701 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9703 | $as_echo_n "checking for $ac_word... " >&6; } | |
9704 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9705 | $as_echo_n "(cached) " >&6 | |
859789af | 9706 | else |
05cbd757 PB |
9707 | if test -n "$OBJDUMP"; then |
9708 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9709 | else |
c6b750e1 DJ |
9710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9711 | for as_dir in $PATH | |
9712 | do | |
9713 | IFS=$as_save_IFS | |
9714 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9715 | for ac_exec_ext in '' $ac_executable_extensions; do |
9716 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9717 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9718 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9719 | break 2 |
9720 | fi | |
9721 | done | |
81ecdfbb RW |
9722 | done |
9723 | IFS=$as_save_IFS | |
c6b750e1 | 9724 | |
859789af AC |
9725 | fi |
9726 | fi | |
c6b750e1 | 9727 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9728 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9730 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9731 | else |
81ecdfbb RW |
9732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9733 | $as_echo "no" >&6; } | |
859789af | 9734 | fi |
c6b750e1 | 9735 | |
81ecdfbb | 9736 | |
05cbd757 PB |
9737 | fi |
9738 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9739 | done | |
9740 | ||
9741 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9742 | set dummy objdump | |
9743 | if test $build = $host ; then | |
9744 | OBJDUMP="$2" | |
859789af | 9745 | else |
05cbd757 | 9746 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9747 | fi |
859789af AC |
9748 | fi |
9749 | ||
a0da8069 NN |
9750 | |
9751 | ||
9752 | ||
9753 | ||
9754 | ||
be01d343 | 9755 | # Target tools. |
c6b750e1 | 9756 | |
81ecdfbb RW |
9757 | # Check whether --with-build-time-tools was given. |
9758 | if test "${with_build_time_tools+set}" = set; then : | |
9759 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9760 | x/*) ;; |
9761 | *) | |
9762 | with_build_time_tools= | |
81ecdfbb RW |
9763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9764 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9765 | ;; |
9766 | esac | |
859789af | 9767 | else |
2429c060 | 9768 | with_build_time_tools= |
81ecdfbb RW |
9769 | fi |
9770 | ||
859789af | 9771 | |
9a819804 AO |
9772 | |
9773 | ||
9774 | if test -n "$CC_FOR_TARGET"; then | |
9775 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9776 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9777 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9778 | fi | |
9779 | ||
9780 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9781 | for ncn_progname in cc gcc; do | |
9782 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9783 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9785 | $as_echo_n "checking for $ac_word... " >&6; } | |
9786 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9787 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9788 | else |
9789 | if test -n "$CC_FOR_TARGET"; then | |
9790 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9791 | else | |
9792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9793 | for as_dir in $PATH | |
9794 | do | |
9795 | IFS=$as_save_IFS | |
9796 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9797 | for ac_exec_ext in '' $ac_executable_extensions; do |
9798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9799 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9801 | break 2 |
9802 | fi | |
9803 | done | |
81ecdfbb RW |
9804 | done |
9805 | IFS=$as_save_IFS | |
9a819804 AO |
9806 | |
9807 | fi | |
9808 | fi | |
9809 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9810 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
9811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9812 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 9813 | else |
81ecdfbb RW |
9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9815 | $as_echo "no" >&6; } | |
9a819804 AO |
9816 | fi |
9817 | ||
81ecdfbb | 9818 | |
9a819804 AO |
9819 | done |
9820 | fi | |
9821 | ||
9822 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9823 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
9824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9825 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9826 | if test -x $with_build_time_tools/${ncn_progname}; then |
9827 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9829 | $as_echo "yes" >&6; } | |
cac3d6c4 | 9830 | break |
2429c060 | 9831 | else |
81ecdfbb RW |
9832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9833 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
9834 | fi |
9835 | done | |
55db4b87 PB |
9836 | fi |
9837 | ||
2429c060 PB |
9838 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
9839 | for ncn_progname in cc gcc; do | |
9840 | if test -n "$ncn_target_tool_prefix"; then | |
9841 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9842 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9844 | $as_echo_n "checking for $ac_word... " >&6; } | |
9845 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9846 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
9847 | else |
9848 | if test -n "$CC_FOR_TARGET"; then | |
9849 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9850 | else | |
c6b750e1 DJ |
9851 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9852 | for as_dir in $PATH | |
9853 | do | |
9854 | IFS=$as_save_IFS | |
9855 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9856 | for ac_exec_ext in '' $ac_executable_extensions; do |
9857 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9858 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 9859 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9860 | break 2 |
9861 | fi | |
9862 | done | |
81ecdfbb RW |
9863 | done |
9864 | IFS=$as_save_IFS | |
c6b750e1 | 9865 | |
55db4b87 PB |
9866 | fi |
9867 | fi | |
c6b750e1 | 9868 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 9869 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9871 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9872 | else |
81ecdfbb RW |
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9874 | $as_echo "no" >&6; } | |
55db4b87 PB |
9875 | fi |
9876 | ||
81ecdfbb | 9877 | |
2429c060 PB |
9878 | fi |
9879 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
9880 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 9881 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
9882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9883 | $as_echo_n "checking for $ac_word... " >&6; } | |
9884 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9885 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 9886 | else |
05cbd757 PB |
9887 | if test -n "$CC_FOR_TARGET"; then |
9888 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 9889 | else |
c6b750e1 DJ |
9890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9891 | for as_dir in $PATH | |
9892 | do | |
9893 | IFS=$as_save_IFS | |
9894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9895 | for ac_exec_ext in '' $ac_executable_extensions; do |
9896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9897 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9899 | break 2 |
9900 | fi | |
9901 | done | |
81ecdfbb RW |
9902 | done |
9903 | IFS=$as_save_IFS | |
c6b750e1 | 9904 | |
55db4b87 PB |
9905 | fi |
9906 | fi | |
c6b750e1 | 9907 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 9908 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
9910 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 9911 | else |
81ecdfbb RW |
9912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9913 | $as_echo "no" >&6; } | |
55db4b87 | 9914 | fi |
c6b750e1 | 9915 | |
81ecdfbb | 9916 | |
2429c060 PB |
9917 | fi |
9918 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
9919 | done | |
9920 | fi | |
c6b750e1 | 9921 | |
05cbd757 PB |
9922 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
9923 | set dummy cc gcc | |
9924 | if test $build = $target ; then | |
9925 | CC_FOR_TARGET="$2" | |
55db4b87 | 9926 | else |
05cbd757 | 9927 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 9928 | fi |
d3f5afc4 MS |
9929 | else |
9930 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
9931 | fi |
9932 | ||
9a819804 AO |
9933 | |
9934 | ||
9935 | if test -n "$CXX_FOR_TARGET"; then | |
9936 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
9937 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9938 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9939 | fi | |
9940 | ||
9941 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
9942 | for ncn_progname in c++ g++ cxx gxx; do | |
9943 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9944 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9946 | $as_echo_n "checking for $ac_word... " >&6; } | |
9947 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
9948 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9949 | else |
9950 | if test -n "$CXX_FOR_TARGET"; then | |
9951 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
9952 | else | |
9953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9954 | for as_dir in $PATH | |
9955 | do | |
9956 | IFS=$as_save_IFS | |
9957 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9958 | for ac_exec_ext in '' $ac_executable_extensions; do |
9959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9960 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9962 | break 2 |
9963 | fi | |
9964 | done | |
81ecdfbb RW |
9965 | done |
9966 | IFS=$as_save_IFS | |
9a819804 AO |
9967 | |
9968 | fi | |
9969 | fi | |
9970 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
9971 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
9973 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 9974 | else |
81ecdfbb RW |
9975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9976 | $as_echo "no" >&6; } | |
9a819804 AO |
9977 | fi |
9978 | ||
81ecdfbb | 9979 | |
9a819804 AO |
9980 | done |
9981 | fi | |
9982 | ||
9983 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 9984 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
9985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
9986 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
9987 | if test -x $with_build_time_tools/${ncn_progname}; then |
9988 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
9989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
9990 | $as_echo "yes" >&6; } | |
2429c060 PB |
9991 | break |
9992 | else | |
81ecdfbb RW |
9993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9994 | $as_echo "no" >&6; } | |
2429c060 PB |
9995 | fi |
9996 | done | |
9997 | fi | |
9998 | ||
9999 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10000 | for ncn_progname in c++ g++ cxx gxx; do | |
10001 | if test -n "$ncn_target_tool_prefix"; then | |
10002 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10003 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10005 | $as_echo_n "checking for $ac_word... " >&6; } | |
10006 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10007 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10008 | else |
10009 | if test -n "$CXX_FOR_TARGET"; then | |
10010 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10011 | else | |
c6b750e1 DJ |
10012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10013 | for as_dir in $PATH | |
10014 | do | |
10015 | IFS=$as_save_IFS | |
10016 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10017 | for ac_exec_ext in '' $ac_executable_extensions; do |
10018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10019 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10021 | break 2 |
10022 | fi | |
10023 | done | |
81ecdfbb RW |
10024 | done |
10025 | IFS=$as_save_IFS | |
c6b750e1 | 10026 | |
55db4b87 PB |
10027 | fi |
10028 | fi | |
c6b750e1 | 10029 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10030 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10032 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10033 | else |
81ecdfbb RW |
10034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10035 | $as_echo "no" >&6; } | |
55db4b87 PB |
10036 | fi |
10037 | ||
81ecdfbb | 10038 | |
2429c060 PB |
10039 | fi |
10040 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10041 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10042 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10044 | $as_echo_n "checking for $ac_word... " >&6; } | |
10045 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10046 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10047 | else |
05cbd757 PB |
10048 | if test -n "$CXX_FOR_TARGET"; then |
10049 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10050 | else |
c6b750e1 DJ |
10051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10052 | for as_dir in $PATH | |
10053 | do | |
10054 | IFS=$as_save_IFS | |
10055 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10056 | for ac_exec_ext in '' $ac_executable_extensions; do |
10057 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10058 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10060 | break 2 |
10061 | fi | |
10062 | done | |
81ecdfbb RW |
10063 | done |
10064 | IFS=$as_save_IFS | |
c6b750e1 | 10065 | |
55db4b87 PB |
10066 | fi |
10067 | fi | |
c6b750e1 | 10068 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10069 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10071 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10072 | else |
81ecdfbb RW |
10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10074 | $as_echo "no" >&6; } | |
55db4b87 | 10075 | fi |
c6b750e1 | 10076 | |
81ecdfbb | 10077 | |
2429c060 PB |
10078 | fi |
10079 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10080 | done | |
10081 | fi | |
c6b750e1 | 10082 | |
05cbd757 PB |
10083 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10084 | set dummy c++ g++ cxx gxx | |
10085 | if test $build = $target ; then | |
10086 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10087 | else |
05cbd757 | 10088 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10089 | fi |
d3f5afc4 MS |
10090 | else |
10091 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10092 | fi |
10093 | ||
9a819804 AO |
10094 | |
10095 | ||
10096 | if test -n "$GCC_FOR_TARGET"; then | |
10097 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10098 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10099 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10100 | fi | |
10101 | ||
10102 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10103 | for ncn_progname in gcc; do | |
10104 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10105 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10107 | $as_echo_n "checking for $ac_word... " >&6; } | |
10108 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10109 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10110 | else |
10111 | if test -n "$GCC_FOR_TARGET"; then | |
10112 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10113 | else | |
10114 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10115 | for as_dir in $PATH | |
10116 | do | |
10117 | IFS=$as_save_IFS | |
10118 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10119 | for ac_exec_ext in '' $ac_executable_extensions; do |
10120 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10121 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10122 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10123 | break 2 |
10124 | fi | |
10125 | done | |
81ecdfbb RW |
10126 | done |
10127 | IFS=$as_save_IFS | |
9a819804 AO |
10128 | |
10129 | fi | |
10130 | fi | |
10131 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10132 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10134 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10135 | else |
81ecdfbb RW |
10136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10137 | $as_echo "no" >&6; } | |
9a819804 AO |
10138 | fi |
10139 | ||
81ecdfbb | 10140 | |
9a819804 AO |
10141 | done |
10142 | fi | |
10143 | ||
10144 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10145 | for ncn_progname in gcc; do |
81ecdfbb RW |
10146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10147 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10148 | if test -x $with_build_time_tools/${ncn_progname}; then |
10149 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10151 | $as_echo "yes" >&6; } | |
2429c060 PB |
10152 | break |
10153 | else | |
81ecdfbb RW |
10154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10155 | $as_echo "no" >&6; } | |
2429c060 PB |
10156 | fi |
10157 | done | |
10158 | fi | |
10159 | ||
10160 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10161 | for ncn_progname in gcc; do | |
10162 | if test -n "$ncn_target_tool_prefix"; then | |
10163 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10164 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10166 | $as_echo_n "checking for $ac_word... " >&6; } | |
10167 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10168 | $as_echo_n "(cached) " >&6 | |
859789af | 10169 | else |
2429c060 PB |
10170 | if test -n "$GCC_FOR_TARGET"; then |
10171 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10172 | else |
c6b750e1 DJ |
10173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10174 | for as_dir in $PATH | |
10175 | do | |
10176 | IFS=$as_save_IFS | |
10177 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10178 | for ac_exec_ext in '' $ac_executable_extensions; do |
10179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10180 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10181 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10182 | break 2 |
10183 | fi | |
10184 | done | |
81ecdfbb RW |
10185 | done |
10186 | IFS=$as_save_IFS | |
c6b750e1 | 10187 | |
55db4b87 PB |
10188 | fi |
10189 | fi | |
c6b750e1 | 10190 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10191 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10193 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10194 | else |
81ecdfbb RW |
10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10196 | $as_echo "no" >&6; } | |
55db4b87 PB |
10197 | fi |
10198 | ||
81ecdfbb | 10199 | |
2429c060 PB |
10200 | fi |
10201 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10202 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10203 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10205 | $as_echo_n "checking for $ac_word... " >&6; } | |
10206 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10207 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10208 | else |
05cbd757 PB |
10209 | if test -n "$GCC_FOR_TARGET"; then |
10210 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10211 | else |
c6b750e1 DJ |
10212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10213 | for as_dir in $PATH | |
10214 | do | |
10215 | IFS=$as_save_IFS | |
10216 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10217 | for ac_exec_ext in '' $ac_executable_extensions; do |
10218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10219 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10221 | break 2 |
10222 | fi | |
10223 | done | |
81ecdfbb RW |
10224 | done |
10225 | IFS=$as_save_IFS | |
c6b750e1 | 10226 | |
55db4b87 PB |
10227 | fi |
10228 | fi | |
c6b750e1 | 10229 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10230 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10232 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10233 | else |
81ecdfbb RW |
10234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10235 | $as_echo "no" >&6; } | |
55db4b87 | 10236 | fi |
c6b750e1 | 10237 | |
81ecdfbb | 10238 | |
2429c060 PB |
10239 | fi |
10240 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10241 | done | |
10242 | fi | |
c6b750e1 | 10243 | |
05cbd757 PB |
10244 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10245 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10246 | else |
10247 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10248 | fi |
10249 | ||
9a819804 AO |
10250 | |
10251 | ||
10252 | if test -n "$GCJ_FOR_TARGET"; then | |
10253 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10254 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10255 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10256 | fi | |
10257 | ||
10258 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10259 | for ncn_progname in gcj; do | |
10260 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10261 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10263 | $as_echo_n "checking for $ac_word... " >&6; } | |
10264 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10265 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10266 | else |
10267 | if test -n "$GCJ_FOR_TARGET"; then | |
10268 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10269 | else | |
10270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10271 | for as_dir in $PATH | |
10272 | do | |
10273 | IFS=$as_save_IFS | |
10274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10275 | for ac_exec_ext in '' $ac_executable_extensions; do |
10276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10277 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10279 | break 2 |
10280 | fi | |
10281 | done | |
81ecdfbb RW |
10282 | done |
10283 | IFS=$as_save_IFS | |
9a819804 AO |
10284 | |
10285 | fi | |
10286 | fi | |
10287 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10288 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10290 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10291 | else |
81ecdfbb RW |
10292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10293 | $as_echo "no" >&6; } | |
9a819804 AO |
10294 | fi |
10295 | ||
81ecdfbb | 10296 | |
9a819804 AO |
10297 | done |
10298 | fi | |
10299 | ||
10300 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10301 | for ncn_progname in gcj; do |
81ecdfbb RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10303 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10304 | if test -x $with_build_time_tools/${ncn_progname}; then |
10305 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10307 | $as_echo "yes" >&6; } | |
2429c060 PB |
10308 | break |
10309 | else | |
81ecdfbb RW |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10311 | $as_echo "no" >&6; } | |
2429c060 PB |
10312 | fi |
10313 | done | |
10314 | fi | |
10315 | ||
10316 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10317 | for ncn_progname in gcj; do | |
10318 | if test -n "$ncn_target_tool_prefix"; then | |
10319 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10320 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10322 | $as_echo_n "checking for $ac_word... " >&6; } | |
10323 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10324 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10325 | else |
10326 | if test -n "$GCJ_FOR_TARGET"; then | |
10327 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10328 | else | |
c6b750e1 DJ |
10329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10330 | for as_dir in $PATH | |
10331 | do | |
10332 | IFS=$as_save_IFS | |
10333 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10334 | for ac_exec_ext in '' $ac_executable_extensions; do |
10335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10336 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10338 | break 2 |
10339 | fi | |
10340 | done | |
81ecdfbb RW |
10341 | done |
10342 | IFS=$as_save_IFS | |
c6b750e1 | 10343 | |
55db4b87 PB |
10344 | fi |
10345 | fi | |
9a819804 AO |
10346 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10347 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10349 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10350 | else |
81ecdfbb RW |
10351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10352 | $as_echo "no" >&6; } | |
9a819804 AO |
10353 | fi |
10354 | ||
81ecdfbb | 10355 | |
9a819804 AO |
10356 | fi |
10357 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10358 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10359 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10361 | $as_echo_n "checking for $ac_word... " >&6; } | |
10362 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10363 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10364 | else |
10365 | if test -n "$GCJ_FOR_TARGET"; then | |
10366 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10367 | else | |
10368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10369 | for as_dir in $PATH | |
10370 | do | |
10371 | IFS=$as_save_IFS | |
10372 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10373 | for ac_exec_ext in '' $ac_executable_extensions; do |
10374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10375 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10376 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10377 | break 2 |
10378 | fi | |
10379 | done | |
81ecdfbb RW |
10380 | done |
10381 | IFS=$as_save_IFS | |
9a819804 AO |
10382 | |
10383 | fi | |
10384 | fi | |
10385 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10386 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10388 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10389 | else |
81ecdfbb RW |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10391 | $as_echo "no" >&6; } | |
9a819804 AO |
10392 | fi |
10393 | ||
81ecdfbb | 10394 | |
9a819804 AO |
10395 | fi |
10396 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10397 | done | |
10398 | fi | |
10399 | ||
10400 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10401 | set dummy gcj | |
10402 | if test $build = $target ; then | |
10403 | GCJ_FOR_TARGET="$2" | |
10404 | else | |
10405 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10406 | fi | |
d3f5afc4 MS |
10407 | else |
10408 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10409 | fi |
10410 | ||
10411 | ||
10412 | ||
10413 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10414 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10415 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10416 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10417 | fi |
10418 | ||
9a819804 AO |
10419 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10420 | for ncn_progname in gfortran; do | |
10421 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10422 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10424 | $as_echo_n "checking for $ac_word... " >&6; } | |
10425 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10426 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10427 | else |
9a819804 AO |
10428 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10429 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10430 | else |
c6b750e1 DJ |
10431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10432 | for as_dir in $PATH | |
10433 | do | |
10434 | IFS=$as_save_IFS | |
10435 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10436 | for ac_exec_ext in '' $ac_executable_extensions; do |
10437 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10438 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10440 | break 2 |
10441 | fi | |
10442 | done | |
81ecdfbb RW |
10443 | done |
10444 | IFS=$as_save_IFS | |
c6b750e1 | 10445 | |
55db4b87 PB |
10446 | fi |
10447 | fi | |
9a819804 AO |
10448 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10449 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10451 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10452 | else |
81ecdfbb RW |
10453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10454 | $as_echo "no" >&6; } | |
55db4b87 | 10455 | fi |
c6b750e1 | 10456 | |
81ecdfbb | 10457 | |
2429c060 PB |
10458 | done |
10459 | fi | |
c6b750e1 | 10460 | |
9a819804 | 10461 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10462 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10464 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10465 | if test -x $with_build_time_tools/${ncn_progname}; then |
10466 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10468 | $as_echo "yes" >&6; } | |
2429c060 PB |
10469 | break |
10470 | else | |
81ecdfbb RW |
10471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10472 | $as_echo "no" >&6; } | |
2429c060 PB |
10473 | fi |
10474 | done | |
10475 | fi | |
10476 | ||
10477 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10478 | for ncn_progname in gfortran; do | |
10479 | if test -n "$ncn_target_tool_prefix"; then | |
10480 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10481 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10483 | $as_echo_n "checking for $ac_word... " >&6; } | |
10484 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10485 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10486 | else |
10487 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10488 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10489 | else | |
c6b750e1 DJ |
10490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10491 | for as_dir in $PATH | |
10492 | do | |
10493 | IFS=$as_save_IFS | |
10494 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10495 | for ac_exec_ext in '' $ac_executable_extensions; do |
10496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10497 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10499 | break 2 |
10500 | fi | |
10501 | done | |
81ecdfbb RW |
10502 | done |
10503 | IFS=$as_save_IFS | |
c6b750e1 | 10504 | |
55db4b87 PB |
10505 | fi |
10506 | fi | |
c6b750e1 | 10507 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10508 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10510 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10511 | else |
81ecdfbb RW |
10512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10513 | $as_echo "no" >&6; } | |
55db4b87 PB |
10514 | fi |
10515 | ||
81ecdfbb | 10516 | |
2429c060 PB |
10517 | fi |
10518 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10519 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10520 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10522 | $as_echo_n "checking for $ac_word... " >&6; } | |
10523 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10524 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10525 | else |
05cbd757 | 10526 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10527 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10528 | else | |
10529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10530 | for as_dir in $PATH | |
10531 | do | |
10532 | IFS=$as_save_IFS | |
10533 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10534 | for ac_exec_ext in '' $ac_executable_extensions; do |
10535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10536 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10537 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10538 | break 2 |
10539 | fi | |
10540 | done | |
81ecdfbb RW |
10541 | done |
10542 | IFS=$as_save_IFS | |
c6b750e1 | 10543 | |
55db4b87 PB |
10544 | fi |
10545 | fi | |
c6b750e1 | 10546 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10547 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10549 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10550 | else |
81ecdfbb RW |
10551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10552 | $as_echo "no" >&6; } | |
55db4b87 | 10553 | fi |
c6b750e1 | 10554 | |
81ecdfbb | 10555 | |
2429c060 PB |
10556 | fi |
10557 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10558 | done | |
10559 | fi | |
c6b750e1 | 10560 | |
05cbd757 PB |
10561 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10562 | set dummy gfortran | |
10563 | if test $build = $target ; then | |
10564 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10565 | else |
05cbd757 | 10566 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10567 | fi |
d3f5afc4 MS |
10568 | else |
10569 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10570 | fi |
10571 | ||
2429c060 PB |
10572 | |
10573 | ||
e552509b ILT |
10574 | if test -n "$GOC_FOR_TARGET"; then |
10575 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10576 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10577 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10578 | fi | |
10579 | ||
10580 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10581 | for ncn_progname in gccgo; do | |
10582 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10583 | set dummy ${ncn_progname}; ac_word=$2 | |
10584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10585 | $as_echo_n "checking for $ac_word... " >&6; } | |
10586 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10587 | $as_echo_n "(cached) " >&6 | |
10588 | else | |
10589 | if test -n "$GOC_FOR_TARGET"; then | |
10590 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10591 | else | |
10592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10593 | for as_dir in $PATH | |
10594 | do | |
10595 | IFS=$as_save_IFS | |
10596 | test -z "$as_dir" && as_dir=. | |
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 | |
10599 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10601 | break 2 | |
10602 | fi | |
10603 | done | |
10604 | done | |
10605 | IFS=$as_save_IFS | |
10606 | ||
10607 | fi | |
10608 | fi | |
10609 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10610 | if test -n "$GOC_FOR_TARGET"; then | |
10611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10612 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10613 | else | |
10614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10615 | $as_echo "no" >&6; } | |
10616 | fi | |
10617 | ||
10618 | ||
10619 | done | |
10620 | fi | |
10621 | ||
10622 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10623 | for ncn_progname in gccgo; do | |
10624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10625 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10626 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10627 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10629 | $as_echo "yes" >&6; } | |
10630 | break | |
10631 | else | |
10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10633 | $as_echo "no" >&6; } | |
10634 | fi | |
10635 | done | |
10636 | fi | |
10637 | ||
10638 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10639 | for ncn_progname in gccgo; do | |
10640 | if test -n "$ncn_target_tool_prefix"; then | |
10641 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10642 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10644 | $as_echo_n "checking for $ac_word... " >&6; } | |
10645 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10646 | $as_echo_n "(cached) " >&6 | |
10647 | else | |
10648 | if test -n "$GOC_FOR_TARGET"; then | |
10649 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10650 | else | |
10651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10652 | for as_dir in $PATH | |
10653 | do | |
10654 | IFS=$as_save_IFS | |
10655 | test -z "$as_dir" && as_dir=. | |
10656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10658 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10660 | break 2 | |
10661 | fi | |
10662 | done | |
10663 | done | |
10664 | IFS=$as_save_IFS | |
10665 | ||
10666 | fi | |
10667 | fi | |
10668 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10669 | if test -n "$GOC_FOR_TARGET"; then | |
10670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10671 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10672 | else | |
10673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10674 | $as_echo "no" >&6; } | |
10675 | fi | |
10676 | ||
10677 | ||
10678 | fi | |
10679 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10680 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10681 | set dummy ${ncn_progname}; ac_word=$2 | |
10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10683 | $as_echo_n "checking for $ac_word... " >&6; } | |
10684 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10685 | $as_echo_n "(cached) " >&6 | |
10686 | else | |
10687 | if test -n "$GOC_FOR_TARGET"; then | |
10688 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10689 | else | |
10690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10691 | for as_dir in $PATH | |
10692 | do | |
10693 | IFS=$as_save_IFS | |
10694 | test -z "$as_dir" && as_dir=. | |
10695 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10696 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10697 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10699 | break 2 | |
10700 | fi | |
10701 | done | |
10702 | done | |
10703 | IFS=$as_save_IFS | |
10704 | ||
10705 | fi | |
10706 | fi | |
10707 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10708 | if test -n "$GOC_FOR_TARGET"; then | |
10709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10710 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10711 | else | |
10712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10713 | $as_echo "no" >&6; } | |
10714 | fi | |
10715 | ||
10716 | ||
10717 | fi | |
10718 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10719 | done | |
10720 | fi | |
10721 | ||
10722 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10723 | set dummy gccgo | |
10724 | if test $build = $target ; then | |
10725 | GOC_FOR_TARGET="$2" | |
10726 | else | |
10727 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10728 | fi | |
10729 | else | |
10730 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10731 | fi | |
10732 | ||
10733 | ||
10734 | ||
2429c060 PB |
10735 | cat > conftest.c << \EOF |
10736 | #ifdef __GNUC__ | |
10737 | gcc_yay; | |
10738 | #endif | |
10739 | EOF | |
10740 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10741 | have_gcc_for_target=yes | |
859789af | 10742 | else |
2429c060 PB |
10743 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10744 | have_gcc_for_target=no | |
859789af | 10745 | fi |
2429c060 PB |
10746 | rm conftest.c |
10747 | ||
10748 | ||
10749 | ||
859789af | 10750 | |
2429c060 PB |
10751 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10752 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10754 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10755 | if test -x $with_build_time_tools/ar; then |
10756 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10757 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10759 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10760 | else |
81ecdfbb RW |
10761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10762 | $as_echo "no" >&6; } | |
3a35eeb3 | 10763 | fi |
2429c060 PB |
10764 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10765 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10766 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10767 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10768 | fi |
2429c060 | 10769 | fi |
c6b750e1 | 10770 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10771 | # Extract the first word of "ar", so it can be a program name with args. |
10772 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10774 | $as_echo_n "checking for $ac_word... " >&6; } | |
10775 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10776 | $as_echo_n "(cached) " >&6 | |
859789af | 10777 | else |
c6b750e1 DJ |
10778 | case $AR_FOR_TARGET in |
10779 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10780 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10781 | ;; | |
2429c060 | 10782 | *) |
c6b750e1 DJ |
10783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10784 | for as_dir in $gcc_cv_tool_dirs | |
10785 | do | |
10786 | IFS=$as_save_IFS | |
10787 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10788 | for ac_exec_ext in '' $ac_executable_extensions; do |
10789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10790 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10792 | break 2 |
10793 | fi | |
10794 | done | |
81ecdfbb RW |
10795 | done |
10796 | IFS=$as_save_IFS | |
c6b750e1 | 10797 | |
2429c060 PB |
10798 | ;; |
10799 | esac | |
859789af | 10800 | fi |
c6b750e1 | 10801 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10802 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10804 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 10805 | else |
81ecdfbb RW |
10806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10807 | $as_echo "no" >&6; } | |
859789af | 10808 | fi |
05cbd757 | 10809 | |
81ecdfbb | 10810 | |
2429c060 PB |
10811 | fi |
10812 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
10813 | |
10814 | ||
10815 | if test -n "$AR_FOR_TARGET"; then | |
10816 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
10817 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10818 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10819 | fi | |
10820 | ||
10821 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
10822 | for ncn_progname in ar; do | |
10823 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10824 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10826 | $as_echo_n "checking for $ac_word... " >&6; } | |
10827 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10828 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10829 | else |
10830 | if test -n "$AR_FOR_TARGET"; then | |
10831 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
10832 | else | |
10833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10834 | for as_dir in $PATH | |
10835 | do | |
10836 | IFS=$as_save_IFS | |
10837 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10838 | for ac_exec_ext in '' $ac_executable_extensions; do |
10839 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10840 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10842 | break 2 |
10843 | fi | |
10844 | done | |
81ecdfbb RW |
10845 | done |
10846 | IFS=$as_save_IFS | |
9a819804 AO |
10847 | |
10848 | fi | |
10849 | fi | |
10850 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
10851 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
10852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10853 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 10854 | else |
81ecdfbb RW |
10855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10856 | $as_echo "no" >&6; } | |
9a819804 AO |
10857 | fi |
10858 | ||
81ecdfbb | 10859 | |
9a819804 AO |
10860 | done |
10861 | fi | |
10862 | ||
10863 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10864 | for ncn_progname in ar; do |
81ecdfbb RW |
10865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10866 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10867 | if test -x $with_build_time_tools/${ncn_progname}; then |
10868 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10870 | $as_echo "yes" >&6; } | |
2429c060 PB |
10871 | break |
10872 | else | |
81ecdfbb RW |
10873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10874 | $as_echo "no" >&6; } | |
2429c060 PB |
10875 | fi |
10876 | done | |
859789af AC |
10877 | fi |
10878 | ||
2429c060 PB |
10879 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
10880 | for ncn_progname in ar; do | |
10881 | if test -n "$ncn_target_tool_prefix"; then | |
10882 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10883 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10885 | $as_echo_n "checking for $ac_word... " >&6; } | |
10886 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
10887 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10888 | else |
2429c060 PB |
10889 | if test -n "$AR_FOR_TARGET"; then |
10890 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 10891 | else |
c6b750e1 DJ |
10892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10893 | for as_dir in $PATH | |
10894 | do | |
10895 | IFS=$as_save_IFS | |
10896 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10897 | for ac_exec_ext in '' $ac_executable_extensions; do |
10898 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10899 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10900 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10901 | break 2 |
10902 | fi | |
10903 | done | |
81ecdfbb RW |
10904 | done |
10905 | IFS=$as_save_IFS | |
c6b750e1 | 10906 | |
7e0f7140 GK |
10907 | fi |
10908 | fi | |
c6b750e1 | 10909 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10910 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10912 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10913 | else |
81ecdfbb RW |
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10915 | $as_echo "no" >&6; } | |
7e0f7140 GK |
10916 | fi |
10917 | ||
81ecdfbb | 10918 | |
2429c060 PB |
10919 | fi |
10920 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
10921 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 10922 | set dummy ${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_AR_FOR_TARGET+set}" = set; then : | |
10926 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 10927 | else |
2429c060 PB |
10928 | if test -n "$AR_FOR_TARGET"; then |
10929 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 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_AR_FOR_TARGET="${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 | |
7e0f7140 GK |
10946 | fi |
10947 | fi | |
c6b750e1 | 10948 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 10949 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
10951 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 10952 | else |
81ecdfbb RW |
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10954 | $as_echo "no" >&6; } | |
7e0f7140 | 10955 | fi |
c6b750e1 | 10956 | |
81ecdfbb | 10957 | |
2429c060 PB |
10958 | fi |
10959 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
10960 | done | |
10961 | fi | |
c6b750e1 | 10962 | |
2429c060 PB |
10963 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
10964 | set dummy ar | |
7e0f7140 | 10965 | if test $build = $target ; then |
2429c060 | 10966 | AR_FOR_TARGET="$2" |
7e0f7140 | 10967 | else |
2429c060 | 10968 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 10969 | fi |
d3f5afc4 MS |
10970 | else |
10971 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
10972 | fi |
10973 | ||
3a35eeb3 PB |
10974 | else |
10975 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
10976 | fi |
10977 | ||
10978 | ||
10979 | ||
10980 | ||
10981 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
10982 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
10984 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10985 | if test -x $with_build_time_tools/as; then |
10986 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
10987 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
10988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
10989 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 10990 | else |
81ecdfbb RW |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10992 | $as_echo "no" >&6; } | |
3a35eeb3 | 10993 | fi |
2429c060 PB |
10994 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10995 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
10996 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
10997 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
10998 | fi |
10999 | fi | |
c6b750e1 | 11000 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11001 | # Extract the first word of "as", so it can be a program name with args. |
11002 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11004 | $as_echo_n "checking for $ac_word... " >&6; } | |
11005 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11006 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11007 | else |
c6b750e1 DJ |
11008 | case $AS_FOR_TARGET in |
11009 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11010 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11011 | ;; | |
2429c060 | 11012 | *) |
c6b750e1 DJ |
11013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11014 | for as_dir in $gcc_cv_tool_dirs | |
11015 | do | |
11016 | IFS=$as_save_IFS | |
11017 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11018 | for ac_exec_ext in '' $ac_executable_extensions; do |
11019 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11020 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11021 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11022 | break 2 |
11023 | fi | |
11024 | done | |
81ecdfbb RW |
11025 | done |
11026 | IFS=$as_save_IFS | |
c6b750e1 | 11027 | |
2429c060 PB |
11028 | ;; |
11029 | esac | |
11030 | fi | |
c6b750e1 | 11031 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11032 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11034 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11035 | else |
81ecdfbb RW |
11036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11037 | $as_echo "no" >&6; } | |
2429c060 PB |
11038 | fi |
11039 | ||
81ecdfbb | 11040 | |
2429c060 PB |
11041 | fi |
11042 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11043 | |
11044 | ||
11045 | if test -n "$AS_FOR_TARGET"; then | |
11046 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11047 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11048 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11049 | fi | |
11050 | ||
11051 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11052 | for ncn_progname in as; do | |
11053 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11054 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11056 | $as_echo_n "checking for $ac_word... " >&6; } | |
11057 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11058 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11059 | else |
11060 | if test -n "$AS_FOR_TARGET"; then | |
11061 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11062 | else | |
11063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11064 | for as_dir in $PATH | |
11065 | do | |
11066 | IFS=$as_save_IFS | |
11067 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11068 | for ac_exec_ext in '' $ac_executable_extensions; do |
11069 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11070 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11071 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11072 | break 2 |
11073 | fi | |
11074 | done | |
81ecdfbb RW |
11075 | done |
11076 | IFS=$as_save_IFS | |
9a819804 AO |
11077 | |
11078 | fi | |
11079 | fi | |
11080 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11081 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11083 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11084 | else |
81ecdfbb RW |
11085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11086 | $as_echo "no" >&6; } | |
9a819804 AO |
11087 | fi |
11088 | ||
81ecdfbb | 11089 | |
9a819804 AO |
11090 | done |
11091 | fi | |
11092 | ||
11093 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11094 | for ncn_progname in as; do |
81ecdfbb RW |
11095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11096 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11097 | if test -x $with_build_time_tools/${ncn_progname}; then |
11098 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11100 | $as_echo "yes" >&6; } | |
2429c060 PB |
11101 | break |
11102 | else | |
81ecdfbb RW |
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11104 | $as_echo "no" >&6; } | |
2429c060 PB |
11105 | fi |
11106 | done | |
11107 | fi | |
11108 | ||
11109 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11110 | for ncn_progname in as; do | |
11111 | if test -n "$ncn_target_tool_prefix"; then | |
11112 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11113 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11115 | $as_echo_n "checking for $ac_word... " >&6; } | |
11116 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11117 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11118 | else |
11119 | if test -n "$AS_FOR_TARGET"; then | |
11120 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11121 | else | |
c6b750e1 DJ |
11122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11123 | for as_dir in $PATH | |
11124 | do | |
11125 | IFS=$as_save_IFS | |
11126 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11127 | for ac_exec_ext in '' $ac_executable_extensions; do |
11128 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11129 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11131 | break 2 |
11132 | fi | |
11133 | done | |
81ecdfbb RW |
11134 | done |
11135 | IFS=$as_save_IFS | |
c6b750e1 | 11136 | |
2429c060 PB |
11137 | fi |
11138 | fi | |
c6b750e1 | 11139 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11140 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11142 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11143 | else |
81ecdfbb RW |
11144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11145 | $as_echo "no" >&6; } | |
2429c060 PB |
11146 | fi |
11147 | ||
81ecdfbb | 11148 | |
2429c060 PB |
11149 | fi |
11150 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11151 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11152 | set dummy ${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_AS_FOR_TARGET+set}" = set; then : | |
11156 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11157 | else |
11158 | if test -n "$AS_FOR_TARGET"; then | |
11159 | ac_cv_prog_AS_FOR_TARGET="$AS_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_AS_FOR_TARGET="${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 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11179 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11181 | $as_echo "$AS_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 | 11185 | fi |
c6b750e1 | 11186 | |
81ecdfbb | 11187 | |
2429c060 PB |
11188 | fi |
11189 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11190 | done | |
11191 | fi | |
c6b750e1 | 11192 | |
2429c060 PB |
11193 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11194 | set dummy as | |
11195 | if test $build = $target ; then | |
11196 | AS_FOR_TARGET="$2" | |
11197 | else | |
11198 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11199 | fi | |
d3f5afc4 MS |
11200 | else |
11201 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11202 | fi |
11203 | ||
3a35eeb3 PB |
11204 | else |
11205 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11206 | fi |
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11212 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11214 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11215 | if test -x $with_build_time_tools/dlltool; then |
11216 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11217 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11219 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11220 | else |
81ecdfbb RW |
11221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11222 | $as_echo "no" >&6; } | |
3a35eeb3 | 11223 | fi |
2429c060 PB |
11224 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11225 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11226 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11227 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11228 | fi |
11229 | fi | |
c6b750e1 | 11230 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11231 | # Extract the first word of "dlltool", so it can be a program name with args. |
11232 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11234 | $as_echo_n "checking for $ac_word... " >&6; } | |
11235 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11236 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11237 | else |
c6b750e1 DJ |
11238 | case $DLLTOOL_FOR_TARGET in |
11239 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11240 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11241 | ;; | |
2429c060 | 11242 | *) |
c6b750e1 DJ |
11243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11244 | for as_dir in $gcc_cv_tool_dirs | |
11245 | do | |
11246 | IFS=$as_save_IFS | |
11247 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11248 | for ac_exec_ext in '' $ac_executable_extensions; do |
11249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11250 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11251 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11252 | break 2 |
11253 | fi | |
11254 | done | |
81ecdfbb RW |
11255 | done |
11256 | IFS=$as_save_IFS | |
c6b750e1 | 11257 | |
2429c060 PB |
11258 | ;; |
11259 | esac | |
11260 | fi | |
c6b750e1 | 11261 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11262 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11264 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11265 | else |
81ecdfbb RW |
11266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11267 | $as_echo "no" >&6; } | |
2429c060 PB |
11268 | fi |
11269 | ||
81ecdfbb | 11270 | |
2429c060 PB |
11271 | fi |
11272 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11273 | |
11274 | ||
11275 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11276 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11277 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11278 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11279 | fi | |
11280 | ||
11281 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11282 | for ncn_progname in dlltool; do | |
11283 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11284 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11286 | $as_echo_n "checking for $ac_word... " >&6; } | |
11287 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11288 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11289 | else |
11290 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11291 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11292 | else | |
11293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11294 | for as_dir in $PATH | |
11295 | do | |
11296 | IFS=$as_save_IFS | |
11297 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11298 | for ac_exec_ext in '' $ac_executable_extensions; do |
11299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11300 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11301 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11302 | break 2 |
11303 | fi | |
11304 | done | |
81ecdfbb RW |
11305 | done |
11306 | IFS=$as_save_IFS | |
9a819804 AO |
11307 | |
11308 | fi | |
11309 | fi | |
11310 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11311 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11313 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11314 | else |
81ecdfbb RW |
11315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11316 | $as_echo "no" >&6; } | |
9a819804 AO |
11317 | fi |
11318 | ||
81ecdfbb | 11319 | |
9a819804 AO |
11320 | done |
11321 | fi | |
11322 | ||
11323 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11324 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11326 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11327 | if test -x $with_build_time_tools/${ncn_progname}; then |
11328 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11330 | $as_echo "yes" >&6; } | |
2429c060 PB |
11331 | break |
11332 | else | |
81ecdfbb RW |
11333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11334 | $as_echo "no" >&6; } | |
2429c060 PB |
11335 | fi |
11336 | done | |
11337 | fi | |
11338 | ||
11339 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11340 | for ncn_progname in dlltool; do | |
11341 | if test -n "$ncn_target_tool_prefix"; then | |
11342 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11343 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11345 | $as_echo_n "checking for $ac_word... " >&6; } | |
11346 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11347 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11348 | else |
11349 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11350 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11351 | else | |
c6b750e1 DJ |
11352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11353 | for as_dir in $PATH | |
11354 | do | |
11355 | IFS=$as_save_IFS | |
11356 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11357 | for ac_exec_ext in '' $ac_executable_extensions; do |
11358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11359 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11361 | break 2 |
11362 | fi | |
11363 | done | |
81ecdfbb RW |
11364 | done |
11365 | IFS=$as_save_IFS | |
c6b750e1 | 11366 | |
2429c060 PB |
11367 | fi |
11368 | fi | |
c6b750e1 | 11369 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11370 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11372 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11373 | else |
81ecdfbb RW |
11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11375 | $as_echo "no" >&6; } | |
2429c060 PB |
11376 | fi |
11377 | ||
81ecdfbb | 11378 | |
2429c060 PB |
11379 | fi |
11380 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11381 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11382 | set dummy ${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_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11386 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11387 | else |
11388 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11389 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_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_DLLTOOL_FOR_TARGET="${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 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11409 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11411 | $as_echo "$DLLTOOL_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 | 11415 | fi |
c6b750e1 | 11416 | |
81ecdfbb | 11417 | |
2429c060 PB |
11418 | fi |
11419 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11420 | done | |
11421 | fi | |
c6b750e1 | 11422 | |
2429c060 PB |
11423 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11424 | set dummy dlltool | |
11425 | if test $build = $target ; then | |
11426 | DLLTOOL_FOR_TARGET="$2" | |
11427 | else | |
11428 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11429 | fi | |
d3f5afc4 MS |
11430 | else |
11431 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11432 | fi |
11433 | ||
3a35eeb3 PB |
11434 | else |
11435 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11436 | fi |
11437 | ||
11438 | ||
11439 | ||
11440 | ||
11441 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11442 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11444 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11445 | if test -x $with_build_time_tools/ld; then |
11446 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11447 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11449 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11450 | else |
81ecdfbb RW |
11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11452 | $as_echo "no" >&6; } | |
3a35eeb3 | 11453 | fi |
2429c060 PB |
11454 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11455 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11456 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11457 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11458 | fi |
11459 | fi | |
c6b750e1 | 11460 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11461 | # Extract the first word of "ld", so it can be a program name with args. |
11462 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11464 | $as_echo_n "checking for $ac_word... " >&6; } | |
11465 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11466 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11467 | else |
c6b750e1 DJ |
11468 | case $LD_FOR_TARGET in |
11469 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11470 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11471 | ;; | |
2429c060 | 11472 | *) |
c6b750e1 DJ |
11473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11474 | for as_dir in $gcc_cv_tool_dirs | |
11475 | do | |
11476 | IFS=$as_save_IFS | |
11477 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11478 | for ac_exec_ext in '' $ac_executable_extensions; do |
11479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11480 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11481 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11482 | break 2 |
11483 | fi | |
11484 | done | |
81ecdfbb RW |
11485 | done |
11486 | IFS=$as_save_IFS | |
c6b750e1 | 11487 | |
2429c060 PB |
11488 | ;; |
11489 | esac | |
11490 | fi | |
c6b750e1 | 11491 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11492 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11494 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11495 | else |
81ecdfbb RW |
11496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11497 | $as_echo "no" >&6; } | |
2429c060 PB |
11498 | fi |
11499 | ||
81ecdfbb | 11500 | |
2429c060 PB |
11501 | fi |
11502 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11503 | |
11504 | ||
11505 | if test -n "$LD_FOR_TARGET"; then | |
11506 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11507 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11508 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11509 | fi | |
11510 | ||
11511 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11512 | for ncn_progname in ld; do | |
11513 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11514 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11516 | $as_echo_n "checking for $ac_word... " >&6; } | |
11517 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11518 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11519 | else |
11520 | if test -n "$LD_FOR_TARGET"; then | |
11521 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11522 | else | |
11523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11524 | for as_dir in $PATH | |
11525 | do | |
11526 | IFS=$as_save_IFS | |
11527 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11528 | for ac_exec_ext in '' $ac_executable_extensions; do |
11529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11530 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11532 | break 2 |
11533 | fi | |
11534 | done | |
81ecdfbb RW |
11535 | done |
11536 | IFS=$as_save_IFS | |
9a819804 AO |
11537 | |
11538 | fi | |
11539 | fi | |
11540 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11541 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11543 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11544 | else |
81ecdfbb RW |
11545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11546 | $as_echo "no" >&6; } | |
9a819804 AO |
11547 | fi |
11548 | ||
81ecdfbb | 11549 | |
9a819804 AO |
11550 | done |
11551 | fi | |
11552 | ||
11553 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11554 | for ncn_progname in ld; do |
81ecdfbb RW |
11555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11556 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11557 | if test -x $with_build_time_tools/${ncn_progname}; then |
11558 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11560 | $as_echo "yes" >&6; } | |
2429c060 PB |
11561 | break |
11562 | else | |
81ecdfbb RW |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11564 | $as_echo "no" >&6; } | |
2429c060 PB |
11565 | fi |
11566 | done | |
11567 | fi | |
11568 | ||
11569 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11570 | for ncn_progname in ld; do | |
11571 | if test -n "$ncn_target_tool_prefix"; then | |
11572 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11573 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11575 | $as_echo_n "checking for $ac_word... " >&6; } | |
11576 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11577 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11578 | else |
11579 | if test -n "$LD_FOR_TARGET"; then | |
11580 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11581 | else | |
c6b750e1 DJ |
11582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11583 | for as_dir in $PATH | |
11584 | do | |
11585 | IFS=$as_save_IFS | |
11586 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11587 | for ac_exec_ext in '' $ac_executable_extensions; do |
11588 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11589 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11590 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11591 | break 2 |
11592 | fi | |
11593 | done | |
81ecdfbb RW |
11594 | done |
11595 | IFS=$as_save_IFS | |
c6b750e1 | 11596 | |
2429c060 PB |
11597 | fi |
11598 | fi | |
c6b750e1 | 11599 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11600 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11602 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11603 | else |
81ecdfbb RW |
11604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11605 | $as_echo "no" >&6; } | |
2429c060 PB |
11606 | fi |
11607 | ||
81ecdfbb | 11608 | |
2429c060 PB |
11609 | fi |
11610 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11611 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11612 | set dummy ${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_LD_FOR_TARGET+set}" = set; then : | |
11616 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11617 | else |
11618 | if test -n "$LD_FOR_TARGET"; then | |
11619 | ac_cv_prog_LD_FOR_TARGET="$LD_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_LD_FOR_TARGET="${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 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11639 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11641 | $as_echo "$LD_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 | 11645 | fi |
c6b750e1 | 11646 | |
81ecdfbb | 11647 | |
2429c060 PB |
11648 | fi |
11649 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11650 | done | |
11651 | fi | |
c6b750e1 | 11652 | |
2429c060 PB |
11653 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11654 | set dummy ld | |
11655 | if test $build = $target ; then | |
11656 | LD_FOR_TARGET="$2" | |
11657 | else | |
11658 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11659 | fi | |
d3f5afc4 MS |
11660 | else |
11661 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11662 | fi |
11663 | ||
3a35eeb3 PB |
11664 | else |
11665 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11666 | fi |
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11672 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11674 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11675 | if test -x $with_build_time_tools/lipo; then |
11676 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11677 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11679 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11680 | else |
81ecdfbb RW |
11681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11682 | $as_echo "no" >&6; } | |
3a35eeb3 | 11683 | fi |
2429c060 PB |
11684 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11685 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11686 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11687 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11688 | fi |
11689 | fi | |
9a819804 AO |
11690 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11691 | # Extract the first word of "lipo", so it can be a program name with args. | |
11692 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11694 | $as_echo_n "checking for $ac_word... " >&6; } | |
11695 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11696 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11697 | else |
11698 | case $LIPO_FOR_TARGET in | |
11699 | [\\/]* | ?:[\\/]*) | |
11700 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11701 | ;; | |
11702 | *) | |
11703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11704 | for as_dir in $gcc_cv_tool_dirs | |
11705 | do | |
11706 | IFS=$as_save_IFS | |
11707 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11708 | for ac_exec_ext in '' $ac_executable_extensions; do |
11709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11710 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11712 | break 2 |
11713 | fi | |
11714 | done | |
81ecdfbb RW |
11715 | done |
11716 | IFS=$as_save_IFS | |
9a819804 AO |
11717 | |
11718 | ;; | |
11719 | esac | |
11720 | fi | |
11721 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11722 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11724 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11725 | else |
81ecdfbb RW |
11726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11727 | $as_echo "no" >&6; } | |
9a819804 AO |
11728 | fi |
11729 | ||
81ecdfbb | 11730 | |
9a819804 AO |
11731 | fi |
11732 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11733 | ||
11734 | ||
11735 | if test -n "$LIPO_FOR_TARGET"; then | |
11736 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11737 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11738 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11739 | fi | |
11740 | ||
11741 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11742 | for ncn_progname in lipo; do | |
11743 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11744 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11746 | $as_echo_n "checking for $ac_word... " >&6; } | |
11747 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11748 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11749 | else |
9a819804 AO |
11750 | if test -n "$LIPO_FOR_TARGET"; then |
11751 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11752 | else | |
11753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11754 | for as_dir in $PATH | |
c6b750e1 DJ |
11755 | do |
11756 | IFS=$as_save_IFS | |
11757 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11758 | for ac_exec_ext in '' $ac_executable_extensions; do |
11759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11760 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11762 | break 2 |
11763 | fi | |
11764 | done | |
81ecdfbb RW |
11765 | done |
11766 | IFS=$as_save_IFS | |
c6b750e1 | 11767 | |
2429c060 | 11768 | fi |
9a819804 AO |
11769 | fi |
11770 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11771 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11773 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11774 | else |
81ecdfbb RW |
11775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11776 | $as_echo "no" >&6; } | |
2429c060 PB |
11777 | fi |
11778 | ||
81ecdfbb | 11779 | |
9a819804 | 11780 | done |
2429c060 | 11781 | fi |
9a819804 AO |
11782 | |
11783 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11784 | for ncn_progname in lipo; do |
81ecdfbb RW |
11785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11786 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11787 | if test -x $with_build_time_tools/${ncn_progname}; then |
11788 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11790 | $as_echo "yes" >&6; } | |
2429c060 PB |
11791 | break |
11792 | else | |
81ecdfbb RW |
11793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11794 | $as_echo "no" >&6; } | |
2429c060 PB |
11795 | fi |
11796 | done | |
11797 | fi | |
11798 | ||
11799 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11800 | for ncn_progname in lipo; do | |
11801 | if test -n "$ncn_target_tool_prefix"; then | |
11802 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11803 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11805 | $as_echo_n "checking for $ac_word... " >&6; } | |
11806 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11807 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11808 | else |
11809 | if test -n "$LIPO_FOR_TARGET"; then | |
11810 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11811 | else | |
c6b750e1 DJ |
11812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11813 | for as_dir in $PATH | |
11814 | do | |
11815 | IFS=$as_save_IFS | |
11816 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11817 | for ac_exec_ext in '' $ac_executable_extensions; do |
11818 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11819 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11820 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11821 | break 2 |
11822 | fi | |
11823 | done | |
81ecdfbb RW |
11824 | done |
11825 | IFS=$as_save_IFS | |
c6b750e1 | 11826 | |
2429c060 PB |
11827 | fi |
11828 | fi | |
c6b750e1 | 11829 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11830 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11832 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11833 | else |
81ecdfbb RW |
11834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11835 | $as_echo "no" >&6; } | |
2429c060 PB |
11836 | fi |
11837 | ||
81ecdfbb | 11838 | |
2429c060 PB |
11839 | fi |
11840 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
11841 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11842 | set dummy ${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_LIPO_FOR_TARGET+set}" = set; then : | |
11846 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11847 | else |
11848 | if test -n "$LIPO_FOR_TARGET"; then | |
11849 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
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_LIPO_FOR_TARGET="${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 | |
2429c060 PB |
11866 | fi |
11867 | fi | |
c6b750e1 | 11868 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 11869 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11871 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11872 | else |
81ecdfbb RW |
11873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11874 | $as_echo "no" >&6; } | |
2429c060 | 11875 | fi |
c6b750e1 | 11876 | |
81ecdfbb | 11877 | |
2429c060 PB |
11878 | fi |
11879 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
11880 | done | |
11881 | fi | |
c6b750e1 | 11882 | |
2429c060 PB |
11883 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
11884 | set dummy lipo | |
11885 | if test $build = $target ; then | |
11886 | LIPO_FOR_TARGET="$2" | |
11887 | else | |
11888 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11889 | fi | |
d3f5afc4 MS |
11890 | else |
11891 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
11892 | fi |
11893 | ||
3a35eeb3 PB |
11894 | else |
11895 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
11896 | fi |
11897 | ||
11898 | ||
11899 | ||
11900 | ||
11901 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
11902 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
11904 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11905 | if test -x $with_build_time_tools/nm; then |
11906 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
11907 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
11909 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 11910 | else |
81ecdfbb RW |
11911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11912 | $as_echo "no" >&6; } | |
3a35eeb3 | 11913 | fi |
2429c060 PB |
11914 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11915 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
11916 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
11917 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
11918 | fi |
11919 | fi | |
c6b750e1 | 11920 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11921 | # Extract the first word of "nm", so it can be a program name with args. |
11922 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
11923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11924 | $as_echo_n "checking for $ac_word... " >&6; } | |
11925 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
11926 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11927 | else |
c6b750e1 DJ |
11928 | case $NM_FOR_TARGET in |
11929 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11930 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
11931 | ;; | |
2429c060 | 11932 | *) |
c6b750e1 DJ |
11933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11934 | for as_dir in $gcc_cv_tool_dirs | |
11935 | do | |
11936 | IFS=$as_save_IFS | |
11937 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11938 | for ac_exec_ext in '' $ac_executable_extensions; do |
11939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11940 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11942 | break 2 |
11943 | fi | |
11944 | done | |
81ecdfbb RW |
11945 | done |
11946 | IFS=$as_save_IFS | |
c6b750e1 | 11947 | |
2429c060 PB |
11948 | ;; |
11949 | esac | |
11950 | fi | |
c6b750e1 | 11951 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 11952 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
11953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
11954 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 11955 | else |
81ecdfbb RW |
11956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11957 | $as_echo "no" >&6; } | |
2429c060 PB |
11958 | fi |
11959 | ||
81ecdfbb | 11960 | |
2429c060 PB |
11961 | fi |
11962 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
11963 | |
11964 | ||
11965 | if test -n "$NM_FOR_TARGET"; then | |
11966 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
11967 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11968 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
11969 | fi | |
11970 | ||
11971 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
11972 | for ncn_progname in nm; do | |
11973 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11974 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11976 | $as_echo_n "checking for $ac_word... " >&6; } | |
11977 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
11978 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11979 | else |
11980 | if test -n "$NM_FOR_TARGET"; then | |
11981 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
11982 | else | |
11983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11984 | for as_dir in $PATH | |
11985 | do | |
11986 | IFS=$as_save_IFS | |
11987 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11988 | for ac_exec_ext in '' $ac_executable_extensions; do |
11989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11990 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11992 | break 2 |
11993 | fi | |
11994 | done | |
81ecdfbb RW |
11995 | done |
11996 | IFS=$as_save_IFS | |
9a819804 AO |
11997 | |
11998 | fi | |
11999 | fi | |
12000 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12001 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12003 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12004 | else |
81ecdfbb RW |
12005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12006 | $as_echo "no" >&6; } | |
9a819804 AO |
12007 | fi |
12008 | ||
81ecdfbb | 12009 | |
9a819804 AO |
12010 | done |
12011 | fi | |
12012 | ||
12013 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12014 | for ncn_progname in nm; do |
81ecdfbb RW |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12016 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12017 | if test -x $with_build_time_tools/${ncn_progname}; then |
12018 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12020 | $as_echo "yes" >&6; } | |
2429c060 PB |
12021 | break |
12022 | else | |
81ecdfbb RW |
12023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12024 | $as_echo "no" >&6; } | |
2429c060 PB |
12025 | fi |
12026 | done | |
12027 | fi | |
12028 | ||
12029 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12030 | for ncn_progname in nm; do | |
12031 | if test -n "$ncn_target_tool_prefix"; then | |
12032 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12033 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12035 | $as_echo_n "checking for $ac_word... " >&6; } | |
12036 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12037 | $as_echo_n "(cached) " >&6 | |
859789af | 12038 | else |
55db4b87 PB |
12039 | if test -n "$NM_FOR_TARGET"; then |
12040 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12041 | else |
c6b750e1 DJ |
12042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12043 | for as_dir in $PATH | |
12044 | do | |
12045 | IFS=$as_save_IFS | |
12046 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12047 | for ac_exec_ext in '' $ac_executable_extensions; do |
12048 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12049 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12051 | break 2 |
12052 | fi | |
12053 | done | |
81ecdfbb RW |
12054 | done |
12055 | IFS=$as_save_IFS | |
c6b750e1 | 12056 | |
859789af AC |
12057 | fi |
12058 | fi | |
c6b750e1 | 12059 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12060 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12062 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12063 | else |
81ecdfbb RW |
12064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12065 | $as_echo "no" >&6; } | |
859789af AC |
12066 | fi |
12067 | ||
81ecdfbb | 12068 | |
2429c060 PB |
12069 | fi |
12070 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12071 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12072 | set dummy ${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_NM_FOR_TARGET+set}" = set; then : | |
12076 | $as_echo_n "(cached) " >&6 | |
859789af | 12077 | else |
05cbd757 PB |
12078 | if test -n "$NM_FOR_TARGET"; then |
12079 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 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_NM_FOR_TARGET="${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 | |
859789af AC |
12096 | fi |
12097 | fi | |
c6b750e1 | 12098 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12099 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12101 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12102 | else |
81ecdfbb RW |
12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12104 | $as_echo "no" >&6; } | |
859789af | 12105 | fi |
c6b750e1 | 12106 | |
81ecdfbb | 12107 | |
2429c060 PB |
12108 | fi |
12109 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12110 | done | |
12111 | fi | |
c6b750e1 | 12112 | |
05cbd757 PB |
12113 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12114 | set dummy nm | |
12115 | if test $build = $target ; then | |
12116 | NM_FOR_TARGET="$2" | |
859789af | 12117 | else |
05cbd757 | 12118 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12119 | fi |
d3f5afc4 MS |
12120 | else |
12121 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12122 | fi |
12123 | ||
3a35eeb3 PB |
12124 | else |
12125 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12126 | fi |
12127 | ||
12128 | ||
12129 | ||
12130 | ||
12131 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
12132 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12134 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12135 | if test -x $with_build_time_tools/objdump; then |
12136 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12137 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12139 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12140 | else |
81ecdfbb RW |
12141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12142 | $as_echo "no" >&6; } | |
3a35eeb3 | 12143 | fi |
2429c060 PB |
12144 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12145 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12146 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12147 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12148 | fi |
12149 | fi | |
c6b750e1 | 12150 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12151 | # Extract the first word of "objdump", so it can be a program name with args. |
12152 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12154 | $as_echo_n "checking for $ac_word... " >&6; } | |
12155 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12156 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12157 | else |
c6b750e1 DJ |
12158 | case $OBJDUMP_FOR_TARGET in |
12159 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12160 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12161 | ;; | |
2429c060 | 12162 | *) |
c6b750e1 DJ |
12163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12164 | for as_dir in $gcc_cv_tool_dirs | |
12165 | do | |
12166 | IFS=$as_save_IFS | |
12167 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12168 | for ac_exec_ext in '' $ac_executable_extensions; do |
12169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12170 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12172 | break 2 |
12173 | fi | |
12174 | done | |
81ecdfbb RW |
12175 | done |
12176 | IFS=$as_save_IFS | |
c6b750e1 | 12177 | |
2429c060 PB |
12178 | ;; |
12179 | esac | |
12180 | fi | |
c6b750e1 | 12181 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12182 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12184 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12185 | else |
81ecdfbb RW |
12186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12187 | $as_echo "no" >&6; } | |
2429c060 PB |
12188 | fi |
12189 | ||
81ecdfbb | 12190 | |
2429c060 PB |
12191 | fi |
12192 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12193 | |
12194 | ||
12195 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12196 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12197 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12198 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12199 | fi | |
12200 | ||
12201 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12202 | for ncn_progname in objdump; do | |
12203 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12204 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12206 | $as_echo_n "checking for $ac_word... " >&6; } | |
12207 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12208 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12209 | else |
12210 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12211 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12212 | else | |
12213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12214 | for as_dir in $PATH | |
12215 | do | |
12216 | IFS=$as_save_IFS | |
12217 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12218 | for ac_exec_ext in '' $ac_executable_extensions; do |
12219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12220 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12222 | break 2 |
12223 | fi | |
12224 | done | |
81ecdfbb RW |
12225 | done |
12226 | IFS=$as_save_IFS | |
9a819804 AO |
12227 | |
12228 | fi | |
12229 | fi | |
12230 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12231 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12233 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12234 | else |
81ecdfbb RW |
12235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12236 | $as_echo "no" >&6; } | |
9a819804 AO |
12237 | fi |
12238 | ||
81ecdfbb | 12239 | |
9a819804 AO |
12240 | done |
12241 | fi | |
12242 | ||
12243 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12244 | for ncn_progname in objdump; do |
81ecdfbb RW |
12245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12246 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12247 | if test -x $with_build_time_tools/${ncn_progname}; then |
12248 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12250 | $as_echo "yes" >&6; } | |
2429c060 PB |
12251 | break |
12252 | else | |
81ecdfbb RW |
12253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12254 | $as_echo "no" >&6; } | |
2429c060 PB |
12255 | fi |
12256 | done | |
12257 | fi | |
12258 | ||
12259 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12260 | for ncn_progname in objdump; do | |
12261 | if test -n "$ncn_target_tool_prefix"; then | |
12262 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12263 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12265 | $as_echo_n "checking for $ac_word... " >&6; } | |
12266 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12267 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12268 | else |
12269 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12270 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12271 | else | |
c6b750e1 DJ |
12272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12273 | for as_dir in $PATH | |
12274 | do | |
12275 | IFS=$as_save_IFS | |
12276 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12277 | for ac_exec_ext in '' $ac_executable_extensions; do |
12278 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12279 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12280 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12281 | break 2 |
12282 | fi | |
12283 | done | |
81ecdfbb RW |
12284 | done |
12285 | IFS=$as_save_IFS | |
c6b750e1 | 12286 | |
5ae72758 DJ |
12287 | fi |
12288 | fi | |
c6b750e1 | 12289 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12290 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12292 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12293 | else |
81ecdfbb RW |
12294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12295 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12296 | fi |
12297 | ||
81ecdfbb | 12298 | |
2429c060 PB |
12299 | fi |
12300 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12301 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12302 | set dummy ${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_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12306 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12307 | else |
12308 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12309 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
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_OBJDUMP_FOR_TARGET="${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 | |
5ae72758 DJ |
12326 | fi |
12327 | fi | |
c6b750e1 | 12328 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12329 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12331 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12332 | else |
81ecdfbb RW |
12333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12334 | $as_echo "no" >&6; } | |
5ae72758 | 12335 | fi |
c6b750e1 | 12336 | |
81ecdfbb | 12337 | |
2429c060 PB |
12338 | fi |
12339 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12340 | done | |
12341 | fi | |
c6b750e1 | 12342 | |
5ae72758 DJ |
12343 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12344 | set dummy objdump | |
12345 | if test $build = $target ; then | |
12346 | OBJDUMP_FOR_TARGET="$2" | |
12347 | else | |
12348 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12349 | fi | |
d3f5afc4 MS |
12350 | else |
12351 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12352 | fi |
12353 | ||
3a35eeb3 PB |
12354 | else |
12355 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12356 | fi |
12357 | ||
12358 | ||
12359 | ||
12360 | ||
12361 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12362 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12364 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12365 | if test -x $with_build_time_tools/ranlib; then |
12366 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12367 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12369 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12370 | else |
81ecdfbb RW |
12371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12372 | $as_echo "no" >&6; } | |
3a35eeb3 | 12373 | fi |
2429c060 PB |
12374 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12375 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12376 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12377 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12378 | fi |
12379 | fi | |
c6b750e1 | 12380 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12381 | # Extract the first word of "ranlib", so it can be a program name with args. |
12382 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12384 | $as_echo_n "checking for $ac_word... " >&6; } | |
12385 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12386 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12387 | else |
c6b750e1 DJ |
12388 | case $RANLIB_FOR_TARGET in |
12389 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12390 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12391 | ;; | |
2429c060 | 12392 | *) |
c6b750e1 DJ |
12393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12394 | for as_dir in $gcc_cv_tool_dirs | |
12395 | do | |
12396 | IFS=$as_save_IFS | |
12397 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12398 | for ac_exec_ext in '' $ac_executable_extensions; do |
12399 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12400 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12401 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12402 | break 2 |
12403 | fi | |
12404 | done | |
81ecdfbb RW |
12405 | done |
12406 | IFS=$as_save_IFS | |
c6b750e1 | 12407 | |
2429c060 PB |
12408 | ;; |
12409 | esac | |
12410 | fi | |
c6b750e1 | 12411 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12412 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12414 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12415 | else |
81ecdfbb RW |
12416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12417 | $as_echo "no" >&6; } | |
2429c060 PB |
12418 | fi |
12419 | ||
81ecdfbb | 12420 | |
2429c060 PB |
12421 | fi |
12422 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12423 | |
12424 | ||
12425 | if test -n "$RANLIB_FOR_TARGET"; then | |
12426 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12427 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12428 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12429 | fi | |
12430 | ||
12431 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12432 | for ncn_progname in ranlib; do | |
12433 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12434 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12436 | $as_echo_n "checking for $ac_word... " >&6; } | |
12437 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12438 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12439 | else |
12440 | if test -n "$RANLIB_FOR_TARGET"; then | |
12441 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12442 | else | |
12443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12444 | for as_dir in $PATH | |
12445 | do | |
12446 | IFS=$as_save_IFS | |
12447 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12448 | for ac_exec_ext in '' $ac_executable_extensions; do |
12449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12450 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12451 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12452 | break 2 |
12453 | fi | |
12454 | done | |
81ecdfbb RW |
12455 | done |
12456 | IFS=$as_save_IFS | |
9a819804 AO |
12457 | |
12458 | fi | |
12459 | fi | |
12460 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12461 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12463 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12464 | else |
81ecdfbb RW |
12465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12466 | $as_echo "no" >&6; } | |
9a819804 AO |
12467 | fi |
12468 | ||
81ecdfbb | 12469 | |
9a819804 AO |
12470 | done |
12471 | fi | |
12472 | ||
12473 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12474 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12476 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12477 | if test -x $with_build_time_tools/${ncn_progname}; then |
12478 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12480 | $as_echo "yes" >&6; } | |
2429c060 PB |
12481 | break |
12482 | else | |
81ecdfbb RW |
12483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12484 | $as_echo "no" >&6; } | |
2429c060 PB |
12485 | fi |
12486 | done | |
12487 | fi | |
12488 | ||
12489 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12490 | for ncn_progname in ranlib; do | |
12491 | if test -n "$ncn_target_tool_prefix"; then | |
12492 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12493 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12495 | $as_echo_n "checking for $ac_word... " >&6; } | |
12496 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12497 | $as_echo_n "(cached) " >&6 | |
859789af | 12498 | else |
55db4b87 PB |
12499 | if test -n "$RANLIB_FOR_TARGET"; then |
12500 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12501 | else |
c6b750e1 DJ |
12502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12503 | for as_dir in $PATH | |
12504 | do | |
12505 | IFS=$as_save_IFS | |
12506 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12507 | for ac_exec_ext in '' $ac_executable_extensions; do |
12508 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12509 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12511 | break 2 |
12512 | fi | |
12513 | done | |
81ecdfbb RW |
12514 | done |
12515 | IFS=$as_save_IFS | |
c6b750e1 | 12516 | |
859789af AC |
12517 | fi |
12518 | fi | |
c6b750e1 | 12519 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12520 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12522 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12523 | else |
81ecdfbb RW |
12524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12525 | $as_echo "no" >&6; } | |
859789af AC |
12526 | fi |
12527 | ||
81ecdfbb | 12528 | |
2429c060 PB |
12529 | fi |
12530 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12531 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12532 | set dummy ${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_RANLIB_FOR_TARGET+set}" = set; then : | |
12536 | $as_echo_n "(cached) " >&6 | |
859789af | 12537 | else |
05cbd757 PB |
12538 | if test -n "$RANLIB_FOR_TARGET"; then |
12539 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12540 | else |
c6b750e1 DJ |
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_RANLIB_FOR_TARGET="${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 | |
859789af AC |
12556 | fi |
12557 | fi | |
c6b750e1 | 12558 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12559 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12561 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12562 | else |
81ecdfbb RW |
12563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12564 | $as_echo "no" >&6; } | |
859789af | 12565 | fi |
c6b750e1 | 12566 | |
81ecdfbb | 12567 | |
2429c060 PB |
12568 | fi |
12569 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12570 | done | |
12571 | fi | |
c6b750e1 | 12572 | |
2429c060 PB |
12573 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
12574 | set dummy ranlib | |
12575 | if test $build = $target ; then | |
12576 | RANLIB_FOR_TARGET="$2" | |
12577 | else | |
12578 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 12579 | fi |
d3f5afc4 MS |
12580 | else |
12581 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 12582 | fi |
05cbd757 | 12583 | |
3a35eeb3 PB |
12584 | else |
12585 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
12586 | fi |
12587 | ||
2429c060 PB |
12588 | |
12589 | ||
12590 | ||
12591 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
12592 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
12594 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12595 | if test -x $with_build_time_tools/strip; then |
12596 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
12597 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
12598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
12599 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12600 | else |
81ecdfbb RW |
12601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12602 | $as_echo "no" >&6; } | |
3a35eeb3 | 12603 | fi |
2429c060 PB |
12604 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12605 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
12606 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
12607 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
12608 | fi |
12609 | fi | |
c6b750e1 | 12610 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12611 | # Extract the first word of "strip", so it can be a program name with args. |
12612 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
12613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12614 | $as_echo_n "checking for $ac_word... " >&6; } | |
12615 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
12616 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12617 | else |
c6b750e1 DJ |
12618 | case $STRIP_FOR_TARGET in |
12619 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12620 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
12621 | ;; | |
2429c060 | 12622 | *) |
c6b750e1 DJ |
12623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12624 | for as_dir in $gcc_cv_tool_dirs | |
12625 | do | |
12626 | IFS=$as_save_IFS | |
12627 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12628 | for ac_exec_ext in '' $ac_executable_extensions; do |
12629 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12630 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12631 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12632 | break 2 |
12633 | fi | |
12634 | done | |
81ecdfbb RW |
12635 | done |
12636 | IFS=$as_save_IFS | |
c6b750e1 | 12637 | |
2429c060 PB |
12638 | ;; |
12639 | esac | |
12640 | fi | |
c6b750e1 | 12641 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 12642 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12644 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 12645 | else |
81ecdfbb RW |
12646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12647 | $as_echo "no" >&6; } | |
2429c060 PB |
12648 | fi |
12649 | ||
81ecdfbb | 12650 | |
2429c060 PB |
12651 | fi |
12652 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
12653 | |
12654 | ||
12655 | if test -n "$STRIP_FOR_TARGET"; then | |
12656 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
12657 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12658 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12659 | fi | |
12660 | ||
12661 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12662 | for ncn_progname in strip; do | |
12663 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12664 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12666 | $as_echo_n "checking for $ac_word... " >&6; } | |
12667 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12668 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12669 | else |
12670 | if test -n "$STRIP_FOR_TARGET"; then | |
12671 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
12672 | else | |
12673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12674 | for as_dir in $PATH | |
12675 | do | |
12676 | IFS=$as_save_IFS | |
12677 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12678 | for ac_exec_ext in '' $ac_executable_extensions; do |
12679 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12680 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12682 | break 2 |
12683 | fi | |
12684 | done | |
81ecdfbb RW |
12685 | done |
12686 | IFS=$as_save_IFS | |
9a819804 AO |
12687 | |
12688 | fi | |
12689 | fi | |
12690 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
12691 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
12692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12693 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 12694 | else |
81ecdfbb RW |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12696 | $as_echo "no" >&6; } | |
9a819804 AO |
12697 | fi |
12698 | ||
81ecdfbb | 12699 | |
9a819804 AO |
12700 | done |
12701 | fi | |
12702 | ||
12703 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12704 | for ncn_progname in strip; do |
81ecdfbb RW |
12705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12706 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12707 | if test -x $with_build_time_tools/${ncn_progname}; then |
12708 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12710 | $as_echo "yes" >&6; } | |
2429c060 PB |
12711 | break |
12712 | else | |
81ecdfbb RW |
12713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12714 | $as_echo "no" >&6; } | |
2429c060 PB |
12715 | fi |
12716 | done | |
12717 | fi | |
12718 | ||
12719 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
12720 | for ncn_progname in strip; do | |
12721 | if test -n "$ncn_target_tool_prefix"; then | |
12722 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12723 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12725 | $as_echo_n "checking for $ac_word... " >&6; } | |
12726 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
12727 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12728 | else |
12729 | if test -n "$STRIP_FOR_TARGET"; then | |
12730 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
12731 | else |
12732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12733 | for as_dir in $PATH | |
12734 | do | |
12735 | IFS=$as_save_IFS | |
12736 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12737 | for ac_exec_ext in '' $ac_executable_extensions; do |
12738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12739 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12741 | break 2 |
12742 | fi | |
12743 | done | |
81ecdfbb RW |
12744 | done |
12745 | IFS=$as_save_IFS | |
c6b750e1 | 12746 | |
7e0f7140 GK |
12747 | fi |
12748 | fi | |
c6b750e1 | 12749 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12750 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12752 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12753 | else |
81ecdfbb RW |
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12755 | $as_echo "no" >&6; } | |
7e0f7140 GK |
12756 | fi |
12757 | ||
81ecdfbb | 12758 | |
2429c060 PB |
12759 | fi |
12760 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
12761 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12762 | set dummy ${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_STRIP_FOR_TARGET+set}" = set; then : | |
12766 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
12767 | else |
12768 | if test -n "$STRIP_FOR_TARGET"; then | |
12769 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
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_STRIP_FOR_TARGET="${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 | |
7e0f7140 GK |
12786 | fi |
12787 | fi | |
c6b750e1 | 12788 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 12789 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
12791 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 12792 | else |
81ecdfbb RW |
12793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12794 | $as_echo "no" >&6; } | |
7e0f7140 | 12795 | fi |
c6b750e1 | 12796 | |
81ecdfbb | 12797 | |
2429c060 PB |
12798 | fi |
12799 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
12800 | done | |
12801 | fi | |
c6b750e1 | 12802 | |
7e0f7140 GK |
12803 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
12804 | set dummy strip | |
12805 | if test $build = $target ; then | |
12806 | STRIP_FOR_TARGET="$2" | |
12807 | else | |
12808 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12809 | fi | |
d3f5afc4 MS |
12810 | else |
12811 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
12812 | fi |
12813 | ||
3a35eeb3 PB |
12814 | else |
12815 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
12816 | fi |
12817 | ||
12818 | ||
12819 | ||
12820 | ||
12821 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
12822 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
12824 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12825 | if test -x $with_build_time_tools/windres; then |
12826 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
12827 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
12829 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 12830 | else |
81ecdfbb RW |
12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12832 | $as_echo "no" >&6; } | |
3a35eeb3 | 12833 | fi |
2429c060 PB |
12834 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12835 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
12836 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
12837 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
12838 | fi |
12839 | fi | |
c6b750e1 | 12840 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12841 | # Extract the first word of "windres", so it can be a program name with args. |
12842 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
12843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12844 | $as_echo_n "checking for $ac_word... " >&6; } | |
12845 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
12846 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12847 | else |
c6b750e1 DJ |
12848 | case $WINDRES_FOR_TARGET in |
12849 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12850 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
12851 | ;; | |
2429c060 | 12852 | *) |
c6b750e1 DJ |
12853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12854 | for as_dir in $gcc_cv_tool_dirs | |
12855 | do | |
12856 | IFS=$as_save_IFS | |
12857 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12858 | for ac_exec_ext in '' $ac_executable_extensions; do |
12859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12860 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12862 | break 2 |
12863 | fi | |
12864 | done | |
81ecdfbb RW |
12865 | done |
12866 | IFS=$as_save_IFS | |
c6b750e1 | 12867 | |
2429c060 PB |
12868 | ;; |
12869 | esac | |
12870 | fi | |
c6b750e1 | 12871 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 12872 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12874 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 12875 | else |
81ecdfbb RW |
12876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12877 | $as_echo "no" >&6; } | |
2429c060 PB |
12878 | fi |
12879 | ||
81ecdfbb | 12880 | |
2429c060 PB |
12881 | fi |
12882 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
12883 | |
12884 | ||
12885 | if test -n "$WINDRES_FOR_TARGET"; then | |
12886 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
12887 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12888 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12889 | fi | |
12890 | ||
12891 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12892 | for ncn_progname in windres; do | |
12893 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12894 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12896 | $as_echo_n "checking for $ac_word... " >&6; } | |
12897 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12898 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12899 | else |
12900 | if test -n "$WINDRES_FOR_TARGET"; then | |
12901 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
12902 | else | |
12903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12904 | for as_dir in $PATH | |
12905 | do | |
12906 | IFS=$as_save_IFS | |
12907 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12908 | for ac_exec_ext in '' $ac_executable_extensions; do |
12909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12910 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12912 | break 2 |
12913 | fi | |
12914 | done | |
81ecdfbb RW |
12915 | done |
12916 | IFS=$as_save_IFS | |
9a819804 AO |
12917 | |
12918 | fi | |
12919 | fi | |
12920 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
12921 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12923 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 12924 | else |
81ecdfbb RW |
12925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12926 | $as_echo "no" >&6; } | |
9a819804 AO |
12927 | fi |
12928 | ||
81ecdfbb | 12929 | |
9a819804 AO |
12930 | done |
12931 | fi | |
12932 | ||
12933 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12934 | for ncn_progname in windres; do |
81ecdfbb RW |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12936 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12937 | if test -x $with_build_time_tools/${ncn_progname}; then |
12938 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12940 | $as_echo "yes" >&6; } | |
2429c060 PB |
12941 | break |
12942 | else | |
81ecdfbb RW |
12943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12944 | $as_echo "no" >&6; } | |
2429c060 PB |
12945 | fi |
12946 | done | |
12947 | fi | |
12948 | ||
12949 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
12950 | for ncn_progname in windres; do | |
12951 | if test -n "$ncn_target_tool_prefix"; then | |
12952 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12953 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12955 | $as_echo_n "checking for $ac_word... " >&6; } | |
12956 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
12957 | $as_echo_n "(cached) " >&6 | |
859789af | 12958 | else |
55db4b87 PB |
12959 | if test -n "$WINDRES_FOR_TARGET"; then |
12960 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 12961 | else |
c6b750e1 DJ |
12962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12963 | for as_dir in $PATH | |
12964 | do | |
12965 | IFS=$as_save_IFS | |
12966 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12967 | for ac_exec_ext in '' $ac_executable_extensions; do |
12968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12969 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12970 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12971 | break 2 |
12972 | fi | |
12973 | done | |
81ecdfbb RW |
12974 | done |
12975 | IFS=$as_save_IFS | |
c6b750e1 | 12976 | |
859789af AC |
12977 | fi |
12978 | fi | |
c6b750e1 | 12979 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 12980 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
12981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
12982 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 12983 | else |
81ecdfbb RW |
12984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12985 | $as_echo "no" >&6; } | |
859789af AC |
12986 | fi |
12987 | ||
81ecdfbb | 12988 | |
2429c060 PB |
12989 | fi |
12990 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
12991 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12992 | set dummy ${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_WINDRES_FOR_TARGET+set}" = set; then : | |
12996 | $as_echo_n "(cached) " >&6 | |
859789af | 12997 | else |
05cbd757 PB |
12998 | if test -n "$WINDRES_FOR_TARGET"; then |
12999 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13000 | else |
c6b750e1 DJ |
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 | |
c6b750e1 | 13008 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13010 | break 2 |
13011 | fi | |
13012 | done | |
81ecdfbb RW |
13013 | done |
13014 | IFS=$as_save_IFS | |
c6b750e1 | 13015 | |
859789af AC |
13016 | fi |
13017 | fi | |
c6b750e1 | 13018 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13019 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13021 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13022 | else |
81ecdfbb RW |
13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13024 | $as_echo "no" >&6; } | |
859789af | 13025 | fi |
c6b750e1 | 13026 | |
81ecdfbb | 13027 | |
2429c060 PB |
13028 | fi |
13029 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13030 | done | |
13031 | fi | |
c6b750e1 | 13032 | |
05cbd757 PB |
13033 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13034 | set dummy windres | |
13035 | if test $build = $target ; then | |
13036 | WINDRES_FOR_TARGET="$2" | |
859789af | 13037 | else |
05cbd757 | 13038 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13039 | fi |
d3f5afc4 MS |
13040 | else |
13041 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13042 | fi |
13043 | ||
3a35eeb3 PB |
13044 | else |
13045 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13046 | fi |
13047 | ||
852e5f18 | 13048 | |
0c24b341 NC |
13049 | |
13050 | ||
13051 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13052 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13054 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13055 | if test -x $with_build_time_tools/windmc; then |
13056 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13057 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13059 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13060 | else |
81ecdfbb RW |
13061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13062 | $as_echo "no" >&6; } | |
0c24b341 NC |
13063 | fi |
13064 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13065 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13066 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13067 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13068 | fi | |
13069 | fi | |
13070 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13071 | # Extract the first word of "windmc", so it can be a program name with args. | |
13072 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13074 | $as_echo_n "checking for $ac_word... " >&6; } | |
13075 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13076 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13077 | else |
13078 | case $WINDMC_FOR_TARGET in | |
13079 | [\\/]* | ?:[\\/]*) | |
13080 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13081 | ;; | |
13082 | *) | |
13083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13084 | for as_dir in $gcc_cv_tool_dirs | |
13085 | do | |
13086 | IFS=$as_save_IFS | |
13087 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13088 | for ac_exec_ext in '' $ac_executable_extensions; do |
13089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13090 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13092 | break 2 |
13093 | fi | |
13094 | done | |
81ecdfbb RW |
13095 | done |
13096 | IFS=$as_save_IFS | |
0c24b341 NC |
13097 | |
13098 | ;; | |
13099 | esac | |
13100 | fi | |
13101 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13102 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13104 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13105 | else |
81ecdfbb RW |
13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13107 | $as_echo "no" >&6; } | |
0c24b341 NC |
13108 | fi |
13109 | ||
81ecdfbb | 13110 | |
0c24b341 NC |
13111 | fi |
13112 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13113 | ||
13114 | ||
13115 | if test -n "$WINDMC_FOR_TARGET"; then | |
13116 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13117 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13118 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13119 | fi | |
13120 | ||
13121 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13122 | for ncn_progname in windmc; do | |
13123 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13124 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13126 | $as_echo_n "checking for $ac_word... " >&6; } | |
13127 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13128 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13129 | else |
13130 | if test -n "$WINDMC_FOR_TARGET"; then | |
13131 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13132 | else | |
13133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13134 | for as_dir in $PATH | |
13135 | do | |
13136 | IFS=$as_save_IFS | |
13137 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13138 | for ac_exec_ext in '' $ac_executable_extensions; do |
13139 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13140 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13142 | break 2 |
13143 | fi | |
13144 | done | |
81ecdfbb RW |
13145 | done |
13146 | IFS=$as_save_IFS | |
0c24b341 NC |
13147 | |
13148 | fi | |
13149 | fi | |
13150 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13151 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13153 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13154 | else |
81ecdfbb RW |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13156 | $as_echo "no" >&6; } | |
0c24b341 NC |
13157 | fi |
13158 | ||
81ecdfbb | 13159 | |
0c24b341 NC |
13160 | done |
13161 | fi | |
13162 | ||
13163 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13164 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13166 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13167 | if test -x $with_build_time_tools/${ncn_progname}; then |
13168 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13170 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13171 | break |
13172 | else | |
81ecdfbb RW |
13173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13174 | $as_echo "no" >&6; } | |
0c24b341 NC |
13175 | fi |
13176 | done | |
13177 | fi | |
13178 | ||
13179 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13180 | for ncn_progname in windmc; do | |
13181 | if test -n "$ncn_target_tool_prefix"; then | |
13182 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13183 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13185 | $as_echo_n "checking for $ac_word... " >&6; } | |
13186 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13187 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13188 | else |
13189 | if test -n "$WINDMC_FOR_TARGET"; then | |
13190 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13191 | else | |
13192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13193 | for as_dir in $PATH | |
13194 | do | |
13195 | IFS=$as_save_IFS | |
13196 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13197 | for ac_exec_ext in '' $ac_executable_extensions; do |
13198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13199 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13201 | break 2 |
13202 | fi | |
13203 | done | |
81ecdfbb RW |
13204 | done |
13205 | IFS=$as_save_IFS | |
0c24b341 NC |
13206 | |
13207 | fi | |
13208 | fi | |
13209 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13210 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13212 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13213 | else |
81ecdfbb RW |
13214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13215 | $as_echo "no" >&6; } | |
0c24b341 NC |
13216 | fi |
13217 | ||
81ecdfbb | 13218 | |
0c24b341 NC |
13219 | fi |
13220 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13221 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13222 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13224 | $as_echo_n "checking for $ac_word... " >&6; } | |
13225 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13226 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13227 | else |
13228 | if test -n "$WINDMC_FOR_TARGET"; then | |
13229 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13230 | else | |
13231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13232 | for as_dir in $PATH | |
13233 | do | |
13234 | IFS=$as_save_IFS | |
13235 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13236 | for ac_exec_ext in '' $ac_executable_extensions; do |
13237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13238 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13240 | break 2 |
13241 | fi | |
13242 | done | |
81ecdfbb RW |
13243 | done |
13244 | IFS=$as_save_IFS | |
0c24b341 NC |
13245 | |
13246 | fi | |
13247 | fi | |
13248 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13249 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13251 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13252 | else |
81ecdfbb RW |
13253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13254 | $as_echo "no" >&6; } | |
0c24b341 NC |
13255 | fi |
13256 | ||
81ecdfbb | 13257 | |
0c24b341 NC |
13258 | fi |
13259 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13260 | done | |
13261 | fi | |
13262 | ||
13263 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13264 | set dummy windmc | |
13265 | if test $build = $target ; then | |
13266 | WINDMC_FOR_TARGET="$2" | |
13267 | else | |
13268 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13269 | fi | |
13270 | else | |
13271 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13272 | fi | |
13273 | ||
13274 | else | |
13275 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13276 | fi | |
13277 | ||
13278 | ||
be01d343 PB |
13279 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13280 | ||
81ecdfbb RW |
13281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13282 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13283 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13284 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13285 | # We already found the complete path | |
b8025f34 | 13286 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13288 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13289 | else |
13290 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13292 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13293 | fi |
be01d343 PB |
13294 | else |
13295 | ok=yes | |
13296 | case " ${configdirs} " in | |
13297 | *" binutils "*) ;; | |
13298 | *) ok=no ;; | |
13299 | esac | |
c6b750e1 | 13300 | |
be01d343 PB |
13301 | if test $ok = yes; then |
13302 | # An in-tree tool is available and we can use it | |
13303 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13305 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13306 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13307 | # We already found the complete path | |
b8025f34 | 13308 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13310 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13311 | elif test "x$target" = "x$host"; then |
13312 | # We can use an host tool | |
13313 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13315 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13316 | else |
13317 | # We need a cross tool | |
81ecdfbb RW |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13319 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13320 | fi |
13321 | fi | |
4b900473 | 13322 | |
81ecdfbb RW |
13323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13324 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13325 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13326 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13327 | # We already found the complete path | |
b8025f34 | 13328 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13330 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13331 | else |
13332 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13334 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13335 | fi |
be01d343 PB |
13336 | else |
13337 | ok=yes | |
13338 | case " ${configdirs} " in | |
13339 | *" gas "*) ;; | |
13340 | *) ok=no ;; | |
13341 | esac | |
c6b750e1 | 13342 | |
be01d343 PB |
13343 | if test $ok = yes; then |
13344 | # An in-tree tool is available and we can use it | |
13345 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
13346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13347 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13348 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13349 | # We already found the complete path | |
b8025f34 | 13350 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13352 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13353 | elif test "x$target" = "x$host"; then |
13354 | # We can use an host tool | |
13355 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
13356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13357 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13358 | else |
13359 | # We need a cross tool | |
81ecdfbb RW |
13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13361 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13362 | fi |
13363 | fi | |
4b900473 | 13364 | |
81ecdfbb RW |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
13366 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 13367 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13368 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13369 | # We already found the complete path | |
b8025f34 | 13370 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13372 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13373 | else |
13374 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13376 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13377 | fi |
be01d343 PB |
13378 | else |
13379 | ok=yes | |
13380 | case " ${configdirs} " in | |
13381 | *" gcc "*) ;; | |
13382 | *) ok=no ;; | |
13383 | esac | |
c6b750e1 | 13384 | |
be01d343 PB |
13385 | if test $ok = yes; then |
13386 | # An in-tree tool is available and we can use it | |
13387 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13389 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13390 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
13391 | # We already found the complete path | |
b8025f34 | 13392 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
13393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13394 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13395 | elif test "x$target" = "x$host"; then |
13396 | # We can use an host tool | |
13397 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
13398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13399 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13400 | else |
13401 | # We need a cross tool | |
81ecdfbb RW |
13402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13403 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13404 | fi |
13405 | fi | |
4b900473 | 13406 | |
81ecdfbb RW |
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
13408 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 13409 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13410 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13411 | # We already found the complete path | |
b8025f34 | 13412 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13414 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13415 | else |
13416 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13418 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13419 | fi |
be01d343 PB |
13420 | else |
13421 | ok=yes | |
13422 | case " ${configdirs} " in | |
13423 | *" gcc "*) ;; | |
13424 | *) ok=no ;; | |
13425 | esac | |
13426 | case ,${enable_languages}, in | |
13427 | *,c++,*) ;; | |
13428 | *) ok=no ;; | |
13429 | esac | |
13430 | if test $ok = yes; then | |
13431 | # An in-tree tool is available and we can use it | |
87cda2cf | 13432 | 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 |
13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13434 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13435 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
13436 | # We already found the complete path | |
b8025f34 | 13437 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
13438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13439 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13440 | elif test "x$target" = "x$host"; then |
13441 | # We can use an host tool | |
13442 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13444 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13445 | else |
13446 | # We need a cross tool | |
81ecdfbb RW |
13447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13448 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13449 | fi |
13450 | fi | |
4b900473 | 13451 | |
81ecdfbb RW |
13452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
13453 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 13454 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13455 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13456 | # We already found the complete path | |
b8025f34 | 13457 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13459 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13460 | else |
13461 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13463 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13464 | fi |
be01d343 PB |
13465 | else |
13466 | ok=yes | |
13467 | case " ${configdirs} " in | |
13468 | *" gcc "*) ;; | |
13469 | *) ok=no ;; | |
13470 | esac | |
13471 | case ,${enable_languages}, in | |
13472 | *,c++,*) ;; | |
13473 | *) ok=no ;; | |
13474 | esac | |
13475 | if test $ok = yes; then | |
13476 | # An in-tree tool is available and we can use it | |
13477 | 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 |
13478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13479 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13480 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
13481 | # We already found the complete path | |
b8025f34 | 13482 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13484 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13485 | elif test "x$target" = "x$host"; then |
13486 | # We can use an host tool | |
13487 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
13488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13489 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13490 | else |
13491 | # We need a cross tool | |
81ecdfbb RW |
13492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13493 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13494 | fi |
13495 | fi | |
4b900473 | 13496 | |
81ecdfbb RW |
13497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
13498 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 13499 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13500 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13501 | # We already found the complete path | |
b8025f34 | 13502 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13504 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13505 | else |
13506 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13508 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13509 | fi |
be01d343 PB |
13510 | else |
13511 | ok=yes | |
13512 | case " ${configdirs} " in | |
13513 | *" binutils "*) ;; | |
13514 | *) ok=no ;; | |
13515 | esac | |
c6b750e1 | 13516 | |
be01d343 PB |
13517 | if test $ok = yes; then |
13518 | # An in-tree tool is available and we can use it | |
13519 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13521 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13522 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
13523 | # We already found the complete path | |
b8025f34 | 13524 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
13525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13526 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13527 | elif test "x$target" = "x$host"; then |
13528 | # We can use an host tool | |
13529 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
13530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13531 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13532 | else |
13533 | # We need a cross tool | |
81ecdfbb RW |
13534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13535 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13536 | fi |
13537 | fi | |
4b900473 | 13538 | |
81ecdfbb RW |
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
13540 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 13541 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13542 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13543 | # We already found the complete path | |
b8025f34 | 13544 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13546 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13547 | else |
13548 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13550 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13551 | fi |
be01d343 PB |
13552 | else |
13553 | ok=yes | |
13554 | case " ${configdirs} " in | |
13555 | *" gcc "*) ;; | |
13556 | *) ok=no ;; | |
13557 | esac | |
c6b750e1 | 13558 | |
be01d343 PB |
13559 | if test $ok = yes; then |
13560 | # An in-tree tool is available and we can use it | |
13561 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13563 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13564 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
13565 | # We already found the complete path | |
b8025f34 | 13566 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
13567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13568 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13569 | elif test "x$target" = "x$host"; then |
13570 | # We can use an host tool | |
13571 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
13572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13573 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13574 | else |
13575 | # We need a cross tool | |
81ecdfbb RW |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13577 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13578 | fi |
13579 | fi | |
4b900473 | 13580 | |
81ecdfbb RW |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
13582 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 13583 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13584 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13585 | # We already found the complete path | |
b8025f34 | 13586 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13588 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13589 | else |
13590 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13592 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13593 | fi |
be01d343 PB |
13594 | else |
13595 | ok=yes | |
13596 | case " ${configdirs} " in | |
13597 | *" gcc "*) ;; | |
13598 | *) ok=no ;; | |
13599 | esac | |
13600 | case ,${enable_languages}, in | |
13601 | *,java,*) ;; | |
13602 | *) ok=no ;; | |
13603 | esac | |
13604 | if test $ok = yes; then | |
13605 | # An in-tree tool is available and we can use it | |
13606 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13608 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13609 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
13610 | # We already found the complete path | |
b8025f34 | 13611 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
13612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13613 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13614 | elif test "x$target" = "x$host"; then |
13615 | # We can use an host tool | |
13616 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
13617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13618 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13619 | else |
13620 | # We need a cross tool | |
81ecdfbb RW |
13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13622 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13623 | fi |
13624 | fi | |
4b900473 | 13625 | |
81ecdfbb RW |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
13627 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 13628 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13629 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13630 | # We already found the complete path | |
b8025f34 | 13631 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13633 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13634 | else |
13635 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13637 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13638 | fi |
be01d343 PB |
13639 | else |
13640 | ok=yes | |
13641 | case " ${configdirs} " in | |
13642 | *" gcc "*) ;; | |
13643 | *) ok=no ;; | |
13644 | esac | |
13645 | case ,${enable_languages}, in | |
13646 | *,fortran,*) ;; | |
13647 | *) ok=no ;; | |
13648 | esac | |
13649 | if test $ok = yes; then | |
13650 | # An in-tree tool is available and we can use it | |
13651 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
13652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13653 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13654 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
13655 | # We already found the complete path | |
b8025f34 | 13656 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
13657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13658 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13659 | elif test "x$target" = "x$host"; then |
13660 | # We can use an host tool | |
13661 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
13662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13663 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13664 | else |
13665 | # We need a cross tool | |
81ecdfbb RW |
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13667 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13668 | fi |
13669 | fi | |
4b900473 | 13670 | |
e552509b ILT |
13671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
13672 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
13673 | if test "x${build}" != "x${host}" ; then | |
13674 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13675 | # We already found the complete path | |
13676 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13678 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13679 | else | |
13680 | # Canadian cross, just use what we found | |
13681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13682 | $as_echo "pre-installed" >&6; } | |
13683 | fi | |
13684 | else | |
13685 | ok=yes | |
13686 | case " ${configdirs} " in | |
13687 | *" gcc "*) ;; | |
13688 | *) ok=no ;; | |
13689 | esac | |
13690 | case ,${enable_languages}, in | |
13691 | *,go,*) ;; | |
13692 | *) ok=no ;; | |
13693 | esac | |
13694 | if test $ok = yes; then | |
13695 | # An in-tree tool is available and we can use it | |
13696 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
13697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
13698 | $as_echo "just compiled" >&6; } | |
13699 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
13700 | # We already found the complete path | |
13701 | ac_dir=`dirname $GOC_FOR_TARGET` | |
13702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
13703 | $as_echo "pre-installed in $ac_dir" >&6; } | |
13704 | elif test "x$target" = "x$host"; then | |
13705 | # We can use an host tool | |
13706 | GOC_FOR_TARGET='$(GOC)' | |
13707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
13708 | $as_echo "host tool" >&6; } | |
13709 | else | |
13710 | # We need a cross tool | |
13711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
13712 | $as_echo "pre-installed" >&6; } | |
13713 | fi | |
13714 | fi | |
13715 | ||
81ecdfbb RW |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
13717 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 13718 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13719 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13720 | # We already found the complete path | |
b8025f34 | 13721 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13723 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13724 | else |
13725 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13727 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13728 | fi |
be01d343 PB |
13729 | else |
13730 | ok=yes | |
13731 | case " ${configdirs} " in | |
13732 | *" ld "*) ;; | |
13733 | *) ok=no ;; | |
13734 | esac | |
c6b750e1 | 13735 | |
be01d343 PB |
13736 | if test $ok = yes; then |
13737 | # An in-tree tool is available and we can use it | |
13738 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
13739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13740 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13741 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
13742 | # We already found the complete path | |
b8025f34 | 13743 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
13744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13745 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13746 | elif test "x$target" = "x$host"; then |
13747 | # We can use an host tool | |
13748 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
13749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13750 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13751 | else |
13752 | # We need a cross tool | |
81ecdfbb RW |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13754 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13755 | fi |
13756 | fi | |
4b900473 | 13757 | |
81ecdfbb RW |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
13759 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 13760 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13761 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13762 | # We already found the complete path | |
b8025f34 | 13763 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13765 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13766 | else |
13767 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13769 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13770 | fi |
be01d343 | 13771 | else |
2429c060 PB |
13772 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
13773 | # We already found the complete path | |
b8025f34 | 13774 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
13775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13776 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 13777 | elif test "x$target" = "x$host"; then |
be01d343 PB |
13778 | # We can use an host tool |
13779 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
13780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13781 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13782 | else |
13783 | # We need a cross tool | |
81ecdfbb RW |
13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13785 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13786 | fi |
13787 | fi | |
4b900473 | 13788 | |
81ecdfbb RW |
13789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
13790 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 13791 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13792 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13793 | # We already found the complete path | |
b8025f34 | 13794 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13796 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13797 | else |
13798 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13800 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13801 | fi |
be01d343 PB |
13802 | else |
13803 | ok=yes | |
13804 | case " ${configdirs} " in | |
13805 | *" binutils "*) ;; | |
13806 | *) ok=no ;; | |
13807 | esac | |
c6b750e1 | 13808 | |
be01d343 PB |
13809 | if test $ok = yes; then |
13810 | # An in-tree tool is available and we can use it | |
13811 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
13812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13813 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13814 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
13815 | # We already found the complete path | |
b8025f34 | 13816 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
13817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13818 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13819 | elif test "x$target" = "x$host"; then |
13820 | # We can use an host tool | |
13821 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
13822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13823 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13824 | else |
13825 | # We need a cross tool | |
81ecdfbb RW |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13827 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13828 | fi |
13829 | fi | |
4b900473 | 13830 | |
81ecdfbb RW |
13831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
13832 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 13833 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13834 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13835 | # We already found the complete path | |
b8025f34 | 13836 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13838 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13839 | else |
13840 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13842 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13843 | fi |
be01d343 PB |
13844 | else |
13845 | ok=yes | |
13846 | case " ${configdirs} " in | |
13847 | *" binutils "*) ;; | |
13848 | *) ok=no ;; | |
13849 | esac | |
c6b750e1 | 13850 | |
be01d343 PB |
13851 | if test $ok = yes; then |
13852 | # An in-tree tool is available and we can use it | |
13853 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13855 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13856 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
13857 | # We already found the complete path | |
b8025f34 | 13858 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
13859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13860 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13861 | elif test "x$target" = "x$host"; then |
13862 | # We can use an host tool | |
13863 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
13864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13865 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13866 | else |
13867 | # We need a cross tool | |
81ecdfbb RW |
13868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13869 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13870 | fi |
13871 | fi | |
4b900473 | 13872 | |
81ecdfbb RW |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
13874 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 13875 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13876 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13877 | # We already found the complete path | |
b8025f34 | 13878 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13880 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13881 | else |
13882 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13884 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13885 | fi |
be01d343 PB |
13886 | else |
13887 | ok=yes | |
13888 | case " ${configdirs} " in | |
13889 | *" binutils "*) ;; | |
13890 | *) ok=no ;; | |
13891 | esac | |
c6b750e1 | 13892 | |
be01d343 PB |
13893 | if test $ok = yes; then |
13894 | # An in-tree tool is available and we can use it | |
13895 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13897 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13898 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
13899 | # We already found the complete path | |
b8025f34 | 13900 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
13901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13902 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13903 | elif test "x$target" = "x$host"; then |
13904 | # We can use an host tool | |
13905 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13907 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13908 | else |
13909 | # We need a cross tool | |
81ecdfbb RW |
13910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13911 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13912 | fi |
13913 | fi | |
4b900473 | 13914 | |
81ecdfbb RW |
13915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
13916 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 13917 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13918 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13919 | # We already found the complete path | |
b8025f34 | 13920 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13922 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13923 | else |
13924 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13926 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13927 | fi |
be01d343 PB |
13928 | else |
13929 | ok=yes | |
13930 | case " ${configdirs} " in | |
13931 | *" binutils "*) ;; | |
13932 | *) ok=no ;; | |
13933 | esac | |
c6b750e1 | 13934 | |
be01d343 PB |
13935 | if test $ok = yes; then |
13936 | # An in-tree tool is available and we can use it | |
9b980aa1 | 13937 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
13938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13939 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13940 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
13941 | # We already found the complete path | |
b8025f34 | 13942 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13944 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13945 | elif test "x$target" = "x$host"; then |
13946 | # We can use an host tool | |
13947 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13949 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13950 | else |
13951 | # We need a cross tool | |
81ecdfbb RW |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13953 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13954 | fi |
13955 | fi | |
4b900473 | 13956 | |
81ecdfbb RW |
13957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
13958 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 13959 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13960 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13961 | # We already found the complete path | |
b8025f34 | 13962 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13964 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
13965 | else |
13966 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13968 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13969 | fi |
be01d343 PB |
13970 | else |
13971 | ok=yes | |
13972 | case " ${configdirs} " in | |
13973 | *" binutils "*) ;; | |
13974 | *) ok=no ;; | |
13975 | esac | |
c6b750e1 | 13976 | |
be01d343 PB |
13977 | if test $ok = yes; then |
13978 | # An in-tree tool is available and we can use it | |
13979 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
13980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13981 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13982 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
13983 | # We already found the complete path | |
b8025f34 | 13984 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
13985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13986 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13987 | elif test "x$target" = "x$host"; then |
13988 | # We can use an host tool | |
13989 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
13990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13991 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13992 | else |
13993 | # We need a cross tool | |
81ecdfbb RW |
13994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13995 | $as_echo "pre-installed" >&6; } | |
be01d343 | 13996 | fi |
a0da8069 | 13997 | fi |
54752a6b | 13998 | |
81ecdfbb RW |
13999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14000 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14001 | if test "x${build}" != "x${host}" ; then |
14002 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14003 | # We already found the complete path | |
14004 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14006 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14007 | else |
14008 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14010 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14011 | fi |
14012 | else | |
14013 | ok=yes | |
14014 | case " ${configdirs} " in | |
14015 | *" binutils "*) ;; | |
14016 | *) ok=no ;; | |
14017 | esac | |
14018 | ||
14019 | if test $ok = yes; then | |
14020 | # An in-tree tool is available and we can use it | |
14021 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14023 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14024 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14025 | # We already found the complete path | |
14026 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14028 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14029 | elif test "x$target" = "x$host"; then |
14030 | # We can use an host tool | |
14031 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14033 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14034 | else |
14035 | # We need a cross tool | |
81ecdfbb RW |
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14037 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14038 | fi |
14039 | fi | |
14040 | ||
54752a6b NN |
14041 | |
14042 | ||
be01d343 | 14043 | |
4b900473 | 14044 | |
a0da8069 NN |
14045 | # Certain tools may need extra flags. |
14046 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14047 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14048 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14049 | ||
be01d343 PB |
14050 | # When building target libraries, except in a Canadian cross, we use |
14051 | # the same toolchain as the compiler we just built. | |
14052 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14053 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14054 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14055 | if test $host = $build; then | |
14056 | case " $configdirs " in | |
14057 | *" gcc "*) | |
14058 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14059 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14060 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14061 | ;; | |
14062 | esac | |
14063 | fi | |
14064 | ||
14065 | ||
14066 | ||
14067 | ||
14068 | ||
81ecdfbb RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14070 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14071 | # Check whether --enable-maintainer-mode was given. | |
14072 | if test "${enable_maintainer_mode+set}" = set; then : | |
14073 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14074 | else |
14075 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14076 | fi |
14077 | ||
14078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14079 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14080 | |
14081 | ||
14082 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14083 | MAINTAINER_MODE_TRUE= | |
14084 | MAINTAINER_MODE_FALSE='#' | |
14085 | else | |
14086 | MAINTAINER_MODE_TRUE='#' | |
14087 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14088 | fi |
3d5e36ae AO |
14089 | MAINT=$MAINTAINER_MODE_TRUE |
14090 | ||
1d39f329 NN |
14091 | # --------------------- |
14092 | # GCC bootstrap support | |
14093 | # --------------------- | |
14094 | ||
14095 | # Stage specific cflags for build. | |
14096 | stage1_cflags="-g" | |
14097 | case $build in | |
14098 | vax-*-*) | |
14099 | case ${GCC} in | |
14100 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14101 | *) stage1_cflags="-g -J" ;; | |
14102 | esac ;; | |
1d39f329 NN |
14103 | esac |
14104 | ||
1d89b610 | 14105 | # This is aimed to mimic bootstrap with a non-GCC compiler to catch problems. |
e8a5fa9c | 14106 | if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then |
1d89b610 PB |
14107 | saved_CFLAGS="$CFLAGS" |
14108 | ||
14109 | # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. | |
14110 | CFLAGS="$CFLAGS -fkeep-inline-functions" | |
81ecdfbb RW |
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5 |
14112 | $as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; } | |
14113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
14114 | /* end confdefs.h. */ |
14115 | ||
2038f525 PB |
14116 | #if (__GNUC__ < 3) \ |
14117 | || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ | |
14118 | || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) | |
14119 | #error http://gcc.gnu.org/PR29382 | |
14120 | #endif | |
14121 | ||
c6b750e1 DJ |
14122 | int |
14123 | main () | |
14124 | { | |
14125 | ||
14126 | ; | |
14127 | return 0; | |
14128 | } | |
14129 | _ACEOF | |
81ecdfbb RW |
14130 | if ac_fn_c_try_compile "$LINENO"; then : |
14131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14132 | $as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | |
c6b750e1 | 14133 | else |
81ecdfbb RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14135 | $as_echo "no" >&6; } | |
c6b750e1 | 14136 | fi |
81ecdfbb | 14137 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1d89b610 PB |
14138 | |
14139 | CFLAGS="$saved_CFLAGS" | |
14140 | fi | |
14141 | ||
14142 | ||
1d39f329 | 14143 | |
8a0d8a5c | 14144 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14145 | # Check whether --enable-stage1-checking was given. |
14146 | if test "${enable_stage1_checking+set}" = set; then : | |
14147 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14148 | else |
5566c1fa | 14149 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
2abc4e65 | 14150 | stage1_checking=--enable-checking=yes,types |
8a0d8a5c | 14151 | else |
5566c1fa | 14152 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14153 | fi |
81ecdfbb | 14154 | fi |
8a0d8a5c PB |
14155 | |
14156 | ||
c6b750e1 | 14157 | |
81ecdfbb RW |
14158 | # Enable -Werror in bootstrap stage2 and later. |
14159 | # Check whether --enable-werror was given. | |
14160 | if test "${enable_werror+set}" = set; then : | |
14161 | enableval=$enable_werror; | |
1d39f329 | 14162 | else |
a0323144 | 14163 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14164 | enable_werror=yes |
79fcd0ec PB |
14165 | else |
14166 | enable_werror=no | |
14167 | fi | |
81ecdfbb RW |
14168 | fi |
14169 | ||
1a6f2dc7 NN |
14170 | case ${enable_werror} in |
14171 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14172 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14173 | esac |
14174 | ||
14175 | ||
e8a5fa9c RW |
14176 | # Specify what files to not compare during bootstrap. |
14177 | ||
14178 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14179 | case "$target" in | |
14180 | hppa*64*-*-hpux*) ;; | |
14181 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
14182 | esac | |
1f53ca9a AO |
14183 | case " $configdirs " in |
14184 | *" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;; | |
14185 | esac | |
e8a5fa9c RW |
14186 | |
14187 | ||
81ecdfbb RW |
14188 | ac_config_files="$ac_config_files Makefile" |
14189 | ||
c6b750e1 | 14190 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14191 | # This file is a shell script that caches the results of configure |
14192 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14193 | # scripts and configure runs, see configure's option --config-cache. |
14194 | # It is not useful on other systems. If it contains results you don't | |
14195 | # want to keep, you may remove or edit it. | |
a0da8069 | 14196 | # |
c6b750e1 DJ |
14197 | # config.status only pays attention to the cache file if you give it |
14198 | # the --recheck option to rerun configure. | |
a0da8069 | 14199 | # |
c6b750e1 DJ |
14200 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14201 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14202 | # following values. | |
14203 | ||
14204 | _ACEOF | |
14205 | ||
a0da8069 NN |
14206 | # The following way of writing the cache mishandles newlines in values, |
14207 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14208 | # So, we kill variables containing newlines. |
a0da8069 NN |
14209 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14210 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14211 | ( |
14212 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14213 | eval ac_val=\$$ac_var | |
14214 | case $ac_val in #( | |
14215 | *${as_nl}*) | |
14216 | case $ac_var in #( | |
14217 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14218 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14219 | esac | |
14220 | case $ac_var in #( | |
14221 | _ | IFS | as_nl) ;; #( | |
14222 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14223 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14224 | esac ;; | |
14225 | esac | |
14226 | done | |
14227 | ||
c6b750e1 | 14228 | (set) 2>&1 | |
81ecdfbb RW |
14229 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14230 | *${as_nl}ac_space=\ *) | |
14231 | # `set' does not quote correctly, so add quotes: double-quote | |
14232 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14233 | sed -n \ |
14234 | "s/'/'\\\\''/g; | |
14235 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14236 | ;; #( |
c6b750e1 DJ |
14237 | *) |
14238 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14239 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14240 | ;; |
81ecdfbb RW |
14241 | esac | |
14242 | sort | |
14243 | ) | | |
c6b750e1 | 14244 | sed ' |
81ecdfbb | 14245 | /^ac_cv_env_/b end |
c6b750e1 | 14246 | t clear |
81ecdfbb | 14247 | :clear |
c6b750e1 DJ |
14248 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14249 | t end | |
81ecdfbb RW |
14250 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14251 | :end' >>confcache | |
14252 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
14253 | if test -w "$cache_file"; then | |
14254 | test "x$cache_file" != "x/dev/null" && | |
14255 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
14256 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 14257 | cat confcache >$cache_file |
a0da8069 | 14258 | else |
81ecdfbb RW |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
14260 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 14261 | fi |
852e5f18 | 14262 | fi |
a0da8069 | 14263 | rm -f confcache |
852e5f18 | 14264 | |
a0da8069 NN |
14265 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
14266 | # Let make expand exec_prefix. | |
14267 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 14268 | |
a0da8069 NN |
14269 | # Transform confdefs.h into DEFS. |
14270 | # Protect against shell expansion while executing Makefile rules. | |
14271 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
14272 | # |
14273 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 14274 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 14275 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
14276 | ac_script=' |
14277 | :mline | |
14278 | /\\$/{ | |
14279 | N | |
14280 | s,\\\n,, | |
14281 | b mline | |
14282 | } | |
c6b750e1 | 14283 | t clear |
81ecdfbb RW |
14284 | :clear |
14285 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 14286 | t quote |
81ecdfbb | 14287 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 14288 | t quote |
81ecdfbb RW |
14289 | b any |
14290 | :quote | |
14291 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
14292 | s/\[/\\&/g | |
14293 | s/\]/\\&/g | |
14294 | s/\$/$$/g | |
14295 | H | |
14296 | :any | |
14297 | ${ | |
14298 | g | |
14299 | s/^\n// | |
14300 | s/\n/ /g | |
14301 | p | |
14302 | } | |
14303 | ' | |
14304 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
14305 | |
14306 | ||
14307 | ac_libobjs= | |
14308 | ac_ltlibobjs= | |
14309 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14310 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
14311 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
14312 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
14313 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
14314 | # will be set to the directory where LIBOBJS objects are built. | |
14315 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
14316 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
14317 | done |
14318 | LIBOBJS=$ac_libobjs | |
852e5f18 | 14319 | |
c6b750e1 | 14320 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 14321 | |
cac3d6c4 | 14322 | |
c6b750e1 DJ |
14323 | |
14324 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 14325 | ac_write_fail=0 |
c6b750e1 DJ |
14326 | ac_clean_files_save=$ac_clean_files |
14327 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
14328 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
14329 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14330 | as_write_fail=0 | |
14331 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
14332 | #! $SHELL |
14333 | # Generated by $as_me. | |
a0da8069 | 14334 | # Run this file to recreate the current configuration. |
a0da8069 | 14335 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 14336 | # configure, is in config.log if it exists. |
376a0e54 | 14337 | |
c6b750e1 DJ |
14338 | debug=false |
14339 | ac_cs_recheck=false | |
14340 | ac_cs_silent=false | |
c6b750e1 | 14341 | |
81ecdfbb RW |
14342 | SHELL=\${CONFIG_SHELL-$SHELL} |
14343 | export SHELL | |
14344 | _ASEOF | |
14345 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
14346 | ## -------------------- ## | |
14347 | ## M4sh Initialization. ## | |
14348 | ## -------------------- ## | |
14349 | ||
14350 | # Be more Bourne compatible | |
14351 | DUALCASE=1; export DUALCASE # for MKS sh | |
14352 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
14353 | emulate sh |
14354 | NULLCMD=: | |
81ecdfbb | 14355 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
14356 | # is contrary to our usage. Disable this feature. |
14357 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
14358 | setopt NO_GLOB_SUBST |
14359 | else | |
14360 | case `(set -o) 2>/dev/null` in #( | |
14361 | *posix*) : | |
14362 | set -o posix ;; #( | |
14363 | *) : | |
14364 | ;; | |
14365 | esac | |
c6b750e1 | 14366 | fi |
c6b750e1 | 14367 | |
81ecdfbb RW |
14368 | |
14369 | as_nl=' | |
14370 | ' | |
14371 | export as_nl | |
14372 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
14373 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
14374 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
14375 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
14376 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
14377 | # but without wasting forks for bash or zsh. | |
14378 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
14379 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14380 | as_echo='print -r --' | |
14381 | as_echo_n='print -rn --' | |
14382 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
14383 | as_echo='printf %s\n' | |
14384 | as_echo_n='printf %s' | |
14385 | else | |
14386 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
14387 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
14388 | as_echo_n='/usr/ucb/echo -n' | |
14389 | else | |
14390 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
14391 | as_echo_n_body='eval | |
14392 | arg=$1; | |
14393 | case $arg in #( | |
14394 | *"$as_nl"*) | |
14395 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
14396 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
14397 | esac; | |
14398 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
14399 | ' | |
14400 | export as_echo_n_body | |
14401 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
14402 | fi | |
14403 | export as_echo_body | |
14404 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
14405 | fi |
14406 | ||
81ecdfbb RW |
14407 | # The user is always right. |
14408 | if test "${PATH_SEPARATOR+set}" != set; then | |
14409 | PATH_SEPARATOR=: | |
14410 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
14411 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
14412 | PATH_SEPARATOR=';' | |
14413 | } | |
14414 | fi | |
14415 | ||
14416 | ||
14417 | # IFS | |
14418 | # We need space, tab and new line, in precisely that order. Quoting is | |
14419 | # there to prevent editors from complaining about space-tab. | |
14420 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
14421 | # splitting by setting IFS to empty value.) | |
14422 | IFS=" "" $as_nl" | |
14423 | ||
14424 | # Find who we are. Look in the path if we contain no directory separator. | |
14425 | case $0 in #(( | |
14426 | *[\\/]* ) as_myself=$0 ;; | |
14427 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14428 | for as_dir in $PATH | |
14429 | do | |
14430 | IFS=$as_save_IFS | |
14431 | test -z "$as_dir" && as_dir=. | |
14432 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14433 | done | |
14434 | IFS=$as_save_IFS | |
14435 | ||
14436 | ;; | |
14437 | esac | |
14438 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14439 | # in which case we are not to be found in the path. | |
14440 | if test "x$as_myself" = x; then | |
14441 | as_myself=$0 | |
14442 | fi | |
14443 | if test ! -f "$as_myself"; then | |
14444 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
14445 | exit 1 | |
14446 | fi | |
c6b750e1 | 14447 | |
81ecdfbb RW |
14448 | # Unset variables that we do not need and which cause bugs (e.g. in |
14449 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
14450 | # suppresses any "Segmentation fault" message there. '((' could | |
14451 | # trigger a bug in pdksh 5.2.14. | |
14452 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
14453 | do eval test x\${$as_var+set} = xset \ | |
14454 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
14455 | done | |
c6b750e1 DJ |
14456 | PS1='$ ' |
14457 | PS2='> ' | |
14458 | PS4='+ ' | |
14459 | ||
14460 | # NLS nuisances. | |
81ecdfbb RW |
14461 | LC_ALL=C |
14462 | export LC_ALL | |
14463 | LANGUAGE=C | |
14464 | export LANGUAGE | |
14465 | ||
14466 | # CDPATH. | |
14467 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
14468 | ||
14469 | ||
14470 | # as_fn_error ERROR [LINENO LOG_FD] | |
14471 | # --------------------------------- | |
14472 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
14473 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
14474 | # script with status $?, using 1 if that was 0. | |
14475 | as_fn_error () | |
14476 | { | |
14477 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
14478 | if test "$3"; then | |
14479 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
14480 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 14481 | fi |
81ecdfbb RW |
14482 | $as_echo "$as_me: error: $1" >&2 |
14483 | as_fn_exit $as_status | |
14484 | } # as_fn_error | |
14485 | ||
14486 | ||
14487 | # as_fn_set_status STATUS | |
14488 | # ----------------------- | |
14489 | # Set $? to STATUS, without forking. | |
14490 | as_fn_set_status () | |
14491 | { | |
14492 | return $1 | |
14493 | } # as_fn_set_status | |
14494 | ||
14495 | # as_fn_exit STATUS | |
14496 | # ----------------- | |
14497 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
14498 | as_fn_exit () | |
14499 | { | |
14500 | set +e | |
14501 | as_fn_set_status $1 | |
14502 | exit $1 | |
14503 | } # as_fn_exit | |
14504 | ||
14505 | # as_fn_unset VAR | |
14506 | # --------------- | |
14507 | # Portably unset VAR. | |
14508 | as_fn_unset () | |
14509 | { | |
14510 | { eval $1=; unset $1;} | |
14511 | } | |
14512 | as_unset=as_fn_unset | |
14513 | # as_fn_append VAR VALUE | |
14514 | # ---------------------- | |
14515 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
14516 | # advantage of any shell optimizations that allow amortized linear growth over | |
14517 | # repeated appends, instead of the typical quadratic growth present in naive | |
14518 | # implementations. | |
14519 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
14520 | eval 'as_fn_append () | |
14521 | { | |
14522 | eval $1+=\$2 | |
14523 | }' | |
14524 | else | |
14525 | as_fn_append () | |
14526 | { | |
14527 | eval $1=\$$1\$2 | |
14528 | } | |
14529 | fi # as_fn_append | |
14530 | ||
14531 | # as_fn_arith ARG... | |
14532 | # ------------------ | |
14533 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
14534 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
14535 | # must be portable across $(()) and expr. | |
14536 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
14537 | eval 'as_fn_arith () | |
14538 | { | |
14539 | as_val=$(( $* )) | |
14540 | }' | |
14541 | else | |
14542 | as_fn_arith () | |
14543 | { | |
14544 | as_val=`expr "$@" || test $? -eq 1` | |
14545 | } | |
14546 | fi # as_fn_arith | |
14547 | ||
c6b750e1 | 14548 | |
81ecdfbb RW |
14549 | if expr a : '\(a\)' >/dev/null 2>&1 && |
14550 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
14551 | as_expr=expr |
14552 | else | |
14553 | as_expr=false | |
14554 | fi | |
14555 | ||
81ecdfbb | 14556 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
14557 | as_basename=basename |
14558 | else | |
14559 | as_basename=false | |
14560 | fi | |
14561 | ||
81ecdfbb RW |
14562 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
14563 | as_dirname=dirname | |
14564 | else | |
14565 | as_dirname=false | |
14566 | fi | |
c6b750e1 | 14567 | |
81ecdfbb | 14568 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
14569 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
14570 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
14571 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
14572 | $as_echo X/"$0" | | |
14573 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
14574 | s//\1/ | |
14575 | q | |
14576 | } | |
14577 | /^X\/\(\/\/\)$/{ | |
14578 | s//\1/ | |
14579 | q | |
14580 | } | |
14581 | /^X\/\(\/\).*/{ | |
14582 | s//\1/ | |
14583 | q | |
14584 | } | |
14585 | s/.*/./; q'` | |
c6b750e1 | 14586 | |
c6b750e1 DJ |
14587 | # Avoid depending upon Character Ranges. |
14588 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14589 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14590 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14591 | as_cr_digits='0123456789' | |
14592 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14593 | ||
81ecdfbb RW |
14594 | ECHO_C= ECHO_N= ECHO_T= |
14595 | case `echo -n x` in #((((( | |
14596 | -n*) | |
14597 | case `echo 'xy\c'` in | |
14598 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
14599 | xy) ECHO_C='\c';; | |
14600 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
14601 | ECHO_T=' ';; | |
14602 | esac;; | |
14603 | *) | |
14604 | ECHO_N='-n';; | |
c6b750e1 DJ |
14605 | esac |
14606 | ||
81ecdfbb RW |
14607 | rm -f conf$$ conf$$.exe conf$$.file |
14608 | if test -d conf$$.dir; then | |
14609 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 14610 | else |
81ecdfbb RW |
14611 | rm -f conf$$.dir |
14612 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 14613 | fi |
81ecdfbb RW |
14614 | if (echo >conf$$.file) 2>/dev/null; then |
14615 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 14616 | as_ln_s='ln -s' |
81ecdfbb RW |
14617 | # ... but there are two gotchas: |
14618 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
14619 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
14620 | # In both cases, we have to default to `cp -p'. | |
14621 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
14622 | as_ln_s='cp -p' | |
14623 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14624 | as_ln_s=ln | |
14625 | else | |
14626 | as_ln_s='cp -p' | |
c6b750e1 | 14627 | fi |
c6b750e1 DJ |
14628 | else |
14629 | as_ln_s='cp -p' | |
14630 | fi | |
81ecdfbb RW |
14631 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
14632 | rmdir conf$$.dir 2>/dev/null | |
14633 | ||
14634 | ||
14635 | # as_fn_mkdir_p | |
14636 | # ------------- | |
14637 | # Create "$as_dir" as a directory, including parents if necessary. | |
14638 | as_fn_mkdir_p () | |
14639 | { | |
14640 | ||
14641 | case $as_dir in #( | |
14642 | -*) as_dir=./$as_dir;; | |
14643 | esac | |
14644 | test -d "$as_dir" || eval $as_mkdir_p || { | |
14645 | as_dirs= | |
14646 | while :; do | |
14647 | case $as_dir in #( | |
14648 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
14649 | *) as_qdir=$as_dir;; | |
14650 | esac | |
14651 | as_dirs="'$as_qdir' $as_dirs" | |
14652 | as_dir=`$as_dirname -- "$as_dir" || | |
14653 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14654 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14655 | X"$as_dir" : 'X\(//\)$' \| \ | |
14656 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
14657 | $as_echo X"$as_dir" | | |
14658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14659 | s//\1/ | |
14660 | q | |
14661 | } | |
14662 | /^X\(\/\/\)[^/].*/{ | |
14663 | s//\1/ | |
14664 | q | |
14665 | } | |
14666 | /^X\(\/\/\)$/{ | |
14667 | s//\1/ | |
14668 | q | |
14669 | } | |
14670 | /^X\(\/\).*/{ | |
14671 | s//\1/ | |
14672 | q | |
14673 | } | |
14674 | s/.*/./; q'` | |
14675 | test -d "$as_dir" && break | |
14676 | done | |
14677 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
14678 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
14679 | ||
c6b750e1 | 14680 | |
81ecdfbb | 14681 | } # as_fn_mkdir_p |
c6b750e1 | 14682 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 14683 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
14684 | else |
14685 | test -d ./-p && rmdir ./-p | |
14686 | as_mkdir_p=false | |
14687 | fi | |
14688 | ||
81ecdfbb RW |
14689 | if test -x / >/dev/null 2>&1; then |
14690 | as_test_x='test -x' | |
14691 | else | |
14692 | if ls -dL / >/dev/null 2>&1; then | |
14693 | as_ls_L_option=L | |
14694 | else | |
14695 | as_ls_L_option= | |
14696 | fi | |
14697 | as_test_x=' | |
14698 | eval sh -c '\'' | |
14699 | if test -d "$1"; then | |
14700 | test -d "$1/."; | |
14701 | else | |
14702 | case $1 in #( | |
14703 | -*)set "./$1";; | |
14704 | esac; | |
14705 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
14706 | ???[sx]*):;;*)false;;esac;fi | |
14707 | '\'' sh | |
14708 | ' | |
14709 | fi | |
14710 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
14711 | |
14712 | # Sed expression to map a string onto a valid CPP name. | |
14713 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
14714 | ||
14715 | # Sed expression to map a string onto a valid variable name. | |
14716 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
14717 | ||
14718 | ||
c6b750e1 | 14719 | exec 6>&1 |
81ecdfbb RW |
14720 | ## ----------------------------------- ## |
14721 | ## Main body of $CONFIG_STATUS script. ## | |
14722 | ## ----------------------------------- ## | |
14723 | _ASEOF | |
14724 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
14725 | ||
14726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14727 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 14728 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
14729 | # values after options handling. |
14730 | ac_log=" | |
c6b750e1 | 14731 | This file was extended by $as_me, which was |
81ecdfbb | 14732 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
14733 | |
14734 | CONFIG_FILES = $CONFIG_FILES | |
14735 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14736 | CONFIG_LINKS = $CONFIG_LINKS | |
14737 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14738 | $ $0 $@ | |
14739 | ||
81ecdfbb RW |
14740 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
14741 | " | |
14742 | ||
c6b750e1 DJ |
14743 | _ACEOF |
14744 | ||
81ecdfbb RW |
14745 | case $ac_config_files in *" |
14746 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
14747 | esac | |
c6b750e1 | 14748 | |
c6b750e1 | 14749 | |
c6b750e1 | 14750 | |
81ecdfbb RW |
14751 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14752 | # Files that config.status was made for. | |
14753 | config_files="$ac_config_files" | |
c6b750e1 | 14754 | |
81ecdfbb | 14755 | _ACEOF |
c6b750e1 | 14756 | |
81ecdfbb | 14757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14758 | ac_cs_usage="\ |
81ecdfbb RW |
14759 | \`$as_me' instantiates files and other configuration actions |
14760 | from templates according to the current configuration. Unless the files | |
14761 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 14762 | |
81ecdfbb | 14763 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
14764 | |
14765 | -h, --help print this help, then exit | |
81ecdfbb RW |
14766 | -V, --version print version number and configuration settings, then exit |
14767 | -q, --quiet, --silent | |
14768 | do not print progress messages | |
c6b750e1 DJ |
14769 | -d, --debug don't remove temporary files |
14770 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
14771 | --file=FILE[:TEMPLATE] |
14772 | instantiate the configuration file FILE | |
c6b750e1 DJ |
14773 | |
14774 | Configuration files: | |
14775 | $config_files | |
14776 | ||
81ecdfbb | 14777 | Report bugs to the package provider." |
c6b750e1 | 14778 | |
81ecdfbb RW |
14779 | _ACEOF |
14780 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
14781 | ac_cs_version="\\ |
14782 | config.status | |
81ecdfbb RW |
14783 | configured by $0, generated by GNU Autoconf 2.64, |
14784 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 14785 | |
81ecdfbb | 14786 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
14787 | This config.status script is free software; the Free Software Foundation |
14788 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
14789 | |
14790 | ac_pwd='$ac_pwd' | |
14791 | srcdir='$srcdir' | |
14792 | INSTALL='$INSTALL' | |
8e957354 | 14793 | AWK='$AWK' |
81ecdfbb | 14794 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
14795 | _ACEOF |
14796 | ||
81ecdfbb RW |
14797 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14798 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
14799 | ac_need_defaults=: |
14800 | while test $# != 0 | |
a0da8069 | 14801 | do |
c6b750e1 DJ |
14802 | case $1 in |
14803 | --*=*) | |
81ecdfbb RW |
14804 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
14805 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
14806 | ac_shift=: |
14807 | ;; | |
81ecdfbb | 14808 | *) |
c6b750e1 DJ |
14809 | ac_option=$1 |
14810 | ac_optarg=$2 | |
14811 | ac_shift=shift | |
14812 | ;; | |
c6b750e1 DJ |
14813 | esac |
14814 | ||
14815 | case $ac_option in | |
14816 | # Handling of the options. | |
a0da8069 | 14817 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 14818 | ac_cs_recheck=: ;; |
81ecdfbb RW |
14819 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
14820 | $as_echo "$ac_cs_version"; exit ;; | |
14821 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
14822 | debug=: ;; |
14823 | --file | --fil | --fi | --f ) | |
14824 | $ac_shift | |
81ecdfbb RW |
14825 | case $ac_optarg in |
14826 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
14827 | esac | |
14828 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 14829 | ac_need_defaults=false;; |
81ecdfbb RW |
14830 | --he | --h | --help | --hel | -h ) |
14831 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
14832 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
14833 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14834 | ac_cs_silent=: ;; | |
14835 | ||
14836 | # This is an error. | |
81ecdfbb RW |
14837 | -*) as_fn_error "unrecognized option: \`$1' |
14838 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 14839 | |
81ecdfbb RW |
14840 | *) as_fn_append ac_config_targets " $1" |
14841 | ac_need_defaults=false ;; | |
c6b750e1 | 14842 | |
376a0e54 | 14843 | esac |
c6b750e1 | 14844 | shift |
376a0e54 CM |
14845 | done |
14846 | ||
c6b750e1 | 14847 | ac_configure_extra_args= |
376a0e54 | 14848 | |
c6b750e1 DJ |
14849 | if $ac_cs_silent; then |
14850 | exec 6>/dev/null | |
14851 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14852 | fi | |
376a0e54 | 14853 | |
c6b750e1 | 14854 | _ACEOF |
81ecdfbb | 14855 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 14856 | if \$ac_cs_recheck; then |
81ecdfbb RW |
14857 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
14858 | shift | |
14859 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
14860 | CONFIG_SHELL='$SHELL' | |
14861 | export CONFIG_SHELL | |
14862 | exec "\$@" | |
c6b750e1 DJ |
14863 | fi |
14864 | ||
14865 | _ACEOF | |
81ecdfbb RW |
14866 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14867 | exec 5>>config.log | |
14868 | { | |
14869 | echo | |
14870 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14871 | ## Running $as_me. ## | |
14872 | _ASBOX | |
14873 | $as_echo "$ac_log" | |
14874 | } >&5 | |
c6b750e1 | 14875 | |
81ecdfbb RW |
14876 | _ACEOF |
14877 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
14878 | # |
14879 | # INIT-COMMANDS | |
14880 | # | |
14881 | extrasub_build="$extrasub_build" | |
14882 | extrasub_host="$extrasub_host" | |
14883 | extrasub_target="$extrasub_target" | |
14884 | ||
81ecdfbb | 14885 | _ACEOF |
c6b750e1 | 14886 | |
81ecdfbb | 14887 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 14888 | |
81ecdfbb | 14889 | # Handling of arguments. |
c6b750e1 DJ |
14890 | for ac_config_target in $ac_config_targets |
14891 | do | |
81ecdfbb RW |
14892 | case $ac_config_target in |
14893 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14894 | ||
14895 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
14896 | esac |
14897 | done | |
14898 | ||
81ecdfbb | 14899 | |
c6b750e1 DJ |
14900 | # If the user did not use the arguments to specify the items to instantiate, |
14901 | # then the envvar interface is used. Set only those that are not. | |
14902 | # We use the long form for the default assignment because of an extremely | |
14903 | # bizarre bug on SunOS 4.1.3. | |
14904 | if $ac_need_defaults; then | |
14905 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14906 | fi | |
14907 | ||
14908 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 14909 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 14910 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
14911 | # Hook for its removal unless debugging. |
14912 | # Note that there is a small window in which the directory will not be cleaned: | |
14913 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
14914 | $debug || |
14915 | { | |
81ecdfbb RW |
14916 | tmp= |
14917 | trap 'exit_status=$? | |
14918 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14919 | ' 0 | |
14920 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 14921 | } |
c6b750e1 DJ |
14922 | # Create a (secure) tmp directory for tmp files. |
14923 | ||
14924 | { | |
81ecdfbb | 14925 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
14926 | test -n "$tmp" && test -d "$tmp" |
14927 | } || | |
14928 | { | |
81ecdfbb RW |
14929 | tmp=./conf$$-$RANDOM |
14930 | (umask 077 && mkdir "$tmp") | |
14931 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
14932 | ||
14933 | # Set up the scripts for CONFIG_FILES section. | |
14934 | # No need to generate them if there are no CONFIG_FILES. | |
14935 | # This happens for instance with `./config.status config.h'. | |
14936 | if test -n "$CONFIG_FILES"; then | |
14937 | ||
14938 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
14939 | ac_cs_awk_getline=: | |
14940 | ac_cs_awk_pipe_init= | |
14941 | ac_cs_awk_read_file=' | |
14942 | while ((getline aline < (F[key])) > 0) | |
14943 | print(aline) | |
14944 | close(F[key])' | |
14945 | ac_cs_awk_pipe_fini= | |
14946 | else | |
14947 | ac_cs_awk_getline=false | |
14948 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
14949 | ac_cs_awk_read_file=' | |
14950 | print "|#_!!_#|" | |
14951 | print "cat " F[key] " &&" | |
14952 | '$ac_cs_awk_pipe_init | |
14953 | # The final `:' finishes the AND list. | |
14954 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
14955 | fi | |
14956 | ac_cr=`echo X | tr X '\015'` | |
14957 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
14958 | # But we know of no other shell where ac_cr would be empty at this | |
14959 | # point, so we can use a bashism as a fallback. | |
14960 | if test "x$ac_cr" = x; then | |
14961 | eval ac_cr=\$\'\\r\' | |
14962 | fi | |
14963 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
14964 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
14965 | ac_cs_awk_cr='\r' | |
14966 | else | |
14967 | ac_cs_awk_cr=$ac_cr | |
14968 | fi | |
14969 | ||
14970 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14971 | _ACEOF | |
14972 | ||
14973 | # Create commands to substitute file output variables. | |
c6b750e1 | 14974 | { |
81ecdfbb RW |
14975 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
14976 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
14977 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
14978 | echo "_ACAWK" && | |
14979 | echo "_ACEOF" | |
14980 | } >conf$$files.sh && | |
14981 | . ./conf$$files.sh || | |
14982 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14983 | rm -f conf$$files.sh | |
c6b750e1 | 14984 | |
81ecdfbb RW |
14985 | { |
14986 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
14987 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
14988 | echo "_ACEOF" | |
14989 | } >conf$$subs.sh || | |
14990 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14991 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
14992 | ac_delim='%!_!# ' | |
14993 | for ac_last_try in false false false false false :; do | |
14994 | . ./conf$$subs.sh || | |
14995 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
14996 | ||
14997 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
14998 | if test $ac_delim_n = $ac_delim_num; then | |
14999 | break | |
15000 | elif $ac_last_try; then | |
15001 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15002 | else | |
15003 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15004 | fi | |
15005 | done | |
15006 | rm -f conf$$subs.sh | |
15007 | ||
15008 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15009 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15010 | _ACEOF |
81ecdfbb RW |
15011 | sed -n ' |
15012 | h | |
15013 | s/^/S["/; s/!.*/"]=/ | |
15014 | p | |
15015 | g | |
15016 | s/^[^!]*!// | |
15017 | :repl | |
15018 | t repl | |
15019 | s/'"$ac_delim"'$// | |
15020 | t delim | |
15021 | :nl | |
15022 | h | |
15023 | s/\(.\{148\}\).*/\1/ | |
15024 | t more1 | |
15025 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15026 | p | |
15027 | n | |
15028 | b repl | |
15029 | :more1 | |
15030 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15031 | p | |
15032 | g | |
15033 | s/.\{148\}// | |
15034 | t nl | |
15035 | :delim | |
15036 | h | |
15037 | s/\(.\{148\}\).*/\1/ | |
15038 | t more2 | |
15039 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15040 | p | |
15041 | b | |
15042 | :more2 | |
15043 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15044 | p | |
15045 | g | |
15046 | s/.\{148\}// | |
15047 | t delim | |
15048 | ' <conf$$subs.awk | sed ' | |
15049 | /^[^""]/{ | |
15050 | N | |
15051 | s/\n// | |
15052 | } | |
15053 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15054 | rm -f conf$$subs.awk | |
15055 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15056 | _ACAWK | |
15057 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15058 | for (key in S) S_is_set[key] = 1 | |
15059 | FS = "\a" | |
15060 | \$ac_cs_awk_pipe_init | |
15061 | } | |
15062 | { | |
15063 | line = $ 0 | |
15064 | nfields = split(line, field, "@") | |
15065 | substed = 0 | |
15066 | len = length(field[1]) | |
15067 | for (i = 2; i < nfields; i++) { | |
15068 | key = field[i] | |
15069 | keylen = length(key) | |
15070 | if (S_is_set[key]) { | |
15071 | value = S[key] | |
15072 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15073 | len += length(value) + length(field[++i]) | |
15074 | substed = 1 | |
15075 | } else | |
15076 | len += 1 + keylen | |
15077 | } | |
15078 | if (nfields == 3 && !substed) { | |
15079 | key = field[2] | |
15080 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15081 | \$ac_cs_awk_read_file | |
15082 | next | |
15083 | } | |
15084 | } | |
15085 | print line | |
15086 | } | |
15087 | \$ac_cs_awk_pipe_fini | |
15088 | _ACAWK | |
15089 | _ACEOF | |
15090 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15091 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15092 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15093 | else | |
15094 | cat | |
15095 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15096 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15097 | _ACEOF | |
15098 | ||
15099 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15100 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15101 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15102 | # (actually we leave an empty line to preserve line numbers). | |
15103 | if test "x$srcdir" = x.; then | |
15104 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15105 | s/:*\$(srcdir):*/:/ | |
15106 | s/:*\${srcdir}:*/:/ | |
15107 | s/:*@srcdir@:*/:/ | |
15108 | s/^\([^=]*=[ ]*\):*/\1/ | |
15109 | s/:*$// | |
15110 | s/^[^=]*=[ ]*$// | |
15111 | }' | |
15112 | fi | |
c6b750e1 | 15113 | |
81ecdfbb RW |
15114 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15115 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15116 | |
c6b750e1 | 15117 | |
81ecdfbb RW |
15118 | eval set X " :F $CONFIG_FILES " |
15119 | shift | |
15120 | for ac_tag | |
15121 | do | |
15122 | case $ac_tag in | |
15123 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15124 | esac | |
15125 | case $ac_mode$ac_tag in | |
15126 | :[FHL]*:*);; | |
15127 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15128 | :[FH]-) ac_tag=-:-;; | |
15129 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15130 | esac | |
15131 | ac_save_IFS=$IFS | |
15132 | IFS=: | |
15133 | set x $ac_tag | |
15134 | IFS=$ac_save_IFS | |
15135 | shift | |
15136 | ac_file=$1 | |
15137 | shift | |
252b5132 | 15138 | |
81ecdfbb RW |
15139 | case $ac_mode in |
15140 | :L) ac_source=$1;; | |
15141 | :[FH]) | |
15142 | ac_file_inputs= | |
15143 | for ac_f | |
15144 | do | |
15145 | case $ac_f in | |
15146 | -) ac_f="$tmp/stdin";; | |
15147 | *) # Look for the file first in the build tree, then in the source tree | |
15148 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15149 | # because $ac_f cannot contain `:'. | |
15150 | test -f "$ac_f" || | |
15151 | case $ac_f in | |
15152 | [\\/$]*) false;; | |
15153 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15154 | esac || | |
15155 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15156 | esac | |
15157 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15158 | as_fn_append ac_file_inputs " '$ac_f'" | |
15159 | done | |
c6b750e1 | 15160 | |
81ecdfbb RW |
15161 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15162 | # use $as_me), people would be surprised to read: | |
15163 | # /* config.h. Generated by config.status. */ | |
15164 | configure_input='Generated from '` | |
15165 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15166 | `' by configure.' | |
15167 | if test x"$ac_file" != x-; then | |
15168 | configure_input="$ac_file. $configure_input" | |
15169 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15170 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15171 | fi |
81ecdfbb RW |
15172 | # Neutralize special characters interpreted by sed in replacement strings. |
15173 | case $configure_input in #( | |
15174 | *\&* | *\|* | *\\* ) | |
15175 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15176 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15177 | *) ac_sed_conf_input=$configure_input;; | |
15178 | esac | |
cac3d6c4 | 15179 | |
81ecdfbb RW |
15180 | case $ac_tag in |
15181 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15182 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15183 | esac | |
15184 | ;; | |
a0da8069 | 15185 | esac |
252b5132 | 15186 | |
81ecdfbb | 15187 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15188 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15189 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15190 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15191 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15192 | $as_echo X"$ac_file" | | |
15193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15194 | s//\1/ | |
15195 | q | |
15196 | } | |
15197 | /^X\(\/\/\)[^/].*/{ | |
15198 | s//\1/ | |
15199 | q | |
15200 | } | |
15201 | /^X\(\/\/\)$/{ | |
15202 | s//\1/ | |
15203 | q | |
15204 | } | |
15205 | /^X\(\/\).*/{ | |
15206 | s//\1/ | |
15207 | q | |
15208 | } | |
15209 | s/.*/./; q'` | |
15210 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15211 | ac_builddir=. |
252b5132 | 15212 | |
81ecdfbb RW |
15213 | case "$ac_dir" in |
15214 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15215 | *) | |
15216 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15217 | # A ".." for each directory in $ac_dir_suffix. | |
15218 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15219 | case $ac_top_builddir_sub in | |
15220 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15221 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15222 | esac ;; | |
15223 | esac | |
15224 | ac_abs_top_builddir=$ac_pwd | |
15225 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15226 | # for backward compatibility: | |
15227 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15228 | |
15229 | case $srcdir in | |
81ecdfbb | 15230 | .) # We are building in place. |
c6b750e1 | 15231 | ac_srcdir=. |
81ecdfbb RW |
15232 | ac_top_srcdir=$ac_top_builddir_sub |
15233 | ac_abs_top_srcdir=$ac_pwd ;; | |
15234 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15235 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15236 | ac_top_srcdir=$srcdir |
15237 | ac_abs_top_srcdir=$srcdir ;; | |
15238 | *) # Relative name. | |
15239 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15240 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15241 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15242 | esac |
81ecdfbb | 15243 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15244 | |
252b5132 | 15245 | |
81ecdfbb RW |
15246 | case $ac_mode in |
15247 | :F) | |
15248 | # | |
15249 | # CONFIG_FILE | |
15250 | # | |
c6b750e1 DJ |
15251 | |
15252 | case $INSTALL in | |
15253 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 15254 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 15255 | esac |
81ecdfbb | 15256 | _ACEOF |
252b5132 | 15257 | |
81ecdfbb RW |
15258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15259 | # If the template does not know about datarootdir, expand it. | |
15260 | # FIXME: This hack should be removed a few years after 2.60. | |
15261 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
15262 | ac_sed_dataroot=' | |
15263 | /datarootdir/ { | |
15264 | p | |
15265 | q | |
15266 | } | |
15267 | /@datadir@/p | |
15268 | /@docdir@/p | |
15269 | /@infodir@/p | |
15270 | /@localedir@/p | |
15271 | /@mandir@/p' | |
15272 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
15273 | *datarootdir*) ac_datarootdir_seen=yes;; | |
15274 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
15275 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
15276 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 15277 | _ACEOF |
81ecdfbb RW |
15278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15279 | ac_datarootdir_hack=' | |
15280 | s&@datadir@&$datadir&g | |
15281 | s&@docdir@&$docdir&g | |
15282 | s&@infodir@&$infodir&g | |
15283 | s&@localedir@&$localedir&g | |
15284 | s&@mandir@&$mandir&g | |
15285 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
15286 | esac | |
15287 | _ACEOF | |
15288 | ||
15289 | # Neutralize VPATH when `$srcdir' = `.'. | |
15290 | # Shell code in configure.ac might set extrasub. | |
15291 | # FIXME: do we really want to maintain this feature? | |
15292 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15293 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
15294 | $extrasub |
15295 | _ACEOF | |
81ecdfbb | 15296 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
15297 | :t |
15298 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
15299 | s|@configure_input@|$ac_sed_conf_input|;t t |
15300 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
15301 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
15302 | s&@srcdir@&$ac_srcdir&;t t | |
15303 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
15304 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
15305 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
15306 | s&@builddir@&$ac_builddir&;t t | |
15307 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
15308 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
15309 | s&@INSTALL@&$ac_INSTALL&;t t | |
15310 | $ac_datarootdir_hack | |
15311 | " | |
15312 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
15313 | if $ac_cs_awk_getline; then | |
15314 | $AWK -f "$tmp/subs.awk" | |
15315 | else | |
15316 | $AWK -f "$tmp/subs.awk" | $SHELL | |
15317 | fi >$tmp/out \ | |
15318 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15319 | ||
15320 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
15321 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
15322 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15324 | which seems to be undefined. Please make sure it is defined." >&5 | |
15325 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
15326 | which seems to be undefined. Please make sure it is defined." >&2;} | |
15327 | ||
15328 | rm -f "$tmp/stdin" | |
15329 | case $ac_file in | |
15330 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
15331 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15332 | esac \ | |
15333 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
15334 | ;; | |
c148b4cb | 15335 | |
c148b4cb | 15336 | |
c148b4cb | 15337 | |
81ecdfbb RW |
15338 | esac |
15339 | ||
06a51eac RW |
15340 | |
15341 | case $ac_file$ac_mode in | |
15342 | "Makefile":F) sed "$extrasub_build" Makefile | | |
15343 | sed "$extrasub_host" | | |
15344 | sed "$extrasub_target" > mf$$ | |
15345 | mv -f mf$$ Makefile ;; | |
15346 | ||
15347 | esac | |
81ecdfbb RW |
15348 | done # for ac_tag |
15349 | ||
15350 | ||
15351 | as_fn_exit 0 | |
c6b750e1 | 15352 | _ACEOF |
c6b750e1 DJ |
15353 | ac_clean_files=$ac_clean_files_save |
15354 | ||
81ecdfbb RW |
15355 | test $ac_write_fail = 0 || |
15356 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
15357 | ||
c6b750e1 DJ |
15358 | |
15359 | # configure is writing to config.log, and then calls config.status. | |
15360 | # config.status does its own redirection, appending to config.log. | |
15361 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15362 | # by configure, so config.status won't be able to write to it; its | |
15363 | # output is simply discarded. So we exec the FD to /dev/null, | |
15364 | # effectively closing config.log, so it can be properly (re)opened and | |
15365 | # appended to by config.status. When coming back to configure, we | |
15366 | # need to make the FD available again. | |
15367 | if test "$no_create" != yes; then | |
15368 | ac_cs_success=: | |
15369 | ac_config_status_args= | |
15370 | test "$silent" = yes && | |
15371 | ac_config_status_args="$ac_config_status_args --quiet" | |
15372 | exec 5>/dev/null | |
15373 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15374 | exec 5>>config.log | |
15375 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15376 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
15377 | $ac_cs_success || as_fn_exit $? |
15378 | fi | |
15379 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
15380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
15381 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 15382 | fi |
c148b4cb | 15383 |