Commit | Line | Data |
---|---|---|
a0da8069 | 1 | #! /bin/sh |
a0da8069 | 2 | # Guess values for system-dependent variables and create Makefiles. |
81ecdfbb RW |
3 | # Generated by GNU Autoconf 2.64. |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
a0da8069 NN |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
c6b750e1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
c6b750e1 | 31 | fi |
c6b750e1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
c6b750e1 DJ |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
c6b750e1 DJ |
121 | PS1='$ ' |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
81ecdfbb RW |
126 | LC_ALL=C |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
8e957354 PB |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
172 | test \$(( 1 + 1 )) = 2 || exit 1" | |
81ecdfbb RW |
173 | if (eval "$as_required") 2>/dev/null; then : |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
179 | ||
180 | else | |
181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
182 | as_found=false | |
183 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
c6b750e1 | 184 | do |
81ecdfbb RW |
185 | IFS=$as_save_IFS |
186 | test -z "$as_dir" && as_dir=. | |
187 | as_found=: | |
188 | case $as_dir in #( | |
189 | /*) | |
190 | for as_base in sh bash ksh sh5; do | |
191 | # Try only shells that exist, to save several forks. | |
192 | as_shell=$as_dir/$as_base | |
193 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
194 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
195 | CONFIG_SHELL=$as_shell as_have_required=yes | |
196 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
197 | break 2 | |
198 | fi | |
199 | fi | |
200 | done;; | |
201 | esac | |
202 | as_found=false | |
203 | done | |
204 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
205 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
206 | CONFIG_SHELL=$SHELL as_have_required=yes | |
207 | fi; } | |
208 | IFS=$as_save_IFS | |
209 | ||
210 | ||
211 | if test "x$CONFIG_SHELL" != x; then : | |
212 | # We cannot yet assume a decent shell, so we have to provide a | |
213 | # neutralization value for shells without unset; and this also | |
214 | # works around shells that cannot unset nonexistent variables. | |
215 | BASH_ENV=/dev/null | |
216 | ENV=/dev/null | |
217 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
218 | export CONFIG_SHELL | |
219 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
220 | fi | |
221 | ||
222 | if test x$as_have_required = xno; then : | |
223 | $as_echo "$0: This script requires a shell more modern than all" | |
224 | $as_echo "$0: the shells that I found on your system." | |
225 | if test x${ZSH_VERSION+set} = xset ; then | |
226 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
227 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
c6b750e1 | 228 | else |
81ecdfbb RW |
229 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
230 | $0: including any error possibly output before this | |
231 | $0: message. Then install a modern shell, or manually run | |
232 | $0: the script under such a shell if you do have one." | |
c6b750e1 | 233 | fi |
81ecdfbb RW |
234 | exit 1 |
235 | fi | |
236 | fi | |
237 | fi | |
238 | SHELL=${CONFIG_SHELL-/bin/sh} | |
239 | export SHELL | |
240 | # Unset more variables known to interfere with behavior of common tools. | |
241 | CLICOLOR_FORCE= GREP_OPTIONS= | |
242 | unset CLICOLOR_FORCE GREP_OPTIONS | |
243 | ||
244 | ## --------------------- ## | |
245 | ## M4sh Shell Functions. ## | |
246 | ## --------------------- ## | |
247 | # as_fn_unset VAR | |
248 | # --------------- | |
249 | # Portably unset VAR. | |
250 | as_fn_unset () | |
251 | { | |
252 | { eval $1=; unset $1;} | |
253 | } | |
254 | as_unset=as_fn_unset | |
255 | ||
256 | # as_fn_set_status STATUS | |
257 | # ----------------------- | |
258 | # Set $? to STATUS, without forking. | |
259 | as_fn_set_status () | |
260 | { | |
261 | return $1 | |
262 | } # as_fn_set_status | |
c6b750e1 | 263 | |
81ecdfbb RW |
264 | # as_fn_exit STATUS |
265 | # ----------------- | |
266 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
267 | as_fn_exit () | |
268 | { | |
269 | set +e | |
270 | as_fn_set_status $1 | |
271 | exit $1 | |
272 | } # as_fn_exit | |
273 | ||
274 | # as_fn_mkdir_p | |
275 | # ------------- | |
276 | # Create "$as_dir" as a directory, including parents if necessary. | |
277 | as_fn_mkdir_p () | |
278 | { | |
279 | ||
280 | case $as_dir in #( | |
281 | -*) as_dir=./$as_dir;; | |
282 | esac | |
283 | test -d "$as_dir" || eval $as_mkdir_p || { | |
284 | as_dirs= | |
285 | while :; do | |
286 | case $as_dir in #( | |
287 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
288 | *) as_qdir=$as_dir;; | |
289 | esac | |
290 | as_dirs="'$as_qdir' $as_dirs" | |
291 | as_dir=`$as_dirname -- "$as_dir" || | |
292 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
293 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
294 | X"$as_dir" : 'X\(//\)$' \| \ | |
295 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
296 | $as_echo X"$as_dir" | | |
297 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
298 | s//\1/ | |
299 | q | |
300 | } | |
301 | /^X\(\/\/\)[^/].*/{ | |
302 | s//\1/ | |
303 | q | |
304 | } | |
305 | /^X\(\/\/\)$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\).*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | s/.*/./; q'` | |
314 | test -d "$as_dir" && break | |
315 | done | |
316 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
317 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
318 | ||
319 | ||
320 | } # as_fn_mkdir_p | |
321 | # as_fn_append VAR VALUE | |
322 | # ---------------------- | |
323 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
324 | # advantage of any shell optimizations that allow amortized linear growth over | |
325 | # repeated appends, instead of the typical quadratic growth present in naive | |
326 | # implementations. | |
327 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
328 | eval 'as_fn_append () | |
329 | { | |
330 | eval $1+=\$2 | |
331 | }' | |
332 | else | |
333 | as_fn_append () | |
334 | { | |
335 | eval $1=\$$1\$2 | |
336 | } | |
337 | fi # as_fn_append | |
338 | ||
339 | # as_fn_arith ARG... | |
340 | # ------------------ | |
341 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
342 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
343 | # must be portable across $(()) and expr. | |
344 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
345 | eval 'as_fn_arith () | |
346 | { | |
347 | as_val=$(( $* )) | |
348 | }' | |
349 | else | |
350 | as_fn_arith () | |
351 | { | |
352 | as_val=`expr "$@" || test $? -eq 1` | |
353 | } | |
354 | fi # as_fn_arith | |
355 | ||
356 | ||
357 | # as_fn_error ERROR [LINENO LOG_FD] | |
358 | # --------------------------------- | |
359 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
360 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
361 | # script with status $?, using 1 if that was 0. | |
362 | as_fn_error () | |
363 | { | |
364 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
365 | if test "$3"; then | |
366 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
367 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
368 | fi | |
369 | $as_echo "$as_me: error: $1" >&2 | |
370 | as_fn_exit $as_status | |
371 | } # as_fn_error | |
372 | ||
373 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
374 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
375 | as_expr=expr |
376 | else | |
377 | as_expr=false | |
378 | fi | |
379 | ||
81ecdfbb | 380 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
381 | as_basename=basename |
382 | else | |
383 | as_basename=false | |
384 | fi | |
385 | ||
81ecdfbb RW |
386 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
387 | as_dirname=dirname | |
388 | else | |
389 | as_dirname=false | |
390 | fi | |
c6b750e1 | 391 | |
81ecdfbb | 392 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
393 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
394 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
395 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
396 | $as_echo X/"$0" | | |
397 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
398 | s//\1/ | |
399 | q | |
400 | } | |
401 | /^X\/\(\/\/\)$/{ | |
402 | s//\1/ | |
403 | q | |
404 | } | |
405 | /^X\/\(\/\).*/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | s/.*/./; q'` | |
c6b750e1 | 410 | |
c6b750e1 DJ |
411 | # Avoid depending upon Character Ranges. |
412 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
413 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
414 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
415 | as_cr_digits='0123456789' | |
416 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
417 | ||
c6b750e1 | 418 | |
81ecdfbb RW |
419 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
420 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
421 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
422 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
423 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
424 | sed -n ' | |
425 | p | |
426 | /[$]LINENO/= | |
427 | ' <$as_myself | | |
c6b750e1 | 428 | sed ' |
81ecdfbb RW |
429 | s/[$]LINENO.*/&-/ |
430 | t lineno | |
431 | b | |
432 | :lineno | |
c6b750e1 | 433 | N |
81ecdfbb RW |
434 | :loop |
435 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c6b750e1 | 436 | t loop |
81ecdfbb | 437 | s/-\n.*// |
c6b750e1 | 438 | ' >$as_me.lineno && |
81ecdfbb RW |
439 | chmod +x "$as_me.lineno" || |
440 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
c6b750e1 DJ |
441 | |
442 | # Don't try to exec as it changes $[0], causing all sort of problems | |
443 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
444 | # original and so on. Autoconf is especially sensitive to this). |
445 | . "./$as_me.lineno" | |
c6b750e1 DJ |
446 | # Exit status is that of the last command. |
447 | exit | |
448 | } | |
449 | ||
81ecdfbb RW |
450 | ECHO_C= ECHO_N= ECHO_T= |
451 | case `echo -n x` in #((((( | |
452 | -n*) | |
453 | case `echo 'xy\c'` in | |
454 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
455 | xy) ECHO_C='\c';; | |
456 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
457 | ECHO_T=' ';; | |
458 | esac;; | |
459 | *) | |
460 | ECHO_N='-n';; | |
c6b750e1 DJ |
461 | esac |
462 | ||
81ecdfbb RW |
463 | rm -f conf$$ conf$$.exe conf$$.file |
464 | if test -d conf$$.dir; then | |
465 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 466 | else |
81ecdfbb RW |
467 | rm -f conf$$.dir |
468 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 469 | fi |
81ecdfbb RW |
470 | if (echo >conf$$.file) 2>/dev/null; then |
471 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 472 | as_ln_s='ln -s' |
81ecdfbb RW |
473 | # ... but there are two gotchas: |
474 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
475 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
476 | # In both cases, we have to default to `cp -p'. | |
477 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
478 | as_ln_s='cp -p' | |
479 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s=ln | |
481 | else | |
482 | as_ln_s='cp -p' | |
c6b750e1 | 483 | fi |
c6b750e1 DJ |
484 | else |
485 | as_ln_s='cp -p' | |
486 | fi | |
81ecdfbb RW |
487 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
488 | rmdir conf$$.dir 2>/dev/null | |
c6b750e1 DJ |
489 | |
490 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 491 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
492 | else |
493 | test -d ./-p && rmdir ./-p | |
494 | as_mkdir_p=false | |
495 | fi | |
496 | ||
81ecdfbb RW |
497 | if test -x / >/dev/null 2>&1; then |
498 | as_test_x='test -x' | |
499 | else | |
500 | if ls -dL / >/dev/null 2>&1; then | |
501 | as_ls_L_option=L | |
502 | else | |
503 | as_ls_L_option= | |
504 | fi | |
505 | as_test_x=' | |
506 | eval sh -c '\'' | |
507 | if test -d "$1"; then | |
508 | test -d "$1/."; | |
509 | else | |
510 | case $1 in #( | |
511 | -*)set "./$1";; | |
512 | esac; | |
513 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
514 | ???[sx]*):;;*)false;;esac;fi | |
515 | '\'' sh | |
516 | ' | |
517 | fi | |
518 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
519 | |
520 | # Sed expression to map a string onto a valid CPP name. | |
521 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
522 | ||
523 | # Sed expression to map a string onto a valid variable name. | |
524 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
525 | ||
526 | ||
81ecdfbb | 527 | exec 7<&0 </dev/null 6>&1 |
a0da8069 | 528 | |
c6b750e1 DJ |
529 | # Name of the host. |
530 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
531 | # so uname gets run too. | |
532 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
533 | ||
c6b750e1 DJ |
534 | # |
535 | # Initializations. | |
536 | # | |
a0da8069 | 537 | ac_default_prefix=/usr/local |
81ecdfbb | 538 | ac_clean_files= |
c6b750e1 | 539 | ac_config_libobj_dir=. |
81ecdfbb | 540 | LIBOBJS= |
c6b750e1 DJ |
541 | cross_compiling=no |
542 | subdirs= | |
543 | MFLAGS= | |
544 | MAKEFLAGS= | |
c6b750e1 DJ |
545 | |
546 | # Identity of this package. | |
547 | PACKAGE_NAME= | |
548 | PACKAGE_TARNAME= | |
549 | PACKAGE_VERSION= | |
550 | PACKAGE_STRING= | |
551 | PACKAGE_BUGREPORT= | |
81ecdfbb | 552 | PACKAGE_URL= |
c6b750e1 DJ |
553 | |
554 | ac_unique_file="move-if-change" | |
81ecdfbb RW |
555 | enable_option_checking=no |
556 | ac_subst_vars='LTLIBOBJS | |
557 | LIBOBJS | |
558 | compare_exclusions | |
82033c9b | 559 | host_shared |
81ecdfbb RW |
560 | stage2_werror_flag |
561 | stage1_checking | |
562 | stage1_cflags | |
563 | MAINT | |
564 | MAINTAINER_MODE_FALSE | |
565 | MAINTAINER_MODE_TRUE | |
566 | COMPILER_NM_FOR_TARGET | |
567 | COMPILER_LD_FOR_TARGET | |
568 | COMPILER_AS_FOR_TARGET | |
569 | FLAGS_FOR_TARGET | |
570 | RAW_CXX_FOR_TARGET | |
571 | WINDMC_FOR_TARGET | |
572 | WINDRES_FOR_TARGET | |
573 | STRIP_FOR_TARGET | |
b121d7d4 | 574 | READELF_FOR_TARGET |
81ecdfbb RW |
575 | RANLIB_FOR_TARGET |
576 | OBJDUMP_FOR_TARGET | |
6b91c541 | 577 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
578 | NM_FOR_TARGET |
579 | LIPO_FOR_TARGET | |
580 | LD_FOR_TARGET | |
581 | DLLTOOL_FOR_TARGET | |
582 | AS_FOR_TARGET | |
583 | AR_FOR_TARGET | |
e552509b | 584 | GOC_FOR_TARGET |
81ecdfbb RW |
585 | GFORTRAN_FOR_TARGET |
586 | GCJ_FOR_TARGET | |
587 | GCC_FOR_TARGET | |
588 | CXX_FOR_TARGET | |
589 | CC_FOR_TARGET | |
b121d7d4 | 590 | READELF |
81ecdfbb RW |
591 | OBJDUMP |
592 | OBJCOPY | |
593 | WINDMC | |
594 | WINDRES | |
595 | STRIP | |
596 | RANLIB | |
597 | NM | |
598 | LIPO | |
599 | LD | |
600 | DLLTOOL | |
601 | AS | |
602 | AR | |
603 | RUNTEST | |
604 | EXPECT | |
605 | MAKEINFO | |
606 | FLEX | |
607 | LEX | |
608 | M4 | |
609 | BISON | |
610 | YACC | |
81ecdfbb RW |
611 | WINDRES_FOR_BUILD |
612 | WINDMC_FOR_BUILD | |
613 | RANLIB_FOR_BUILD | |
614 | NM_FOR_BUILD | |
615 | LD_FOR_BUILD | |
616 | LDFLAGS_FOR_BUILD | |
e552509b | 617 | GOC_FOR_BUILD |
81ecdfbb RW |
618 | GFORTRAN_FOR_BUILD |
619 | GCJ_FOR_BUILD | |
620 | DLLTOOL_FOR_BUILD | |
621 | CXX_FOR_BUILD | |
622 | CXXFLAGS_FOR_BUILD | |
623 | CFLAGS_FOR_BUILD | |
624 | CC_FOR_BUILD | |
625 | AS_FOR_BUILD | |
626 | AR_FOR_BUILD | |
911e63d0 | 627 | target_configdirs |
81ecdfbb | 628 | configdirs |
81ecdfbb | 629 | build_configdirs |
81ecdfbb RW |
630 | INSTALL_GDB_TK |
631 | GDB_TK | |
632 | CONFIGURE_GDB_TK | |
633 | build_tooldir | |
634 | tooldir | |
635 | GCC_SHLIB_SUBDIR | |
636 | RPATH_ENVVAR | |
4074d5f2 RW |
637 | target_configargs |
638 | host_configargs | |
639 | build_configargs | |
96655cc4 | 640 | BUILD_CONFIG |
91c1f14c | 641 | LDFLAGS_FOR_TARGET |
81ecdfbb RW |
642 | CXXFLAGS_FOR_TARGET |
643 | CFLAGS_FOR_TARGET | |
644 | DEBUG_PREFIX_CFLAGS_FOR_TARGET | |
645 | SYSROOT_CFLAGS_FOR_TARGET | |
e81d5d05 | 646 | extra_host_zlib_configure_flags |
700d40ca | 647 | extra_host_libiberty_configure_flags |
1b6c0831 L |
648 | stage1_languages |
649 | extra_linker_plugin_flags | |
650 | extra_linker_plugin_configure_flags | |
7ec59b9e | 651 | islinc |
1b6c0831 | 652 | isllibs |
52cf9762 | 653 | islver |
81ecdfbb | 654 | poststage1_ldflags |
143754cd | 655 | poststage1_libs |
81ecdfbb | 656 | stage1_ldflags |
b3676d82 | 657 | stage1_libs |
7ec59b9e | 658 | extra_isl_gmp_configure_flags |
81ecdfbb RW |
659 | extra_mpc_mpfr_configure_flags |
660 | extra_mpc_gmp_configure_flags | |
661 | extra_mpfr_configure_flags | |
662 | gmpinc | |
663 | gmplibs | |
664 | do_compare | |
665 | GNATMAKE | |
666 | GNATBIND | |
667 | ac_ct_CXX | |
668 | CXXFLAGS | |
669 | CXX | |
670 | OBJEXT | |
671 | EXEEXT | |
672 | ac_ct_CC | |
673 | CPPFLAGS | |
674 | LDFLAGS | |
675 | CFLAGS | |
676 | CC | |
ffdd6afc | 677 | EXTRA_CONFIGARGS_LIBJAVA |
1b6c0831 | 678 | extra_liboffloadmic_configure_flags |
81ecdfbb RW |
679 | target_subdir |
680 | host_subdir | |
681 | build_subdir | |
682 | build_libsubdir | |
8e957354 PB |
683 | AWK |
684 | SED | |
81ecdfbb RW |
685 | LN_S |
686 | LN | |
687 | INSTALL_DATA | |
688 | INSTALL_SCRIPT | |
689 | INSTALL_PROGRAM | |
690 | target_os | |
691 | target_vendor | |
692 | target_cpu | |
693 | target | |
694 | host_os | |
695 | host_vendor | |
696 | host_cpu | |
697 | host | |
698 | target_noncanonical | |
699 | host_noncanonical | |
700 | build_noncanonical | |
701 | build_os | |
702 | build_vendor | |
703 | build_cpu | |
704 | build | |
705 | TOPLEVEL_CONFIGURE_ARGUMENTS | |
706 | target_alias | |
707 | host_alias | |
708 | build_alias | |
709 | LIBS | |
710 | ECHO_T | |
711 | ECHO_N | |
712 | ECHO_C | |
713 | DEFS | |
714 | mandir | |
715 | localedir | |
716 | libdir | |
717 | psdir | |
718 | pdfdir | |
719 | dvidir | |
720 | htmldir | |
721 | infodir | |
722 | docdir | |
723 | oldincludedir | |
724 | includedir | |
725 | localstatedir | |
726 | sharedstatedir | |
727 | sysconfdir | |
728 | datadir | |
729 | datarootdir | |
730 | libexecdir | |
731 | sbindir | |
732 | bindir | |
733 | program_transform_name | |
734 | prefix | |
735 | exec_prefix | |
736 | PACKAGE_URL | |
737 | PACKAGE_BUGREPORT | |
738 | PACKAGE_STRING | |
739 | PACKAGE_VERSION | |
740 | PACKAGE_TARNAME | |
741 | PACKAGE_NAME | |
742 | PATH_SEPARATOR | |
743 | SHELL' | |
744 | ac_subst_files='serialization_dependencies | |
745 | host_makefile_frag | |
746 | target_makefile_frag | |
747 | alphaieee_frag | |
748 | ospace_frag' | |
749 | ac_user_opts=' | |
750 | enable_option_checking | |
751 | with_build_libsubdir | |
cf39cfc5 | 752 | with_system_zlib |
1b6c0831 L |
753 | enable_as_accelerator_for |
754 | enable_offload_targets | |
81ecdfbb | 755 | enable_gold |
c7791212 | 756 | enable_ld |
edeefb67 | 757 | enable_compressed_debug_sections |
89a1e9c3 PB |
758 | enable_libquadmath |
759 | enable_libquadmath_support | |
81ecdfbb RW |
760 | enable_libada |
761 | enable_libssp | |
f66a9a70 | 762 | enable_libstdcxx |
1b6c0831 | 763 | enable_liboffloadmic |
ffdd6afc ILT |
764 | enable_static_libjava |
765 | enable_bootstrap | |
81ecdfbb RW |
766 | with_mpc |
767 | with_mpc_include | |
768 | with_mpc_lib | |
769 | with_mpfr_dir | |
770 | with_mpfr | |
771 | with_mpfr_include | |
772 | with_mpfr_lib | |
773 | with_gmp_dir | |
774 | with_gmp | |
775 | with_gmp_include | |
776 | with_gmp_lib | |
81ecdfbb | 777 | with_stage1_libs |
b3676d82 | 778 | with_stage1_ldflags |
81ecdfbb | 779 | with_boot_libs |
143754cd | 780 | with_boot_ldflags |
7ec59b9e L |
781 | with_isl |
782 | with_isl_include | |
783 | with_isl_lib | |
784 | enable_isl_version_check | |
700d40ca | 785 | enable_lto |
1b6c0831 L |
786 | enable_linker_plugin_configure_flags |
787 | enable_linker_plugin_flags | |
81ecdfbb RW |
788 | enable_stage1_languages |
789 | enable_objc_gc | |
790 | with_build_sysroot | |
791 | with_debug_prefix_map | |
96655cc4 | 792 | with_build_config |
730af8ee | 793 | enable_vtable_verify |
81ecdfbb RW |
794 | enable_serial_configure |
795 | with_build_time_tools | |
796 | enable_maintainer_mode | |
797 | enable_stage1_checking | |
798 | enable_werror | |
82033c9b | 799 | enable_host_shared |
81ecdfbb RW |
800 | ' |
801 | ac_precious_vars='build_alias | |
802 | host_alias | |
803 | target_alias | |
804 | CC | |
805 | CFLAGS | |
806 | LDFLAGS | |
807 | LIBS | |
808 | CPPFLAGS | |
809 | CXX | |
810 | CXXFLAGS | |
811 | CCC | |
4074d5f2 RW |
812 | build_configargs |
813 | host_configargs | |
814 | target_configargs | |
81ecdfbb RW |
815 | AR |
816 | AS | |
817 | DLLTOOL | |
818 | LD | |
819 | LIPO | |
820 | NM | |
821 | RANLIB | |
822 | STRIP | |
823 | WINDRES | |
824 | WINDMC | |
825 | OBJCOPY | |
826 | OBJDUMP | |
b121d7d4 | 827 | READELF |
81ecdfbb RW |
828 | CC_FOR_TARGET |
829 | CXX_FOR_TARGET | |
830 | GCC_FOR_TARGET | |
831 | GCJ_FOR_TARGET | |
832 | GFORTRAN_FOR_TARGET | |
e552509b | 833 | GOC_FOR_TARGET |
81ecdfbb RW |
834 | AR_FOR_TARGET |
835 | AS_FOR_TARGET | |
836 | DLLTOOL_FOR_TARGET | |
837 | LD_FOR_TARGET | |
838 | LIPO_FOR_TARGET | |
839 | NM_FOR_TARGET | |
6b91c541 | 840 | OBJCOPY_FOR_TARGET |
81ecdfbb RW |
841 | OBJDUMP_FOR_TARGET |
842 | RANLIB_FOR_TARGET | |
b121d7d4 | 843 | READELF_FOR_TARGET |
81ecdfbb RW |
844 | STRIP_FOR_TARGET |
845 | WINDRES_FOR_TARGET | |
846 | WINDMC_FOR_TARGET' | |
847 | ||
a0da8069 NN |
848 | |
849 | # Initialize some variables set by options. | |
c6b750e1 DJ |
850 | ac_init_help= |
851 | ac_init_version=false | |
81ecdfbb RW |
852 | ac_unrecognized_opts= |
853 | ac_unrecognized_sep= | |
a0da8069 NN |
854 | # The variables have the same names as the options, with |
855 | # dashes changed to underlines. | |
c6b750e1 | 856 | cache_file=/dev/null |
a0da8069 | 857 | exec_prefix=NONE |
a0da8069 | 858 | no_create= |
a0da8069 NN |
859 | no_recursion= |
860 | prefix=NONE | |
861 | program_prefix=NONE | |
862 | program_suffix=NONE | |
863 | program_transform_name=s,x,x, | |
864 | silent= | |
865 | site= | |
866 | srcdir= | |
a0da8069 NN |
867 | verbose= |
868 | x_includes=NONE | |
869 | x_libraries=NONE | |
c6b750e1 DJ |
870 | |
871 | # Installation directory options. | |
872 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
873 | # and all the variables that are supposed to be based on exec_prefix | |
874 | # by default will actually change. | |
875 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 876 | # (The list follows the same order as the GNU Coding Standards.) |
a0da8069 NN |
877 | bindir='${exec_prefix}/bin' |
878 | sbindir='${exec_prefix}/sbin' | |
879 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
880 | datarootdir='${prefix}/share' |
881 | datadir='${datarootdir}' | |
a0da8069 NN |
882 | sysconfdir='${prefix}/etc' |
883 | sharedstatedir='${prefix}/com' | |
884 | localstatedir='${prefix}/var' | |
a0da8069 NN |
885 | includedir='${prefix}/include' |
886 | oldincludedir='/usr/include' | |
81ecdfbb RW |
887 | docdir='${datarootdir}/doc/${PACKAGE}' |
888 | infodir='${datarootdir}/info' | |
889 | htmldir='${docdir}' | |
890 | dvidir='${docdir}' | |
891 | pdfdir='${docdir}' | |
892 | psdir='${docdir}' | |
893 | libdir='${exec_prefix}/lib' | |
894 | localedir='${datarootdir}/locale' | |
895 | mandir='${datarootdir}/man' | |
252b5132 | 896 | |
a0da8069 | 897 | ac_prev= |
81ecdfbb | 898 | ac_dashdash= |
a0da8069 NN |
899 | for ac_option |
900 | do | |
a0da8069 NN |
901 | # If the previous option needs an argument, assign it. |
902 | if test -n "$ac_prev"; then | |
81ecdfbb | 903 | eval $ac_prev=\$ac_option |
a0da8069 NN |
904 | ac_prev= |
905 | continue | |
906 | fi | |
252b5132 | 907 | |
81ecdfbb RW |
908 | case $ac_option in |
909 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
910 | *) ac_optarg=yes ;; | |
911 | esac | |
a0da8069 NN |
912 | |
913 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
914 | ||
81ecdfbb RW |
915 | case $ac_dashdash$ac_option in |
916 | --) | |
917 | ac_dashdash=yes ;; | |
a0da8069 NN |
918 | |
919 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
920 | ac_prev=bindir ;; | |
921 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
c6b750e1 | 922 | bindir=$ac_optarg ;; |
a0da8069 NN |
923 | |
924 | -build | --build | --buil | --bui | --bu) | |
c6b750e1 | 925 | ac_prev=build_alias ;; |
a0da8069 | 926 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
c6b750e1 | 927 | build_alias=$ac_optarg ;; |
a0da8069 NN |
928 | |
929 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
930 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
931 | ac_prev=cache_file ;; | |
932 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
933 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
c6b750e1 DJ |
934 | cache_file=$ac_optarg ;; |
935 | ||
936 | --config-cache | -C) | |
937 | cache_file=config.cache ;; | |
a0da8069 | 938 | |
81ecdfbb | 939 | -datadir | --datadir | --datadi | --datad) |
a0da8069 | 940 | ac_prev=datadir ;; |
81ecdfbb | 941 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
c6b750e1 | 942 | datadir=$ac_optarg ;; |
a0da8069 | 943 | |
81ecdfbb RW |
944 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
945 | | --dataroo | --dataro | --datar) | |
946 | ac_prev=datarootdir ;; | |
947 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
948 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
949 | datarootdir=$ac_optarg ;; | |
950 | ||
a0da8069 | 951 | -disable-* | --disable-*) |
81ecdfbb | 952 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
a0da8069 | 953 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
954 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
955 | as_fn_error "invalid feature name: $ac_useropt" | |
956 | ac_useropt_orig=$ac_useropt | |
957 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
958 | case $ac_user_opts in | |
959 | *" | |
960 | "enable_$ac_useropt" | |
961 | "*) ;; | |
962 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
963 | ac_unrecognized_sep=', ';; | |
964 | esac | |
965 | eval enable_$ac_useropt=no ;; | |
966 | ||
967 | -docdir | --docdir | --docdi | --doc | --do) | |
968 | ac_prev=docdir ;; | |
969 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
970 | docdir=$ac_optarg ;; | |
971 | ||
972 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
973 | ac_prev=dvidir ;; | |
974 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
975 | dvidir=$ac_optarg ;; | |
a0da8069 NN |
976 | |
977 | -enable-* | --enable-*) | |
81ecdfbb | 978 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
a0da8069 | 979 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
980 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
981 | as_fn_error "invalid feature name: $ac_useropt" | |
982 | ac_useropt_orig=$ac_useropt | |
983 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
984 | case $ac_user_opts in | |
985 | *" | |
986 | "enable_$ac_useropt" | |
987 | "*) ;; | |
988 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
989 | ac_unrecognized_sep=', ';; | |
a0da8069 | 990 | esac |
81ecdfbb | 991 | eval enable_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
992 | |
993 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
994 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
995 | | --exec | --exe | --ex) | |
996 | ac_prev=exec_prefix ;; | |
997 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
998 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
999 | | --exec=* | --exe=* | --ex=*) | |
c6b750e1 | 1000 | exec_prefix=$ac_optarg ;; |
a0da8069 NN |
1001 | |
1002 | -gas | --gas | --ga | --g) | |
1003 | # Obsolete; use --with-gas. | |
1004 | with_gas=yes ;; | |
1005 | ||
c6b750e1 DJ |
1006 | -help | --help | --hel | --he | -h) |
1007 | ac_init_help=long ;; | |
1008 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1009 | ac_init_help=recursive ;; | |
1010 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1011 | ac_init_help=short ;; | |
a0da8069 NN |
1012 | |
1013 | -host | --host | --hos | --ho) | |
c6b750e1 | 1014 | ac_prev=host_alias ;; |
a0da8069 | 1015 | -host=* | --host=* | --hos=* | --ho=*) |
c6b750e1 | 1016 | host_alias=$ac_optarg ;; |
a0da8069 | 1017 | |
81ecdfbb RW |
1018 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1019 | ac_prev=htmldir ;; | |
1020 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1021 | | --ht=*) | |
1022 | htmldir=$ac_optarg ;; | |
1023 | ||
a0da8069 NN |
1024 | -includedir | --includedir | --includedi | --included | --include \ |
1025 | | --includ | --inclu | --incl | --inc) | |
1026 | ac_prev=includedir ;; | |
1027 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1028 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
c6b750e1 | 1029 | includedir=$ac_optarg ;; |
a0da8069 NN |
1030 | |
1031 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1032 | ac_prev=infodir ;; | |
1033 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
c6b750e1 | 1034 | infodir=$ac_optarg ;; |
a0da8069 NN |
1035 | |
1036 | -libdir | --libdir | --libdi | --libd) | |
1037 | ac_prev=libdir ;; | |
1038 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
c6b750e1 | 1039 | libdir=$ac_optarg ;; |
a0da8069 NN |
1040 | |
1041 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1042 | | --libexe | --libex | --libe) | |
1043 | ac_prev=libexecdir ;; | |
1044 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1045 | | --libexe=* | --libex=* | --libe=*) | |
c6b750e1 | 1046 | libexecdir=$ac_optarg ;; |
a0da8069 | 1047 | |
81ecdfbb RW |
1048 | -localedir | --localedir | --localedi | --localed | --locale) |
1049 | ac_prev=localedir ;; | |
1050 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1051 | localedir=$ac_optarg ;; | |
1052 | ||
a0da8069 | 1053 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1054 | | --localstate | --localstat | --localsta | --localst | --locals) |
a0da8069 NN |
1055 | ac_prev=localstatedir ;; |
1056 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1057 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
c6b750e1 | 1058 | localstatedir=$ac_optarg ;; |
a0da8069 NN |
1059 | |
1060 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1061 | ac_prev=mandir ;; | |
1062 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
c6b750e1 | 1063 | mandir=$ac_optarg ;; |
a0da8069 NN |
1064 | |
1065 | -nfp | --nfp | --nf) | |
1066 | # Obsolete; use --without-fp. | |
1067 | with_fp=no ;; | |
1068 | ||
1069 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c6b750e1 | 1070 | | --no-cr | --no-c | -n) |
a0da8069 NN |
1071 | no_create=yes ;; |
1072 | ||
1073 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1074 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1075 | no_recursion=yes ;; | |
1076 | ||
1077 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1078 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1079 | | --oldin | --oldi | --old | --ol | --o) | |
1080 | ac_prev=oldincludedir ;; | |
1081 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1082 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1083 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
c6b750e1 | 1084 | oldincludedir=$ac_optarg ;; |
a0da8069 NN |
1085 | |
1086 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1087 | ac_prev=prefix ;; | |
1088 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
c6b750e1 | 1089 | prefix=$ac_optarg ;; |
a0da8069 NN |
1090 | |
1091 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1092 | | --program-pre | --program-pr | --program-p) | |
1093 | ac_prev=program_prefix ;; | |
1094 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1095 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
c6b750e1 | 1096 | program_prefix=$ac_optarg ;; |
a0da8069 NN |
1097 | |
1098 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1099 | | --program-suf | --program-su | --program-s) | |
1100 | ac_prev=program_suffix ;; | |
1101 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1102 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
c6b750e1 | 1103 | program_suffix=$ac_optarg ;; |
a0da8069 NN |
1104 | |
1105 | -program-transform-name | --program-transform-name \ | |
1106 | | --program-transform-nam | --program-transform-na \ | |
1107 | | --program-transform-n | --program-transform- \ | |
1108 | | --program-transform | --program-transfor \ | |
1109 | | --program-transfo | --program-transf \ | |
1110 | | --program-trans | --program-tran \ | |
1111 | | --progr-tra | --program-tr | --program-t) | |
1112 | ac_prev=program_transform_name ;; | |
1113 | -program-transform-name=* | --program-transform-name=* \ | |
1114 | | --program-transform-nam=* | --program-transform-na=* \ | |
1115 | | --program-transform-n=* | --program-transform-=* \ | |
1116 | | --program-transform=* | --program-transfor=* \ | |
1117 | | --program-transfo=* | --program-transf=* \ | |
1118 | | --program-trans=* | --program-tran=* \ | |
1119 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
c6b750e1 | 1120 | program_transform_name=$ac_optarg ;; |
a0da8069 | 1121 | |
81ecdfbb RW |
1122 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1123 | ac_prev=pdfdir ;; | |
1124 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1125 | pdfdir=$ac_optarg ;; | |
1126 | ||
1127 | -psdir | --psdir | --psdi | --psd | --ps) | |
1128 | ac_prev=psdir ;; | |
1129 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1130 | psdir=$ac_optarg ;; | |
1131 | ||
a0da8069 NN |
1132 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1133 | | -silent | --silent | --silen | --sile | --sil) | |
1134 | silent=yes ;; | |
1135 | ||
1136 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1137 | ac_prev=sbindir ;; | |
1138 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1139 | | --sbi=* | --sb=*) | |
c6b750e1 | 1140 | sbindir=$ac_optarg ;; |
a0da8069 NN |
1141 | |
1142 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1143 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1144 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1145 | | --sha | --sh) | |
1146 | ac_prev=sharedstatedir ;; | |
1147 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1148 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1149 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1150 | | --sha=* | --sh=*) | |
c6b750e1 | 1151 | sharedstatedir=$ac_optarg ;; |
a0da8069 NN |
1152 | |
1153 | -site | --site | --sit) | |
1154 | ac_prev=site ;; | |
1155 | -site=* | --site=* | --sit=*) | |
c6b750e1 | 1156 | site=$ac_optarg ;; |
a0da8069 NN |
1157 | |
1158 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1159 | ac_prev=srcdir ;; | |
1160 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
c6b750e1 | 1161 | srcdir=$ac_optarg ;; |
a0da8069 NN |
1162 | |
1163 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1164 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1165 | ac_prev=sysconfdir ;; | |
1166 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1167 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
c6b750e1 | 1168 | sysconfdir=$ac_optarg ;; |
a0da8069 NN |
1169 | |
1170 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
c6b750e1 | 1171 | ac_prev=target_alias ;; |
a0da8069 | 1172 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
c6b750e1 | 1173 | target_alias=$ac_optarg ;; |
a0da8069 NN |
1174 | |
1175 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1176 | verbose=yes ;; | |
1177 | ||
c6b750e1 DJ |
1178 | -version | --version | --versio | --versi | --vers | -V) |
1179 | ac_init_version=: ;; | |
a0da8069 NN |
1180 | |
1181 | -with-* | --with-*) | |
81ecdfbb | 1182 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
a0da8069 | 1183 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | as_fn_error "invalid package name: $ac_useropt" | |
1186 | ac_useropt_orig=$ac_useropt | |
1187 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1188 | case $ac_user_opts in | |
1189 | *" | |
1190 | "with_$ac_useropt" | |
1191 | "*) ;; | |
1192 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1193 | ac_unrecognized_sep=', ';; | |
a0da8069 | 1194 | esac |
81ecdfbb | 1195 | eval with_$ac_useropt=\$ac_optarg ;; |
a0da8069 NN |
1196 | |
1197 | -without-* | --without-*) | |
81ecdfbb | 1198 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
a0da8069 | 1199 | # Reject names that are not valid shell variable names. |
81ecdfbb RW |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1201 | as_fn_error "invalid package name: $ac_useropt" | |
1202 | ac_useropt_orig=$ac_useropt | |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=no ;; | |
a0da8069 NN |
1212 | |
1213 | --x) | |
1214 | # Obsolete; use --with-x. | |
1215 | with_x=yes ;; | |
1216 | ||
1217 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1218 | | --x-incl | --x-inc | --x-in | --x-i) | |
1219 | ac_prev=x_includes ;; | |
1220 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1221 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
c6b750e1 | 1222 | x_includes=$ac_optarg ;; |
a0da8069 NN |
1223 | |
1224 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1225 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1226 | ac_prev=x_libraries ;; | |
1227 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1228 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
c6b750e1 | 1229 | x_libraries=$ac_optarg ;; |
a0da8069 | 1230 | |
81ecdfbb RW |
1231 | -*) as_fn_error "unrecognized option: \`$ac_option' |
1232 | Try \`$0 --help' for more information." | |
a0da8069 NN |
1233 | ;; |
1234 | ||
c6b750e1 DJ |
1235 | *=*) |
1236 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1237 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1238 | case $ac_envvar in #( |
1239 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1240 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1241 | esac | |
1242 | eval $ac_envvar=\$ac_optarg | |
c6b750e1 DJ |
1243 | export $ac_envvar ;; |
1244 | ||
a0da8069 | 1245 | *) |
c6b750e1 | 1246 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1247 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
c6b750e1 | 1248 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1249 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
c6b750e1 | 1250 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
a0da8069 NN |
1251 | ;; |
1252 | ||
1253 | esac | |
1254 | done | |
1255 | ||
1256 | if test -n "$ac_prev"; then | |
c6b750e1 | 1257 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
81ecdfbb | 1258 | as_fn_error "missing argument to $ac_option" |
a0da8069 | 1259 | fi |
a0da8069 | 1260 | |
81ecdfbb RW |
1261 | if test -n "$ac_unrecognized_opts"; then |
1262 | case $enable_option_checking in | |
1263 | no) ;; | |
1264 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1265 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
c6b750e1 | 1266 | esac |
81ecdfbb | 1267 | fi |
a0da8069 | 1268 | |
81ecdfbb RW |
1269 | # Check all directory arguments for consistency. |
1270 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1271 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1272 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1273 | libdir localedir mandir | |
a0da8069 | 1274 | do |
81ecdfbb RW |
1275 | eval ac_val=\$$ac_var |
1276 | # Remove trailing slashes. | |
1277 | case $ac_val in | |
1278 | */ ) | |
1279 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1280 | eval $ac_var=\$ac_val;; | |
1281 | esac | |
1282 | # Be sure to have absolute directory names. | |
c6b750e1 | 1283 | case $ac_val in |
81ecdfbb RW |
1284 | [\\/$]* | ?:[\\/]* ) continue;; |
1285 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
a0da8069 | 1286 | esac |
81ecdfbb | 1287 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
a0da8069 NN |
1288 | done |
1289 | ||
c6b750e1 DJ |
1290 | # There might be people who depend on the old broken behavior: `$host' |
1291 | # used to hold the argument of --host etc. | |
1292 | # FIXME: To remove some day. | |
1293 | build=$build_alias | |
1294 | host=$host_alias | |
1295 | target=$target_alias | |
376a0e54 | 1296 | |
c6b750e1 DJ |
1297 | # FIXME: To remove some day. |
1298 | if test "x$host_alias" != x; then | |
1299 | if test "x$build_alias" = x; then | |
1300 | cross_compiling=maybe | |
81ecdfbb | 1301 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
c6b750e1 DJ |
1302 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1303 | elif test "x$build_alias" != "x$host_alias"; then | |
1304 | cross_compiling=yes | |
1305 | fi | |
1306 | fi | |
1307 | ||
1308 | ac_tool_prefix= | |
1309 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1310 | ||
1311 | test "$silent" = yes && exec 6>/dev/null | |
a0da8069 | 1312 | |
a0da8069 | 1313 | |
81ecdfbb RW |
1314 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1315 | ac_ls_di=`ls -di .` && | |
1316 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1317 | as_fn_error "working directory cannot be determined" | |
1318 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1319 | as_fn_error "pwd does not report name of working directory" | |
1320 | ||
1321 | ||
a0da8069 NN |
1322 | # Find the source files, if location was not specified. |
1323 | if test -z "$srcdir"; then | |
1324 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1325 | # Try the directory containing this script, then the parent directory. |
1326 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1327 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1328 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1329 | X"$as_myself" : 'X\(//\)$' \| \ | |
1330 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1331 | $as_echo X"$as_myself" | | |
1332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1333 | s//\1/ | |
1334 | q | |
1335 | } | |
1336 | /^X\(\/\/\)[^/].*/{ | |
1337 | s//\1/ | |
1338 | q | |
1339 | } | |
1340 | /^X\(\/\/\)$/{ | |
1341 | s//\1/ | |
1342 | q | |
1343 | } | |
1344 | /^X\(\/\).*/{ | |
1345 | s//\1/ | |
1346 | q | |
1347 | } | |
1348 | s/.*/./; q'` | |
a0da8069 | 1349 | srcdir=$ac_confdir |
81ecdfbb | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
a0da8069 NN |
1351 | srcdir=.. |
1352 | fi | |
1353 | else | |
1354 | ac_srcdir_defaulted=no | |
1355 | fi | |
81ecdfbb RW |
1356 | if test ! -r "$srcdir/$ac_unique_file"; then |
1357 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1358 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1359 | fi | |
1360 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1361 | ac_abs_confdir=`( | |
1362 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1363 | pwd)` | |
1364 | # When building in place, set srcdir=. | |
1365 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1366 | srcdir=. | |
1367 | fi | |
1368 | # Remove unnecessary trailing slashes from srcdir. | |
1369 | # Double slashes in file names in object file debugging info | |
1370 | # mess up M-x gdb in Emacs. | |
1371 | case $srcdir in | |
1372 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1373 | esac | |
6d0cd39e AM |
1374 | case $srcdir in |
1375 | *" "*) | |
1376 | as_fn_error "path to source, $srcdir, contains spaces" | |
1377 | ;; | |
1378 | esac | |
9cc8ae67 PB |
1379 | ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'` |
1380 | ||
81ecdfbb RW |
1381 | for ac_var in $ac_precious_vars; do |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
c6b750e1 DJ |
1387 | |
1388 | # | |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
1395 | \`configure' configures this package to adapt to many kinds of systems. | |
1396 | ||
1397 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1398 | ||
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1401 | ||
1402 | Defaults for the options are specified in brackets. | |
1403 | ||
1404 | Configuration: | |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
1409 | -q, --quiet, --silent do not print \`checking...' messages | |
1410 | --cache-file=FILE cache test results in FILE [disabled] | |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
c6b750e1 DJ |
1415 | Installation directories: |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1417 | [$ac_default_prefix] |
c6b750e1 | 1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1419 | [PREFIX] |
c6b750e1 DJ |
1420 | |
1421 | By default, \`make install' will install all the files in | |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
1425 | ||
1426 | For better control, use the options below. | |
1427 | ||
1428 | Fine tuning of the installation directories: | |
81ecdfbb RW |
1429 | --bindir=DIR user executables [EPREFIX/bin] |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1444 | --htmldir=DIR html documentation [DOCDIR] | |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
c6b750e1 DJ |
1448 | _ACEOF |
1449 | ||
1450 | cat <<\_ACEOF | |
1451 | ||
1452 | Program names: | |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1456 | ||
1457 | System types: | |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1461 | _ACEOF | |
a0da8069 | 1462 | fi |
a0da8069 | 1463 | |
c6b750e1 DJ |
1464 | if test -n "$ac_init_help"; then |
1465 | ||
1466 | cat <<\_ACEOF | |
1467 | ||
1468 | Optional Features: | |
81ecdfbb | 1469 | --disable-option-checking ignore unrecognized --enable/--with options |
c6b750e1 DJ |
1470 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1471 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1b6c0831 L |
1472 | --enable-as-accelerator-for=ARG |
1473 | build as offload target compiler. Specify offload | |
1474 | host triple by ARG | |
1475 | --enable-offload-targets=LIST | |
1476 | enable offloading to devices from comma-separated | |
1477 | LIST of TARGET[=DIR]. Use optional path to find | |
1478 | offload target compiler during the build | |
c7791212 | 1479 | --enable-gold[=ARG] build gold [ARG={default,yes,no}] |
7837304f | 1480 | --enable-ld[=ARG] build ld [ARG={default,yes,no}] |
6c3bc0f8 | 1481 | --enable-compressed-debug-sections={all,gas,gold,ld,none} |
edeefb67 L |
1482 | Enable compressed debug sections for gas, gold or ld |
1483 | by default | |
89a1e9c3 PB |
1484 | --disable-libquadmath do not build libquadmath directory |
1485 | --disable-libquadmath-support | |
1486 | disable libquadmath support for Fortran | |
521ec477 DD |
1487 | --enable-libada build libada directory |
1488 | --enable-libssp build libssp directory | |
f66a9a70 | 1489 | --disable-libstdcxx do not build libstdc++-v3 directory |
1b6c0831 L |
1490 | --enable-liboffloadmic=ARG |
1491 | build liboffloadmic [ARG={no,host,target}] | |
ffdd6afc ILT |
1492 | --enable-static-libjava[=ARG] |
1493 | build static libjava [default=no] | |
1494 | --enable-bootstrap enable bootstrapping [yes if native build] | |
7ec59b9e | 1495 | --disable-isl-version-check |
4849dfd8 | 1496 | disable check for isl version |
700d40ca | 1497 | --enable-lto enable link time optimization support |
1b6c0831 L |
1498 | --enable-linker-plugin-configure-flags=FLAGS |
1499 | additional flags for configuring linker plugins | |
1500 | [none] | |
1501 | --enable-linker-plugin-flags=FLAGS | |
1502 | additional flags for configuring and building linker | |
1503 | plugins [none] | |
7837304f AS |
1504 | --enable-stage1-languages[=all] |
1505 | choose additional languages to build during stage1. | |
1506 | Mostly useful for compiler development | |
1507 | --enable-objc-gc enable use of Boehm's garbage collector with the GNU | |
1508 | Objective-C runtime | |
ce6c656d | 1509 | --enable-vtable-verify Enable vtable verification feature |
521ec477 | 1510 | --enable-serial-[{host,target,build}-]configure |
7837304f AS |
1511 | force sequential configuration of sub-packages for |
1512 | the host, target or build machine, or all | |
1513 | sub-packages | |
1514 | --enable-maintainer-mode | |
1515 | enable make rules and dependencies not useful (and | |
1516 | sometimes confusing) to the casual installer | |
1517 | --enable-stage1-checking[=all] | |
1518 | choose additional checking for stage1 of the | |
1519 | compiler | |
c6b750e1 | 1520 | --enable-werror enable -Werror in bootstrap stage2 and later |
82033c9b | 1521 | --enable-host-shared build host code as shared libraries |
c6b750e1 DJ |
1522 | |
1523 | Optional Packages: | |
1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1525 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1526 | --with-build-libsubdir=DIR Directory where to find libraries for build system | |
cf39cfc5 | 1527 | --with-system-zlib use installed libz |
7837304f AS |
1528 | --with-mpc=PATH specify prefix directory for installed MPC package. |
1529 | Equivalent to --with-mpc-include=PATH/include plus | |
1530 | --with-mpc-lib=PATH/lib | |
1531 | --with-mpc-include=PATH specify directory for installed MPC include files | |
1532 | --with-mpc-lib=PATH specify directory for the installed MPC library | |
521ec477 DD |
1533 | --with-mpfr-dir=PATH this option has been REMOVED |
1534 | --with-mpfr=PATH specify prefix directory for installed MPFR package. | |
7837304f AS |
1535 | Equivalent to --with-mpfr-include=PATH/include plus |
1536 | --with-mpfr-lib=PATH/lib | |
c6b750e1 | 1537 | --with-mpfr-include=PATH |
521ec477 DD |
1538 | specify directory for installed MPFR include files |
1539 | --with-mpfr-lib=PATH specify directory for the installed MPFR library | |
1540 | --with-gmp-dir=PATH this option has been REMOVED | |
7837304f AS |
1541 | --with-gmp=PATH specify prefix directory for the installed GMP |
1542 | package. Equivalent to | |
1543 | --with-gmp-include=PATH/include plus | |
1544 | --with-gmp-lib=PATH/lib | |
521ec477 DD |
1545 | --with-gmp-include=PATH specify directory for installed GMP include files |
1546 | --with-gmp-lib=PATH specify directory for the installed GMP library | |
b3676d82 | 1547 | --with-stage1-libs=LIBS libraries for stage1 |
7837304f AS |
1548 | --with-stage1-ldflags=FLAGS |
1549 | linker flags for stage1 | |
7837304f AS |
1550 | --with-boot-libs=LIBS libraries for stage2 and later |
1551 | --with-boot-ldflags=FLAGS | |
1552 | linker flags for stage2 and later | |
4849dfd8 | 1553 | --with-isl=PATH Specify prefix directory for the installed isl |
7837304f | 1554 | package. Equivalent to |
7ec59b9e L |
1555 | --with-isl-include=PATH/include plus |
1556 | --with-isl-lib=PATH/lib | |
4849dfd8 NC |
1557 | --with-isl-include=PATH Specify directory for installed isl include files |
1558 | --with-isl-lib=PATH Specify the directory for the installed isl library | |
521ec477 | 1559 | --with-build-sysroot=SYSROOT |
c6b750e1 | 1560 | use sysroot as the system root during the build |
8a6ee3ab | 1561 | --with-debug-prefix-map='A=B C=D ...' |
7837304f AS |
1562 | map A to B, C to D ... in debug information |
1563 | --with-build-config='NAME NAME2...' | |
1564 | use config/NAME.mk build configuration | |
521ec477 | 1565 | --with-build-time-tools=PATH |
c6b750e1 | 1566 | use given path to find target tools during the build |
c6b750e1 DJ |
1567 | |
1568 | Some influential environment variables: | |
1569 | CC C compiler command | |
1570 | CFLAGS C compiler flags | |
1571 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1572 | nonstandard directory <lib dir> | |
81ecdfbb RW |
1573 | LIBS libraries to pass to the linker, e.g. -l<library> |
1574 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1575 | you have headers in a nonstandard directory <include dir> | |
18f6b6ee PB |
1576 | CXX C++ compiler command |
1577 | CXXFLAGS C++ compiler flags | |
4074d5f2 RW |
1578 | build_configargs |
1579 | additional configure arguments for build directories | |
1580 | host_configargs | |
1581 | additional configure arguments for host directories | |
1582 | target_configargs | |
1583 | additional configure arguments for target directories | |
9a819804 AO |
1584 | AR AR for the host |
1585 | AS AS for the host | |
1586 | DLLTOOL DLLTOOL for the host | |
1587 | LD LD for the host | |
1588 | LIPO LIPO for the host | |
1589 | NM NM for the host | |
1590 | RANLIB RANLIB for the host | |
1591 | STRIP STRIP for the host | |
1592 | WINDRES WINDRES for the host | |
0c24b341 | 1593 | WINDMC WINDMC for the host |
9a819804 AO |
1594 | OBJCOPY OBJCOPY for the host |
1595 | OBJDUMP OBJDUMP for the host | |
b121d7d4 | 1596 | READELF READELF for the host |
9a819804 AO |
1597 | CC_FOR_TARGET |
1598 | CC for the target | |
1599 | CXX_FOR_TARGET | |
1600 | CXX for the target | |
1601 | GCC_FOR_TARGET | |
1602 | GCC for the target | |
1603 | GCJ_FOR_TARGET | |
1604 | GCJ for the target | |
1605 | GFORTRAN_FOR_TARGET | |
1606 | GFORTRAN for the target | |
e552509b ILT |
1607 | GOC_FOR_TARGET |
1608 | GOC for the target | |
9a819804 AO |
1609 | AR_FOR_TARGET |
1610 | AR for the target | |
1611 | AS_FOR_TARGET | |
1612 | AS for the target | |
1613 | DLLTOOL_FOR_TARGET | |
1614 | DLLTOOL for the target | |
1615 | LD_FOR_TARGET | |
1616 | LD for the target | |
1617 | LIPO_FOR_TARGET | |
1618 | LIPO for the target | |
1619 | NM_FOR_TARGET | |
1620 | NM for the target | |
6b91c541 AP |
1621 | OBJCOPY_FOR_TARGET |
1622 | OBJCOPY for the target | |
9a819804 AO |
1623 | OBJDUMP_FOR_TARGET |
1624 | OBJDUMP for the target | |
1625 | RANLIB_FOR_TARGET | |
1626 | RANLIB for the target | |
b121d7d4 DD |
1627 | READELF_FOR_TARGET |
1628 | READELF for the target | |
9a819804 AO |
1629 | STRIP_FOR_TARGET |
1630 | STRIP for the target | |
1631 | WINDRES_FOR_TARGET | |
1632 | WINDRES for the target | |
0c24b341 NC |
1633 | WINDMC_FOR_TARGET |
1634 | WINDMC for the target | |
c6b750e1 DJ |
1635 | |
1636 | Use these variables to override the choices made by `configure' or to help | |
1637 | it to find libraries and programs with nonstandard names/locations. | |
1638 | ||
81ecdfbb | 1639 | Report bugs to the package provider. |
c6b750e1 | 1640 | _ACEOF |
81ecdfbb | 1641 | ac_status=$? |
c6b750e1 DJ |
1642 | fi |
1643 | ||
1644 | if test "$ac_init_help" = "recursive"; then | |
1645 | # If there are subdirs, report their specific --help. | |
c6b750e1 | 1646 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1647 | test -d "$ac_dir" || |
1648 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1649 | continue | |
c6b750e1 DJ |
1650 | ac_builddir=. |
1651 | ||
81ecdfbb RW |
1652 | case "$ac_dir" in |
1653 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1654 | *) | |
1655 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1656 | # A ".." for each directory in $ac_dir_suffix. | |
1657 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1658 | case $ac_top_builddir_sub in | |
1659 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1660 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1661 | esac ;; | |
1662 | esac | |
1663 | ac_abs_top_builddir=$ac_pwd | |
1664 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1665 | # for backward compatibility: | |
1666 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
1667 | |
1668 | case $srcdir in | |
81ecdfbb | 1669 | .) # We are building in place. |
c6b750e1 | 1670 | ac_srcdir=. |
81ecdfbb RW |
1671 | ac_top_srcdir=$ac_top_builddir_sub |
1672 | ac_abs_top_srcdir=$ac_pwd ;; | |
1673 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 1674 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1675 | ac_top_srcdir=$srcdir |
1676 | ac_abs_top_srcdir=$srcdir ;; | |
1677 | *) # Relative name. | |
1678 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1679 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1680 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 1681 | esac |
81ecdfbb RW |
1682 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1683 | ||
1684 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1685 | # Check for guested configure. | |
1686 | if test -f "$ac_srcdir/configure.gnu"; then | |
1687 | echo && | |
1688 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1689 | elif test -f "$ac_srcdir/configure"; then | |
1690 | echo && | |
1691 | $SHELL "$ac_srcdir/configure" --help=recursive | |
c6b750e1 | 1692 | else |
81ecdfbb RW |
1693 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1694 | fi || ac_status=$? | |
1695 | cd "$ac_pwd" || { ac_status=$?; break; } | |
c6b750e1 DJ |
1696 | done |
1697 | fi | |
1698 | ||
81ecdfbb | 1699 | test -n "$ac_init_help" && exit $ac_status |
c6b750e1 DJ |
1700 | if $ac_init_version; then |
1701 | cat <<\_ACEOF | |
81ecdfbb RW |
1702 | configure |
1703 | generated by GNU Autoconf 2.64 | |
c6b750e1 | 1704 | |
81ecdfbb | 1705 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
1706 | This configure script is free software; the Free Software Foundation |
1707 | gives unlimited permission to copy, distribute and modify it. | |
1708 | _ACEOF | |
81ecdfbb | 1709 | exit |
c6b750e1 | 1710 | fi |
81ecdfbb RW |
1711 | |
1712 | ## ------------------------ ## | |
1713 | ## Autoconf initialization. ## | |
1714 | ## ------------------------ ## | |
1715 | ||
1716 | # ac_fn_c_try_compile LINENO | |
1717 | # -------------------------- | |
1718 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1719 | ac_fn_c_try_compile () | |
1720 | { | |
1721 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1722 | rm -f conftest.$ac_objext | |
1723 | if { { ac_try="$ac_compile" | |
1724 | case "(($ac_try" in | |
1725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1726 | *) ac_try_echo=$ac_try;; | |
1727 | esac | |
1728 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1729 | $as_echo "$ac_try_echo"; } >&5 | |
1730 | (eval "$ac_compile") 2>conftest.err | |
1731 | ac_status=$? | |
1732 | if test -s conftest.err; then | |
1733 | grep -v '^ *+' conftest.err >conftest.er1 | |
1734 | cat conftest.er1 >&5 | |
1735 | mv -f conftest.er1 conftest.err | |
1736 | fi | |
1737 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1738 | test $ac_status = 0; } && { | |
1739 | test -z "$ac_c_werror_flag" || | |
1740 | test ! -s conftest.err | |
1741 | } && test -s conftest.$ac_objext; then : | |
1742 | ac_retval=0 | |
1743 | else | |
1744 | $as_echo "$as_me: failed program was:" >&5 | |
1745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1746 | ||
1747 | ac_retval=1 | |
1748 | fi | |
1749 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1750 | return $ac_retval | |
1751 | ||
1752 | } # ac_fn_c_try_compile | |
1753 | ||
1754 | # ac_fn_cxx_try_compile LINENO | |
1755 | # ---------------------------- | |
1756 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1757 | ac_fn_cxx_try_compile () | |
1758 | { | |
1759 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1760 | rm -f conftest.$ac_objext | |
1761 | if { { ac_try="$ac_compile" | |
1762 | case "(($ac_try" in | |
1763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1764 | *) ac_try_echo=$ac_try;; | |
1765 | esac | |
1766 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1767 | $as_echo "$ac_try_echo"; } >&5 | |
1768 | (eval "$ac_compile") 2>conftest.err | |
1769 | ac_status=$? | |
1770 | if test -s conftest.err; then | |
1771 | grep -v '^ *+' conftest.err >conftest.er1 | |
1772 | cat conftest.er1 >&5 | |
1773 | mv -f conftest.er1 conftest.err | |
1774 | fi | |
1775 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1776 | test $ac_status = 0; } && { | |
1777 | test -z "$ac_cxx_werror_flag" || | |
1778 | test ! -s conftest.err | |
1779 | } && test -s conftest.$ac_objext; then : | |
1780 | ac_retval=0 | |
1781 | else | |
1782 | $as_echo "$as_me: failed program was:" >&5 | |
1783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1784 | ||
1785 | ac_retval=1 | |
1786 | fi | |
1787 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1788 | return $ac_retval | |
1789 | ||
1790 | } # ac_fn_cxx_try_compile | |
1791 | ||
b3676d82 EB |
1792 | # ac_fn_cxx_try_link LINENO |
1793 | # ------------------------- | |
1794 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1795 | ac_fn_cxx_try_link () | |
1796 | { | |
1797 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1799 | if { { ac_try="$ac_link" | |
1800 | case "(($ac_try" in | |
1801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1802 | *) ac_try_echo=$ac_try;; | |
1803 | esac | |
1804 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1805 | $as_echo "$ac_try_echo"; } >&5 | |
1806 | (eval "$ac_link") 2>conftest.err | |
1807 | ac_status=$? | |
1808 | if test -s conftest.err; then | |
1809 | grep -v '^ *+' conftest.err >conftest.er1 | |
1810 | cat conftest.er1 >&5 | |
1811 | mv -f conftest.er1 conftest.err | |
1812 | fi | |
1813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1814 | test $ac_status = 0; } && { | |
1815 | test -z "$ac_cxx_werror_flag" || | |
1816 | test ! -s conftest.err | |
1817 | } && test -s conftest$ac_exeext && { | |
1818 | test "$cross_compiling" = yes || | |
1819 | $as_test_x conftest$ac_exeext | |
1820 | }; then : | |
1821 | ac_retval=0 | |
1822 | else | |
1823 | $as_echo "$as_me: failed program was:" >&5 | |
1824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1825 | ||
1826 | ac_retval=1 | |
1827 | fi | |
1828 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1829 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1830 | # interfere with the next link command; also delete a directory that is | |
1831 | # left behind by Apple's compiler. We do this before executing the actions. | |
1832 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1833 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1834 | return $ac_retval | |
1835 | ||
1836 | } # ac_fn_cxx_try_link | |
1837 | ||
81ecdfbb RW |
1838 | # ac_fn_c_try_link LINENO |
1839 | # ----------------------- | |
1840 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1841 | ac_fn_c_try_link () | |
1842 | { | |
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1845 | if { { ac_try="$ac_link" | |
1846 | case "(($ac_try" in | |
1847 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1848 | *) ac_try_echo=$ac_try;; | |
1849 | esac | |
1850 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1851 | $as_echo "$ac_try_echo"; } >&5 | |
1852 | (eval "$ac_link") 2>conftest.err | |
1853 | ac_status=$? | |
1854 | if test -s conftest.err; then | |
1855 | grep -v '^ *+' conftest.err >conftest.er1 | |
1856 | cat conftest.er1 >&5 | |
1857 | mv -f conftest.er1 conftest.err | |
1858 | fi | |
1859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1860 | test $ac_status = 0; } && { | |
1861 | test -z "$ac_c_werror_flag" || | |
1862 | test ! -s conftest.err | |
1863 | } && test -s conftest$ac_exeext && { | |
1864 | test "$cross_compiling" = yes || | |
1865 | $as_test_x conftest$ac_exeext | |
1866 | }; then : | |
1867 | ac_retval=0 | |
1868 | else | |
1869 | $as_echo "$as_me: failed program was:" >&5 | |
1870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1871 | ||
1872 | ac_retval=1 | |
1873 | fi | |
1874 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1875 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1876 | # interfere with the next link command; also delete a directory that is | |
1877 | # left behind by Apple's compiler. We do this before executing the actions. | |
1878 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1879 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1880 | return $ac_retval | |
1881 | ||
1882 | } # ac_fn_c_try_link | |
1883 | cat >config.log <<_ACEOF | |
c6b750e1 DJ |
1884 | This file contains any messages produced by compilers while |
1885 | running configure, to aid debugging if configure makes a mistake. | |
1886 | ||
1887 | It was created by $as_me, which was | |
81ecdfbb | 1888 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
1889 | |
1890 | $ $0 $@ | |
1891 | ||
1892 | _ACEOF | |
81ecdfbb | 1893 | exec 5>>config.log |
c6b750e1 DJ |
1894 | { |
1895 | cat <<_ASUNAME | |
1896 | ## --------- ## | |
1897 | ## Platform. ## | |
1898 | ## --------- ## | |
1899 | ||
1900 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1901 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1902 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1903 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1904 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1905 | ||
1906 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1907 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1908 | ||
1909 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1910 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1911 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
81ecdfbb | 1912 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
c6b750e1 DJ |
1913 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1914 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1915 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1916 | ||
1917 | _ASUNAME | |
1918 | ||
1919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1920 | for as_dir in $PATH | |
1921 | do | |
1922 | IFS=$as_save_IFS | |
1923 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
1924 | $as_echo "PATH: $as_dir" |
1925 | done | |
1926 | IFS=$as_save_IFS | |
c6b750e1 DJ |
1927 | |
1928 | } >&5 | |
1929 | ||
1930 | cat >&5 <<_ACEOF | |
1931 | ||
1932 | ||
1933 | ## ----------- ## | |
1934 | ## Core tests. ## | |
1935 | ## ----------- ## | |
1936 | ||
1937 | _ACEOF | |
1938 | ||
1939 | ||
1940 | # Keep a trace of the command line. | |
1941 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1942 | # Strip out --silent because we don't want to record it for future runs. | |
1943 | # Also quote any args containing shell meta-characters. | |
1944 | # Make two passes to allow for proper duplicate-argument suppression. | |
1945 | ac_configure_args= | |
1946 | ac_configure_args0= | |
1947 | ac_configure_args1= | |
c6b750e1 DJ |
1948 | ac_must_keep_next=false |
1949 | for ac_pass in 1 2 | |
1950 | do | |
1951 | for ac_arg | |
1952 | do | |
1953 | case $ac_arg in | |
1954 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1955 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1956 | | -silent | --silent | --silen | --sile | --sil) | |
1957 | continue ;; | |
81ecdfbb RW |
1958 | *\'*) |
1959 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
c6b750e1 DJ |
1960 | esac |
1961 | case $ac_pass in | |
81ecdfbb | 1962 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
c6b750e1 | 1963 | 2) |
81ecdfbb | 1964 | as_fn_append ac_configure_args1 " '$ac_arg'" |
c6b750e1 DJ |
1965 | if test $ac_must_keep_next = true; then |
1966 | ac_must_keep_next=false # Got value, back to normal. | |
1967 | else | |
1968 | case $ac_arg in | |
1969 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1970 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1971 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1972 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1973 | case "$ac_configure_args0 " in | |
1974 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1975 | esac | |
1976 | ;; | |
1977 | -* ) ac_must_keep_next=true ;; | |
1978 | esac | |
1979 | fi | |
81ecdfbb | 1980 | as_fn_append ac_configure_args " '$ac_arg'" |
c6b750e1 DJ |
1981 | ;; |
1982 | esac | |
1983 | done | |
1984 | done | |
81ecdfbb RW |
1985 | { ac_configure_args0=; unset ac_configure_args0;} |
1986 | { ac_configure_args1=; unset ac_configure_args1;} | |
c6b750e1 DJ |
1987 | |
1988 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1989 | # config.log. We remove comments because anyway the quotes in there | |
1990 | # would cause problems or look ugly. | |
81ecdfbb RW |
1991 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1992 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
c6b750e1 DJ |
1993 | trap 'exit_status=$? |
1994 | # Save into config.log some information that might help in debugging. | |
1995 | { | |
1996 | echo | |
1997 | ||
1998 | cat <<\_ASBOX | |
1999 | ## ---------------- ## | |
2000 | ## Cache variables. ## | |
2001 | ## ---------------- ## | |
2002 | _ASBOX | |
2003 | echo | |
2004 | # The following way of writing the cache mishandles newlines in values, | |
81ecdfbb RW |
2005 | ( |
2006 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2007 | eval ac_val=\$$ac_var | |
2008 | case $ac_val in #( | |
2009 | *${as_nl}*) | |
2010 | case $ac_var in #( | |
2011 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2012 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2013 | esac | |
2014 | case $ac_var in #( | |
2015 | _ | IFS | as_nl) ;; #( | |
2016 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2017 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2018 | esac ;; | |
2019 | esac | |
2020 | done | |
c6b750e1 | 2021 | (set) 2>&1 | |
81ecdfbb RW |
2022 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
2023 | *${as_nl}ac_space=\ *) | |
c6b750e1 | 2024 | sed -n \ |
81ecdfbb RW |
2025 | "s/'\''/'\''\\\\'\'''\''/g; |
2026 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2027 | ;; #( | |
c6b750e1 | 2028 | *) |
81ecdfbb | 2029 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 2030 | ;; |
81ecdfbb RW |
2031 | esac | |
2032 | sort | |
2033 | ) | |
c6b750e1 DJ |
2034 | echo |
2035 | ||
2036 | cat <<\_ASBOX | |
2037 | ## ----------------- ## | |
2038 | ## Output variables. ## | |
2039 | ## ----------------- ## | |
2040 | _ASBOX | |
2041 | echo | |
2042 | for ac_var in $ac_subst_vars | |
2043 | do | |
81ecdfbb RW |
2044 | eval ac_val=\$$ac_var |
2045 | case $ac_val in | |
2046 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2047 | esac | |
2048 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2049 | done | sort |
2050 | echo | |
2051 | ||
2052 | if test -n "$ac_subst_files"; then | |
2053 | cat <<\_ASBOX | |
81ecdfbb RW |
2054 | ## ------------------- ## |
2055 | ## File substitutions. ## | |
2056 | ## ------------------- ## | |
c6b750e1 DJ |
2057 | _ASBOX |
2058 | echo | |
2059 | for ac_var in $ac_subst_files | |
2060 | do | |
81ecdfbb RW |
2061 | eval ac_val=\$$ac_var |
2062 | case $ac_val in | |
2063 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2064 | esac | |
2065 | $as_echo "$ac_var='\''$ac_val'\''" | |
c6b750e1 DJ |
2066 | done | sort |
2067 | echo | |
2068 | fi | |
2069 | ||
2070 | if test -s confdefs.h; then | |
2071 | cat <<\_ASBOX | |
2072 | ## ----------- ## | |
2073 | ## confdefs.h. ## | |
2074 | ## ----------- ## | |
2075 | _ASBOX | |
2076 | echo | |
81ecdfbb | 2077 | cat confdefs.h |
c6b750e1 DJ |
2078 | echo |
2079 | fi | |
2080 | test "$ac_signal" != 0 && | |
81ecdfbb RW |
2081 | $as_echo "$as_me: caught signal $ac_signal" |
2082 | $as_echo "$as_me: exit $exit_status" | |
c6b750e1 | 2083 | } >&5 |
81ecdfbb RW |
2084 | rm -f core *.core core.conftest.* && |
2085 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
c6b750e1 | 2086 | exit $exit_status |
81ecdfbb | 2087 | ' 0 |
c6b750e1 | 2088 | for ac_signal in 1 2 13 15; do |
81ecdfbb | 2089 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
c6b750e1 DJ |
2090 | done |
2091 | ac_signal=0 | |
2092 | ||
2093 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
81ecdfbb RW |
2094 | rm -f -r conftest* confdefs.h |
2095 | ||
2096 | $as_echo "/* confdefs.h */" > confdefs.h | |
c6b750e1 DJ |
2097 | |
2098 | # Predefined preprocessor variables. | |
2099 | ||
2100 | cat >>confdefs.h <<_ACEOF | |
2101 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2102 | _ACEOF | |
2103 | ||
c6b750e1 DJ |
2104 | cat >>confdefs.h <<_ACEOF |
2105 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2106 | _ACEOF | |
2107 | ||
c6b750e1 DJ |
2108 | cat >>confdefs.h <<_ACEOF |
2109 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2110 | _ACEOF | |
2111 | ||
c6b750e1 DJ |
2112 | cat >>confdefs.h <<_ACEOF |
2113 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2114 | _ACEOF | |
2115 | ||
c6b750e1 DJ |
2116 | cat >>confdefs.h <<_ACEOF |
2117 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2118 | _ACEOF | |
2119 | ||
81ecdfbb RW |
2120 | cat >>confdefs.h <<_ACEOF |
2121 | #define PACKAGE_URL "$PACKAGE_URL" | |
2122 | _ACEOF | |
2123 | ||
c6b750e1 DJ |
2124 | |
2125 | # Let the site file select an alternate cache file if it wants to. | |
81ecdfbb RW |
2126 | # Prefer an explicitly selected file to automatically selected ones. |
2127 | ac_site_file1=NONE | |
2128 | ac_site_file2=NONE | |
2129 | if test -n "$CONFIG_SITE"; then | |
2130 | ac_site_file1=$CONFIG_SITE | |
2131 | elif test "x$prefix" != xNONE; then | |
2132 | ac_site_file1=$prefix/share/config.site | |
2133 | ac_site_file2=$prefix/etc/config.site | |
2134 | else | |
2135 | ac_site_file1=$ac_default_prefix/share/config.site | |
2136 | ac_site_file2=$ac_default_prefix/etc/config.site | |
a0da8069 | 2137 | fi |
81ecdfbb RW |
2138 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2139 | do | |
2140 | test "x$ac_site_file" = xNONE && continue | |
a0da8069 | 2141 | if test -r "$ac_site_file"; then |
81ecdfbb RW |
2142 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2143 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
c6b750e1 | 2144 | sed 's/^/| /' "$ac_site_file" >&5 |
a0da8069 NN |
2145 | . "$ac_site_file" |
2146 | fi | |
2147 | done | |
2148 | ||
2149 | if test -r "$cache_file"; then | |
c6b750e1 DJ |
2150 | # Some versions of bash will fail to source /dev/null (special |
2151 | # files actually), so we avoid doing that. | |
2152 | if test -f "$cache_file"; then | |
81ecdfbb RW |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2154 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
c6b750e1 | 2155 | case $cache_file in |
81ecdfbb RW |
2156 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2157 | *) . "./$cache_file";; | |
c6b750e1 DJ |
2158 | esac |
2159 | fi | |
a0da8069 | 2160 | else |
81ecdfbb RW |
2161 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2162 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
c6b750e1 DJ |
2163 | >$cache_file |
2164 | fi | |
2165 | ||
2166 | # Check that the precious variables saved in the cache have kept the same | |
2167 | # value. | |
2168 | ac_cache_corrupted=false | |
81ecdfbb | 2169 | for ac_var in $ac_precious_vars; do |
c6b750e1 DJ |
2170 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2171 | eval ac_new_set=\$ac_env_${ac_var}_set | |
81ecdfbb RW |
2172 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2173 | eval ac_new_val=\$ac_env_${ac_var}_value | |
c6b750e1 DJ |
2174 | case $ac_old_set,$ac_new_set in |
2175 | set,) | |
81ecdfbb RW |
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2177 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
c6b750e1 DJ |
2178 | ac_cache_corrupted=: ;; |
2179 | ,set) | |
81ecdfbb RW |
2180 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2181 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
c6b750e1 DJ |
2182 | ac_cache_corrupted=: ;; |
2183 | ,);; | |
2184 | *) | |
2185 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
81ecdfbb RW |
2186 | # differences in whitespace do not lead to failure. |
2187 | ac_old_val_w=`echo x $ac_old_val` | |
2188 | ac_new_val_w=`echo x $ac_new_val` | |
2189 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2191 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2192 | ac_cache_corrupted=: | |
2193 | else | |
2194 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2195 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2196 | eval $ac_var=\$ac_old_val | |
2197 | fi | |
2198 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2199 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2200 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2201 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
c6b750e1 DJ |
2202 | fi;; |
2203 | esac | |
2204 | # Pass precious variables to config.status. | |
2205 | if test "$ac_new_set" = set; then | |
2206 | case $ac_new_val in | |
81ecdfbb | 2207 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c6b750e1 DJ |
2208 | *) ac_arg=$ac_var=$ac_new_val ;; |
2209 | esac | |
2210 | case " $ac_configure_args " in | |
2211 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
81ecdfbb | 2212 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
c6b750e1 DJ |
2213 | esac |
2214 | fi | |
2215 | done | |
2216 | if $ac_cache_corrupted; then | |
81ecdfbb RW |
2217 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2218 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2220 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2221 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
a0da8069 | 2222 | fi |
81ecdfbb RW |
2223 | ## -------------------- ## |
2224 | ## Main body of script. ## | |
2225 | ## -------------------- ## | |
a0da8069 NN |
2226 | |
2227 | ac_ext=c | |
a0da8069 | 2228 | ac_cpp='$CPP $CPPFLAGS' |
c6b750e1 DJ |
2229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2232 | ||
2233 | ||
2234 | ||
2235 | ||
c6b750e1 DJ |
2236 | |
2237 | ||
34a0f3cf | 2238 | |
c6b750e1 | 2239 | |
5b553f7e RW |
2240 | |
2241 | progname=$0 | |
2242 | # if PWD already has a value, it is probably wrong. | |
2243 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi | |
2244 | ||
2245 | # Export original configure arguments for use by sub-configures. | |
2246 | # Quote arguments with shell meta charatcers. | |
2247 | TOPLEVEL_CONFIGURE_ARGUMENTS= | |
2248 | set -- "$progname" "$@" | |
2249 | for ac_arg | |
2250 | do | |
2251 | case "$ac_arg" in | |
2252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*) | |
2253 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
2254 | # if the argument is of the form -foo=baz, quote the baz part only | |
2255 | ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;; | |
2256 | *) ;; | |
2257 | esac | |
2258 | # Add the quoted argument to the list. | |
2259 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg" | |
2260 | done | |
2261 | if test "$silent" = yes; then | |
2262 | TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent" | |
2263 | fi | |
2264 | # Remove the initial space we just introduced and, as these will be | |
2265 | # expanded by make, quote '$'. | |
2266 | TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
2267 | ||
c6b750e1 DJ |
2268 | |
2269 | # Find the build, host, and target systems. | |
a0da8069 | 2270 | ac_aux_dir= |
81ecdfbb RW |
2271 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2272 | for ac_t in install-sh install.sh shtool; do | |
2273 | if test -f "$ac_dir/$ac_t"; then | |
2274 | ac_aux_dir=$ac_dir | |
2275 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2276 | break 2 | |
2277 | fi | |
2278 | done | |
a0da8069 NN |
2279 | done |
2280 | if test -z "$ac_aux_dir"; then | |
81ecdfbb | 2281 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
a0da8069 | 2282 | fi |
81ecdfbb RW |
2283 | |
2284 | # These three variables are undocumented and unsupported, | |
2285 | # and are intended to be withdrawn in a future Autoconf release. | |
2286 | # They can cause serious problems if a builder's source tree is in a directory | |
2287 | # whose full name contains unusual characters. | |
2288 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2289 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2290 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2291 | ||
a0da8069 | 2292 | |
c6b750e1 | 2293 | # Make sure we can run config.sub. |
81ecdfbb RW |
2294 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2295 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2296 | ||
2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2298 | $as_echo_n "checking build system type... " >&6; } | |
2299 | if test "${ac_cv_build+set}" = set; then : | |
2300 | $as_echo_n "(cached) " >&6 | |
2301 | else | |
2302 | ac_build_alias=$build_alias | |
2303 | test "x$ac_build_alias" = x && | |
2304 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2305 | test "x$ac_build_alias" = x && | |
2306 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2307 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2308 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2309 | ||
2310 | fi | |
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2312 | $as_echo "$ac_cv_build" >&6; } | |
2313 | case $ac_cv_build in | |
2314 | *-*-*) ;; | |
2315 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2316 | esac | |
c6b750e1 | 2317 | build=$ac_cv_build |
81ecdfbb RW |
2318 | ac_save_IFS=$IFS; IFS='-' |
2319 | set x $ac_cv_build | |
2320 | shift | |
2321 | build_cpu=$1 | |
2322 | build_vendor=$2 | |
2323 | shift; shift | |
2324 | # Remember, the first character of IFS is used to create $*, | |
2325 | # except with old shells: | |
2326 | build_os=$* | |
2327 | IFS=$ac_save_IFS | |
2328 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
a0da8069 | 2329 | |
a0da8069 | 2330 | |
c6b750e1 DJ |
2331 | case ${build_alias} in |
2332 | "") build_noncanonical=${build} ;; | |
2333 | *) build_noncanonical=${build_alias} ;; | |
cac3d6c4 CM |
2334 | esac |
2335 | ||
2336 | ||
cac3d6c4 | 2337 | |
c6b750e1 DJ |
2338 | case ${host_alias} in |
2339 | "") host_noncanonical=${build_noncanonical} ;; | |
2340 | *) host_noncanonical=${host_alias} ;; | |
cac3d6c4 CM |
2341 | esac |
2342 | ||
cac3d6c4 | 2343 | |
c6b750e1 DJ |
2344 | |
2345 | case ${target_alias} in | |
2346 | "") target_noncanonical=${host_noncanonical} ;; | |
2347 | *) target_noncanonical=${target_alias} ;; | |
cac3d6c4 CM |
2348 | esac |
2349 | ||
cac3d6c4 | 2350 | |
c6b750e1 DJ |
2351 | |
2352 | ||
2353 | test "$host_noncanonical" = "$target_noncanonical" && | |
a0da8069 NN |
2354 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2355 | NONENONEs,x,x, && | |
c6b750e1 | 2356 | program_transform_name=s,y,y, |
cac3d6c4 | 2357 | |
81ecdfbb RW |
2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
2359 | $as_echo_n "checking host system type... " >&6; } | |
2360 | if test "${ac_cv_host+set}" = set; then : | |
2361 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 2362 | else |
81ecdfbb RW |
2363 | if test "x$host_alias" = x; then |
2364 | ac_cv_host=$ac_cv_build | |
2365 | else | |
2366 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2367 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2368 | fi | |
c6b750e1 DJ |
2369 | |
2370 | fi | |
81ecdfbb RW |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2372 | $as_echo "$ac_cv_host" >&6; } | |
2373 | case $ac_cv_host in | |
2374 | *-*-*) ;; | |
2375 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2376 | esac | |
c6b750e1 | 2377 | host=$ac_cv_host |
81ecdfbb RW |
2378 | ac_save_IFS=$IFS; IFS='-' |
2379 | set x $ac_cv_host | |
2380 | shift | |
2381 | host_cpu=$1 | |
2382 | host_vendor=$2 | |
2383 | shift; shift | |
2384 | # Remember, the first character of IFS is used to create $*, | |
2385 | # except with old shells: | |
2386 | host_os=$* | |
2387 | IFS=$ac_save_IFS | |
2388 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2389 | |
2390 | ||
81ecdfbb RW |
2391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
2392 | $as_echo_n "checking target system type... " >&6; } | |
2393 | if test "${ac_cv_target+set}" = set; then : | |
2394 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 2395 | else |
81ecdfbb RW |
2396 | if test "x$target_alias" = x; then |
2397 | ac_cv_target=$ac_cv_host | |
2398 | else | |
2399 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2400 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2401 | fi | |
c6b750e1 | 2402 | |
cac3d6c4 | 2403 | fi |
81ecdfbb RW |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2405 | $as_echo "$ac_cv_target" >&6; } | |
2406 | case $ac_cv_target in | |
2407 | *-*-*) ;; | |
2408 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2409 | esac | |
c6b750e1 | 2410 | target=$ac_cv_target |
81ecdfbb RW |
2411 | ac_save_IFS=$IFS; IFS='-' |
2412 | set x $ac_cv_target | |
2413 | shift | |
2414 | target_cpu=$1 | |
2415 | target_vendor=$2 | |
2416 | shift; shift | |
2417 | # Remember, the first character of IFS is used to create $*, | |
2418 | # except with old shells: | |
2419 | target_os=$* | |
2420 | IFS=$ac_save_IFS | |
2421 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
c6b750e1 DJ |
2422 | |
2423 | ||
2424 | # The aliases save the names the user supplied, while $host etc. | |
2425 | # will get canonicalized. | |
2426 | test -n "$target_alias" && | |
2427 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2428 | NONENONEs,x,x, && | |
2429 | program_prefix=${target_alias}- | |
81ecdfbb | 2430 | |
a0da8069 | 2431 | test "$program_prefix" != NONE && |
81ecdfbb | 2432 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
a0da8069 NN |
2433 | # Use a double $ so make ignores it. |
2434 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2435 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2436 | # Double any \ or $. | |
c6b750e1 | 2437 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2438 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2439 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
cac3d6c4 | 2440 | |
a0da8069 NN |
2441 | |
2442 | ||
e5c3f801 NN |
2443 | # Get 'install' or 'install-sh' and its variants. |
2444 | # Find a good install program. We prefer a C program (faster), | |
2445 | # so one script is as good as another. But avoid the broken or | |
2446 | # incompatible versions: | |
2447 | # SysV /etc/install, /usr/sbin/install | |
2448 | # SunOS /usr/etc/install | |
2449 | # IRIX /sbin/install | |
2450 | # AIX /bin/install | |
c6b750e1 | 2451 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
e5c3f801 NN |
2452 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2453 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2454 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
c6b750e1 | 2455 | # OS/2's system install, which has a completely different semantic |
e5c3f801 | 2456 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2457 | # Reject install programs that cannot install multiple files. |
81ecdfbb RW |
2458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2459 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
e5c3f801 | 2460 | if test -z "$INSTALL"; then |
81ecdfbb RW |
2461 | if test "${ac_cv_path_install+set}" = set; then : |
2462 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
2463 | else |
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2465 | for as_dir in $PATH | |
2466 | do | |
2467 | IFS=$as_save_IFS | |
2468 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2469 | # Account for people who put trailing slashes in PATH elements. |
2470 | case $as_dir/ in #(( | |
2471 | ./ | .// | /[cC]/* | \ | |
c6b750e1 | 2472 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
81ecdfbb | 2473 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
c6b750e1 DJ |
2474 | /usr/ucb/* ) ;; |
2475 | *) | |
2476 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2477 | # Don't use installbsd from OSF since it installs stuff as root | |
2478 | # by default. | |
2479 | for ac_prog in ginstall scoinst install; do | |
2480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
81ecdfbb | 2481 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e5c3f801 | 2482 | if test $ac_prog = install && |
c6b750e1 | 2483 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
e5c3f801 NN |
2484 | # AIX install. It has an incompatible calling convention. |
2485 | : | |
c6b750e1 DJ |
2486 | elif test $ac_prog = install && |
2487 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2488 | # program-specific install script used by HP pwplus--don't use. | |
2489 | : | |
e5c3f801 | 2490 | else |
58c85be7 RW |
2491 | rm -rf conftest.one conftest.two conftest.dir |
2492 | echo one > conftest.one | |
2493 | echo two > conftest.two | |
2494 | mkdir conftest.dir | |
2495 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2496 | test -s conftest.one && test -s conftest.two && | |
2497 | test -s conftest.dir/conftest.one && | |
2498 | test -s conftest.dir/conftest.two | |
2499 | then | |
2500 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2501 | break 3 | |
2502 | fi | |
e5c3f801 NN |
2503 | fi |
2504 | fi | |
2505 | done | |
c6b750e1 DJ |
2506 | done |
2507 | ;; | |
2508 | esac | |
81ecdfbb RW |
2509 | |
2510 | done | |
2511 | IFS=$as_save_IFS | |
c6b750e1 | 2512 | |
58c85be7 | 2513 | rm -rf conftest.one conftest.two conftest.dir |
e5c3f801 NN |
2514 | |
2515 | fi | |
2516 | if test "${ac_cv_path_install+set}" = set; then | |
c6b750e1 | 2517 | INSTALL=$ac_cv_path_install |
e5c3f801 | 2518 | else |
58c85be7 RW |
2519 | # As a last resort, use the slow shell script. Don't cache a |
2520 | # value for INSTALL within a source directory, because that will | |
e5c3f801 | 2521 | # break other packages using the cache if that directory is |
58c85be7 | 2522 | # removed, or if the value is a relative name. |
c6b750e1 | 2523 | INSTALL=$ac_install_sh |
e5c3f801 NN |
2524 | fi |
2525 | fi | |
81ecdfbb RW |
2526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2527 | $as_echo "$INSTALL" >&6; } | |
e5c3f801 NN |
2528 | |
2529 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2530 | # It thinks the first close brace ends the variable substitution. | |
2531 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2532 | ||
c6b750e1 | 2533 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
e5c3f801 NN |
2534 | |
2535 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2536 | ||
81ecdfbb RW |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5 |
2538 | $as_echo_n "checking whether ln works... " >&6; } | |
2539 | if test "${acx_cv_prog_LN+set}" = set; then : | |
2540 | $as_echo_n "(cached) " >&6 | |
656fdd47 PB |
2541 | else |
2542 | rm -f conftestdata_t | |
2543 | echo >conftestdata_f | |
2544 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
2545 | then | |
2546 | acx_cv_prog_LN=ln | |
2547 | else | |
2548 | acx_cv_prog_LN=no | |
2549 | fi | |
2550 | rm -f conftestdata_f conftestdata_t | |
2551 | ||
2552 | fi | |
2553 | if test $acx_cv_prog_LN = no; then | |
2554 | LN="cp" | |
81ecdfbb RW |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5 |
2556 | $as_echo "no, using $LN" >&6; } | |
656fdd47 PB |
2557 | else |
2558 | LN="$acx_cv_prog_LN" | |
81ecdfbb RW |
2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2560 | $as_echo "yes" >&6; } | |
656fdd47 PB |
2561 | fi |
2562 | ||
81ecdfbb RW |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
2564 | $as_echo_n "checking whether ln -s works... " >&6; } | |
c6b750e1 DJ |
2565 | LN_S=$as_ln_s |
2566 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2568 | $as_echo "yes" >&6; } | |
cac3d6c4 | 2569 | else |
81ecdfbb RW |
2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
2571 | $as_echo "no, using $LN_S" >&6; } | |
dfdffa2c PB |
2572 | fi |
2573 | ||
8e957354 PB |
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
2575 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
2576 | if test "${ac_cv_path_SED+set}" = set; then : | |
2577 | $as_echo_n "(cached) " >&6 | |
2578 | else | |
2579 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
2580 | for ac_i in 1 2 3 4 5 6 7; do | |
2581 | ac_script="$ac_script$as_nl$ac_script" | |
2582 | done | |
2583 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
2584 | { ac_script=; unset ac_script;} | |
2585 | if test -z "$SED"; then | |
2586 | ac_path_SED_found=false | |
2587 | # Loop through the user's path and test for each of PROGNAME-LIST | |
2588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2589 | for as_dir in $PATH | |
2590 | do | |
2591 | IFS=$as_save_IFS | |
2592 | test -z "$as_dir" && as_dir=. | |
2593 | for ac_prog in sed gsed; do | |
2594 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2595 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
2596 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
2597 | # Check for GNU ac_path_SED and select it if it is found. | |
2598 | # Check for GNU $ac_path_SED | |
2599 | case `"$ac_path_SED" --version 2>&1` in | |
2600 | *GNU*) | |
2601 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
2602 | *) | |
2603 | ac_count=0 | |
2604 | $as_echo_n 0123456789 >"conftest.in" | |
2605 | while : | |
2606 | do | |
2607 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
2608 | mv "conftest.tmp" "conftest.in" | |
2609 | cp "conftest.in" "conftest.nl" | |
2610 | $as_echo '' >> "conftest.nl" | |
2611 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
2612 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
2613 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
2614 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
2615 | # Best one so far, save it but keep looking for a better one | |
2616 | ac_cv_path_SED="$ac_path_SED" | |
2617 | ac_path_SED_max=$ac_count | |
2618 | fi | |
2619 | # 10*(2^10) chars as input seems more than enough | |
2620 | test $ac_count -gt 10 && break | |
2621 | done | |
2622 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
2623 | esac | |
2624 | ||
2625 | $ac_path_SED_found && break 3 | |
2626 | done | |
2627 | done | |
2628 | done | |
2629 | IFS=$as_save_IFS | |
2630 | if test -z "$ac_cv_path_SED"; then | |
2631 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
2632 | fi | |
2633 | else | |
2634 | ac_cv_path_SED=$SED | |
2635 | fi | |
2636 | ||
2637 | fi | |
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
2639 | $as_echo "$ac_cv_path_SED" >&6; } | |
2640 | SED="$ac_cv_path_SED" | |
2641 | rm -f conftest.sed | |
2642 | ||
2643 | for ac_prog in gawk mawk nawk awk | |
2644 | do | |
2645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2646 | set dummy $ac_prog; ac_word=$2 | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2648 | $as_echo_n "checking for $ac_word... " >&6; } | |
2649 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if test -n "$AWK"; then | |
2653 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2662 | ac_cv_prog_AWK="$ac_prog" | |
2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2664 | break 2 | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | IFS=$as_save_IFS | |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | AWK=$ac_cv_prog_AWK | |
2673 | if test -n "$AWK"; then | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2675 | $as_echo "$AWK" >&6; } | |
2676 | else | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2678 | $as_echo "no" >&6; } | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | test -n "$AWK" && break | |
2683 | done | |
2684 | ||
e5c3f801 | 2685 | |
0fdbe983 DJ |
2686 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` |
2687 | ||
2688 | # We pass INSTALL explicitly to sub-makes. Make sure that it is not | |
2689 | # a relative path. | |
2690 | if test "$INSTALL" = "${srcdir}/install-sh -c"; then | |
2691 | INSTALL="${srcpwd}/install-sh -c" | |
2692 | fi | |
2693 | ||
a0da8069 NN |
2694 | # Set srcdir to "." if that's what it is. |
2695 | # This is important for multilib support. | |
2696 | pwd=`${PWDCMD-pwd}` | |
a0da8069 NN |
2697 | if test "${pwd}" = "${srcpwd}" ; then |
2698 | srcdir=. | |
252b5132 RH |
2699 | fi |
2700 | ||
a0da8069 | 2701 | topsrcdir=$srcpwd |
252b5132 | 2702 | |
a0da8069 | 2703 | extra_host_args= |
afefada0 | 2704 | |
a0da8069 NN |
2705 | ### To add a new directory to the tree, first choose whether it is a target |
2706 | ### or a host dependent tool. Then put it into the appropriate list | |
2707 | ### (library or tools, host or target), doing a dependency sort. | |
252b5132 | 2708 | |
c6b750e1 | 2709 | # Subdirs will be configured in the order listed in build_configdirs, |
a0da8069 | 2710 | # configdirs, or target_configdirs; see the serialization section below. |
252b5132 | 2711 | |
c6b750e1 DJ |
2712 | # Dependency sorting is only needed when *configuration* must be done in |
2713 | # a particular order. In all cases a dependency should be specified in | |
a0da8069 | 2714 | # the Makefile, whether or not it's implicitly specified here. |
252b5132 | 2715 | |
a0da8069 NN |
2716 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
2717 | # cause circular dependencies and break everything horribly. | |
252b5132 | 2718 | |
6a9cf61e PB |
2719 | # these library is used by various programs built for the build |
2720 | # environment | |
2721 | # | |
1b6c0831 | 2722 | build_libs="build-libiberty build-libcpp" |
6a9cf61e PB |
2723 | |
2724 | # these tools are built for the build environment | |
a90ef4bf | 2725 | build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes" |
6a9cf61e | 2726 | |
a0da8069 | 2727 | # these libraries are used by various programs built for the host environment |
1b6c0831 L |
2728 | #f |
2729 | host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv" | |
a0da8069 | 2730 | |
a0da8069 NN |
2731 | # these tools are built for the host environment |
2732 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
2733 | # know that we are building the simulator. | |
2734 | # binutils, gas and ld appear in that order because it makes sense to run | |
2735 | # "make check" in that particular order. | |
e6de499b | 2736 | # If --enable-gold is used, "gold" may replace "ld". |
1b6c0831 | 2737 | host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools" |
a0da8069 NN |
2738 | |
2739 | # libgcj represents the runtime libraries only used by gcj. | |
2740 | libgcj="target-libffi \ | |
a0da8069 | 2741 | target-zlib \ |
a0da8069 NN |
2742 | target-libjava" |
2743 | ||
2744 | # these libraries are built for the target environment, and are built after | |
2745 | # the host libraries and the host tools (which may be a cross compiler) | |
ffdd6afc | 2746 | # Note that libiberty is not a target library. |
b1299c4e | 2747 | target_libraries="target-libgcc \ |
2bf680c4 | 2748 | target-libbacktrace \ |
a0da8069 NN |
2749 | target-libgloss \ |
2750 | target-newlib \ | |
cff87f51 | 2751 | target-libgomp \ |
522e3d71 | 2752 | target-libcilkrts \ |
1b6c0831 | 2753 | target-liboffloadmic \ |
7ec59b9e | 2754 | target-libatomic \ |
d32e2926 | 2755 | target-libitm \ |
b9459e83 | 2756 | target-libstdc++-v3 \ |
5286fdef | 2757 | target-libsanitizer \ |
95e43135 | 2758 | target-libvtv \ |
1b6c0831 | 2759 | target-libmpx \ |
bb780410 | 2760 | target-libssp \ |
e552509b | 2761 | target-libquadmath \ |
4b1cb4fe | 2762 | target-libgfortran \ |
4f0ef2d8 | 2763 | target-boehm-gc \ |
83326456 | 2764 | ${libgcj} \ |
a2592b1b | 2765 | target-libobjc \ |
e552509b ILT |
2766 | target-libada \ |
2767 | target-libgo" | |
a0da8069 | 2768 | |
9c14acb8 NN |
2769 | # these tools are built using the target libraries, and are intended to |
2770 | # run only in the target environment | |
a0da8069 | 2771 | # |
9c14acb8 | 2772 | # note: any program that *uses* libraries that are in the "target_libraries" |
0377a422 | 2773 | # list belongs in this list. |
a0da8069 | 2774 | # |
a90ef4bf | 2775 | target_tools="target-rda" |
252b5132 | 2776 | |
a0da8069 | 2777 | ################################################################################ |
252b5132 | 2778 | |
a0da8069 NN |
2779 | ## All tools belong in one of the four categories, and are assigned above |
2780 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
2781 | ## is important because configure will choke if they ever get through. | |
2782 | ## ${configdirs} is directories we build using the host tools. | |
2783 | ## ${target_configdirs} is directories we build using the target tools. | |
a0da8069 | 2784 | configdirs=`echo ${host_libs} ${host_tools}` |
9c14acb8 | 2785 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
ee025550 | 2786 | build_configdirs=`echo ${build_libs} ${build_tools}` |
dd12c3a8 | 2787 | |
9cc8ae67 PB |
2788 | |
2789 | ||
a0da8069 | 2790 | ################################################################################ |
252b5132 | 2791 | |
a0da8069 | 2792 | srcname="gnu development package" |
252b5132 | 2793 | |
a0da8069 NN |
2794 | # This gets set non-empty for some net releases of packages. |
2795 | appdirs="" | |
252b5132 | 2796 | |
a0da8069 NN |
2797 | # Define is_cross_compiler to save on calls to 'test'. |
2798 | is_cross_compiler= | |
2799 | if test x"${host}" = x"${target}" ; then | |
2800 | is_cross_compiler=no | |
252b5132 | 2801 | else |
a0da8069 | 2802 | is_cross_compiler=yes |
c6b750e1 | 2803 | fi |
252b5132 | 2804 | |
9175bfc0 | 2805 | # Find the build and target subdir names. |
dd12c3a8 | 2806 | |
66a79c16 DJ |
2807 | # post-stage1 host modules use a different CC_FOR_BUILD so, in order to |
2808 | # have matching libraries, they should use host libraries: Makefile.tpl | |
2809 | # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). | |
2810 | # However, they still use the build modules, because the corresponding | |
2811 | # host modules (e.g. bison) are only built for the host when bootstrap | |
2812 | # finishes. So: | |
2813 | # - build_subdir is where we find build modules, and never changes. | |
2814 | # - build_libsubdir is where we find build libraries, and can be overridden. | |
2815 | ||
2816 | # Prefix 'build-' so this never conflicts with target_subdir. | |
dd12c3a8 | 2817 | build_subdir="build-${build_noncanonical}" |
c6b750e1 | 2818 | |
81ecdfbb RW |
2819 | # Check whether --with-build-libsubdir was given. |
2820 | if test "${with_build_libsubdir+set}" = set; then : | |
2821 | withval=$with_build_libsubdir; build_libsubdir="$withval" | |
66a79c16 DJ |
2822 | else |
2823 | build_libsubdir="$build_subdir" | |
81ecdfbb RW |
2824 | fi |
2825 | ||
b00612cc PB |
2826 | # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories |
2827 | if ( test $srcdir = . && test -d gcc ) \ | |
2828 | || test -d $srcdir/../host-${host_noncanonical}; then | |
2829 | host_subdir="host-${host_noncanonical}" | |
2830 | else | |
2831 | host_subdir=. | |
2832 | fi | |
dd12c3a8 NN |
2833 | # No prefix. |
2834 | target_subdir=${target_noncanonical} | |
c6b750e1 | 2835 | |
2fd0b40b RW |
2836 | # Be sure to cover against remnants of an in-tree build. |
2837 | if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then | |
2838 | as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}. | |
2839 | Use a pristine source tree when building in a separate tree" "$LINENO" 5 | |
2840 | fi | |
252b5132 | 2841 | |
a0da8069 NN |
2842 | # Skipdirs are removed silently. |
2843 | skipdirs= | |
2844 | # Noconfigdirs are removed loudly. | |
2845 | noconfigdirs="" | |
252b5132 | 2846 | |
a0da8069 NN |
2847 | use_gnu_ld= |
2848 | # Make sure we don't let GNU ld be added if we didn't want it. | |
2849 | if test x$with_gnu_ld = xno ; then | |
2850 | use_gnu_ld=no | |
93f9b408 | 2851 | noconfigdirs="$noconfigdirs ld gold" |
252b5132 RH |
2852 | fi |
2853 | ||
a0da8069 NN |
2854 | use_gnu_as= |
2855 | # Make sure we don't let GNU as be added if we didn't want it. | |
2856 | if test x$with_gnu_as = xno ; then | |
2857 | use_gnu_as=no | |
2858 | noconfigdirs="$noconfigdirs gas" | |
252b5132 RH |
2859 | fi |
2860 | ||
700d40ca | 2861 | use_included_zlib= |
cf39cfc5 L |
2862 | |
2863 | # Check whether --with-system-zlib was given. | |
2864 | if test "${with_system_zlib+set}" = set; then : | |
2865 | withval=$with_system_zlib; | |
2866 | fi | |
2867 | ||
700d40ca ILT |
2868 | # Make sure we don't let ZLIB be added if we didn't want it. |
2869 | if test x$with_system_zlib = xyes ; then | |
2870 | use_included_zlib=no | |
2871 | noconfigdirs="$noconfigdirs zlib" | |
2872 | fi | |
2873 | ||
c6b750e1 | 2874 | # some tools are so dependent upon X11 that if we're not building with X, |
a0da8069 | 2875 | # it's not even worth trying to configure, much less build, that tool. |
252b5132 | 2876 | |
a0da8069 NN |
2877 | case ${with_x} in |
2878 | yes | "") ;; # the default value for this tree is that X11 is available | |
2879 | no) | |
675c6968 | 2880 | skipdirs="${skipdirs} tk itcl libgui" |
a0da8069 | 2881 | # We won't be able to build gdbtk without X. |
c6b750e1 | 2882 | enable_gdbtk=no |
a0da8069 NN |
2883 | ;; |
2884 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
2885 | esac | |
252b5132 | 2886 | |
0377a422 | 2887 | # Some are only suitable for cross toolchains. |
a0da8069 NN |
2888 | # Remove these if host=target. |
2889 | cross_only="target-libgloss target-newlib target-opcodes" | |
2890 | ||
2891 | case $is_cross_compiler in | |
2892 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
a0da8069 | 2893 | esac |
252b5132 | 2894 | |
a0da8069 NN |
2895 | # If both --with-headers and --with-libs are specified, default to |
2896 | # --without-newlib. | |
32be62b5 RS |
2897 | if test x"${with_headers}" != x && test x"${with_headers}" != xno \ |
2898 | && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
a0da8069 NN |
2899 | if test x"${with_newlib}" = x ; then |
2900 | with_newlib=no | |
2901 | fi | |
252b5132 RH |
2902 | fi |
2903 | ||
a0da8069 NN |
2904 | # Recognize --with-newlib/--without-newlib. |
2905 | case ${with_newlib} in | |
2906 | no) skipdirs="${skipdirs} target-newlib" ;; | |
2907 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
2908 | esac | |
252b5132 | 2909 | |
1b6c0831 L |
2910 | # Check whether --enable-as-accelerator-for was given. |
2911 | if test "${enable_as_accelerator_for+set}" = set; then : | |
2912 | enableval=$enable_as_accelerator_for; | |
2913 | fi | |
2914 | ||
2915 | ||
2916 | # Check whether --enable-offload-targets was given. | |
2917 | if test "${enable_offload_targets+set}" = set; then : | |
2918 | enableval=$enable_offload_targets; | |
2919 | if test x"$enable_offload_targets" = x; then | |
2920 | as_fn_error "no offload targets specified" "$LINENO" 5 | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | enable_offload_targets= | |
2925 | fi | |
2926 | ||
2927 | ||
c7791212 NC |
2928 | # Handle --enable-gold, --enable-ld. |
2929 | # --disable-gold [--enable-ld] | |
2930 | # Build only ld. Default option. | |
d3b50760 L |
2931 | # --enable-gold [--enable-ld] |
2932 | # Build both gold and ld. Install gold as "ld.gold", install ld | |
2933 | # as "ld.bfd" and "ld". | |
2934 | # --enable-gold=default [--enable-ld] | |
c7791212 NC |
2935 | # Build both gold and ld. Install gold as "ld.gold" and "ld", |
2936 | # install ld as "ld.bfd". | |
2937 | # --enable-gold[=default] --disable-ld | |
2938 | # Build only gold, which is then installed as both "ld.gold" and "ld". | |
2939 | # --enable-gold --enable-ld=default | |
d3b50760 L |
2940 | # Build both gold (installed as "ld.gold") and ld (installed as "ld" |
2941 | # and ld.bfd). | |
c7791212 NC |
2942 | # In other words, ld is default |
2943 | # --enable-gold=default --enable-ld=default | |
2944 | # Error. | |
2945 | ||
2946 | default_ld= | |
81ecdfbb RW |
2947 | # Check whether --enable-gold was given. |
2948 | if test "${enable_gold+set}" = set; then : | |
2949 | enableval=$enable_gold; ENABLE_GOLD=$enableval | |
93f9b408 ILT |
2950 | else |
2951 | ENABLE_GOLD=no | |
81ecdfbb RW |
2952 | fi |
2953 | ||
c7791212 NC |
2954 | case "${ENABLE_GOLD}" in |
2955 | yes|default) | |
e6de499b NC |
2956 | # Check for ELF target. |
2957 | is_elf=no | |
2958 | case "${target}" in | |
2959 | *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \ | |
2344b8da | 2960 | | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \ |
5b806d27 | 2961 | | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \ |
2bda3143 | 2962 | | *-*-solaris2* | *-*-nto* | *-*-nacl*) |
e6de499b NC |
2963 | case "${target}" in |
2964 | *-*-linux*aout* | *-*-linux*oldld*) | |
2965 | ;; | |
2966 | *) | |
2967 | is_elf=yes | |
2968 | ;; | |
2969 | esac | |
2970 | esac | |
2971 | ||
2972 | if test "$is_elf" = "yes"; then | |
2973 | # Check for target supported by gold. | |
93f9b408 | 2974 | case "${target}" in |
6d26190c | 2975 | i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \ |
ea016470 | 2976 | | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*) |
c7791212 NC |
2977 | configdirs="$configdirs gold" |
2978 | if test x${ENABLE_GOLD} = xdefault; then | |
2979 | default_ld=gold | |
2980 | fi | |
e6de499b | 2981 | ENABLE_GOLD=yes |
93f9b408 ILT |
2982 | ;; |
2983 | esac | |
e6de499b NC |
2984 | fi |
2985 | ;; | |
2986 | no) | |
2987 | ;; | |
2988 | *) | |
2989 | as_fn_error "invalid --enable-gold argument" "$LINENO" 5 | |
2990 | ;; | |
c7791212 NC |
2991 | esac |
2992 | ||
2993 | # Check whether --enable-ld was given. | |
2994 | if test "${enable_ld+set}" = set; then : | |
2995 | enableval=$enable_ld; ENABLE_LD=$enableval | |
2996 | else | |
2997 | ENABLE_LD=yes | |
2998 | fi | |
2999 | ||
3000 | ||
3001 | case "${ENABLE_LD}" in | |
3002 | default) | |
d3b50760 | 3003 | if test x${default_ld} != x; then |
c7791212 NC |
3004 | as_fn_error "either gold or ld can be the default ld" "$LINENO" 5 |
3005 | fi | |
3006 | ;; | |
3007 | yes) | |
3008 | ;; | |
3009 | no) | |
3010 | if test x${ENABLE_GOLD} != xyes; then | |
3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5 | |
3012 | $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;} | |
3013 | fi | |
3014 | configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'` | |
3015 | ;; | |
3016 | *) | |
3017 | as_fn_error "invalid --enable-ld argument" "$LINENO" 5 | |
3018 | ;; | |
3019 | esac | |
93f9b408 | 3020 | |
edeefb67 L |
3021 | # PR gas/19109 |
3022 | # Decide the default method for compressing debug sections. | |
3023 | # Provide a configure time option to override our default. | |
3024 | # Check whether --enable-compressed_debug_sections was given. | |
3025 | if test "${enable_compressed_debug_sections+set}" = set; then : | |
3026 | enableval=$enable_compressed_debug_sections; | |
3027 | if test x"$enable_compressed_debug_sections" = xyes; then | |
3028 | as_fn_error "no program with compressed debug sections specified" "$LINENO" 5 | |
3029 | fi | |
3030 | ||
3031 | else | |
3032 | enable_compressed_debug_sections= | |
3033 | fi | |
3034 | ||
3035 | ||
a0da8069 | 3036 | # Configure extra directories which are host specific |
252b5132 | 3037 | |
a0da8069 NN |
3038 | case "${host}" in |
3039 | *-cygwin*) | |
3040 | configdirs="$configdirs libtermcap" ;; | |
3041 | esac | |
252b5132 | 3042 | |
59f7ec45 HPN |
3043 | # A target can indicate whether a language isn't supported for some reason. |
3044 | # Only spaces may be used in this macro; not newlines or tabs. | |
3045 | unsupported_languages= | |
3046 | ||
c6b750e1 | 3047 | # Remove more programs from consideration, based on the host or |
a0da8069 NN |
3048 | # target this usually means that a port of the program doesn't |
3049 | # exist yet. | |
252b5132 | 3050 | |
a0da8069 | 3051 | case "${host}" in |
3516a403 | 3052 | i[3456789]86-*-msdosdjgpp*) |
6a608608 | 3053 | noconfigdirs="$noconfigdirs tcl tk itcl" |
a0da8069 | 3054 | ;; |
a0da8069 | 3055 | esac |
252b5132 | 3056 | |
4b1cb4fe | 3057 | |
89a1e9c3 PB |
3058 | # Check whether --enable-libquadmath was given. |
3059 | if test "${enable_libquadmath+set}" = set; then : | |
3060 | enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval | |
3061 | else | |
3062 | ENABLE_LIBQUADMATH=yes | |
3063 | fi | |
3064 | ||
3065 | if test "${ENABLE_LIBQUADMATH}" = "no" ; then | |
3066 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | # Check whether --enable-libquadmath-support was given. | |
3071 | if test "${enable_libquadmath_support+set}" = set; then : | |
3072 | enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval | |
3073 | else | |
3074 | ENABLE_LIBQUADMATH_SUPPORT=yes | |
3075 | fi | |
3076 | ||
3077 | enable_libquadmath_support= | |
3078 | if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then | |
3079 | enable_libquadmath_support=no | |
3080 | fi | |
3081 | ||
3082 | ||
81ecdfbb RW |
3083 | # Check whether --enable-libada was given. |
3084 | if test "${enable_libada+set}" = set; then : | |
3085 | enableval=$enable_libada; ENABLE_LIBADA=$enableval | |
a2592b1b DD |
3086 | else |
3087 | ENABLE_LIBADA=yes | |
81ecdfbb RW |
3088 | fi |
3089 | ||
a2592b1b | 3090 | if test "${ENABLE_LIBADA}" != "yes" ; then |
b00612cc | 3091 | noconfigdirs="$noconfigdirs gnattools" |
a2592b1b DD |
3092 | fi |
3093 | ||
81ecdfbb RW |
3094 | # Check whether --enable-libssp was given. |
3095 | if test "${enable_libssp+set}" = set; then : | |
3096 | enableval=$enable_libssp; ENABLE_LIBSSP=$enableval | |
5f128533 KH |
3097 | else |
3098 | ENABLE_LIBSSP=yes | |
81ecdfbb RW |
3099 | fi |
3100 | ||
5f128533 | 3101 | |
f66a9a70 L |
3102 | # Check whether --enable-libstdcxx was given. |
3103 | if test "${enable_libstdcxx+set}" = set; then : | |
3104 | enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval | |
3105 | else | |
3106 | ENABLE_LIBSTDCXX=default | |
3107 | fi | |
3108 | ||
3109 | if test "${ENABLE_LIBSTDCXX}" = "no" ; then | |
1b6c0831 L |
3110 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
3111 | fi | |
3112 | ||
3113 | # If this is accelerator compiler and its target is intelmic we enable | |
3114 | # target liboffloadmic by default. If this is compiler with offloading | |
3115 | # for intelmic we enable host liboffloadmic by default. Otherwise | |
3116 | # liboffloadmic is disabled by default. | |
3117 | # Check whether --enable-liboffloadmic was given. | |
3118 | if test "${enable_liboffloadmic+set}" = set; then : | |
3119 | enableval=$enable_liboffloadmic; case "$enableval" in | |
3120 | no | host | target) | |
3121 | enable_liboffloadmic=$enableval ;; | |
3122 | *) | |
3123 | as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;; | |
3124 | esac | |
3125 | else | |
3126 | if test x"$enable_as_accelerator_for" != x; then | |
3127 | case "${target}" in | |
3128 | *-intelmic-* | *-intelmicemul-*) | |
3129 | enable_liboffloadmic=target | |
3130 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target" | |
3131 | ;; | |
3132 | *) | |
3133 | enable_liboffloadmic=no | |
3134 | ;; | |
3135 | esac | |
3136 | else | |
3137 | case "${enable_offload_targets}" in | |
3138 | *-intelmic-* | *-intelmicemul-*) | |
3139 | enable_liboffloadmic=host | |
3140 | extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host" | |
3141 | ;; | |
3142 | *) | |
3143 | enable_liboffloadmic=no | |
3144 | ;; | |
3145 | esac | |
3146 | fi | |
f66a9a70 L |
3147 | fi |
3148 | ||
1b6c0831 L |
3149 | |
3150 | ||
a0da8069 NN |
3151 | # Save it here so that, even in case of --enable-libgcj, if the Java |
3152 | # front-end isn't enabled, we still get libgcj disabled. | |
3153 | libgcj_saved=$libgcj | |
3154 | case $enable_libgcj in | |
3155 | yes) | |
3156 | # If we reset it here, it won't get added to noconfigdirs in the | |
3157 | # target-specific build rules, so it will be forcibly enabled | |
3158 | # (unless the Java language itself isn't enabled). | |
3159 | libgcj= | |
3160 | ;; | |
3161 | no) | |
3162 | # Make sure we get it printed in the list of not supported target libs. | |
9e1a94f4 ILT |
3163 | # Don't disable libffi, though, other languages use it. |
3164 | noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`" | |
33d23ee8 ILT |
3165 | # Clear libgcj_saved so that even if java is enabled libffi won't be |
3166 | # built. | |
3167 | libgcj_saved= | |
a0da8069 NN |
3168 | ;; |
3169 | esac | |
252b5132 | 3170 | |
ffdd6afc ILT |
3171 | # Check whether --enable-static-libjava was given. |
3172 | if test "${enable_static_libjava+set}" = set; then : | |
3173 | enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval | |
3174 | else | |
3175 | ENABLE_STATIC_LIBJAVA=no | |
3176 | fi | |
3177 | ||
3178 | enable_static_libjava= | |
3179 | if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then | |
3180 | enable_static_libjava=yes | |
3181 | fi | |
3182 | ||
3183 | if test x$enable_static_libjava != xyes ; then | |
3184 | EXTRA_CONFIGARGS_LIBJAVA=--disable-static | |
3185 | fi | |
3186 | ||
4b1cb4fe | 3187 | |
68996839 | 3188 | # Enable libgomp by default on hosted POSIX systems, and a few others. |
a6df5a19 | 3189 | if test x$enable_libgomp = x ; then |
b3ded179 | 3190 | case "${target}" in |
29383458 | 3191 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
b3ded179 | 3192 | ;; |
5b806d27 | 3193 | *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*) |
b3ded179 | 3194 | ;; |
2479f722 | 3195 | *-*-solaris2* | *-*-hpux11*) |
b3ded179 PB |
3196 | ;; |
3197 | *-*-darwin* | *-*-aix*) | |
3198 | ;; | |
68996839 NC |
3199 | nvptx*-*-*) |
3200 | ;; | |
b3ded179 PB |
3201 | *) |
3202 | noconfigdirs="$noconfigdirs target-libgomp" | |
3203 | ;; | |
3204 | esac | |
a6df5a19 | 3205 | fi |
b3ded179 | 3206 | |
7ec59b9e L |
3207 | # Disable libatomic on unsupported systems. |
3208 | if test -d ${srcdir}/libatomic; then | |
3209 | if test x$enable_libatomic = x; then | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5 | |
3211 | $as_echo_n "checking for libatomic support... " >&6; } | |
3212 | if (srcdir=${srcdir}/libatomic; \ | |
3213 | . ${srcdir}/configure.tgt; \ | |
3214 | test -n "$UNSUPPORTED") | |
3215 | then | |
3216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3217 | $as_echo "no" >&6; } | |
3218 | noconfigdirs="$noconfigdirs target-libatomic" | |
3219 | else | |
3220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3221 | $as_echo "yes" >&6; } | |
3222 | fi | |
3223 | fi | |
3224 | fi | |
3225 | ||
522e3d71 | 3226 | # Disable libcilkrts on unsupported systems. |
3227 | if test -d ${srcdir}/libcilkrts; then | |
3228 | if test x$enable_libcilkrts = x; then | |
3229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5 | |
3230 | $as_echo_n "checking for libcilkrts support... " >&6; } | |
3231 | if (srcdir=${srcdir}/libcilkrts; \ | |
3232 | . ${srcdir}/configure.tgt; \ | |
3233 | test -n "$UNSUPPORTED") | |
3234 | then | |
3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3236 | $as_echo "no" >&6; } | |
3237 | noconfigdirs="$noconfigdirs target-libcilkrts" | |
3238 | else | |
3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3240 | $as_echo "yes" >&6; } | |
3241 | fi | |
3242 | fi | |
3243 | fi | |
3244 | ||
1b6c0831 L |
3245 | # Disable liboffloadmic on unsupported systems. |
3246 | if test -d ${srcdir}/liboffloadmic; then | |
3247 | if test x$enable_liboffloadmic != xno; then | |
3248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5 | |
3249 | $as_echo_n "checking for liboffloadmic support... " >&6; } | |
3250 | if (srcdir=${srcdir}/liboffloadmic; \ | |
3251 | . ${srcdir}/configure.tgt; \ | |
3252 | test -n "$UNSUPPORTED") | |
3253 | then | |
3254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3255 | $as_echo "no" >&6; } | |
3256 | noconfigdirs="$noconfigdirs target-liboffloadmic" | |
3257 | else | |
3258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3259 | $as_echo "yes" >&6; } | |
3260 | fi | |
3261 | fi | |
3262 | fi | |
3263 | ||
d32e2926 RH |
3264 | # Disable libitm on unsupported systems. |
3265 | if test -d ${srcdir}/libitm; then | |
3266 | if test x$enable_libitm = x; then | |
3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5 | |
3268 | $as_echo_n "checking for libitm support... " >&6; } | |
3269 | if (srcdir=${srcdir}/libitm; \ | |
3270 | . ${srcdir}/configure.tgt; \ | |
3271 | test -n "$UNSUPPORTED") | |
3272 | then | |
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3274 | $as_echo "no" >&6; } | |
3275 | noconfigdirs="$noconfigdirs target-libitm" | |
3276 | else | |
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3278 | $as_echo "yes" >&6; } | |
3279 | fi | |
3280 | fi | |
3281 | fi | |
3282 | ||
5286fdef L |
3283 | # Disable libsanitizer on unsupported systems. |
3284 | if test -d ${srcdir}/libsanitizer; then | |
3285 | if test x$enable_libsanitizer = x; then | |
3286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5 | |
3287 | $as_echo_n "checking for libsanitizer support... " >&6; } | |
3288 | if (srcdir=${srcdir}/libsanitizer; \ | |
3289 | . ${srcdir}/configure.tgt; \ | |
3290 | test -n "$UNSUPPORTED") | |
3291 | then | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3293 | $as_echo "no" >&6; } | |
3294 | noconfigdirs="$noconfigdirs target-libsanitizer" | |
3295 | else | |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3297 | $as_echo "yes" >&6; } | |
3298 | fi | |
3299 | fi | |
3300 | fi | |
3301 | ||
95e43135 JBG |
3302 | # Disable libvtv on unsupported systems. |
3303 | if test -d ${srcdir}/libvtv; then | |
3304 | if test x$enable_libvtv = x; then | |
3305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5 | |
3306 | $as_echo_n "checking for libvtv support... " >&6; } | |
3307 | if (srcdir=${srcdir}/libvtv; \ | |
3308 | . ${srcdir}/configure.tgt; \ | |
3309 | test "$VTV_SUPPORTED" != "yes") | |
3310 | then | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3312 | $as_echo "no" >&6; } | |
3313 | noconfigdirs="$noconfigdirs target-libvtv" | |
3314 | else | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3316 | $as_echo "yes" >&6; } | |
3317 | fi | |
3318 | fi | |
3319 | fi | |
3320 | ||
1b6c0831 L |
3321 | |
3322 | # Enable libmpx on supported systems by request. | |
3323 | if test -d ${srcdir}/libmpx; then | |
4849dfd8 | 3324 | if test x$enable_libmpx = x; then |
1b6c0831 L |
3325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5 |
3326 | $as_echo_n "checking for libmpx support... " >&6; } | |
3327 | if (srcdir=${srcdir}/libmpx; \ | |
3328 | . ${srcdir}/configure.tgt; \ | |
3329 | test "$LIBMPX_SUPPORTED" != "yes") | |
3330 | then | |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3332 | $as_echo "no" >&6; } | |
3333 | noconfigdirs="$noconfigdirs target-libmpx" | |
3334 | else | |
3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3336 | $as_echo "yes" >&6; } | |
3337 | fi | |
1b6c0831 L |
3338 | fi |
3339 | fi | |
3340 | ||
3341 | ||
3342 | ||
1488e230 DE |
3343 | # Disable libquadmath for some systems. |
3344 | case "${target}" in | |
5286fdef L |
3345 | avr-*-*) |
3346 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3347 | ;; | |
1488e230 DE |
3348 | # libquadmath is unused on AIX and libquadmath build process use of |
3349 | # LD_LIBRARY_PATH can break AIX bootstrap. | |
3350 | powerpc-*-aix* | rs6000-*-aix*) | |
3351 | noconfigdirs="$noconfigdirs target-libquadmath" | |
3352 | ;; | |
3353 | esac | |
3354 | ||
065a5627 JM |
3355 | # Disable libssp for some systems. |
3356 | case "${target}" in | |
3357 | avr-*-*) | |
c5f5c3c2 | 3358 | # No hosted I/O support. |
065a5627 JM |
3359 | noconfigdirs="$noconfigdirs target-libssp" |
3360 | ;; | |
3361 | powerpc-*-aix* | rs6000-*-aix*) | |
3362 | noconfigdirs="$noconfigdirs target-libssp" | |
3363 | ;; | |
99c513f6 | 3364 | rl78-*-*) |
202e2356 NC |
3365 | # libssp uses a misaligned load to trigger a fault, but the RL78 |
3366 | # doesn't fault for those - instead, it gives a build-time error | |
3367 | # for explicit misaligned loads. | |
99c513f6 DD |
3368 | noconfigdirs="$noconfigdirs target-libssp" |
3369 | ;; | |
1b6c0831 L |
3370 | visium-*-*) |
3371 | # No hosted I/O support. | |
3372 | noconfigdirs="$noconfigdirs target-libssp" | |
3373 | ;; | |
065a5627 JM |
3374 | esac |
3375 | ||
065a5627 | 3376 | # Disable libstdc++-v3 for some systems. |
f66a9a70 L |
3377 | # Allow user to override this if they pass --enable-libstdc++-v3 |
3378 | if test "${ENABLE_LIBSTDCXX}" = "default" ; then | |
3379 | case "${target}" in | |
3380 | *-*-vxworks*) | |
3381 | # VxWorks uses the Dinkumware C++ library. | |
3382 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3383 | ;; | |
3384 | arm*-wince-pe*) | |
3385 | # the C++ libraries don't build on top of CE's C libraries | |
3386 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3387 | ;; | |
3388 | avr-*-*) | |
3389 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3390 | ;; | |
969b1713 L |
3391 | ft32-*-*) |
3392 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
3393 | ;; | |
f66a9a70 L |
3394 | esac |
3395 | fi | |
065a5627 JM |
3396 | |
3397 | # Disable Fortran for some systems. | |
3398 | case "${target}" in | |
3399 | mmix-*-*) | |
3400 | # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>. | |
3401 | unsupported_languages="$unsupported_languages fortran" | |
3402 | ;; | |
3403 | esac | |
3404 | ||
0827f9a6 | 3405 | # Disable Java if libffi is not supported. |
9863d716 | 3406 | case "${target}" in |
e7d5abf1 JBG |
3407 | aarch64-*-*) |
3408 | ;; | |
0827f9a6 JM |
3409 | alpha*-*-*) |
3410 | ;; | |
3411 | arm*-*-*) | |
3412 | ;; | |
3413 | cris-*-*) | |
3414 | ;; | |
3415 | frv-*-*) | |
3416 | ;; | |
3417 | hppa*-*-linux*) | |
3418 | ;; | |
3419 | hppa*-*-hpux*) | |
3420 | ;; | |
3421 | i?86-*-*) | |
3422 | ;; | |
3423 | ia64*-*-*) | |
3424 | ;; | |
3425 | m32r*-*-*) | |
3426 | ;; | |
3427 | m68k-*-*) | |
3428 | ;; | |
2479f722 | 3429 | mips*-*-rtems*) |
0827f9a6 JM |
3430 | ;; |
3431 | mips*-*-linux*) | |
3432 | ;; | |
3433 | powerpc*-*-linux*) | |
3434 | ;; | |
3435 | powerpc-*-darwin*) | |
3436 | ;; | |
3437 | powerpc-*-aix* | rs6000-*-aix*) | |
3438 | ;; | |
3439 | powerpc-*-freebsd*) | |
3440 | ;; | |
3441 | powerpc64-*-freebsd*) | |
3442 | ;; | |
3443 | powerpc*-*-rtems*) | |
9863d716 | 3444 | ;; |
0827f9a6 JM |
3445 | s390-*-* | s390x-*-*) |
3446 | ;; | |
3447 | sh-*-* | sh[34]*-*-*) | |
3448 | ;; | |
3449 | sh64-*-* | sh5*-*-*) | |
3450 | ;; | |
3451 | sparc*-*-*) | |
3452 | ;; | |
3453 | x86_64-*-*) | |
3454 | ;; | |
3455 | *-*-*) | |
3456 | unsupported_languages="$unsupported_languages java" | |
3457 | ;; | |
3458 | esac | |
3459 | ||
3460 | # Disable Java, libgcj or related libraries for some systems. | |
3461 | case "${target}" in | |
9863d716 JM |
3462 | powerpc-*-darwin*) |
3463 | ;; | |
3464 | i[3456789]86-*-darwin*) | |
3465 | ;; | |
3466 | x86_64-*-darwin[912]*) | |
3467 | ;; | |
3468 | *-*-darwin*) | |
3469 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3470 | ;; | |
9863d716 JM |
3471 | *-*-netware*) |
3472 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3473 | ;; | |
3474 | *-*-rtems*) | |
3475 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3476 | ;; | |
3477 | *-*-tpf*) | |
3478 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3479 | ;; | |
3480 | *-*-uclinux*) | |
3481 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3482 | ;; | |
3483 | *-*-vxworks*) | |
3484 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3485 | ;; | |
9863d716 JM |
3486 | alpha*-*-*vms*) |
3487 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3488 | ;; | |
1b6c0831 L |
3489 | arm*-*-freebsd*) |
3490 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3491 | ;; | |
0827f9a6 | 3492 | arm-wince-pe) |
9863d716 JM |
3493 | noconfigdirs="$noconfigdirs ${libgcj}" |
3494 | ;; | |
9863d716 JM |
3495 | arm*-*-symbianelf*) |
3496 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3497 | ;; | |
9863d716 | 3498 | bfin-*-*) |
9863d716 JM |
3499 | noconfigdirs="$noconfigdirs target-boehm-gc" |
3500 | ;; | |
9863d716 JM |
3501 | cris-*-* | crisv32-*-*) |
3502 | unsupported_languages="$unsupported_languages java" | |
3503 | case "${target}" in | |
3504 | *-*-linux*) | |
3505 | ;; | |
3506 | *) # See PR46792 regarding target-libffi. | |
3507 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; | |
3508 | esac | |
3509 | ;; | |
9863d716 JM |
3510 | hppa*64*-*-linux*) |
3511 | # In this case, it's because the hppa64-linux target is for | |
3512 | # the kernel only at this point and has no libc, and thus no | |
3513 | # headers, crt*.o, etc., all of which are needed by these. | |
82ae827f | 3514 | unsupported_languages="$unsupported_languages java" |
9863d716 | 3515 | ;; |
82ae827f | 3516 | hppa*64*-*-hpux*) |
9863d716 JM |
3517 | noconfigdirs="$noconfigdirs ${libgcj}" |
3518 | ;; | |
3519 | hppa*-hp-hpux11*) | |
3520 | ;; | |
82ae827f | 3521 | hppa*-*-hpux*) |
9863d716 JM |
3522 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't |
3523 | # build on HP-UX 10.20. | |
3524 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3525 | ;; | |
9863d716 JM |
3526 | ia64*-*-*vms*) |
3527 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3528 | ;; | |
9863d716 JM |
3529 | i[3456789]86-w64-mingw*) |
3530 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3531 | ;; | |
3532 | i[3456789]86-*-mingw*) | |
3533 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3534 | ;; | |
3535 | x86_64-*-mingw*) | |
3536 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3537 | ;; | |
9863d716 JM |
3538 | mmix-*-*) |
3539 | noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" | |
9863d716 JM |
3540 | ;; |
3541 | powerpc-*-aix*) | |
3542 | # copied from rs6000-*-* entry | |
3543 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3544 | ;; | |
9863d716 JM |
3545 | rs6000-*-aix*) |
3546 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3547 | ;; | |
3f8107ab AM |
3548 | ft32-*-*) |
3549 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3550 | ;; | |
9863d716 JM |
3551 | *-*-lynxos*) |
3552 | noconfigdirs="$noconfigdirs ${libgcj}" | |
3553 | ;; | |
9863d716 JM |
3554 | esac |
3555 | ||
1b6c0831 L |
3556 | # Disable the go frontend on systems where it is known to not work. Please keep |
3557 | # this in sync with contrib/config-list.mk. | |
3558 | case "${target}" in | |
3559 | *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) | |
3560 | unsupported_languages="$unsupported_languages go" | |
3561 | ;; | |
3562 | esac | |
3563 | ||
a413f71a ILT |
3564 | # Disable libgo for some systems where it is known to not work. |
3565 | # For testing, you can easily override this with --enable-libgo. | |
3566 | if test x$enable_libgo = x; then | |
3567 | case "${target}" in | |
3568 | *-*-darwin*) | |
3569 | # PR 46986 | |
3570 | noconfigdirs="$noconfigdirs target-libgo" | |
3571 | ;; | |
3572 | *-*-cygwin* | *-*-mingw*) | |
3573 | noconfigdirs="$noconfigdirs target-libgo" | |
3574 | ;; | |
3575 | *-*-aix*) | |
3576 | noconfigdirs="$noconfigdirs target-libgo" | |
3577 | ;; | |
3578 | esac | |
3579 | fi | |
3580 | ||
691bb5a1 DD |
3581 | # Default libgloss CPU subdirectory. |
3582 | libgloss_dir="$target_cpu" | |
4b1cb4fe | 3583 | |
ff46fb8f JM |
3584 | case "${target}" in |
3585 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
3586 | libgloss_dir=wince | |
3587 | ;; | |
f1dd87fc YZ |
3588 | aarch64*-*-* ) |
3589 | libgloss_dir=aarch64 | |
3590 | ;; | |
ff46fb8f JM |
3591 | arm*-*-*) |
3592 | libgloss_dir=arm | |
3593 | ;; | |
3594 | cris-*-* | crisv32-*-*) | |
3595 | libgloss_dir=cris | |
3596 | ;; | |
3597 | hppa*-*-*) | |
3598 | libgloss_dir=pa | |
3599 | ;; | |
3600 | i[3456789]86-*-*) | |
3601 | libgloss_dir=i386 | |
3602 | ;; | |
3603 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) | |
3604 | libgloss_dir=m68hc11 | |
3605 | ;; | |
3606 | m68*-*-* | fido-*-*) | |
3607 | libgloss_dir=m68k | |
3608 | ;; | |
3609 | mips*-*-*) | |
3610 | libgloss_dir=mips | |
3611 | ;; | |
3612 | powerpc*-*-*) | |
3613 | libgloss_dir=rs6000 | |
3614 | ;; | |
3615 | sparc*-*-*) | |
3616 | libgloss_dir=sparc | |
3617 | ;; | |
3618 | esac | |
3619 | ||
c7e4b184 | 3620 | # Disable newlib and libgloss for various target OSes. |
a0da8069 | 3621 | case "${target}" in |
c7e4b184 JM |
3622 | alpha*-dec-osf*) |
3623 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3624 | ;; | |
3625 | i[3456789]86-*-linux*) | |
3626 | # This section makes it possible to build newlib natively on linux. | |
3627 | # If we are using a cross compiler then don't configure newlib. | |
3628 | if test x${is_cross_compiler} != xno ; then | |
3629 | noconfigdirs="$noconfigdirs target-newlib" | |
3630 | fi | |
3631 | noconfigdirs="$noconfigdirs target-libgloss" | |
3632 | # If we are not using a cross compiler, do configure newlib. | |
3633 | # Note however, that newlib will only be configured in this situation | |
3634 | # if the --with-newlib option has been given, because otherwise | |
3635 | # 'target-newlib' will appear in skipdirs. | |
3636 | ;; | |
3637 | i[3456789]86-*-rdos*) | |
3638 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3639 | ;; | |
3640 | sh*-*-pe|mips*-*-pe|arm-wince-pe) | |
3641 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3642 | ;; | |
3643 | sparc-*-sunos4*) | |
3644 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3645 | ;; | |
3646 | *-*-aix*) | |
3647 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3648 | ;; | |
3649 | *-*-beos*) | |
3650 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3651 | ;; | |
a0da8069 | 3652 | *-*-chorusos) |
b2f14e4a | 3653 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3654 | ;; |
c7e4b184 JM |
3655 | *-*-dragonfly*) |
3656 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3657 | ;; | |
3658 | *-*-freebsd*) | |
3659 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3660 | ;; | |
3661 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) | |
3662 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3663 | ;; | |
3664 | *-*-lynxos*) | |
3665 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3666 | ;; | |
3667 | *-*-mingw*) | |
3668 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3669 | ;; | |
3670 | *-*-netbsd*) | |
3671 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3672 | ;; | |
3673 | *-*-netware*) | |
3674 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3675 | ;; | |
3676 | *-*-tpf*) | |
3677 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3678 | ;; | |
3679 | *-*-uclinux*) | |
3680 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3681 | ;; | |
3682 | *-*-vxworks*) | |
3683 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3684 | ;; | |
3685 | esac | |
3686 | ||
3687 | case "${target}" in | |
3688 | *-*-chorusos) | |
3689 | ;; | |
f075eb5e TG |
3690 | aarch64-*-darwin*) |
3691 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3692 | noconfigdirs="$noconfigdirs sim target-rda" | |
3693 | ;; | |
3694 | arm-*-darwin*) | |
3695 | noconfigdirs="$noconfigdirs ld gas gdb gprof" | |
3696 | noconfigdirs="$noconfigdirs sim target-rda" | |
3697 | ;; | |
24741ab2 | 3698 | powerpc-*-darwin*) |
9d39db92 | 3699 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3700 | noconfigdirs="$noconfigdirs sim target-rda" |
652dec25 | 3701 | ;; |
85bd1942 TG |
3702 | i[3456789]86-*-darwin*) |
3703 | noconfigdirs="$noconfigdirs ld gprof" | |
3704 | noconfigdirs="$noconfigdirs sim target-rda" | |
3705 | ;; | |
e8a5fa9c | 3706 | x86_64-*-darwin[912]*) |
652dec25 TG |
3707 | noconfigdirs="$noconfigdirs ld gas gprof" |
3708 | noconfigdirs="$noconfigdirs sim target-rda" | |
b3f16a9b | 3709 | ;; |
04d1ab34 | 3710 | *-*-darwin*) |
d320aacb | 3711 | noconfigdirs="$noconfigdirs ld gas gdb gprof" |
4e3fc8e5 | 3712 | noconfigdirs="$noconfigdirs sim target-rda" |
04d1ab34 | 3713 | ;; |
5b806d27 | 3714 | *-*-dragonfly*) |
5b806d27 | 3715 | ;; |
de0b4a87 | 3716 | *-*-freebsd*) |
4b1cb4fe DD |
3717 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ |
3718 | && test -f /usr/local/include/gmp.h; then | |
3719 | with_gmp=/usr/local | |
3720 | fi | |
4b1cb4fe | 3721 | ;; |
f8a495c8 NC |
3722 | *-*-kaos*) |
3723 | # Remove unsupported stuff on all kaOS configurations. | |
f8a495c8 NC |
3724 | noconfigdirs="$noconfigdirs target-libgloss" |
3725 | ;; | |
a0da8069 | 3726 | *-*-netbsd*) |
a0da8069 | 3727 | ;; |
2a3124ca | 3728 | *-*-netware*) |
a0da8069 NN |
3729 | ;; |
3730 | *-*-rtems*) | |
9863d716 | 3731 | noconfigdirs="$noconfigdirs target-libgloss" |
f8797b5a JB |
3732 | # this is not caught below because this stanza matches earlier |
3733 | case $target in | |
3734 | or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;; | |
3735 | esac | |
a0da8069 | 3736 | ;; |
1587117a EC |
3737 | # The tpf target doesn't support gdb yet. |
3738 | *-*-tpf*) | |
c7e4b184 | 3739 | noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl" |
1587117a | 3740 | ;; |
c1968181 | 3741 | *-*-uclinux*) |
c7e4b184 | 3742 | noconfigdirs="$noconfigdirs target-rda" |
c1968181 | 3743 | ;; |
a0da8069 | 3744 | *-*-vxworks*) |
a0da8069 NN |
3745 | ;; |
3746 | alpha*-dec-osf*) | |
3747 | # ld works, but does not support shared libraries. | |
a0da8069 | 3748 | # gas doesn't generate exception information. |
c7e4b184 | 3749 | noconfigdirs="$noconfigdirs gas ld" |
a0da8069 NN |
3750 | ;; |
3751 | alpha*-*-*vms*) | |
9863d716 | 3752 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" |
a0da8069 | 3753 | ;; |
a0da8069 NN |
3754 | alpha*-*-*) |
3755 | # newlib is not 64 bit ready | |
9863d716 | 3756 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3757 | ;; |
a0da8069 | 3758 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) |
675c6968 | 3759 | noconfigdirs="$noconfigdirs tcl tk itcl libgui sim" |
a0da8069 | 3760 | ;; |
f4cfb980 | 3761 | arc-*-*|arceb-*-*) |
782cb41f | 3762 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3763 | ;; |
a0da8069 | 3764 | arm-*-pe*) |
9863d716 | 3765 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3766 | ;; |
a0da8069 | 3767 | arm-*-riscix*) |
b2f14e4a | 3768 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3769 | ;; |
8e71395b L |
3770 | avr-*-rtems*) |
3771 | ;; | |
3772 | avr-*-*) | |
3773 | if test x${with_avrlibc} != xno; then | |
3774 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
3775 | fi | |
3776 | ;; | |
a0da8069 | 3777 | c4x-*-* | tic4x-*-*) |
b2f14e4a | 3778 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3779 | ;; |
b2f14e4a JM |
3780 | tic54x-*-*) |
3781 | noconfigdirs="$noconfigdirs target-libgloss gdb" | |
a0da8069 | 3782 | ;; |
a0da8069 | 3783 | d10v-*-*) |
b2f14e4a | 3784 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3785 | ;; |
3786 | d30v-*-*) | |
b2f14e4a | 3787 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 NN |
3788 | ;; |
3789 | fr30-*-elf*) | |
9863d716 | 3790 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3791 | ;; |
3f8107ab AM |
3792 | ft32-*-*) |
3793 | noconfigdirs="$noconfigdirs target-rda gprof" | |
3794 | ;; | |
20135e4c | 3795 | moxie-*-*) |
10b8fe5e | 3796 | noconfigdirs="$noconfigdirs" |
20135e4c | 3797 | ;; |
a0da8069 | 3798 | h8300*-*-*) |
9863d716 | 3799 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 NN |
3800 | ;; |
3801 | h8500-*-*) | |
b2f14e4a | 3802 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3803 | ;; |
caeba88f | 3804 | hppa1.1-*-osf* | hppa1.1-*-bsd* ) |
caeba88f | 3805 | ;; |
5569a85f JDA |
3806 | hppa*64*-*-hpux*) |
3807 | noconfigdirs="$noconfigdirs gdb" | |
3808 | ;; | |
3809 | hppa*-*-hpux11*) | |
3810 | noconfigdirs="$noconfigdirs gdb ld" | |
3811 | ;; | |
93cc359e | 3812 | hppa*64*-*-linux*) |
a0da8069 | 3813 | ;; |
f0ff0f90 | 3814 | hppa*-*-linux*) |
5dcac624 | 3815 | ;; |
a0da8069 | 3816 | hppa*-*-*elf* | \ |
a0da8069 NN |
3817 | hppa*-*-lites* | \ |
3818 | hppa*-*-openbsd* | \ | |
3819 | hppa*64*-*-*) | |
4f0ef2d8 | 3820 | ;; |
691bb5a1 | 3821 | hppa*-*-pro*) |
691bb5a1 | 3822 | ;; |
a0da8069 | 3823 | hppa*-*-*) |
9863d716 | 3824 | noconfigdirs="$noconfigdirs ld" |
a0da8069 | 3825 | ;; |
b07c2aad | 3826 | i960-*-*) |
b2f14e4a | 3827 | noconfigdirs="$noconfigdirs gdb" |
b07c2aad | 3828 | ;; |
a0da8069 NN |
3829 | ia64*-*-elf*) |
3830 | # No gdb support yet. | |
0377a422 | 3831 | noconfigdirs="$noconfigdirs readline libgui itcl gdb" |
a0da8069 NN |
3832 | ;; |
3833 | ia64*-**-hpux*) | |
92c9a463 | 3834 | # No ld support yet. |
5569a85f | 3835 | noconfigdirs="$noconfigdirs gdb libgui itcl ld" |
a0da8069 | 3836 | ;; |
19e99079 | 3837 | ia64*-*-*vms*) |
7ec59b9e L |
3838 | # No ld support yet. |
3839 | noconfigdirs="$noconfigdirs libgui itcl ld" | |
19e99079 | 3840 | ;; |
1f53ca9a | 3841 | i[3456789]86-w64-mingw*) |
1f53ca9a AO |
3842 | ;; |
3843 | i[3456789]86-*-mingw*) | |
45055374 | 3844 | target_configdirs="$target_configdirs target-winsup" |
c6b750e1 | 3845 | ;; |
a0da8069 NN |
3846 | *-*-cygwin*) |
3847 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
0377a422 | 3848 | noconfigdirs="$noconfigdirs target-libgloss" |
b76d7de0 | 3849 | # always build newlib if winsup directory is present. |
45055374 | 3850 | if test -d "$srcdir/winsup/cygwin"; then |
b76d7de0 | 3851 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` |
ac0fa625 | 3852 | elif test -d "$srcdir/newlib"; then |
45055374 | 3853 | echo "Warning: winsup/cygwin is missing so newlib can't be built." |
b76d7de0 | 3854 | fi |
c6b750e1 | 3855 | ;; |
ec11bdc6 | 3856 | i[3456789]86-*-pe) |
782cb41f | 3857 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3858 | ;; |
ec11bdc6 | 3859 | i[3456789]86-*-sco3.2v5*) |
a0da8069 NN |
3860 | # The linker does not yet know about weak symbols in COFF, |
3861 | # and is not configured to handle mixed ELF and COFF. | |
b2f14e4a | 3862 | noconfigdirs="$noconfigdirs ld target-libgloss" |
a0da8069 | 3863 | ;; |
ec11bdc6 | 3864 | i[3456789]86-*-sco*) |
b2f14e4a | 3865 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3866 | ;; |
cff32a7c | 3867 | i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*) |
a0da8069 NN |
3868 | noconfigdirs="$noconfigdirs target-libgloss" |
3869 | ;; | |
ec11bdc6 | 3870 | i[3456789]86-*-sysv4*) |
b2f14e4a | 3871 | noconfigdirs="$noconfigdirs target-libgloss" |
a0da8069 | 3872 | ;; |
ec11bdc6 | 3873 | i[3456789]86-*-beos*) |
c7e4b184 | 3874 | noconfigdirs="$noconfigdirs gdb" |
bba45b8b | 3875 | ;; |
b59bea8a | 3876 | i[3456789]86-*-rdos*) |
c7e4b184 | 3877 | noconfigdirs="$noconfigdirs gdb" |
691bb5a1 | 3878 | ;; |
a0da8069 | 3879 | mmix-*-*) |
9863d716 | 3880 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3881 | ;; |
4970f871 | 3882 | mt-*-*) |
cdb9b172 AH |
3883 | noconfigdirs="$noconfigdirs sim" |
3884 | ;; | |
a0da8069 NN |
3885 | powerpc-*-aix*) |
3886 | # copied from rs6000-*-* entry | |
c7e4b184 | 3887 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3888 | ;; |
93cc359e | 3889 | powerpc*-*-winnt* | powerpc*-*-pe*) |
a0da8069 | 3890 | target_configdirs="$target_configdirs target-winsup" |
b2f14e4a | 3891 | noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl" |
a0da8069 NN |
3892 | # always build newlib. |
3893 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
3894 | ;; | |
3895 | # This is temporary until we can link against shared libraries | |
3896 | powerpcle-*-solaris*) | |
b2f14e4a | 3897 | noconfigdirs="$noconfigdirs gdb sim tcl tk itcl" |
a0da8069 NN |
3898 | ;; |
3899 | powerpc-*-beos*) | |
c7e4b184 | 3900 | noconfigdirs="$noconfigdirs gdb" |
a0da8069 | 3901 | ;; |
a0da8069 | 3902 | rs6000-*-lynxos*) |
c7e4b184 | 3903 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3904 | ;; |
3905 | rs6000-*-aix*) | |
c7e4b184 | 3906 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3907 | ;; |
3908 | rs6000-*-*) | |
9863d716 | 3909 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 NN |
3910 | ;; |
3911 | m68k-apollo-*) | |
b2f14e4a | 3912 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss" |
a0da8069 | 3913 | ;; |
25a07265 | 3914 | microblaze*) |
9863d716 | 3915 | noconfigdirs="$noconfigdirs gprof" |
25a07265 | 3916 | ;; |
a9d58c06 | 3917 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
5bd8be13 RS |
3918 | if test x$with_newlib = xyes; then |
3919 | noconfigdirs="$noconfigdirs gprof" | |
3920 | fi | |
5bd8be13 | 3921 | ;; |
a0da8069 | 3922 | mips*-*-irix5*) |
b2f14e4a | 3923 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 NN |
3924 | ;; |
3925 | mips*-*-irix6*) | |
9863d716 | 3926 | noconfigdirs="$noconfigdirs gprof target-libgloss" |
a0da8069 | 3927 | ;; |
a0da8069 | 3928 | mips*-*-bsd*) |
e8044f35 | 3929 | noconfigdirs="$noconfigdirs ld gas gprof target-libgloss" |
a0da8069 | 3930 | ;; |
a0da8069 | 3931 | mips*-*-linux*) |
a0da8069 | 3932 | ;; |
e8044f35 RS |
3933 | mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \ |
3934 | | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*) | |
3935 | noconfigdirs="$noconfigdirs ld gas gprof" | |
3936 | ;; | |
a0da8069 | 3937 | mips*-*-*) |
9863d716 | 3938 | noconfigdirs="$noconfigdirs gprof" |
a0da8069 | 3939 | ;; |
b25b5cef CJW |
3940 | nds32*-*-*) |
3941 | noconfigdirs="$noconfigdirs gdb" | |
3942 | ;; | |
1b6c0831 | 3943 | nvptx*-*-*) |
1b6c0831 L |
3944 | noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc" |
3945 | ;; | |
cfbc1a6c JS |
3946 | or1k*-*-*) |
3947 | noconfigdirs="$noconfigdirs gdb" | |
3948 | ;; | |
dbf85af7 | 3949 | sh-*-* | sh64-*-*) |
e8a5fa9c RW |
3950 | case "${target}" in |
3951 | sh*-*-elf) | |
9863d716 | 3952 | ;; |
e8a5fa9c | 3953 | *) |
9863d716 | 3954 | noconfigdirs="$noconfigdirs target-libgloss" ;; |
e8a5fa9c | 3955 | esac |
a0da8069 | 3956 | ;; |
a0da8069 | 3957 | sparc-*-sunos4*) |
c7e4b184 | 3958 | if test x${is_cross_compiler} = xno ; then |
a0da8069 NN |
3959 | use_gnu_ld=no |
3960 | fi | |
3961 | ;; | |
619a3713 | 3962 | tic6x-*-*) |
40ae9136 | 3963 | noconfigdirs="$noconfigdirs sim" |
619a3713 | 3964 | ;; |
9abdce70 | 3965 | tilegx*-*-*) |
eb4b2452 NC |
3966 | noconfigdirs="$noconfigdirs sim" |
3967 | ;; | |
9abdce70 WL |
3968 | tilepro*-*-*) |
3969 | noconfigdirs="$noconfigdirs gdb sim" | |
3970 | ;; | |
a0da8069 | 3971 | v810-*-*) |
b2f14e4a | 3972 | noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss" |
a0da8069 NN |
3973 | ;; |
3974 | vax-*-*) | |
9863d716 | 3975 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" |
a0da8069 | 3976 | ;; |
a0da8069 | 3977 | esac |
252b5132 | 3978 | |
a0da8069 NN |
3979 | # If we aren't building newlib, then don't build libgloss, since libgloss |
3980 | # depends upon some newlib header files. | |
3981 | case "${noconfigdirs}" in | |
3982 | *target-libgloss*) ;; | |
3983 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
3984 | esac | |
3985 | ||
a0da8069 | 3986 | # Work in distributions that contain no compiler tools, like Autoconf. |
a0da8069 NN |
3987 | host_makefile_frag=/dev/null |
3988 | if test -d ${srcdir}/config ; then | |
3989 | case "${host}" in | |
ec11bdc6 | 3990 | i[3456789]86-*-msdosdjgpp*) |
a0da8069 NN |
3991 | host_makefile_frag="config/mh-djgpp" |
3992 | ;; | |
3993 | *-cygwin*) | |
e33b51a6 | 3994 | |
81ecdfbb RW |
3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5 |
3996 | $as_echo_n "checking to see if cat works as expected... " >&6; } | |
e33b51a6 | 3997 | echo a >cygwin-cat-check |
1f53ca9a | 3998 | if test `cat cygwin-cat-check` = a ; then |
8ade07e9 | 3999 | rm cygwin-cat-check |
81ecdfbb RW |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4001 | $as_echo "yes" >&6; } | |
e33b51a6 | 4002 | else |
8ade07e9 | 4003 | rm cygwin-cat-check |
81ecdfbb RW |
4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4005 | $as_echo "no" >&6; } | |
4006 | as_fn_error "The cat command does not ignore carriage return characters. | |
e33b51a6 NC |
4007 | Please either mount the build directory in binary mode or run the following |
4008 | commands before running any configure script: | |
4009 | set -o igncr | |
4010 | export SHELLOPTS | |
81ecdfbb | 4011 | " "$LINENO" 5 |
e33b51a6 | 4012 | fi |
e33b51a6 | 4013 | |
a0da8069 NN |
4014 | host_makefile_frag="config/mh-cygwin" |
4015 | ;; | |
8a1599ab | 4016 | *-mingw*) |
84e7906e | 4017 | host_makefile_frag="config/mh-mingw" |
2d1e8239 | 4018 | ;; |
ce6c656d L |
4019 | alpha*-linux*) |
4020 | host_makefile_frag="config/mh-alpha-linux" | |
4021 | ;; | |
da888c87 | 4022 | hppa*-hp-hpux10*) |
da888c87 | 4023 | host_makefile_frag="config/mh-pa-hpux10" |
a0da8069 | 4024 | ;; |
3516a403 | 4025 | hppa*-hp-hpux*) |
da888c87 PB |
4026 | host_makefile_frag="config/mh-pa" |
4027 | ;; | |
4028 | hppa*-*) | |
4029 | host_makefile_frag="config/mh-pa" | |
4030 | ;; | |
e552509b ILT |
4031 | *-*-darwin*) |
4032 | host_makefile_frag="config/mh-darwin" | |
0df3d27f | 4033 | ;; |
f6d183c0 PB |
4034 | powerpc-*-aix*) |
4035 | host_makefile_frag="config/mh-ppc-aix" | |
4036 | ;; | |
4037 | rs6000-*-aix*) | |
4038 | host_makefile_frag="config/mh-ppc-aix" | |
4039 | ;; | |
a0da8069 NN |
4040 | esac |
4041 | fi | |
4042 | ||
9e07f89d | 4043 | if test "${build}" != "${host}" ; then |
1576798e PB |
4044 | AR_FOR_BUILD=${AR_FOR_BUILD-ar} |
4045 | AS_FOR_BUILD=${AS_FOR_BUILD-as} | |
9e07f89d | 4046 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} |
1576798e PB |
4047 | CXX_FOR_BUILD=${CXX_FOR_BUILD-g++} |
4048 | GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj} | |
4049 | GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran} | |
e552509b | 4050 | GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo} |
1576798e PB |
4051 | DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool} |
4052 | LD_FOR_BUILD=${LD_FOR_BUILD-ld} | |
4053 | NM_FOR_BUILD=${NM_FOR_BUILD-nm} | |
4054 | RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib} | |
4055 | WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres} | |
4056 | WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc} | |
4057 | else | |
4058 | AR_FOR_BUILD="\$(AR)" | |
4059 | AS_FOR_BUILD="\$(AS)" | |
512b7dfb | 4060 | CC_FOR_BUILD="\$(CC)" |
1576798e PB |
4061 | CXX_FOR_BUILD="\$(CXX)" |
4062 | GCJ_FOR_BUILD="\$(GCJ)" | |
4063 | GFORTRAN_FOR_BUILD="\$(GFORTRAN)" | |
e552509b | 4064 | GOC_FOR_BUILD="\$(GOC)" |
1576798e PB |
4065 | DLLTOOL_FOR_BUILD="\$(DLLTOOL)" |
4066 | LD_FOR_BUILD="\$(LD)" | |
4067 | NM_FOR_BUILD="\$(NM)" | |
4068 | RANLIB_FOR_BUILD="\$(RANLIB)" | |
4069 | WINDRES_FOR_BUILD="\$(WINDRES)" | |
4070 | WINDMC_FOR_BUILD="\$(WINDMC)" | |
18f6b6ee PB |
4071 | fi |
4072 | ||
4073 | ac_ext=c | |
c6b750e1 DJ |
4074 | ac_cpp='$CPP $CPPFLAGS' |
4075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4078 | if test -n "$ac_tool_prefix"; then | |
4079 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4080 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
4081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4082 | $as_echo_n "checking for $ac_word... " >&6; } | |
4083 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4084 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4085 | else |
4086 | if test -n "$CC"; then | |
4087 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4088 | else | |
4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4090 | for as_dir in $PATH | |
4091 | do | |
4092 | IFS=$as_save_IFS | |
4093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4094 | for ac_exec_ext in '' $ac_executable_extensions; do |
4095 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4096 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 4097 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4098 | break 2 |
4099 | fi | |
4100 | done | |
81ecdfbb RW |
4101 | done |
4102 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4103 | |
4104 | fi | |
4105 | fi | |
4106 | CC=$ac_cv_prog_CC | |
4107 | if test -n "$CC"; then | |
81ecdfbb RW |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4109 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4110 | else |
81ecdfbb RW |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4112 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4113 | fi |
4114 | ||
81ecdfbb | 4115 | |
c6b750e1 DJ |
4116 | fi |
4117 | if test -z "$ac_cv_prog_CC"; then | |
4118 | ac_ct_CC=$CC | |
6a9cf61e | 4119 | # Extract the first word of "gcc", so it can be a program name with args. |
9e07f89d | 4120 | set dummy gcc; ac_word=$2 |
81ecdfbb RW |
4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4122 | $as_echo_n "checking for $ac_word... " >&6; } | |
4123 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4124 | $as_echo_n "(cached) " >&6 | |
c6b750e1 DJ |
4125 | else |
4126 | if test -n "$ac_ct_CC"; then | |
4127 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4128 | else | |
4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4130 | for as_dir in $PATH | |
4131 | do | |
4132 | IFS=$as_save_IFS | |
4133 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4134 | for ac_exec_ext in '' $ac_executable_extensions; do |
4135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4136 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 4137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4138 | break 2 |
4139 | fi | |
4140 | done | |
81ecdfbb RW |
4141 | done |
4142 | IFS=$as_save_IFS | |
c6b750e1 DJ |
4143 | |
4144 | fi | |
4145 | fi | |
4146 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4147 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4149 | $as_echo "$ac_ct_CC" >&6; } | |
c6b750e1 | 4150 | else |
81ecdfbb RW |
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4152 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4153 | fi |
4154 | ||
81ecdfbb RW |
4155 | if test "x$ac_ct_CC" = x; then |
4156 | CC="" | |
4157 | else | |
4158 | case $cross_compiling:$ac_tool_warned in | |
4159 | yes:) | |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4161 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4162 | ac_tool_warned=yes ;; | |
4163 | esac | |
4164 | CC=$ac_ct_CC | |
4165 | fi | |
c6b750e1 DJ |
4166 | else |
4167 | CC="$ac_cv_prog_CC" | |
4168 | fi | |
4169 | ||
4170 | if test -z "$CC"; then | |
81ecdfbb RW |
4171 | if test -n "$ac_tool_prefix"; then |
4172 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
c6b750e1 | 4173 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4175 | $as_echo_n "checking for $ac_word... " >&6; } | |
4176 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4177 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4178 | else |
4179 | if test -n "$CC"; then | |
4180 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4181 | else | |
c6b750e1 DJ |
4182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4183 | for as_dir in $PATH | |
4184 | do | |
4185 | IFS=$as_save_IFS | |
4186 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4187 | for ac_exec_ext in '' $ac_executable_extensions; do |
4188 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4189 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 4190 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4191 | break 2 |
4192 | fi | |
4193 | done | |
81ecdfbb RW |
4194 | done |
4195 | IFS=$as_save_IFS | |
c6b750e1 | 4196 | |
9e07f89d NN |
4197 | fi |
4198 | fi | |
c6b750e1 | 4199 | CC=$ac_cv_prog_CC |
9e07f89d | 4200 | if test -n "$CC"; then |
81ecdfbb RW |
4201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4202 | $as_echo "$CC" >&6; } | |
c6b750e1 | 4203 | else |
81ecdfbb RW |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4205 | $as_echo "no" >&6; } | |
c6b750e1 DJ |
4206 | fi |
4207 | ||
c6b750e1 | 4208 | |
81ecdfbb | 4209 | fi |
c6b750e1 | 4210 | fi |
9e07f89d NN |
4211 | if test -z "$CC"; then |
4212 | # Extract the first word of "cc", so it can be a program name with args. | |
4213 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
4214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4215 | $as_echo_n "checking for $ac_word... " >&6; } | |
4216 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4217 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4218 | else |
4219 | if test -n "$CC"; then | |
4220 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4221 | else | |
9e07f89d | 4222 | ac_prog_rejected=no |
c6b750e1 DJ |
4223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4224 | for as_dir in $PATH | |
4225 | do | |
4226 | IFS=$as_save_IFS | |
4227 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4228 | for ac_exec_ext in '' $ac_executable_extensions; do |
4229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 DJ |
4230 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
4231 | ac_prog_rejected=yes | |
4232 | continue | |
4233 | fi | |
4234 | ac_cv_prog_CC="cc" | |
81ecdfbb | 4235 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4236 | break 2 |
4237 | fi | |
4238 | done | |
81ecdfbb RW |
4239 | done |
4240 | IFS=$as_save_IFS | |
c6b750e1 | 4241 | |
9e07f89d NN |
4242 | if test $ac_prog_rejected = yes; then |
4243 | # We found a bogon in the path, so make sure we never use it. | |
4244 | set dummy $ac_cv_prog_CC | |
4245 | shift | |
c6b750e1 | 4246 | if test $# != 0; then |
9e07f89d NN |
4247 | # We chose a different compiler from the bogus one. |
4248 | # However, it has the same basename, so the bogon will be chosen | |
4249 | # first if we set CC to just the basename; use the full file name. | |
4250 | shift | |
c6b750e1 | 4251 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
9e07f89d NN |
4252 | fi |
4253 | fi | |
4254 | fi | |
4255 | fi | |
c6b750e1 | 4256 | CC=$ac_cv_prog_CC |
9e07f89d | 4257 | if test -n "$CC"; then |
81ecdfbb RW |
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4259 | $as_echo "$CC" >&6; } | |
9e07f89d | 4260 | else |
81ecdfbb RW |
4261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4262 | $as_echo "no" >&6; } | |
9e07f89d NN |
4263 | fi |
4264 | ||
81ecdfbb | 4265 | |
c6b750e1 DJ |
4266 | fi |
4267 | if test -z "$CC"; then | |
4268 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 4269 | for ac_prog in cl.exe |
c6b750e1 DJ |
4270 | do |
4271 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4272 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4274 | $as_echo_n "checking for $ac_word... " >&6; } | |
4275 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4276 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
4277 | else |
4278 | if test -n "$CC"; then | |
4279 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4280 | else | |
c6b750e1 DJ |
4281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4282 | for as_dir in $PATH | |
4283 | do | |
4284 | IFS=$as_save_IFS | |
4285 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4286 | for ac_exec_ext in '' $ac_executable_extensions; do |
4287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4288 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4289 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 | 4290 | break 2 |
376a0e54 | 4291 | fi |
c6b750e1 | 4292 | done |
81ecdfbb RW |
4293 | done |
4294 | IFS=$as_save_IFS | |
cac3d6c4 | 4295 | |
c6b750e1 DJ |
4296 | fi |
4297 | fi | |
4298 | CC=$ac_cv_prog_CC | |
4299 | if test -n "$CC"; then | |
81ecdfbb RW |
4300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
4301 | $as_echo "$CC" >&6; } | |
cac3d6c4 | 4302 | else |
81ecdfbb RW |
4303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4304 | $as_echo "no" >&6; } | |
9e07f89d | 4305 | fi |
cac3d6c4 | 4306 | |
81ecdfbb | 4307 | |
c6b750e1 DJ |
4308 | test -n "$CC" && break |
4309 | done | |
cac3d6c4 | 4310 | fi |
c6b750e1 DJ |
4311 | if test -z "$CC"; then |
4312 | ac_ct_CC=$CC | |
81ecdfbb | 4313 | for ac_prog in cl.exe |
c6b750e1 DJ |
4314 | do |
4315 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4316 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4318 | $as_echo_n "checking for $ac_word... " >&6; } | |
4319 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4320 | $as_echo_n "(cached) " >&6 | |
cac3d6c4 | 4321 | else |
c6b750e1 DJ |
4322 | if test -n "$ac_ct_CC"; then |
4323 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
376a0e54 | 4324 | else |
c6b750e1 DJ |
4325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4326 | for as_dir in $PATH | |
4327 | do | |
4328 | IFS=$as_save_IFS | |
4329 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4330 | for ac_exec_ext in '' $ac_executable_extensions; do |
4331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 4332 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 4333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
4334 | break 2 |
4335 | fi | |
4336 | done | |
81ecdfbb RW |
4337 | done |
4338 | IFS=$as_save_IFS | |
c6b750e1 | 4339 | |
cac3d6c4 CM |
4340 | fi |
4341 | fi | |
c6b750e1 DJ |
4342 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4343 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
4344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4345 | $as_echo "$ac_ct_CC" >&6; } | |
9e07f89d | 4346 | else |
81ecdfbb RW |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4348 | $as_echo "no" >&6; } | |
cac3d6c4 | 4349 | fi |
376a0e54 | 4350 | |
81ecdfbb | 4351 | |
c6b750e1 DJ |
4352 | test -n "$ac_ct_CC" && break |
4353 | done | |
4354 | ||
81ecdfbb RW |
4355 | if test "x$ac_ct_CC" = x; then |
4356 | CC="" | |
4357 | else | |
4358 | case $cross_compiling:$ac_tool_warned in | |
4359 | yes:) | |
4360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4361 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4362 | ac_tool_warned=yes ;; | |
4363 | esac | |
4364 | CC=$ac_ct_CC | |
4365 | fi | |
c6b750e1 DJ |
4366 | fi |
4367 | ||
4368 | fi | |
4369 | ||
4370 | ||
81ecdfbb RW |
4371 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4372 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4373 | as_fn_error "no acceptable C compiler found in \$PATH | |
4374 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 DJ |
4375 | |
4376 | # Provide some information about the compiler. | |
81ecdfbb RW |
4377 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4378 | set X $ac_compile | |
4379 | ac_compiler=$2 | |
4380 | for ac_option in --version -v -V -qversion; do | |
4381 | { { ac_try="$ac_compiler $ac_option >&5" | |
4382 | case "(($ac_try" in | |
4383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4384 | *) ac_try_echo=$ac_try;; | |
4385 | esac | |
4386 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4387 | $as_echo "$ac_try_echo"; } >&5 | |
4388 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
c6b750e1 | 4389 | ac_status=$? |
81ecdfbb RW |
4390 | if test -s conftest.err; then |
4391 | sed '10a\ | |
4392 | ... rest of stderr output deleted ... | |
4393 | 10q' conftest.err >conftest.er1 | |
4394 | cat conftest.er1 >&5 | |
4395 | rm -f conftest.er1 conftest.err | |
4396 | fi | |
4397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4398 | test $ac_status = 0; } | |
4399 | done | |
c6b750e1 | 4400 | |
81ecdfbb | 4401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4402 | /* end confdefs.h. */ |
4403 | ||
4404 | int | |
4405 | main () | |
4406 | { | |
4407 | ||
4408 | ; | |
4409 | return 0; | |
4410 | } | |
4411 | _ACEOF | |
4412 | ac_clean_files_save=$ac_clean_files | |
81ecdfbb | 4413 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" |
c6b750e1 DJ |
4414 | # Try to create an executable without -o first, disregard a.out. |
4415 | # It will help us diagnose broken compilers, and finding out an intuition | |
4416 | # of exeext. | |
81ecdfbb RW |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4418 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
4419 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4420 | ||
4421 | # The possible output files: | |
4422 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4423 | ||
4424 | ac_rmfiles= | |
4425 | for ac_file in $ac_files | |
4426 | do | |
4427 | case $ac_file in | |
4428 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4429 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4430 | esac | |
4431 | done | |
4432 | rm -f $ac_rmfiles | |
4433 | ||
4434 | if { { ac_try="$ac_link_default" | |
4435 | case "(($ac_try" in | |
4436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4437 | *) ac_try_echo=$ac_try;; | |
4438 | esac | |
4439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4440 | $as_echo "$ac_try_echo"; } >&5 | |
4441 | (eval "$ac_link_default") 2>&5 | |
c6b750e1 | 4442 | ac_status=$? |
81ecdfbb RW |
4443 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4444 | test $ac_status = 0; }; then : | |
4445 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
4446 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
4447 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4448 | # so that the user can short-circuit this test for compilers unknown to | |
4449 | # Autoconf. | |
4450 | for ac_file in $ac_files '' | |
c6b750e1 DJ |
4451 | do |
4452 | test -f "$ac_file" || continue | |
4453 | case $ac_file in | |
81ecdfbb | 4454 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
c6b750e1 DJ |
4455 | ;; |
4456 | [ab].out ) | |
4457 | # We found the default executable, but exeext='' is most | |
4458 | # certainly right. | |
4459 | break;; | |
4460 | *.* ) | |
81ecdfbb RW |
4461 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4462 | then :; else | |
4463 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4464 | fi | |
4465 | # We set ac_cv_exeext here because the later test for it is not | |
4466 | # safe: cross compilers may not add the suffix if given an `-o' | |
4467 | # argument, so we may need to know it at that point already. | |
4468 | # Even if this section looks crufty: it has the advantage of | |
4469 | # actually working. | |
c6b750e1 DJ |
4470 | break;; |
4471 | * ) | |
4472 | break;; | |
4473 | esac | |
4474 | done | |
81ecdfbb RW |
4475 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4476 | ||
c6b750e1 | 4477 | else |
81ecdfbb RW |
4478 | ac_file='' |
4479 | fi | |
4480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4481 | $as_echo "$ac_file" >&6; } | |
4482 | if test -z "$ac_file"; then : | |
4483 | $as_echo "$as_me: failed program was:" >&5 | |
c6b750e1 DJ |
4484 | sed 's/^/| /' conftest.$ac_ext >&5 |
4485 | ||
81ecdfbb RW |
4486 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4487 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4488 | { as_fn_set_status 77 | |
4489 | as_fn_error "C compiler cannot create executables | |
4490 | See \`config.log' for more details." "$LINENO" 5; }; } | |
c6b750e1 | 4491 | fi |
c6b750e1 | 4492 | ac_exeext=$ac_cv_exeext |
c6b750e1 | 4493 | |
81ecdfbb | 4494 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4495 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4497 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
c6b750e1 DJ |
4498 | # If not cross compiling, check that we can run a simple program. |
4499 | if test "$cross_compiling" != yes; then | |
4500 | if { ac_try='./$ac_file' | |
81ecdfbb RW |
4501 | { { case "(($ac_try" in |
4502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4503 | *) ac_try_echo=$ac_try;; | |
4504 | esac | |
4505 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4506 | $as_echo "$ac_try_echo"; } >&5 | |
4507 | (eval "$ac_try") 2>&5 | |
c6b750e1 | 4508 | ac_status=$? |
81ecdfbb RW |
4509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4510 | test $ac_status = 0; }; }; then | |
c6b750e1 DJ |
4511 | cross_compiling=no |
4512 | else | |
4513 | if test "$cross_compiling" = maybe; then | |
4514 | cross_compiling=yes | |
4515 | else | |
81ecdfbb RW |
4516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4518 | as_fn_error "cannot run C compiled programs. | |
c6b750e1 | 4519 | If you meant to cross compile, use \`--host'. |
81ecdfbb | 4520 | See \`config.log' for more details." "$LINENO" 5; } |
c6b750e1 DJ |
4521 | fi |
4522 | fi | |
4523 | fi | |
81ecdfbb RW |
4524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4525 | $as_echo "yes" >&6; } | |
c6b750e1 | 4526 | |
81ecdfbb | 4527 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
c6b750e1 | 4528 | ac_clean_files=$ac_clean_files_save |
81ecdfbb | 4529 | # Check that the compiler produces executables we can run. If not, either |
c6b750e1 | 4530 | # the compiler is broken, or we cross compile. |
81ecdfbb RW |
4531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4532 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
4533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4534 | $as_echo "$cross_compiling" >&6; } | |
4535 | ||
4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4537 | $as_echo_n "checking for suffix of executables... " >&6; } | |
4538 | if { { ac_try="$ac_link" | |
4539 | case "(($ac_try" in | |
4540 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4541 | *) ac_try_echo=$ac_try;; | |
4542 | esac | |
4543 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4544 | $as_echo "$ac_try_echo"; } >&5 | |
4545 | (eval "$ac_link") 2>&5 | |
c6b750e1 | 4546 | ac_status=$? |
81ecdfbb RW |
4547 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4548 | test $ac_status = 0; }; then : | |
c6b750e1 DJ |
4549 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4550 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
4551 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
4552 | # `rm'. | |
4553 | for ac_file in conftest.exe conftest conftest.*; do | |
4554 | test -f "$ac_file" || continue | |
4555 | case $ac_file in | |
81ecdfbb | 4556 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
c6b750e1 | 4557 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
c6b750e1 DJ |
4558 | break;; |
4559 | * ) break;; | |
4560 | esac | |
4561 | done | |
4562 | else | |
81ecdfbb RW |
4563 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4564 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4565 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
4566 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4567 | fi |
c6b750e1 | 4568 | rm -f conftest$ac_cv_exeext |
81ecdfbb RW |
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4570 | $as_echo "$ac_cv_exeext" >&6; } | |
c6b750e1 DJ |
4571 | |
4572 | rm -f conftest.$ac_ext | |
4573 | EXEEXT=$ac_cv_exeext | |
4574 | ac_exeext=$EXEEXT | |
81ecdfbb RW |
4575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4576 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4577 | if test "${ac_cv_objext+set}" = set; then : | |
4578 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4579 | else |
81ecdfbb | 4580 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4581 | /* end confdefs.h. */ |
4582 | ||
4583 | int | |
4584 | main () | |
4585 | { | |
4586 | ||
4587 | ; | |
4588 | return 0; | |
4589 | } | |
4590 | _ACEOF | |
4591 | rm -f conftest.o conftest.obj | |
81ecdfbb RW |
4592 | if { { ac_try="$ac_compile" |
4593 | case "(($ac_try" in | |
4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4595 | *) ac_try_echo=$ac_try;; | |
4596 | esac | |
4597 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4598 | $as_echo "$ac_try_echo"; } >&5 | |
4599 | (eval "$ac_compile") 2>&5 | |
c6b750e1 | 4600 | ac_status=$? |
81ecdfbb RW |
4601 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4602 | test $ac_status = 0; }; then : | |
4603 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4604 | test -f "$ac_file" || continue; | |
c6b750e1 | 4605 | case $ac_file in |
81ecdfbb | 4606 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
c6b750e1 DJ |
4607 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
4608 | break;; | |
4609 | esac | |
4610 | done | |
cac3d6c4 | 4611 | else |
81ecdfbb | 4612 | $as_echo "$as_me: failed program was:" >&5 |
c6b750e1 DJ |
4613 | sed 's/^/| /' conftest.$ac_ext >&5 |
4614 | ||
81ecdfbb RW |
4615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4616 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4617 | as_fn_error "cannot compute suffix of object files: cannot compile | |
4618 | See \`config.log' for more details." "$LINENO" 5; } | |
c6b750e1 | 4619 | fi |
c6b750e1 DJ |
4620 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4621 | fi | |
81ecdfbb RW |
4622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4623 | $as_echo "$ac_cv_objext" >&6; } | |
c6b750e1 DJ |
4624 | OBJEXT=$ac_cv_objext |
4625 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4627 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4628 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4629 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4630 | else |
81ecdfbb | 4631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4632 | /* end confdefs.h. */ |
4633 | ||
4634 | int | |
4635 | main () | |
4636 | { | |
4637 | #ifndef __GNUC__ | |
4638 | choke me | |
4639 | #endif | |
4640 | ||
4641 | ; | |
4642 | return 0; | |
4643 | } | |
4644 | _ACEOF | |
81ecdfbb | 4645 | if ac_fn_c_try_compile "$LINENO"; then : |
c6b750e1 DJ |
4646 | ac_compiler_gnu=yes |
4647 | else | |
81ecdfbb | 4648 | ac_compiler_gnu=no |
c6b750e1 | 4649 | fi |
81ecdfbb | 4650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 DJ |
4651 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4652 | ||
4653 | fi | |
81ecdfbb RW |
4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4655 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4656 | if test $ac_compiler_gnu = yes; then | |
4657 | GCC=yes | |
4658 | else | |
4659 | GCC= | |
4660 | fi | |
c6b750e1 DJ |
4661 | ac_test_CFLAGS=${CFLAGS+set} |
4662 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4664 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4665 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4666 | $as_echo_n "(cached) " >&6 | |
4667 | else | |
4668 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4669 | ac_c_werror_flag=yes | |
4670 | ac_cv_prog_cc_g=no | |
4671 | CFLAGS="-g" | |
4672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 DJ |
4673 | /* end confdefs.h. */ |
4674 | ||
4675 | int | |
4676 | main () | |
4677 | { | |
4678 | ||
4679 | ; | |
4680 | return 0; | |
4681 | } | |
4682 | _ACEOF | |
81ecdfbb | 4683 | if ac_fn_c_try_compile "$LINENO"; then : |
9e07f89d NN |
4684 | ac_cv_prog_cc_g=yes |
4685 | else | |
81ecdfbb RW |
4686 | CFLAGS="" |
4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4688 | /* end confdefs.h. */ | |
4689 | ||
4690 | int | |
4691 | main () | |
4692 | { | |
4693 | ||
4694 | ; | |
4695 | return 0; | |
4696 | } | |
4697 | _ACEOF | |
4698 | if ac_fn_c_try_compile "$LINENO"; then : | |
4699 | ||
4700 | else | |
4701 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4702 | CFLAGS="-g" | |
4703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4704 | /* end confdefs.h. */ | |
cac3d6c4 | 4705 | |
81ecdfbb RW |
4706 | int |
4707 | main () | |
4708 | { | |
4709 | ||
4710 | ; | |
4711 | return 0; | |
4712 | } | |
4713 | _ACEOF | |
4714 | if ac_fn_c_try_compile "$LINENO"; then : | |
4715 | ac_cv_prog_cc_g=yes | |
4716 | fi | |
4717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
376a0e54 | 4718 | fi |
81ecdfbb | 4719 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c6b750e1 | 4720 | fi |
81ecdfbb RW |
4721 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4722 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4723 | fi | |
4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4725 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
9e07f89d | 4726 | if test "$ac_test_CFLAGS" = set; then |
c6b750e1 | 4727 | CFLAGS=$ac_save_CFLAGS |
9e07f89d NN |
4728 | elif test $ac_cv_prog_cc_g = yes; then |
4729 | if test "$GCC" = yes; then | |
4730 | CFLAGS="-g -O2" | |
4731 | else | |
4732 | CFLAGS="-g" | |
4733 | fi | |
4734 | else | |
4735 | if test "$GCC" = yes; then | |
4736 | CFLAGS="-O2" | |
4737 | else | |
4738 | CFLAGS= | |
4739 | fi | |
4740 | fi | |
81ecdfbb RW |
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4742 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4743 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4744 | $as_echo_n "(cached) " >&6 | |
c6b750e1 | 4745 | else |
81ecdfbb | 4746 | ac_cv_prog_cc_c89=no |
c6b750e1 | 4747 | ac_save_CC=$CC |
81ecdfbb | 4748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 DJ |
4749 | /* end confdefs.h. */ |
4750 | #include <stdarg.h> | |
4751 | #include <stdio.h> | |
4752 | #include <sys/types.h> | |
4753 | #include <sys/stat.h> | |
4754 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4755 | struct buf { int x; }; | |
4756 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4757 | static char *e (p, i) | |
4758 | char **p; | |
4759 | int i; | |
4760 | { | |
4761 | return p[i]; | |
4762 | } | |
4763 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4764 | { | |
4765 | char *s; | |
4766 | va_list v; | |
4767 | va_start (v,p); | |
4768 | s = g (p, va_arg (v,int)); | |
4769 | va_end (v); | |
4770 | return s; | |
4771 | } | |
4772 | ||
4773 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4774 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4775 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4776 | as 'x'. The following induces an error, until -std is added to get |
c6b750e1 DJ |
4777 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4778 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4779 | that's true only with -std. */ |
c6b750e1 DJ |
4780 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4781 | ||
81ecdfbb RW |
4782 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4783 | inside strings and character constants. */ | |
4784 | #define FOO(x) 'x' | |
4785 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4786 | ||
c6b750e1 DJ |
4787 | int test (int i, double x); |
4788 | struct s1 {int (*f) (int a);}; | |
4789 | struct s2 {int (*f) (double a);}; | |
4790 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4791 | int argc; | |
4792 | char **argv; | |
4793 | int | |
4794 | main () | |
4795 | { | |
4796 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4797 | ; | |
4798 | return 0; | |
4799 | } | |
4800 | _ACEOF | |
81ecdfbb RW |
4801 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4802 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c6b750e1 DJ |
4803 | do |
4804 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4805 | if ac_fn_c_try_compile "$LINENO"; then : |
4806 | ac_cv_prog_cc_c89=$ac_arg | |
c6b750e1 | 4807 | fi |
81ecdfbb RW |
4808 | rm -f core conftest.err conftest.$ac_objext |
4809 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c6b750e1 | 4810 | done |
81ecdfbb | 4811 | rm -f conftest.$ac_ext |
c6b750e1 DJ |
4812 | CC=$ac_save_CC |
4813 | ||
4814 | fi | |
81ecdfbb RW |
4815 | # AC_CACHE_VAL |
4816 | case "x$ac_cv_prog_cc_c89" in | |
4817 | x) | |
4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4819 | $as_echo "none needed" >&6; } ;; | |
4820 | xno) | |
4821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4822 | $as_echo "unsupported" >&6; } ;; | |
c6b750e1 | 4823 | *) |
81ecdfbb RW |
4824 | CC="$CC $ac_cv_prog_cc_c89" |
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4826 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
c6b750e1 | 4827 | esac |
81ecdfbb | 4828 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
c6b750e1 | 4829 | |
c6b750e1 DJ |
4830 | fi |
4831 | ||
c6b750e1 DJ |
4832 | ac_ext=c |
4833 | ac_cpp='$CPP $CPPFLAGS' | |
4834 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4835 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4836 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9e07f89d | 4837 | |
81ecdfbb | 4838 | ac_ext=cpp |
18f6b6ee PB |
4839 | ac_cpp='$CXXCPP $CPPFLAGS' |
4840 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4841 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4842 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
81ecdfbb RW |
4843 | if test -z "$CXX"; then |
4844 | if test -n "$CCC"; then | |
4845 | CXX=$CCC | |
4846 | else | |
4847 | if test -n "$ac_tool_prefix"; then | |
4848 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18f6b6ee PB |
4849 | do |
4850 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4851 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4853 | $as_echo_n "checking for $ac_word... " >&6; } | |
4854 | if test "${ac_cv_prog_CXX+set}" = set; then : | |
4855 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4856 | else |
4857 | if test -n "$CXX"; then | |
4858 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4859 | else | |
4860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4861 | for as_dir in $PATH | |
4862 | do | |
4863 | IFS=$as_save_IFS | |
4864 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4865 | for ac_exec_ext in '' $ac_executable_extensions; do |
4866 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4867 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
81ecdfbb | 4868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee PB |
4869 | break 2 |
4870 | fi | |
4871 | done | |
81ecdfbb RW |
4872 | done |
4873 | IFS=$as_save_IFS | |
512b7dfb | 4874 | |
18f6b6ee PB |
4875 | fi |
4876 | fi | |
4877 | CXX=$ac_cv_prog_CXX | |
4878 | if test -n "$CXX"; then | |
81ecdfbb RW |
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4880 | $as_echo "$CXX" >&6; } | |
18f6b6ee | 4881 | else |
81ecdfbb RW |
4882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4883 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4884 | fi |
4885 | ||
81ecdfbb | 4886 | |
18f6b6ee PB |
4887 | test -n "$CXX" && break |
4888 | done | |
4889 | fi | |
4890 | if test -z "$CXX"; then | |
4891 | ac_ct_CXX=$CXX | |
81ecdfbb | 4892 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
18f6b6ee PB |
4893 | do |
4894 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4895 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4897 | $as_echo_n "checking for $ac_word... " >&6; } | |
4898 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : | |
4899 | $as_echo_n "(cached) " >&6 | |
18f6b6ee PB |
4900 | else |
4901 | if test -n "$ac_ct_CXX"; then | |
4902 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4903 | else | |
4904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4905 | for as_dir in $PATH | |
4906 | do | |
4907 | IFS=$as_save_IFS | |
4908 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
4909 | for ac_exec_ext in '' $ac_executable_extensions; do |
4910 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
18f6b6ee | 4911 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
81ecdfbb | 4912 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
18f6b6ee | 4913 | break 2 |
512b7dfb | 4914 | fi |
18f6b6ee | 4915 | done |
81ecdfbb RW |
4916 | done |
4917 | IFS=$as_save_IFS | |
512b7dfb | 4918 | |
18f6b6ee PB |
4919 | fi |
4920 | fi | |
4921 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4922 | if test -n "$ac_ct_CXX"; then | |
81ecdfbb RW |
4923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4924 | $as_echo "$ac_ct_CXX" >&6; } | |
18f6b6ee | 4925 | else |
81ecdfbb RW |
4926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4927 | $as_echo "no" >&6; } | |
18f6b6ee PB |
4928 | fi |
4929 | ||
81ecdfbb | 4930 | |
18f6b6ee PB |
4931 | test -n "$ac_ct_CXX" && break |
4932 | done | |
18f6b6ee | 4933 | |
81ecdfbb RW |
4934 | if test "x$ac_ct_CXX" = x; then |
4935 | CXX="g++" | |
4936 | else | |
4937 | case $cross_compiling:$ac_tool_warned in | |
4938 | yes:) | |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4940 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4941 | ac_tool_warned=yes ;; | |
4942 | esac | |
4943 | CXX=$ac_ct_CXX | |
4944 | fi | |
18f6b6ee PB |
4945 | fi |
4946 | ||
81ecdfbb RW |
4947 | fi |
4948 | fi | |
18f6b6ee | 4949 | # Provide some information about the compiler. |
81ecdfbb RW |
4950 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4951 | set X $ac_compile | |
4952 | ac_compiler=$2 | |
4953 | for ac_option in --version -v -V -qversion; do | |
4954 | { { ac_try="$ac_compiler $ac_option >&5" | |
4955 | case "(($ac_try" in | |
4956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4957 | *) ac_try_echo=$ac_try;; | |
4958 | esac | |
4959 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4960 | $as_echo "$ac_try_echo"; } >&5 | |
4961 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
18f6b6ee | 4962 | ac_status=$? |
81ecdfbb RW |
4963 | if test -s conftest.err; then |
4964 | sed '10a\ | |
4965 | ... rest of stderr output deleted ... | |
4966 | 10q' conftest.err >conftest.er1 | |
4967 | cat conftest.er1 >&5 | |
4968 | rm -f conftest.er1 conftest.err | |
4969 | fi | |
4970 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4971 | test $ac_status = 0; } | |
4972 | done | |
18f6b6ee | 4973 | |
81ecdfbb RW |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4975 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4976 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : | |
4977 | $as_echo_n "(cached) " >&6 | |
18f6b6ee | 4978 | else |
81ecdfbb | 4979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
18f6b6ee PB |
4980 | /* end confdefs.h. */ |
4981 | ||
4982 | int | |
4983 | main () | |
4984 | { | |
4985 | #ifndef __GNUC__ | |
4986 | choke me | |
4987 | #endif | |
4988 | ||
4989 | ; | |
4990 | return 0; | |
4991 | } | |
4992 | _ACEOF | |
81ecdfbb | 4993 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
4994 | ac_compiler_gnu=yes |
4995 | else | |
81ecdfbb | 4996 | ac_compiler_gnu=no |
18f6b6ee | 4997 | fi |
81ecdfbb | 4998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18f6b6ee PB |
4999 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5000 | ||
5001 | fi | |
81ecdfbb RW |
5002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
5003 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
5004 | if test $ac_compiler_gnu = yes; then | |
5005 | GXX=yes | |
5006 | else | |
5007 | GXX= | |
5008 | fi | |
18f6b6ee PB |
5009 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5010 | ac_save_CXXFLAGS=$CXXFLAGS | |
81ecdfbb RW |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
5012 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
5013 | if test "${ac_cv_prog_cxx_g+set}" = set; then : | |
5014 | $as_echo_n "(cached) " >&6 | |
5015 | else | |
5016 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5017 | ac_cxx_werror_flag=yes | |
5018 | ac_cv_prog_cxx_g=no | |
5019 | CXXFLAGS="-g" | |
5020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee PB |
5021 | /* end confdefs.h. */ |
5022 | ||
5023 | int | |
5024 | main () | |
5025 | { | |
5026 | ||
5027 | ; | |
5028 | return 0; | |
5029 | } | |
5030 | _ACEOF | |
81ecdfbb | 5031 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee PB |
5032 | ac_cv_prog_cxx_g=yes |
5033 | else | |
81ecdfbb RW |
5034 | CXXFLAGS="" |
5035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5036 | /* end confdefs.h. */ |
81ecdfbb | 5037 | |
18f6b6ee PB |
5038 | int |
5039 | main () | |
5040 | { | |
81ecdfbb | 5041 | |
18f6b6ee PB |
5042 | ; |
5043 | return 0; | |
5044 | } | |
5045 | _ACEOF | |
81ecdfbb | 5046 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18f6b6ee | 5047 | |
81ecdfbb RW |
5048 | else |
5049 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5050 | CXXFLAGS="-g" | |
5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18f6b6ee | 5052 | /* end confdefs.h. */ |
81ecdfbb | 5053 | |
18f6b6ee PB |
5054 | int |
5055 | main () | |
5056 | { | |
81ecdfbb | 5057 | |
18f6b6ee PB |
5058 | ; |
5059 | return 0; | |
5060 | } | |
5061 | _ACEOF | |
81ecdfbb RW |
5062 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5063 | ac_cv_prog_cxx_g=yes | |
18f6b6ee | 5064 | fi |
81ecdfbb RW |
5065 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5066 | fi | |
5067 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5068 | fi | |
5069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5070 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5071 | fi | |
5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5073 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
5074 | if test "$ac_test_CXXFLAGS" = set; then | |
5075 | CXXFLAGS=$ac_save_CXXFLAGS | |
5076 | elif test $ac_cv_prog_cxx_g = yes; then | |
5077 | if test "$GXX" = yes; then | |
5078 | CXXFLAGS="-g -O2" | |
5079 | else | |
5080 | CXXFLAGS="-g" | |
5081 | fi | |
5082 | else | |
5083 | if test "$GXX" = yes; then | |
5084 | CXXFLAGS="-O2" | |
5085 | else | |
5086 | CXXFLAGS= | |
5087 | fi | |
18f6b6ee | 5088 | fi |
18f6b6ee PB |
5089 | ac_ext=c |
5090 | ac_cpp='$CPP $CPPFLAGS' | |
5091 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5092 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5093 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5094 | ||
5095 | ||
5096 | # We must set the default linker to the linker used by gcc for the correct | |
5097 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
5098 | # set the LD default to the ld used by gcc. | |
5099 | if test -z "$LD"; then | |
5100 | if test "$GCC" = yes; then | |
5101 | case $build in | |
5102 | *-*-mingw*) | |
5103 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
5104 | *) | |
5105 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
5106 | esac | |
5107 | case $gcc_prog_ld in | |
5108 | # Accept absolute paths. | |
5109 | [\\/]* | [A-Za-z]:[\\/]*) | |
5110 | LD="$gcc_prog_ld" ;; | |
5111 | esac | |
5112 | fi | |
512b7dfb PB |
5113 | fi |
5114 | ||
b3676d82 EB |
5115 | # Check whether -static-libstdc++ -static-libgcc is supported. |
5116 | have_static_libs=no | |
5117 | if test "$GCC" = yes; then | |
5118 | saved_LDFLAGS="$LDFLAGS" | |
5119 | ||
5120 | LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc" | |
5121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5 | |
5122 | $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; } | |
5123 | ac_ext=cpp | |
5124 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5128 | ||
5129 | ||
5130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5131 | /* end confdefs.h. */ | |
a882be68 EB |
5132 | |
5133 | #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) | |
5134 | #error -static-libstdc++ not implemented | |
5135 | #endif | |
b3676d82 EB |
5136 | int main() {} |
5137 | _ACEOF | |
5138 | if ac_fn_cxx_try_link "$LINENO"; then : | |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5140 | $as_echo "yes" >&6; }; have_static_libs=yes | |
5141 | else | |
5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5143 | $as_echo "no" >&6; } | |
5144 | fi | |
5145 | rm -f core conftest.err conftest.$ac_objext \ | |
5146 | conftest$ac_exeext conftest.$ac_ext | |
5147 | ac_ext=c | |
5148 | ac_cpp='$CPP $CPPFLAGS' | |
5149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5152 | ||
5153 | ||
5154 | LDFLAGS="$saved_LDFLAGS" | |
5155 | fi | |
5156 | ||
512b7dfb PB |
5157 | |
5158 | ||
5159 | ||
c6b750e1 | 5160 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5161 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. |
5162 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
81ecdfbb RW |
5163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5164 | $as_echo_n "checking for $ac_word... " >&6; } | |
5165 | if test "${ac_cv_prog_GNATBIND+set}" = set; then : | |
5166 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5167 | else |
512b7dfb PB |
5168 | if test -n "$GNATBIND"; then |
5169 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
9e07f89d | 5170 | else |
c6b750e1 DJ |
5171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5172 | for as_dir in $PATH | |
5173 | do | |
5174 | IFS=$as_save_IFS | |
5175 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5176 | for ac_exec_ext in '' $ac_executable_extensions; do |
5177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5178 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" |
81ecdfbb | 5179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5180 | break 2 |
5181 | fi | |
5182 | done | |
81ecdfbb RW |
5183 | done |
5184 | IFS=$as_save_IFS | |
c6b750e1 | 5185 | |
9e07f89d NN |
5186 | fi |
5187 | fi | |
512b7dfb PB |
5188 | GNATBIND=$ac_cv_prog_GNATBIND |
5189 | if test -n "$GNATBIND"; then | |
81ecdfbb RW |
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5 |
5191 | $as_echo "$GNATBIND" >&6; } | |
9e07f89d | 5192 | else |
81ecdfbb RW |
5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5194 | $as_echo "no" >&6; } | |
9e07f89d NN |
5195 | fi |
5196 | ||
81ecdfbb | 5197 | |
c6b750e1 | 5198 | fi |
512b7dfb PB |
5199 | if test -z "$ac_cv_prog_GNATBIND"; then |
5200 | ac_ct_GNATBIND=$GNATBIND | |
5201 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
5202 | set dummy gnatbind; ac_word=$2 | |
81ecdfbb RW |
5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5204 | $as_echo_n "checking for $ac_word... " >&6; } | |
5205 | if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then : | |
5206 | $as_echo_n "(cached) " >&6 | |
9e07f89d | 5207 | else |
512b7dfb PB |
5208 | if test -n "$ac_ct_GNATBIND"; then |
5209 | ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test. | |
9e07f89d | 5210 | else |
c6b750e1 DJ |
5211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5212 | for as_dir in $PATH | |
5213 | do | |
5214 | IFS=$as_save_IFS | |
5215 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5216 | for ac_exec_ext in '' $ac_executable_extensions; do |
5217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5218 | ac_cv_prog_ac_ct_GNATBIND="gnatbind" |
81ecdfbb | 5219 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
5220 | break 2 |
5221 | fi | |
5222 | done | |
81ecdfbb RW |
5223 | done |
5224 | IFS=$as_save_IFS | |
c6b750e1 | 5225 | |
9e07f89d NN |
5226 | fi |
5227 | fi | |
512b7dfb PB |
5228 | ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND |
5229 | if test -n "$ac_ct_GNATBIND"; then | |
81ecdfbb RW |
5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5 |
5231 | $as_echo "$ac_ct_GNATBIND" >&6; } | |
9e07f89d | 5232 | else |
81ecdfbb RW |
5233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5234 | $as_echo "no" >&6; } | |
9e07f89d NN |
5235 | fi |
5236 | ||
81ecdfbb RW |
5237 | if test "x$ac_ct_GNATBIND" = x; then |
5238 | GNATBIND="no" | |
5239 | else | |
5240 | case $cross_compiling:$ac_tool_warned in | |
5241 | yes:) | |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5244 | ac_tool_warned=yes ;; | |
5245 | esac | |
5246 | GNATBIND=$ac_ct_GNATBIND | |
5247 | fi | |
24ff9987 | 5248 | else |
512b7dfb | 5249 | GNATBIND="$ac_cv_prog_GNATBIND" |
9e07f89d NN |
5250 | fi |
5251 | ||
7df2cd5d | 5252 | if test -n "$ac_tool_prefix"; then |
512b7dfb PB |
5253 | # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args. |
5254 | set dummy ${ac_tool_prefix}gnatmake; ac_word=$2 | |
81ecdfbb RW |
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5256 | $as_echo_n "checking for $ac_word... " >&6; } | |
5257 | if test "${ac_cv_prog_GNATMAKE+set}" = set; then : | |
5258 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5259 | else |
512b7dfb PB |
5260 | if test -n "$GNATMAKE"; then |
5261 | ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5262 | else |
5263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5264 | for as_dir in $PATH | |
5265 | do | |
5266 | IFS=$as_save_IFS | |
5267 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5268 | for ac_exec_ext in '' $ac_executable_extensions; do |
5269 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5270 | ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake" |
81ecdfbb | 5271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5272 | break 2 |
5273 | fi | |
5274 | done | |
81ecdfbb RW |
5275 | done |
5276 | IFS=$as_save_IFS | |
7df2cd5d PB |
5277 | |
5278 | fi | |
5279 | fi | |
512b7dfb PB |
5280 | GNATMAKE=$ac_cv_prog_GNATMAKE |
5281 | if test -n "$GNATMAKE"; then | |
81ecdfbb RW |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5 |
5283 | $as_echo "$GNATMAKE" >&6; } | |
7df2cd5d | 5284 | else |
81ecdfbb RW |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5286 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5287 | fi |
5288 | ||
81ecdfbb | 5289 | |
7df2cd5d | 5290 | fi |
512b7dfb PB |
5291 | if test -z "$ac_cv_prog_GNATMAKE"; then |
5292 | ac_ct_GNATMAKE=$GNATMAKE | |
5293 | # Extract the first word of "gnatmake", so it can be a program name with args. | |
5294 | set dummy gnatmake; ac_word=$2 | |
81ecdfbb RW |
5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5296 | $as_echo_n "checking for $ac_word... " >&6; } | |
5297 | if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then : | |
5298 | $as_echo_n "(cached) " >&6 | |
7df2cd5d | 5299 | else |
512b7dfb PB |
5300 | if test -n "$ac_ct_GNATMAKE"; then |
5301 | ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test. | |
7df2cd5d PB |
5302 | else |
5303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5304 | for as_dir in $PATH | |
5305 | do | |
5306 | IFS=$as_save_IFS | |
5307 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
5308 | for ac_exec_ext in '' $ac_executable_extensions; do |
5309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
512b7dfb | 5310 | ac_cv_prog_ac_ct_GNATMAKE="gnatmake" |
81ecdfbb | 5311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7df2cd5d PB |
5312 | break 2 |
5313 | fi | |
5314 | done | |
81ecdfbb RW |
5315 | done |
5316 | IFS=$as_save_IFS | |
7df2cd5d | 5317 | |
7df2cd5d PB |
5318 | fi |
5319 | fi | |
512b7dfb PB |
5320 | ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE |
5321 | if test -n "$ac_ct_GNATMAKE"; then | |
81ecdfbb RW |
5322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5 |
5323 | $as_echo "$ac_ct_GNATMAKE" >&6; } | |
7df2cd5d | 5324 | else |
81ecdfbb RW |
5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5326 | $as_echo "no" >&6; } | |
7df2cd5d PB |
5327 | fi |
5328 | ||
81ecdfbb RW |
5329 | if test "x$ac_ct_GNATMAKE" = x; then |
5330 | GNATMAKE="no" | |
5331 | else | |
5332 | case $cross_compiling:$ac_tool_warned in | |
5333 | yes:) | |
5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5335 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5336 | ac_tool_warned=yes ;; | |
5337 | esac | |
5338 | GNATMAKE=$ac_ct_GNATMAKE | |
5339 | fi | |
7df2cd5d | 5340 | else |
512b7dfb | 5341 | GNATMAKE="$ac_cv_prog_GNATMAKE" |
7df2cd5d PB |
5342 | fi |
5343 | ||
81ecdfbb RW |
5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5 |
5345 | $as_echo_n "checking whether compiler driver understands Ada... " >&6; } | |
5346 | if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then : | |
5347 | $as_echo_n "(cached) " >&6 | |
9e07f89d NN |
5348 | else |
5349 | cat >conftest.adb <<EOF | |
5350 | procedure conftest is begin null; end conftest; | |
5351 | EOF | |
5352 | acx_cv_cc_gcc_supports_ada=no | |
5353 | # There is a bug in old released versions of GCC which causes the | |
5354 | # driver to exit successfully when the appropriate language module | |
5355 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
5356 | # Therefore we must check for the error message as well as an | |
5357 | # unsuccessful exit. | |
b8908782 DD |
5358 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
5359 | # given a .adb file, but produce no object file. So we must check | |
5360 | # if an object file was really produced to guard against this. | |
9e07f89d | 5361 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
b8908782 | 5362 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
9e07f89d | 5363 | acx_cv_cc_gcc_supports_ada=yes |
9e07f89d NN |
5364 | fi |
5365 | rm -f conftest.* | |
5366 | fi | |
81ecdfbb RW |
5367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5 |
5368 | $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; } | |
9e07f89d | 5369 | |
64b986c0 | 5370 | if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
9e07f89d NN |
5371 | have_gnat=yes |
5372 | else | |
5373 | have_gnat=no | |
5374 | fi | |
5375 | ||
81ecdfbb RW |
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 |
5377 | $as_echo_n "checking how to compare bootstrapped objects... " >&6; } | |
5378 | if test "${gcc_cv_prog_cmp_skip+set}" = set; then : | |
5379 | $as_echo_n "(cached) " >&6 | |
b8908782 DD |
5380 | else |
5381 | echo abfoo >t1 | |
5382 | echo cdfoo >t2 | |
5383 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
4b1cb4fe DD |
5384 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
5385 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
5386 | : | |
5387 | else | |
5388 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
5389 | fi | |
5390 | fi | |
b8908782 DD |
5391 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
5392 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
4b1cb4fe | 5393 | : |
b8908782 DD |
5394 | else |
5395 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
5396 | fi | |
5397 | fi | |
5398 | rm t1 t2 | |
5399 | ||
5400 | fi | |
81ecdfbb RW |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 |
5402 | $as_echo "$gcc_cv_prog_cmp_skip" >&6; } | |
b8908782 DD |
5403 | do_compare="$gcc_cv_prog_cmp_skip" |
5404 | ||
5405 | ||
9e07f89d | 5406 | |
ffdd6afc ILT |
5407 | # Check whether --enable-bootstrap was given. |
5408 | if test "${enable_bootstrap+set}" = set; then : | |
5409 | enableval=$enable_bootstrap; | |
5410 | else | |
5411 | enable_bootstrap=default | |
5412 | fi | |
5413 | ||
5414 | ||
5415 | # Issue errors and warnings for invalid/strange bootstrap combinations. | |
5416 | if test -r $srcdir/gcc/configure; then | |
5417 | have_compiler=yes | |
5418 | else | |
5419 | have_compiler=no | |
5420 | fi | |
5421 | ||
5422 | case "$have_compiler:$host:$target:$enable_bootstrap" in | |
5423 | *:*:*:no) ;; | |
5424 | ||
5425 | # Default behavior. Enable bootstrap if we have a compiler | |
5426 | # and we are in a native configuration. | |
5427 | yes:$build:$build:default) | |
5428 | enable_bootstrap=yes ;; | |
5429 | ||
5430 | *:*:*:default) | |
5431 | enable_bootstrap=no ;; | |
5432 | ||
5433 | # We have a compiler and we are in a native configuration, bootstrap is ok | |
5434 | yes:$build:$build:yes) | |
5435 | ;; | |
5436 | ||
5437 | # Other configurations, but we have a compiler. Assume the user knows | |
5438 | # what he's doing. | |
5439 | yes:*:*:yes) | |
5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5 | |
5441 | $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;} | |
5442 | ;; | |
5443 | ||
5444 | # No compiler: if they passed --enable-bootstrap explicitly, fail | |
5445 | no:*:*:yes) | |
5446 | as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;; | |
5447 | ||
5448 | # Fail if wrong command line | |
5449 | *) | |
5450 | as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5 | |
5451 | ;; | |
5452 | esac | |
5453 | ||
ce6c656d L |
5454 | # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a |
5455 | # C++98 compiler can still start the bootstrap. | |
5456 | if test "$enable_bootstrap:$GXX" = "yes:yes"; then | |
5457 | CXX="$CXX -std=gnu++98" | |
5458 | fi | |
5459 | ||
d5f2ee2e KG |
5460 | # Used for setting $lt_cv_objdir |
5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
5462 | $as_echo_n "checking for objdir... " >&6; } | |
5463 | if test "${lt_cv_objdir+set}" = set; then : | |
5464 | $as_echo_n "(cached) " >&6 | |
5465 | else | |
5466 | rm -f .libs 2>/dev/null | |
5467 | mkdir .libs 2>/dev/null | |
5468 | if test -d .libs; then | |
5469 | lt_cv_objdir=.libs | |
5470 | else | |
5471 | # MS-DOS does not allow filenames that begin with a dot. | |
5472 | lt_cv_objdir=_libs | |
5473 | fi | |
5474 | rmdir .libs 2>/dev/null | |
5475 | fi | |
5476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
5477 | $as_echo "$lt_cv_objdir" >&6; } | |
5478 | objdir=$lt_cv_objdir | |
5479 | ||
5480 | ||
5481 | ||
5482 | ||
5483 | ||
5484 | cat >>confdefs.h <<_ACEOF | |
5485 | #define LT_OBJDIR "$lt_cv_objdir/" | |
5486 | _ACEOF | |
5487 | ||
5488 | ||
5489 | ||
e8a5fa9c | 5490 | # Check for GMP, MPFR and MPC |
d9b76ff9 | 5491 | gmplibs="-lmpc -lmpfr -lgmp" |
4b1cb4fe | 5492 | gmpinc= |
4b900473 | 5493 | have_gmp=no |
e8a5fa9c RW |
5494 | |
5495 | # Specify a location for mpc | |
5496 | # check for this first so it ends up on the link line before mpfr. | |
5497 | ||
81ecdfbb RW |
5498 | # Check whether --with-mpc was given. |
5499 | if test "${with_mpc+set}" = set; then : | |
5500 | withval=$with_mpc; | |
5501 | fi | |
e8a5fa9c | 5502 | |
e8a5fa9c | 5503 | |
e552509b | 5504 | # Check whether --with-mpc-include was given. |
81ecdfbb RW |
5505 | if test "${with_mpc_include+set}" = set; then : |
5506 | withval=$with_mpc_include; | |
5507 | fi | |
e8a5fa9c | 5508 | |
e8a5fa9c | 5509 | |
e552509b | 5510 | # Check whether --with-mpc-lib was given. |
81ecdfbb RW |
5511 | if test "${with_mpc_lib+set}" = set; then : |
5512 | withval=$with_mpc_lib; | |
5513 | fi | |
e8a5fa9c | 5514 | |
e8a5fa9c RW |
5515 | |
5516 | if test "x$with_mpc" != x; then | |
d9b76ff9 KG |
5517 | gmplibs="-L$with_mpc/lib $gmplibs" |
5518 | gmpinc="-I$with_mpc/include $gmpinc" | |
e8a5fa9c RW |
5519 | fi |
5520 | if test "x$with_mpc_include" != x; then | |
d9b76ff9 | 5521 | gmpinc="-I$with_mpc_include $gmpinc" |
e8a5fa9c RW |
5522 | fi |
5523 | if test "x$with_mpc_lib" != x; then | |
d9b76ff9 | 5524 | gmplibs="-L$with_mpc_lib $gmplibs" |
e8a5fa9c RW |
5525 | fi |
5526 | if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then | |
d5f2ee2e | 5527 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs" |
d9b76ff9 | 5528 | gmpinc='-I$$s/mpc/src '"$gmpinc" |
e8a5fa9c RW |
5529 | # Do not test the mpc version. Assume that it is sufficient, since |
5530 | # it is in the source tree, and the library has not been built yet | |
5531 | # but it would be included on the link line in the version check below | |
5532 | # hence making the test fail. | |
d9b76ff9 | 5533 | have_gmp=yes |
e8a5fa9c | 5534 | fi |
4b900473 | 5535 | |
11b04d1f DD |
5536 | # Specify a location for mpfr |
5537 | # check for this first so it ends up on the link line before gmp. | |
c6b750e1 | 5538 | |
81ecdfbb RW |
5539 | # Check whether --with-mpfr-dir was given. |
5540 | if test "${with_mpfr_dir+set}" = set; then : | |
5541 | withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed. | |
5542 | Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5 | |
5543 | fi | |
5544 | ||
11b04d1f DD |
5545 | |
5546 | ||
81ecdfbb RW |
5547 | # Check whether --with-mpfr was given. |
5548 | if test "${with_mpfr+set}" = set; then : | |
5549 | withval=$with_mpfr; | |
5550 | fi | |
c6b750e1 | 5551 | |
11b04d1f | 5552 | |
e552509b | 5553 | # Check whether --with-mpfr-include was given. |
81ecdfbb RW |
5554 | if test "${with_mpfr_include+set}" = set; then : |
5555 | withval=$with_mpfr_include; | |
5556 | fi | |
c6b750e1 | 5557 | |
8a0d8a5c | 5558 | |
e552509b | 5559 | # Check whether --with-mpfr-lib was given. |
81ecdfbb RW |
5560 | if test "${with_mpfr_lib+set}" = set; then : |
5561 | withval=$with_mpfr_lib; | |
5562 | fi | |
8a0d8a5c | 5563 | |
11b04d1f DD |
5564 | |
5565 | if test "x$with_mpfr" != x; then | |
5566 | gmplibs="-L$with_mpfr/lib $gmplibs" | |
d9b76ff9 | 5567 | gmpinc="-I$with_mpfr/include $gmpinc" |
11b04d1f | 5568 | fi |
8a0d8a5c | 5569 | if test "x$with_mpfr_include" != x; then |
d9b76ff9 | 5570 | gmpinc="-I$with_mpfr_include $gmpinc" |
8a0d8a5c PB |
5571 | fi |
5572 | if test "x$with_mpfr_lib" != x; then | |
5573 | gmplibs="-L$with_mpfr_lib $gmplibs" | |
5574 | fi | |
4b900473 | 5575 | if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then |
58b1dd21 NC |
5576 | # MPFR v3.1.0 moved the sources into a src sub-directory. |
5577 | if test -d ${srcdir}/mpfr/src; then | |
5578 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs" | |
5579 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc" | |
5580 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir" | |
5581 | else | |
5582 | gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs" | |
5583 | gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc" | |
5584 | extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir" | |
5585 | fi | |
4b900473 PB |
5586 | # Do not test the mpfr version. Assume that it is sufficient, since |
5587 | # it is in the source tree, and the library has not been built yet | |
5588 | # but it would be included on the link line in the version check below | |
5589 | # hence making the test fail. | |
5590 | have_gmp=yes | |
5591 | fi | |
11b04d1f | 5592 | |
4b1cb4fe | 5593 | # Specify a location for gmp |
c6b750e1 | 5594 | |
81ecdfbb RW |
5595 | # Check whether --with-gmp-dir was given. |
5596 | if test "${with_gmp_dir+set}" = set; then : | |
5597 | withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed. | |
5598 | Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5 | |
5599 | fi | |
5600 | ||
4b1cb4fe DD |
5601 | |
5602 | ||
81ecdfbb RW |
5603 | # Check whether --with-gmp was given. |
5604 | if test "${with_gmp+set}" = set; then : | |
5605 | withval=$with_gmp; | |
5606 | fi | |
c6b750e1 | 5607 | |
4b1cb4fe | 5608 | |
e552509b | 5609 | # Check whether --with-gmp-include was given. |
81ecdfbb RW |
5610 | if test "${with_gmp_include+set}" = set; then : |
5611 | withval=$with_gmp_include; | |
5612 | fi | |
c6b750e1 | 5613 | |
8a0d8a5c | 5614 | |
e552509b | 5615 | # Check whether --with-gmp-lib was given. |
81ecdfbb RW |
5616 | if test "${with_gmp_lib+set}" = set; then : |
5617 | withval=$with_gmp_lib; | |
5618 | fi | |
8a0d8a5c PB |
5619 | |
5620 | ||
4b1cb4fe | 5621 | |
11b04d1f DD |
5622 | if test "x$with_gmp" != x; then |
5623 | gmplibs="-L$with_gmp/lib $gmplibs" | |
5624 | gmpinc="-I$with_gmp/include $gmpinc" | |
4b1cb4fe | 5625 | fi |
8a0d8a5c PB |
5626 | if test "x$with_gmp_include" != x; then |
5627 | gmpinc="-I$with_gmp_include $gmpinc" | |
5628 | fi | |
5629 | if test "x$with_gmp_lib" != x; then | |
5630 | gmplibs="-L$with_gmp_lib $gmplibs" | |
5631 | fi | |
4b900473 | 5632 | if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then |
d5f2ee2e | 5633 | gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs" |
4b900473 | 5634 | gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc" |
29821356 | 5635 | extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
d5f2ee2e | 5636 | extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir" |
7ec59b9e | 5637 | extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp' |
4b900473 PB |
5638 | # Do not test the gmp version. Assume that it is sufficient, since |
5639 | # it is in the source tree, and the library has not been built yet | |
5640 | # but it would be included on the link line in the version check below | |
5641 | # hence making the test fail. | |
5642 | have_gmp=yes | |
5643 | fi | |
4b1cb4fe | 5644 | |
ceb92e78 | 5645 | if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then |
4b900473 PB |
5646 | have_gmp=yes |
5647 | saved_CFLAGS="$CFLAGS" | |
5648 | CFLAGS="$CFLAGS $gmpinc" | |
a6b5846e KG |
5649 | # Check for the recommended and required versions of GMP. |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5 | |
5651 | $as_echo_n "checking for the correct version of gmp.h... " >&6; } | |
a009f2e7 RW |
5652 | |
5653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a6b5846e KG |
5654 | /* end confdefs.h. */ |
5655 | #include "gmp.h" | |
5656 | int | |
5657 | main () | |
5658 | { | |
5659 | ||
5660 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) | |
5661 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
8e71395b | 5662 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3) |
a6b5846e KG |
5663 | choke me |
5664 | #endif | |
5665 | ||
5666 | ; | |
5667 | return 0; | |
5668 | } | |
5669 | _ACEOF | |
5670 | if ac_fn_c_try_compile "$LINENO"; then : | |
a009f2e7 | 5671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5672 | /* end confdefs.h. */ |
a6b5846e | 5673 | #include <gmp.h> |
c6b750e1 DJ |
5674 | int |
5675 | main () | |
5676 | { | |
4b1cb4fe | 5677 | |
a6b5846e KG |
5678 | #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c)) |
5679 | #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL) | |
5680 | #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2) | |
4b900473 PB |
5681 | choke me |
5682 | #endif | |
c6b750e1 DJ |
5683 | |
5684 | ; | |
5685 | return 0; | |
5686 | } | |
5687 | _ACEOF | |
81ecdfbb RW |
5688 | if ac_fn_c_try_compile "$LINENO"; then : |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5690 | $as_echo "yes" >&6; } | |
a6b5846e KG |
5691 | else |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5693 | $as_echo "buggy but acceptable" >&6; } | |
5694 | fi | |
5695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c6b750e1 | 5696 | else |
81ecdfbb RW |
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5698 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5699 | fi |
81ecdfbb | 5700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4b1cb4fe | 5701 | |
e8a5fa9c | 5702 | # If we have GMP, check the MPFR version. |
4b900473 | 5703 | if test x"$have_gmp" = xyes; then |
a6b5846e KG |
5704 | # Check for the recommended and required versions of MPFR. |
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5 | |
5706 | $as_echo_n "checking for the correct version of mpfr.h... " >&6; } | |
81ecdfbb | 5707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c6b750e1 | 5708 | /* end confdefs.h. */ |
9b134994 | 5709 | #include <gmp.h> |
4b900473 | 5710 | #include <mpfr.h> |
c6b750e1 DJ |
5711 | int |
5712 | main () | |
5713 | { | |
9b134994 | 5714 | |
7ec59b9e | 5715 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0) |
4b900473 PB |
5716 | choke me |
5717 | #endif | |
c6b750e1 DJ |
5718 | |
5719 | ; | |
5720 | return 0; | |
5721 | } | |
5722 | _ACEOF | |
81ecdfbb RW |
5723 | if ac_fn_c_try_compile "$LINENO"; then : |
5724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c6b750e1 | 5725 | /* end confdefs.h. */ |
4b1cb4fe | 5726 | #include <gmp.h> |
4b900473 | 5727 | #include <mpfr.h> |
c6b750e1 DJ |
5728 | int |
5729 | main () | |
5730 | { | |
9dbaa842 | 5731 | |
a6b5846e | 5732 | #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2) |
4b900473 PB |
5733 | choke me |
5734 | #endif | |
e8a5fa9c RW |
5735 | |
5736 | ; | |
5737 | return 0; | |
5738 | } | |
5739 | _ACEOF | |
81ecdfbb RW |
5740 | if ac_fn_c_try_compile "$LINENO"; then : |
5741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5742 | $as_echo "yes" >&6; } | |
e8a5fa9c | 5743 | else |
81ecdfbb RW |
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 |
5745 | $as_echo "buggy but acceptable" >&6; } | |
e8a5fa9c | 5746 | fi |
81ecdfbb | 5747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c | 5748 | else |
81ecdfbb RW |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5750 | $as_echo "no" >&6; }; have_gmp=no | |
e8a5fa9c | 5751 | fi |
81ecdfbb | 5752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5753 | fi |
5754 | ||
5755 | # Check for the MPC header version. | |
d9b76ff9 | 5756 | if test x"$have_gmp" = xyes ; then |
a6b5846e | 5757 | # Check for the recommended and required versions of MPC. |
81ecdfbb RW |
5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5 |
5759 | $as_echo_n "checking for the correct version of mpc.h... " >&6; } | |
5760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e8a5fa9c RW |
5761 | /* end confdefs.h. */ |
5762 | #include <mpc.h> | |
5763 | int | |
5764 | main () | |
5765 | { | |
5766 | ||
a6b5846e KG |
5767 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,0) |
5768 | choke me | |
5769 | #endif | |
5770 | ||
5771 | ; | |
5772 | return 0; | |
5773 | } | |
5774 | _ACEOF | |
5775 | if ac_fn_c_try_compile "$LINENO"; then : | |
5776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5777 | /* end confdefs.h. */ | |
5778 | #include <mpc.h> | |
5779 | int | |
5780 | main () | |
5781 | { | |
5782 | ||
5783 | #if MPC_VERSION < MPC_VERSION_NUM(0,8,1) | |
e8a5fa9c RW |
5784 | choke me |
5785 | #endif | |
5786 | ||
5787 | ; | |
5788 | return 0; | |
5789 | } | |
5790 | _ACEOF | |
81ecdfbb RW |
5791 | if ac_fn_c_try_compile "$LINENO"; then : |
5792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
d9b76ff9 | 5793 | $as_echo "yes" >&6; } |
a6b5846e KG |
5794 | else |
5795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5 | |
5796 | $as_echo "buggy but acceptable" >&6; } | |
5797 | fi | |
5798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e8a5fa9c | 5799 | else |
81ecdfbb | 5800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
d9b76ff9 | 5801 | $as_echo "no" >&6; }; have_gmp=no |
e8a5fa9c | 5802 | fi |
81ecdfbb | 5803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e8a5fa9c RW |
5804 | fi |
5805 | ||
5806 | # Now check the MPFR library. | |
5807 | if test x"$have_gmp" = xyes; then | |
5808 | saved_LIBS="$LIBS" | |
5809 | LIBS="$LIBS $gmplibs" | |
d9b76ff9 KG |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5 |
5811 | $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; } | |
81ecdfbb | 5812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
e8a5fa9c | 5813 | /* end confdefs.h. */ |
d9b76ff9 | 5814 | #include <mpc.h> |
e8a5fa9c RW |
5815 | int |
5816 | main () | |
5817 | { | |
5818 | ||
5819 | mpfr_t n; | |
5820 | mpfr_t x; | |
d9b76ff9 | 5821 | mpc_t c; |
e8a5fa9c RW |
5822 | int t; |
5823 | mpfr_init (n); | |
5824 | mpfr_init (x); | |
5825 | mpfr_atan2 (n, n, x, GMP_RNDN); | |
5826 | mpfr_erfc (n, x, GMP_RNDN); | |
5827 | mpfr_subnormalize (x, t, GMP_RNDN); | |
d9b76ff9 KG |
5828 | mpfr_clear(n); |
5829 | mpfr_clear(x); | |
5830 | mpc_init2 (c, 53); | |
5831 | mpc_set_ui_ui (c, 1, 1, MPC_RNDNN); | |
5832 | mpc_cosh (c, c, MPC_RNDNN); | |
5833 | mpc_pow (c, c, c, MPC_RNDNN); | |
5834 | mpc_acosh (c, c, MPC_RNDNN); | |
5835 | mpc_clear (c); | |
c6b750e1 DJ |
5836 | |
5837 | ; | |
5838 | return 0; | |
5839 | } | |
5840 | _ACEOF | |
81ecdfbb RW |
5841 | if ac_fn_c_try_link "$LINENO"; then : |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5843 | $as_echo "yes" >&6; } | |
c6b750e1 | 5844 | else |
81ecdfbb RW |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5846 | $as_echo "no" >&6; }; have_gmp=no | |
c6b750e1 | 5847 | fi |
81ecdfbb RW |
5848 | rm -f core conftest.err conftest.$ac_objext \ |
5849 | conftest$ac_exeext conftest.$ac_ext | |
e8a5fa9c RW |
5850 | LIBS="$saved_LIBS" |
5851 | fi | |
5852 | ||
4b900473 | 5853 | CFLAGS="$saved_CFLAGS" |
4b1cb4fe | 5854 | |
a6b5846e KG |
5855 | # The library versions listed in the error message below should match |
5856 | # the HARD-minimums enforced above. | |
4b900473 | 5857 | if test x$have_gmp != xyes; then |
7ec59b9e | 5858 | as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+. |
d9b76ff9 KG |
5859 | Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify |
5860 | their locations. Source code for these libraries can be found at | |
5861 | their respective hosting sites as well as at | |
5862 | ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also | |
5863 | http://gcc.gnu.org/install/prerequisites.html for additional info. If | |
5864 | you obtained GMP, MPFR and/or MPC from a vendor distribution package, | |
5865 | make sure that you have installed both the libraries and the header | |
5866 | files. They may be located in separate packages." "$LINENO" 5 | |
4b900473 | 5867 | fi |
9dbaa842 DD |
5868 | fi |
5869 | ||
e8a5fa9c RW |
5870 | # Flags needed for both GMP, MPFR and/or MPC. |
5871 | ||
5872 | ||
5873 | ||
4b1cb4fe DD |
5874 | |
5875 | ||
5876 | ||
7ec59b9e | 5877 | |
b3676d82 | 5878 | # Libraries to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5879 | |
b3676d82 EB |
5880 | # Check whether --with-stage1-libs was given. |
5881 | if test "${with_stage1_libs+set}" = set; then : | |
5882 | withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5883 | stage1_libs= | |
e8a5fa9c | 5884 | else |
b3676d82 | 5885 | stage1_libs=$withval |
e8a5fa9c RW |
5886 | fi |
5887 | else | |
68996839 | 5888 | stage1_libs= |
81ecdfbb RW |
5889 | fi |
5890 | ||
e8a5fa9c RW |
5891 | |
5892 | ||
b3676d82 | 5893 | # Linker flags to use for stage1 or when not bootstrapping. |
e8a5fa9c | 5894 | |
b3676d82 EB |
5895 | # Check whether --with-stage1-ldflags was given. |
5896 | if test "${with_stage1_ldflags+set}" = set; then : | |
5897 | withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5898 | stage1_ldflags= | |
e8a5fa9c | 5899 | else |
b3676d82 | 5900 | stage1_ldflags=$withval |
e8a5fa9c RW |
5901 | fi |
5902 | else | |
b3676d82 EB |
5903 | stage1_ldflags= |
5904 | # In stage 1, default to linking libstdc++ and libgcc statically with GCC | |
5905 | # if supported. But if the user explicitly specified the libraries to use, | |
5906 | # trust that they are doing what they want. | |
5907 | if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then | |
5908 | stage1_ldflags="-static-libstdc++ -static-libgcc" | |
5909 | fi | |
81ecdfbb RW |
5910 | fi |
5911 | ||
e8a5fa9c RW |
5912 | |
5913 | ||
68996839 | 5914 | # Libraries to use for stage2 and later builds. |
e8a5fa9c | 5915 | |
81ecdfbb RW |
5916 | # Check whether --with-boot-libs was given. |
5917 | if test "${with_boot_libs+set}" = set; then : | |
5918 | withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then | |
e8a5fa9c RW |
5919 | poststage1_libs= |
5920 | else | |
5921 | poststage1_libs=$withval | |
5922 | fi | |
5923 | else | |
68996839 | 5924 | poststage1_libs= |
81ecdfbb RW |
5925 | fi |
5926 | ||
e8a5fa9c RW |
5927 | |
5928 | ||
143754cd NC |
5929 | # Linker flags to use for stage2 and later builds. |
5930 | ||
5931 | # Check whether --with-boot-ldflags was given. | |
5932 | if test "${with_boot_ldflags+set}" = set; then : | |
5933 | withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then | |
5934 | poststage1_ldflags= | |
5935 | else | |
5936 | poststage1_ldflags=$withval | |
5937 | fi | |
5938 | else | |
5939 | poststage1_ldflags= | |
4f11b223 ILT |
5940 | # In stages 2 and 3, default to linking libstdc++ and libgcc |
5941 | # statically. But if the user explicitly specified the libraries to | |
5942 | # use, trust that they are doing what they want. | |
5943 | if test "$poststage1_libs" = ""; then | |
143754cd NC |
5944 | poststage1_ldflags="-static-libstdc++ -static-libgcc" |
5945 | fi | |
5946 | fi | |
5947 | ||
5948 | ||
5949 | ||
4849dfd8 | 5950 | # GCC GRAPHITE dependency isl. |
1b6c0831 | 5951 | # Basic setup is inlined here, actual checks are in config/isl.m4 |
e28c595f JM |
5952 | |
5953 | ||
7ec59b9e L |
5954 | # Check whether --with-isl was given. |
5955 | if test "${with_isl+set}" = set; then : | |
5956 | withval=$with_isl; | |
81ecdfbb | 5957 | fi |
e28c595f | 5958 | |
e28c595f | 5959 | |
1b6c0831 | 5960 | # Treat --without-isl as a request to disable |
8e71395b | 5961 | # GRAPHITE support and skip all following checks. |
1b6c0831 | 5962 | if test "x$with_isl" != "xno"; then |
4849dfd8 | 5963 | # Check for isl |
8e71395b L |
5964 | |
5965 | ||
7ec59b9e L |
5966 | # Check whether --with-isl-include was given. |
5967 | if test "${with_isl_include+set}" = set; then : | |
5968 | withval=$with_isl_include; | |
81ecdfbb RW |
5969 | fi |
5970 | ||
e28c595f | 5971 | |
7ec59b9e L |
5972 | # Check whether --with-isl-lib was given. |
5973 | if test "${with_isl_lib+set}" = set; then : | |
5974 | withval=$with_isl_lib; | |
81ecdfbb | 5975 | fi |
e28c595f | 5976 | |
e28c595f | 5977 | |
7ec59b9e L |
5978 | # Check whether --enable-isl-version-check was given. |
5979 | if test "${enable_isl_version_check+set}" = set; then : | |
5980 | enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval | |
5981 | else | |
5982 | ENABLE_ISL_CHECK=yes | |
b123da99 SP |
5983 | fi |
5984 | ||
5985 | ||
7ec59b9e L |
5986 | # Initialize isllibs and islinc. |
5987 | case $with_isl in | |
5988 | no) | |
5989 | isllibs= | |
5990 | islinc= | |
5991 | ;; | |
5992 | "" | yes) | |
5993 | ;; | |
5994 | *) | |
5995 | isllibs="-L$with_isl/lib" | |
5996 | islinc="-I$with_isl/include" | |
5997 | ;; | |
5998 | esac | |
5999 | if test "x${with_isl_include}" != x ; then | |
6000 | islinc="-I$with_isl_include" | |
6001 | fi | |
6002 | if test "x${with_isl_lib}" != x; then | |
6003 | isllibs="-L$with_isl_lib" | |
6004 | fi | |
6005 | if test "x${islinc}" = x && test "x${isllibs}" = x \ | |
6006 | && test -d ${srcdir}/isl; then | |
6007 | isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' ' | |
6008 | islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include' | |
6009 | ENABLE_ISL_CHECK=no | |
4849dfd8 NC |
6010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5 |
6011 | $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;} | |
7ec59b9e | 6012 | fi |
b123da99 | 6013 | |
1b6c0831 | 6014 | isllibs="${isllibs} -lisl" |
b123da99 | 6015 | |
e28c595f | 6016 | |
b3fc79f8 JBG |
6017 | |
6018 | if test "${ENABLE_ISL_CHECK}" = yes ; then | |
6019 | _isl_saved_CFLAGS=$CFLAGS | |
6020 | _isl_saved_LDFLAGS=$LDFLAGS | |
6021 | _isl_saved_LIBS=$LIBS | |
6022 | ||
6023 | CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}" | |
4849dfd8 NC |
6024 | LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}" |
6025 | LIBS="${_isl_saved_LIBS} -lisl -lgmp" | |
b3fc79f8 | 6026 | |
52cf9762 NC |
6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5 |
6028 | $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; } | |
1b6c0831 | 6029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
b3fc79f8 | 6030 | /* end confdefs.h. */ |
4849dfd8 | 6031 | #include <isl/ctx.h> |
b3fc79f8 JBG |
6032 | int |
6033 | main () | |
6034 | { | |
4849dfd8 | 6035 | isl_ctx_get_max_operations (isl_ctx_alloc ()); |
b3fc79f8 JBG |
6036 | ; |
6037 | return 0; | |
6038 | } | |
6039 | _ACEOF | |
1b6c0831 | 6040 | if ac_fn_c_try_link "$LINENO"; then : |
b3fc79f8 JBG |
6041 | gcc_cv_isl=yes |
6042 | else | |
6043 | gcc_cv_isl=no | |
6044 | fi | |
1b6c0831 L |
6045 | rm -f core conftest.err conftest.$ac_objext \ |
6046 | conftest$ac_exeext conftest.$ac_ext | |
b3fc79f8 JBG |
6047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5 |
6048 | $as_echo "$gcc_cv_isl" >&6; } | |
6049 | ||
4849dfd8 | 6050 | if test "${gcc_cv_isl}" = no ; then |
52cf9762 NC |
6051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5 |
6052 | $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; } | |
6053 | fi | |
6054 | ||
6055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5 | |
6056 | $as_echo_n "checking for isl 0.16 or 0.15... " >&6; } | |
6057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6058 | /* end confdefs.h. */ | |
6059 | #include <isl/schedule.h> | |
6060 | int | |
6061 | main () | |
6062 | { | |
6063 | isl_options_set_schedule_serialize_sccs (NULL, 0); | |
6064 | ; | |
6065 | return 0; | |
6066 | } | |
6067 | _ACEOF | |
6068 | if ac_fn_c_try_link "$LINENO"; then : | |
6069 | ac_has_isl_options_set_schedule_serialize_sccs=yes | |
6070 | else | |
6071 | ac_has_isl_options_set_schedule_serialize_sccs=no | |
6072 | fi | |
6073 | rm -f core conftest.err conftest.$ac_objext \ | |
6074 | conftest$ac_exeext conftest.$ac_ext | |
6075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5 | |
6076 | $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; } | |
6077 | ||
6078 | if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then | |
6079 | islver="0.15" | |
6080 | ||
4849dfd8 NC |
6081 | fi |
6082 | ||
b3fc79f8 JBG |
6083 | CFLAGS=$_isl_saved_CFLAGS |
6084 | LDFLAGS=$_isl_saved_LDFLAGS | |
6085 | LIBS=$_isl_saved_LIBS | |
6086 | fi | |
6087 | ||
6088 | ||
e28c595f | 6089 | |
e28c595f | 6090 | |
7ec59b9e L |
6091 | |
6092 | ||
7ec59b9e L |
6093 | if test "x${with_isl}" = xno; then |
6094 | graphite_requested=no | |
6095 | elif test "x${with_isl}" != x \ | |
6096 | || test "x${with_isl_include}" != x \ | |
6097 | || test "x${with_isl_lib}" != x ; then | |
6098 | graphite_requested=yes | |
6099 | else | |
6100 | graphite_requested=no | |
b123da99 | 6101 | fi |
e28c595f | 6102 | |
e28c595f JM |
6103 | |
6104 | ||
7ec59b9e L |
6105 | if test "${gcc_cv_isl}" = no ; then |
6106 | isllibs= | |
6107 | islinc= | |
6108 | fi | |
e28c595f | 6109 | |
7ec59b9e L |
6110 | if test "${graphite_requested}" = yes \ |
6111 | && test "x${isllibs}" = x \ | |
6112 | && test "x${islinc}" = x ; then | |
e28c595f | 6113 | |
4849dfd8 | 6114 | as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5 |
7ec59b9e | 6115 | fi |
e552509b | 6116 | |
e28c595f | 6117 | |
e552509b ILT |
6118 | fi |
6119 | ||
4849dfd8 | 6120 | # If the isl check failed, disable builds of in-tree variant of isl |
8e71395b | 6121 | if test "x$with_isl" = xno || |
8e71395b | 6122 | test "x$gcc_cv_isl" = xno; then |
1b6c0831 | 6123 | noconfigdirs="$noconfigdirs isl" |
8e71395b | 6124 | islinc= |
7ec59b9e L |
6125 | fi |
6126 | ||
8e71395b L |
6127 | |
6128 | ||
6129 | ||
700d40ca ILT |
6130 | # Check for LTO support. |
6131 | # Check whether --enable-lto was given. | |
6132 | if test "${enable_lto+set}" = set; then : | |
6133 | enableval=$enable_lto; enable_lto=$enableval | |
6134 | else | |
6135 | enable_lto=yes; default_enable_lto=yes | |
6136 | fi | |
6137 | ||
6138 | ||
143754cd | 6139 | |
e49e5c92 DK |
6140 | |
6141 | ||
6142 | target_elf=no | |
6143 | case $target in | |
6144 | *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \ | |
090bc50f | 6145 | *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \ |
1b6c0831 L |
6146 | alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \ |
6147 | nvptx-*-none) | |
e49e5c92 DK |
6148 | target_elf=no |
6149 | ;; | |
6150 | *) | |
6151 | target_elf=yes | |
6152 | ;; | |
6153 | esac | |
6154 | ||
6155 | if test $target_elf = yes; then : | |
74cea91b DK |
6156 | # ELF platforms build the lto-plugin always. |
6157 | build_lto_plugin=yes | |
e49e5c92 | 6158 | |
e49e5c92 DK |
6159 | else |
6160 | if test x"$default_enable_lto" = x"yes" ; then | |
29821356 | 6161 | case $target in |
52cf9762 | 6162 | *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;; |
74cea91b | 6163 | # On other non-ELF platforms, LTO has yet to be validated. |
29821356 RW |
6164 | *) enable_lto=no ;; |
6165 | esac | |
e49e5c92 | 6166 | else |
29821356 RW |
6167 | # Apart from ELF platforms, only Windows and Darwin support LTO so far. |
6168 | # It would also be nice to check the binutils support, but we don't | |
e49e5c92 DK |
6169 | # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just |
6170 | # warn during gcc/ subconfigure; unless you're bootstrapping with | |
6171 | # -flto it won't be needed until after installation anyway. | |
6172 | case $target in | |
52cf9762 | 6173 | *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;; |
e49e5c92 DK |
6174 | *) if test x"$enable_lto" = x"yes"; then |
6175 | as_fn_error "LTO support is not enabled for this target." "$LINENO" 5 | |
6176 | fi | |
6177 | ;; | |
6178 | esac | |
6179 | fi | |
a8eb3f0a | 6180 | # Among non-ELF, only Windows platforms support the lto-plugin so far. |
74cea91b | 6181 | # Build it unless LTO was explicitly disabled. |
a8eb3f0a | 6182 | case $target in |
74cea91b | 6183 | *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;; |
a8eb3f0a DK |
6184 | *) ;; |
6185 | esac | |
74cea91b | 6186 | |
e49e5c92 DK |
6187 | fi |
6188 | ||
700d40ca | 6189 | |
1b6c0831 L |
6190 | # Check whether --enable-linker-plugin-configure-flags was given. |
6191 | if test "${enable_linker_plugin_configure_flags+set}" = set; then : | |
6192 | enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval | |
6193 | else | |
6194 | extra_linker_plugin_configure_flags= | |
6195 | fi | |
6196 | ||
6197 | ||
6198 | # Check whether --enable-linker-plugin-flags was given. | |
6199 | if test "${enable_linker_plugin_flags+set}" = set; then : | |
6200 | enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval | |
6201 | else | |
6202 | extra_linker_plugin_flags= | |
6203 | fi | |
6204 | ||
6205 | ||
6206 | ||
e28c595f | 6207 | |
7ec59b9e | 6208 | # By default, C and C++ are the only stage 1 languages. |
9b134994 | 6209 | stage1_languages=,c, |
1d39f329 | 6210 | |
e8a5fa9c | 6211 | # Target libraries that we bootstrap. |
2aa2364a | 6212 | bootstrap_target_libs=,target-libgcc, |
e8a5fa9c | 6213 | |
9e07f89d NN |
6214 | # Figure out what language subdirectories are present. |
6215 | # Look if the user specified --enable-languages="..."; if not, use | |
6216 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
6217 | # go away some day. | |
6218 | # NB: embedded tabs in this IF block -- do not untabify | |
6219 | if test -d ${srcdir}/gcc; then | |
6220 | if test x"${enable_languages+set}" != xset; then | |
6221 | if test x"${LANGUAGES+set}" = xset; then | |
6222 | enable_languages="${LANGUAGES}" | |
136bb21f | 6223 | echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 |
9e07f89d NN |
6224 | else |
6225 | enable_languages=all | |
6226 | fi | |
6227 | else | |
6228 | if test x"${enable_languages}" = x || | |
6229 | test x"${enable_languages}" = xyes; | |
6230 | then | |
136bb21f | 6231 | echo configure.ac: --enable-languages needs at least one language argument 1>&2 |
9e07f89d NN |
6232 | exit 1 |
6233 | fi | |
6234 | fi | |
6235 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
6236 | ||
096f7d00 DE |
6237 | # 'f95' is the old name for the 'fortran' language. We issue a warning |
6238 | # and make the substitution. | |
6239 | case ,${enable_languages}, in | |
6240 | *,f95,*) | |
136bb21f | 6241 | echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2 |
096f7d00 DE |
6242 | enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'` |
6243 | ;; | |
6244 | esac | |
6245 | ||
7ec59b9e L |
6246 | # If bootstrapping, C++ must be enabled. |
6247 | case ",$enable_languages,:$enable_bootstrap" in | |
6248 | *,c++,*:*) ;; | |
6249 | *:yes) | |
ffdd6afc ILT |
6250 | if test -f ${srcdir}/gcc/cp/config-lang.in; then |
6251 | enable_languages="${enable_languages},c++" | |
6252 | else | |
7ec59b9e | 6253 | as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5 |
ffdd6afc ILT |
6254 | fi |
6255 | ;; | |
6256 | esac | |
6257 | ||
9e07f89d NN |
6258 | # First scan to see if an enabled language requires some other language. |
6259 | # We assume that a given config-lang.in will list all the language | |
6260 | # front ends it requires, even if some are required indirectly. | |
6261 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
6262 | case ${lang_frag} in | |
6263 | ..) ;; | |
6264 | # The odd quoting in the next line works around | |
6265 | # an apparent bug in bash 1.12 on linux. | |
6266 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6267 | *) | |
e552509b ILT |
6268 | # From the config-lang.in, get $language, $lang_requires, and |
6269 | # $lang_requires_boot_languages. | |
9e07f89d NN |
6270 | language= |
6271 | lang_requires= | |
e552509b | 6272 | lang_requires_boot_languages= |
9e07f89d | 6273 | . ${lang_frag} |
e552509b | 6274 | for other in ${lang_requires} ${lang_requires_boot_languages}; do |
9e07f89d NN |
6275 | case ,${enable_languages}, in |
6276 | *,$other,*) ;; | |
6277 | *,all,*) ;; | |
6278 | *,$language,*) | |
6279 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
6280 | enable_languages="${enable_languages},${other}" | |
6281 | ;; | |
6282 | esac | |
6283 | done | |
e552509b ILT |
6284 | for other in ${lang_requires_boot_languages} ; do |
6285 | if test "$other" != "c"; then | |
6286 | case ,${enable_stage1_languages}, in | |
6287 | *,$other,*) ;; | |
6288 | *,all,*) ;; | |
6289 | *) | |
6290 | case ,${enable_languages}, in | |
6291 | *,$language,*) | |
6292 | echo " '$other' language required by '$language' in stage 1; enabling" 1>&2 | |
6293 | enable_stage1_languages="$enable_stage1_languages,${other}" | |
6294 | ;; | |
6295 | esac | |
6296 | ;; | |
6297 | esac | |
6298 | fi | |
6299 | done | |
9e07f89d NN |
6300 | ;; |
6301 | esac | |
6302 | done | |
6303 | ||
9b134994 | 6304 | new_enable_languages=,c, |
700d40ca ILT |
6305 | |
6306 | # If LTO is enabled, add the LTO front end. | |
700d40ca | 6307 | if test "$enable_lto" = "yes" ; then |
6811fb56 RW |
6308 | case ,${enable_languages}, in |
6309 | *,lto,*) ;; | |
6310 | *) enable_languages="${enable_languages},lto" ;; | |
6311 | esac | |
a8eb3f0a | 6312 | if test "${build_lto_plugin}" = "yes" ; then |
700d40ca | 6313 | configdirs="$configdirs lto-plugin" |
700d40ca ILT |
6314 | fi |
6315 | fi | |
6316 | ||
1b6c0831 L |
6317 | # If we're building an offloading compiler, add the LTO front end. |
6318 | if test x"$enable_as_accelerator_for" != x ; then | |
6319 | case ,${enable_languages}, in | |
6320 | *,lto,*) ;; | |
6321 | *) enable_languages="${enable_languages},lto" ;; | |
6322 | esac | |
6323 | fi | |
700d40ca | 6324 | |
9e07f89d | 6325 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` |
9b134994 | 6326 | potential_languages=,c, |
9e07f89d | 6327 | |
9e1a94f4 ILT |
6328 | enabled_target_libs= |
6329 | disabled_target_libs= | |
6330 | ||
9e07f89d NN |
6331 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do |
6332 | case ${lang_frag} in | |
6333 | ..) ;; | |
6334 | # The odd quoting in the next line works around | |
6335 | # an apparent bug in bash 1.12 on linux. | |
6336 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
6337 | *) | |
c6b750e1 | 6338 | # From the config-lang.in, get $language, $target_libs, |
1d39f329 | 6339 | # $lang_dirs, $boot_language, and $build_by_default |
9e07f89d NN |
6340 | language= |
6341 | target_libs= | |
6342 | lang_dirs= | |
64ce424c | 6343 | subdir_requires= |
9b134994 PB |
6344 | boot_language=no |
6345 | build_by_default=yes | |
9e07f89d | 6346 | . ${lang_frag} |
9b134994 PB |
6347 | if test x${language} = x; then |
6348 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
6349 | exit 1 | |
6350 | fi | |
6351 | ||
ffdd6afc | 6352 | if test "$language" = "c++"; then |
7ec59b9e | 6353 | boot_language=yes |
e8a5fa9c RW |
6354 | fi |
6355 | ||
8e71395b | 6356 | add_this_lang=no |
9b134994 PB |
6357 | case ,${enable_languages}, in |
6358 | *,${language},*) | |
7ec59b9e L |
6359 | # Language was explicitly selected; include it |
6360 | # unless it is C, which is enabled by default. | |
6361 | if test "$language" != "c"; then | |
6362 | add_this_lang=yes | |
6363 | fi | |
9e07f89d | 6364 | ;; |
9b134994 PB |
6365 | *,all,*) |
6366 | # 'all' was selected, select it if it is a default language | |
8e71395b L |
6367 | if test "$language" != "c"; then |
6368 | add_this_lang=${build_by_default} | |
6369 | fi | |
9e07f89d NN |
6370 | ;; |
6371 | esac | |
4b1cb4fe | 6372 | |
64ce424c | 6373 | # Disable languages that need other directories if these aren't available. |
1f3f1bbf | 6374 | for i in $subdir_requires; do |
3d3adb43 | 6375 | test -f "$srcdir/gcc/$i/config-lang.in" && continue |
64ce424c PB |
6376 | case ,${enable_languages}, in |
6377 | *,${language},*) | |
6378 | # Specifically requested language; tell them. | |
81ecdfbb | 6379 | as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5 |
64ce424c PB |
6380 | ;; |
6381 | *) | |
6382 | # Silently disable. | |
9b134994 | 6383 | add_this_lang=unsupported |
64ce424c PB |
6384 | ;; |
6385 | esac | |
6386 | done | |
6387 | ||
9b134994 PB |
6388 | # Disable Ada if no preexisting GNAT is available. |
6389 | case ,${enable_languages},:${language}:${have_gnat} in | |
6390 | *,${language},*:ada:no) | |
6391 | # Specifically requested language; tell them. | |
81ecdfbb | 6392 | as_fn_error "GNAT is required to build $language" "$LINENO" 5 |
9b134994 PB |
6393 | ;; |
6394 | *:ada:no) | |
6395 | # Silently disable. | |
6396 | add_this_lang=unsupported | |
6397 | ;; | |
6398 | esac | |
6399 | ||
59f7ec45 HPN |
6400 | # Disable a language that is unsupported by the target. |
6401 | case " $unsupported_languages " in | |
6402 | *" $language "*) | |
9b134994 | 6403 | add_this_lang=unsupported |
59f7ec45 HPN |
6404 | ;; |
6405 | esac | |
6406 | ||
4b1cb4fe | 6407 | case $add_this_lang in |
9b134994 | 6408 | unsupported) |
9e07f89d | 6409 | # Remove language-dependent dirs. |
9e1a94f4 ILT |
6410 | disabled_target_libs="$disabled_target_libs $target_libs" |
6411 | noconfigdirs="$noconfigdirs $lang_dirs" | |
1d39f329 | 6412 | ;; |
9b134994 PB |
6413 | no) |
6414 | # Remove language-dependent dirs; still show language as supported. | |
9e1a94f4 ILT |
6415 | disabled_target_libs="$disabled_target_libs $target_libs" |
6416 | noconfigdirs="$noconfigdirs $lang_dirs" | |
9b134994 PB |
6417 | potential_languages="${potential_languages}${language}," |
6418 | ;; | |
6419 | yes) | |
6420 | new_enable_languages="${new_enable_languages}${language}," | |
6421 | potential_languages="${potential_languages}${language}," | |
1d39f329 | 6422 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
9e1a94f4 | 6423 | enabled_target_libs="$enabled_target_libs $target_libs" |
f8dc745f RW |
6424 | case "${boot_language}:,$enable_stage1_languages," in |
6425 | yes:* | *:*,$language,* | *:*,yes, | *:*,all,) | |
4fa63067 | 6426 | # Add to (comma-separated) list of stage 1 languages. |
f8dc745f RW |
6427 | case ",$stage1_languages," in |
6428 | *,$language,* | ,yes, | ,all,) ;; | |
6429 | *) stage1_languages="${stage1_languages}${language}," ;; | |
6430 | esac | |
e8a5fa9c RW |
6431 | # We need to bootstrap any supporting libraries. |
6432 | bootstrap_target_libs="${bootstrap_target_libs}${target_libs}," | |
1d39f329 NN |
6433 | ;; |
6434 | esac | |
6435 | ;; | |
9e07f89d NN |
6436 | esac |
6437 | ;; | |
6438 | esac | |
6439 | done | |
6440 | ||
9e1a94f4 ILT |
6441 | # Add target libraries which are only needed for disabled languages |
6442 | # to noconfigdirs. | |
6443 | if test -n "$disabled_target_libs"; then | |
6444 | for dir in $disabled_target_libs; do | |
6445 | case " $enabled_target_libs " in | |
6446 | *" ${dir} "*) ;; | |
6447 | *) noconfigdirs="$noconfigdirs $dir" ;; | |
6448 | esac | |
6449 | done | |
6450 | fi | |
6451 | ||
81ecdfbb RW |
6452 | # Check whether --enable-stage1-languages was given. |
6453 | if test "${enable_stage1_languages+set}" = set; then : | |
6454 | enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in | |
9b134994 PB |
6455 | ,no,|,,) |
6456 | # Set it to something that will have no effect in the loop below | |
6457 | enable_stage1_languages=c ;; | |
6458 | ,yes,) | |
6459 | enable_stage1_languages=`echo $new_enable_languages | \ | |
6460 | sed -e "s/^,//" -e "s/,$//" ` ;; | |
6461 | *,all,*) | |
6462 | enable_stage1_languages=`echo ,$enable_stage1_languages, | \ | |
6463 | sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;; | |
6464 | esac | |
6465 | ||
6466 | # Add "good" languages from enable_stage1_languages to stage1_languages, | |
6467 | # while "bad" languages go in missing_languages. Leave no duplicates. | |
6468 | for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do | |
6469 | case $potential_languages in | |
6470 | *,$i,*) | |
6471 | case $stage1_languages in | |
6472 | *,$i,*) ;; | |
6473 | *) stage1_languages="$stage1_languages$i," ;; | |
6474 | esac ;; | |
6475 | *) | |
6476 | case $missing_languages in | |
6477 | *,$i,*) ;; | |
6478 | *) missing_languages="$missing_languages$i," ;; | |
6479 | esac ;; | |
6480 | esac | |
6481 | done | |
81ecdfbb RW |
6482 | fi |
6483 | ||
9b134994 PB |
6484 | |
6485 | # Remove leading/trailing commas that were added for simplicity | |
6486 | potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"` | |
4b0ac75d | 6487 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
9b134994 PB |
6488 | stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"` |
6489 | new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"` | |
6490 | ||
9e07f89d | 6491 | if test "x$missing_languages" != x; then |
81ecdfbb | 6492 | as_fn_error " |
27258dd4 | 6493 | The following requested languages could not be built: ${missing_languages} |
81ecdfbb | 6494 | Supported languages are: ${potential_languages}" "$LINENO" 5 |
9e07f89d | 6495 | fi |
9e07f89d NN |
6496 | if test "x$new_enable_languages" != "x$enable_languages"; then |
6497 | echo The following languages will be built: ${new_enable_languages} | |
9b134994 | 6498 | enable_languages="$new_enable_languages" |
9e07f89d | 6499 | fi |
9b134994 | 6500 | |
c6b750e1 | 6501 | |
81ec575a | 6502 | ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" ` |
9e07f89d NN |
6503 | fi |
6504 | ||
a6df5a19 PB |
6505 | # Handle --disable-<component> generically. |
6506 | for dir in $configdirs $build_configdirs $target_configdirs ; do | |
6507 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g` | |
9cc8ae67 PB |
6508 | varname=`echo $dirname | sed -e s/+/_/g` |
6509 | if eval test x\${enable_${varname}} "=" xno ; then | |
a6df5a19 PB |
6510 | noconfigdirs="$noconfigdirs $dir" |
6511 | fi | |
6512 | done | |
6513 | ||
4f0ef2d8 | 6514 | # Check for Boehm's garbage collector |
81ecdfbb RW |
6515 | # Check whether --enable-objc-gc was given. |
6516 | if test "${enable_objc_gc+set}" = set; then : | |
6517 | enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in | |
4f0ef2d8 | 6518 | *,objc,*:*:yes:*target-boehm-gc*) |
81ecdfbb | 6519 | as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5 |
4f0ef2d8 CD |
6520 | ;; |
6521 | esac | |
81ecdfbb RW |
6522 | fi |
6523 | ||
4f0ef2d8 CD |
6524 | |
6525 | # Make sure we only build Boehm's garbage collector if required. | |
d42c4017 DA |
6526 | case ,${enable_languages},:${enable_objc_gc} in |
6527 | *,objc,*:yes) | |
4f0ef2d8 CD |
6528 | # Keep target-boehm-gc if requested for Objective-C. |
6529 | ;; | |
4f0ef2d8 | 6530 | *) |
d42c4017 DA |
6531 | # Otherwise remove target-boehm-gc depending on target-libjava. |
6532 | if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then | |
6533 | noconfigdirs="$noconfigdirs target-boehm-gc" | |
6534 | fi | |
4f0ef2d8 CD |
6535 | ;; |
6536 | esac | |
6537 | ||
1b6c0831 | 6538 | # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++ |
7ec59b9e | 6539 | case ,${enable_languages}, in |
1b6c0831 L |
6540 | *,c++,*) |
6541 | # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++ | |
6542 | case "${noconfigdirs}" in | |
6543 | *target-libstdc++-v3*) | |
6544 | noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer" | |
6545 | ;; | |
6546 | *) ;; | |
6547 | esac | |
6548 | ;; | |
7ec59b9e | 6549 | *) |
1b6c0831 | 6550 | noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv" |
7ec59b9e L |
6551 | ;; |
6552 | esac | |
6553 | ||
caeba88f AL |
6554 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs, |
6555 | # $build_configdirs and $target_configdirs. | |
9e07f89d NN |
6556 | # If we have the source for $noconfigdirs entries, add them to $notsupp. |
6557 | ||
6558 | notsupp="" | |
6559 | for dir in . $skipdirs $noconfigdirs ; do | |
caeba88f | 6560 | dirname=`echo $dir | sed -e s/target-//g -e s/build-//g` |
9e07f89d NN |
6561 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6562 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
6563 | if test -r $srcdir/$dirname/configure ; then | |
6564 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6565 | true | |
6566 | else | |
6567 | notsupp="$notsupp $dir" | |
6568 | fi | |
6569 | fi | |
6570 | fi | |
caeba88f AL |
6571 | if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6572 | build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"` | |
6573 | if test -r $srcdir/$dirname/configure ; then | |
6574 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6575 | true | |
6576 | else | |
6577 | notsupp="$notsupp $dir" | |
6578 | fi | |
6579 | fi | |
6580 | fi | |
9e07f89d NN |
6581 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then |
6582 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
6583 | if test -r $srcdir/$dirname/configure ; then | |
6584 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6585 | true | |
6586 | else | |
6587 | notsupp="$notsupp $dir" | |
6588 | fi | |
6589 | fi | |
6590 | fi | |
6591 | done | |
6592 | ||
9e07f89d NN |
6593 | # Quietly strip out all directories which aren't configurable in this tree. |
6594 | # This relies on all configurable subdirectories being autoconfiscated, which | |
6595 | # is now the case. | |
6a9cf61e PB |
6596 | build_configdirs_all="$build_configdirs" |
6597 | build_configdirs= | |
6598 | for i in ${build_configdirs_all} ; do | |
c6b750e1 | 6599 | j=`echo $i | sed -e s/build-//g` |
6a9cf61e PB |
6600 | if test -f ${srcdir}/$j/configure ; then |
6601 | build_configdirs="${build_configdirs} $i" | |
6602 | fi | |
6603 | done | |
6604 | ||
9e07f89d NN |
6605 | configdirs_all="$configdirs" |
6606 | configdirs= | |
6607 | for i in ${configdirs_all} ; do | |
6608 | if test -f ${srcdir}/$i/configure ; then | |
6609 | configdirs="${configdirs} $i" | |
6610 | fi | |
6611 | done | |
6a9cf61e | 6612 | |
9e07f89d NN |
6613 | target_configdirs_all="$target_configdirs" |
6614 | target_configdirs= | |
6615 | for i in ${target_configdirs_all} ; do | |
c6b750e1 | 6616 | j=`echo $i | sed -e s/target-//g` |
9e07f89d NN |
6617 | if test -f ${srcdir}/$j/configure ; then |
6618 | target_configdirs="${target_configdirs} $i" | |
6619 | fi | |
6620 | done | |
6621 | ||
091021fa L |
6622 | # Exclude target-zlib if target-libjava isn't built. |
6623 | case ${target_configdirs} in | |
6624 | *target-libjava*) | |
6625 | ;; | |
6626 | *) | |
6627 | target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`" | |
6628 | ;; | |
6629 | esac | |
6630 | ||
1b6c0831 L |
6631 | # libiberty-linker-plugin is special: it doesn't have its own source directory, |
6632 | # so we have to add it after the preceding checks. | |
6633 | if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x | |
6634 | then | |
6635 | case " $configdirs " in | |
6636 | *" libiberty "*) | |
6637 | # If we can build libiberty, we can also build libiberty-linker-plugin. | |
6638 | configdirs="$configdirs libiberty-linker-plugin" | |
6639 | extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \ | |
6640 | --with-libiberty=../libiberty-linker-plugin";; | |
6641 | *) | |
6642 | as_fn_error "libiberty missing" "$LINENO" 5;; | |
6643 | esac | |
6644 | fi | |
6645 | ||
6646 | # Sometimes we have special requirements for the host libiberty. | |
6647 | extra_host_libiberty_configure_flags= | |
e81d5d05 | 6648 | extra_host_zlib_configure_flags= |
1b6c0831 L |
6649 | case " $configdirs " in |
6650 | *" lto-plugin "* | *" libcc1 "*) | |
6651 | # When these are to be built as shared libraries, the same applies to | |
6652 | # libiberty. | |
6653 | extra_host_libiberty_configure_flags=--enable-shared | |
6654 | ;; | |
e81d5d05 L |
6655 | *" bfd "*) |
6656 | # When bfd is to be built as a shared library, the same applies to | |
6657 | # zlib. | |
6658 | if test "$enable_shared" = "yes"; then | |
6659 | extra_host_zlib_configure_flags=--enable-host-shared | |
6660 | fi | |
6661 | ;; | |
1b6c0831 L |
6662 | esac |
6663 | ||
6664 | ||
e81d5d05 | 6665 | |
9e07f89d NN |
6666 | # Produce a warning message for the subdirs we can't configure. |
6667 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
6668 | # FSF releases, it's important to let people know when their machine isn't | |
6669 | # supported by the one or two programs in a package. | |
6670 | ||
6671 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
6672 | # If $appdirs is non-empty, at least one of those directories must still | |
6673 | # be configured, or we error out. (E.g., if the gas release supports a | |
6674 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
6675 | # pretend that all is well.) | |
6676 | if test -n "$appdirs" ; then | |
6677 | for dir in $appdirs ; do | |
6678 | if test -r $dir/Makefile.in ; then | |
6679 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
6680 | appdirs="" | |
6681 | break | |
6682 | fi | |
6a9cf61e | 6683 | if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then |
9e07f89d NN |
6684 | appdirs="" |
6685 | break | |
6686 | fi | |
6687 | fi | |
6688 | done | |
6689 | if test -n "$appdirs" ; then | |
6690 | echo "*** This configuration is not supported by this package." 1>&2 | |
6691 | exit 1 | |
6692 | fi | |
6693 | fi | |
6694 | # Okay, some application will build, or we don't care to check. Still | |
6695 | # notify of subdirs not getting built. | |
6696 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
6697 | echo " ${notsupp}" 1>&2 | |
6698 | echo " (Any other directories should still work fine.)" 1>&2 | |
6699 | fi | |
6700 | ||
6701 | case "$host" in | |
6702 | *msdosdjgpp*) | |
6703 | enable_gdbtk=no ;; | |
6704 | esac | |
6705 | ||
18f6b6ee PB |
6706 | # To find our prefix, in gcc_cv_tool_prefix. |
6707 | ||
6708 | # The user is always right. | |
6709 | if test "${PATH_SEPARATOR+set}" != set; then | |
6710 | echo "#! /bin/sh" >conf$$.sh | |
6711 | echo "exit 0" >>conf$$.sh | |
6712 | chmod +x conf$$.sh | |
6713 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6714 | PATH_SEPARATOR=';' | |
6715 | else | |
6716 | PATH_SEPARATOR=: | |
6717 | fi | |
6718 | rm -f conf$$.sh | |
6719 | fi | |
6720 | ||
6721 | ||
6722 | ||
6723 | if test "x$exec_prefix" = xNONE; then | |
6724 | if test "x$prefix" = xNONE; then | |
6725 | gcc_cv_tool_prefix=$ac_default_prefix | |
6726 | else | |
6727 | gcc_cv_tool_prefix=$prefix | |
6728 | fi | |
6729 | else | |
6730 | gcc_cv_tool_prefix=$exec_prefix | |
6731 | fi | |
6732 | ||
6733 | # If there is no compiler in the tree, use the PATH only. In any | |
6734 | # case, if there is no compiler in the tree nobody should use | |
6735 | # AS_FOR_TARGET and LD_FOR_TARGET. | |
6736 | if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then | |
6737 | gcc_version=`cat $srcdir/gcc/BASE-VER` | |
6738 | gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6739 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6740 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6741 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR" | |
6742 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR" | |
6743 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR" | |
6744 | else | |
6745 | gcc_cv_tool_dirs= | |
6746 | fi | |
6747 | ||
6748 | if test x$build = x$target && test -n "$md_exec_prefix"; then | |
6749 | gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR" | |
6750 | fi | |
6751 | ||
6752 | ||
6753 | ||
9e07f89d NN |
6754 | copy_dirs= |
6755 | ||
c6b750e1 | 6756 | |
81ecdfbb RW |
6757 | # Check whether --with-build-sysroot was given. |
6758 | if test "${with_build_sysroot+set}" = set; then : | |
6759 | withval=$with_build_sysroot; if test x"$withval" != x ; then | |
a19b6204 MM |
6760 | SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval" |
6761 | fi | |
6762 | else | |
6763 | SYSROOT_CFLAGS_FOR_TARGET= | |
81ecdfbb | 6764 | fi |
a19b6204 MM |
6765 | |
6766 | ||
8a6ee3ab | 6767 | |
81ecdfbb RW |
6768 | |
6769 | # Check whether --with-debug-prefix-map was given. | |
6770 | if test "${with_debug_prefix_map+set}" = set; then : | |
6771 | withval=$with_debug_prefix_map; if test x"$withval" != x; then | |
8a6ee3ab JM |
6772 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= |
6773 | for debug_map in $withval; do | |
6774 | DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map" | |
6775 | done | |
6776 | fi | |
6777 | else | |
6778 | DEBUG_PREFIX_CFLAGS_FOR_TARGET= | |
81ecdfbb RW |
6779 | fi |
6780 | ||
8a6ee3ab JM |
6781 | |
6782 | ||
7f6ef0c0 PB |
6783 | # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS |
6784 | # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS | |
6785 | # might also be empty (or "-g", if a non-GCC C++ compiler is in the path). | |
6786 | # We want to ensure that TARGET libraries (which we know are built with | |
6787 | # gcc) are built with "-O2 -g", so include those options when setting | |
6788 | # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET. | |
6789 | if test "x$CFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6790 | if test "x${is_cross_compiler}" = xyes; then |
6791 | CFLAGS_FOR_TARGET="-g -O2" | |
6792 | else | |
6793 | CFLAGS_FOR_TARGET=$CFLAGS | |
6794 | case " $CFLAGS " in | |
6795 | *" -O2 "*) ;; | |
6796 | *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;; | |
6797 | esac | |
6798 | case " $CFLAGS " in | |
6799 | *" -g "* | *" -g3 "*) ;; | |
6800 | *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;; | |
6801 | esac | |
6802 | fi | |
7f6ef0c0 PB |
6803 | fi |
6804 | ||
6805 | ||
6806 | if test "x$CXXFLAGS_FOR_TARGET" = x; then | |
1b6c0831 L |
6807 | if test "x${is_cross_compiler}" = xyes; then |
6808 | CXXFLAGS_FOR_TARGET="-g -O2" | |
6809 | else | |
6810 | CXXFLAGS_FOR_TARGET=$CXXFLAGS | |
6811 | case " $CXXFLAGS " in | |
6812 | *" -O2 "*) ;; | |
6813 | *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;; | |
6814 | esac | |
6815 | case " $CXXFLAGS " in | |
6816 | *" -g "* | *" -g3 "*) ;; | |
6817 | *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;; | |
6818 | esac | |
6819 | fi | |
7f6ef0c0 PB |
6820 | fi |
6821 | ||
6822 | ||
91c1f14c DK |
6823 | |
6824 | ||
9e07f89d NN |
6825 | # Handle --with-headers=XXX. If the value is not "yes", the contents of |
6826 | # the named directory are copied to $(tooldir)/sys-include. | |
6827 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
6828 | if test x${is_cross_compiler} = xno ; then | |
6829 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
6830 | exit 1 | |
6831 | fi | |
6832 | if test x"${with_headers}" != xyes ; then | |
18f6b6ee | 6833 | x=${gcc_cv_tool_prefix} |
c6b750e1 | 6834 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include" |
9e07f89d NN |
6835 | fi |
6836 | fi | |
6837 | ||
6838 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
6839 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
6840 | # are permitted. | |
6841 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
6842 | if test x${is_cross_compiler} = xno ; then | |
6843 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
6844 | exit 1 | |
6845 | fi | |
6846 | if test x"${with_libs}" != xyes ; then | |
6847 | # Copy the libraries in reverse order, so that files in the first named | |
6848 | # library override files in subsequent libraries. | |
18f6b6ee | 6849 | x=${gcc_cv_tool_prefix} |
9e07f89d | 6850 | for l in ${with_libs}; do |
c6b750e1 | 6851 | copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}" |
9e07f89d NN |
6852 | done |
6853 | fi | |
6854 | fi | |
6855 | ||
700d40ca | 6856 | # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate. |
2429c060 PB |
6857 | # |
6858 | # This is done by determining whether or not the appropriate directory | |
6859 | # is available, and by checking whether or not specific configurations | |
6860 | # have requested that this magic not happen. | |
c6b750e1 DJ |
6861 | # |
6862 | # The command line options always override the explicit settings in | |
136bb21f | 6863 | # configure.ac, and the settings in configure.ac override this magic. |
2429c060 | 6864 | # |
c6b750e1 | 6865 | # If the default for a toolchain is to use GNU as and ld, and you don't |
2429c060 | 6866 | # want to do that, then you should use the --without-gnu-as and |
700d40ca ILT |
6867 | # --without-gnu-ld options for the configure script. Similarly, if |
6868 | # the default is to use the included zlib and you don't want to do that, | |
6869 | # you should use the --with-system-zlib option for the configure script. | |
2429c060 PB |
6870 | |
6871 | if test x${use_gnu_as} = x && | |
6872 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
6873 | with_gnu_as=yes | |
6874 | extra_host_args="$extra_host_args --with-gnu-as" | |
6875 | fi | |
6876 | ||
6877 | if test x${use_gnu_ld} = x && | |
93f9b408 | 6878 | echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then |
2429c060 PB |
6879 | with_gnu_ld=yes |
6880 | extra_host_args="$extra_host_args --with-gnu-ld" | |
6881 | fi | |
6882 | ||
700d40ca ILT |
6883 | if test x${use_included_zlib} = x && |
6884 | echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then | |
6885 | : | |
6886 | else | |
6887 | with_system_zlib=yes | |
6888 | extra_host_args="$extra_host_args --with-system-zlib" | |
6889 | fi | |
6890 | ||
2429c060 PB |
6891 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure |
6892 | # can detect this case. | |
6893 | ||
6894 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
6895 | with_newlib=yes | |
6896 | extra_host_args="$extra_host_args --with-newlib" | |
6897 | fi | |
6898 | ||
9e07f89d NN |
6899 | # Handle ${copy_dirs} |
6900 | set fnord ${copy_dirs} | |
6901 | shift | |
6902 | while test $# != 0 ; do | |
6903 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
6904 | : | |
6905 | else | |
6906 | echo Copying $1 to $2 | |
6907 | ||
6908 | # Use the install script to create the directory and all required | |
6909 | # parent directories. | |
6910 | if test -d $2 ; then | |
6911 | : | |
6912 | else | |
6913 | echo >config.temp | |
6914 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
6915 | fi | |
6916 | ||
6917 | # Copy the directory, assuming we have tar. | |
6918 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
6919 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
6920 | ||
6921 | # It is the responsibility of the user to correctly adjust all | |
6922 | # symlinks. If somebody can figure out how to handle them correctly | |
6923 | # here, feel free to add the code. | |
6924 | ||
6925 | echo $1 > $2/COPIED | |
6926 | fi | |
6927 | shift; shift | |
6928 | done | |
6929 | ||
2429c060 PB |
6930 | # Determine a target-dependent exec_prefix that the installed |
6931 | # gcc will search in. Keep this list sorted by triplet, with | |
6932 | # the *-*-osname triplets last. | |
6933 | md_exec_prefix= | |
6934 | case "${target}" in | |
521ec477 | 6935 | i[34567]86-pc-msdosdjgpp*) |
2429c060 PB |
6936 | md_exec_prefix=/dev/env/DJDIR/bin |
6937 | ;; | |
2429c060 | 6938 | *-*-hpux* | \ |
2429c060 | 6939 | *-*-nto-qnx* | \ |
1f111696 | 6940 | *-*-solaris2*) |
2429c060 PB |
6941 | md_exec_prefix=/usr/ccs/bin |
6942 | ;; | |
6943 | esac | |
6944 | ||
a0da8069 NN |
6945 | extra_arflags_for_target= |
6946 | extra_nmflags_for_target= | |
6947 | extra_ranlibflags_for_target= | |
6948 | target_makefile_frag=/dev/null | |
6949 | case "${target}" in | |
77d7106f AM |
6950 | spu-*-*) |
6951 | target_makefile_frag="config/mt-spu" | |
6952 | ;; | |
a9d58c06 | 6953 | mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*) |
429acdec RS |
6954 | target_makefile_frag="config/mt-sde" |
6955 | ;; | |
f3b1e08e RS |
6956 | mipsisa*-*-elfoabi*) |
6957 | target_makefile_frag="config/mt-mips-elfoabi" | |
6958 | ;; | |
e7c8859c RS |
6959 | mips*-*-*linux* | mips*-*-gnu*) |
6960 | target_makefile_frag="config/mt-mips-gnu" | |
6961 | ;; | |
d9e042ac SL |
6962 | nios2-*-elf*) |
6963 | target_makefile_frag="config/mt-nios2-elf" | |
6964 | ;; | |
29383458 | 6965 | *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) |
3d6dfe0f | 6966 | target_makefile_frag="config/mt-gnu" |
a0da8069 NN |
6967 | ;; |
6968 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
c6b750e1 | 6969 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm |
a0da8069 NN |
6970 | # commands to handle both 32-bit and 64-bit objects. These flags are |
6971 | # harmless if we're using GNU nm or ar. | |
6972 | extra_arflags_for_target=" -X32_64" | |
6973 | extra_nmflags_for_target=" -B -X32_64" | |
6974 | ;; | |
a0da8069 NN |
6975 | esac |
6976 | ||
6977 | alphaieee_frag=/dev/null | |
6978 | case $target in | |
6979 | alpha*-*-*) | |
6980 | # This just makes sure to use the -mieee option to build target libs. | |
6981 | # This should probably be set individually by each library. | |
6982 | alphaieee_frag="config/mt-alphaieee" | |
6983 | ;; | |
6984 | esac | |
6985 | ||
6986 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
6987 | # the target libraries, similarly if it is not specified, use -Os | |
6988 | # on selected platforms. | |
6989 | ospace_frag=/dev/null | |
6990 | case "${enable_target_optspace}:${target}" in | |
6991 | yes:*) | |
6992 | ospace_frag="config/mt-ospace" | |
6993 | ;; | |
6994 | :d30v-*) | |
6995 | ospace_frag="config/mt-d30v" | |
6996 | ;; | |
16beab3d | 6997 | :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu) |
a0da8069 NN |
6998 | ospace_frag="config/mt-ospace" |
6999 | ;; | |
7000 | no:* | :*) | |
7001 | ;; | |
7002 | *) | |
7003 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
7004 | ;; | |
7005 | esac | |
7006 | ||
a0da8069 NN |
7007 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
7008 | # using) don't handle "\$" correctly, so don't use it here. | |
c6b750e1 | 7009 | tooldir='${exec_prefix}'/${target_noncanonical} |
a0da8069 NN |
7010 | build_tooldir=${tooldir} |
7011 | ||
a0da8069 NN |
7012 | # Create a .gdbinit file which runs the one in srcdir |
7013 | # and tells GDB to look there for source files. | |
7014 | ||
7015 | if test -r ${srcdir}/.gdbinit ; then | |
7016 | case ${srcdir} in | |
7017 | .) ;; | |
7018 | *) cat > ./.gdbinit <<EOF | |
7019 | # ${NO_EDIT} | |
7020 | dir ${srcdir} | |
7021 | dir . | |
7022 | source ${srcdir}/.gdbinit | |
7023 | EOF | |
7024 | ;; | |
7025 | esac | |
7026 | fi | |
7027 | ||
a0da8069 NN |
7028 | # Make sure that the compiler is able to generate an executable. If it |
7029 | # can't, we are probably in trouble. We don't care whether we can run the | |
7030 | # executable--we might be using a cross compiler--we only care whether it | |
7031 | # can be created. At this point the main configure script has set CC. | |
7032 | we_are_ok=no | |
7033 | echo "int main () { return 0; }" > conftest.c | |
7034 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7035 | if test $? = 0 ; then | |
7036 | if test -s conftest || test -s conftest.exe ; then | |
7037 | we_are_ok=yes | |
7038 | fi | |
c6b750e1 | 7039 | fi |
a0da8069 NN |
7040 | case $we_are_ok in |
7041 | no) | |
7042 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
7043 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
7044 | rm -f conftest* | |
7045 | exit 1 | |
7046 | ;; | |
7047 | esac | |
7048 | rm -f conftest* | |
7049 | ||
3bbd2f8f | 7050 | # Decide which environment variable is used to find dynamic libraries. |
a0da8069 NN |
7051 | case "${host}" in |
7052 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
3516a403 | 7053 | *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;; |
3bbd2f8f | 7054 | *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
a0da8069 NN |
7055 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
7056 | esac | |
7057 | ||
3bbd2f8f | 7058 | # On systems where the dynamic library environment variable is PATH, |
e28c595f JM |
7059 | # gcc/ will put dynamic libraries into a subdirectory to avoid adding |
7060 | # built executables to PATH. | |
3bbd2f8f AL |
7061 | if test "$RPATH_ENVVAR" = PATH; then |
7062 | GCC_SHLIB_SUBDIR=/shlib | |
7063 | else | |
7064 | GCC_SHLIB_SUBDIR= | |
7065 | fi | |
7066 | ||
730af8ee | 7067 | # Adjust the toplevel makefile according to whether bootstrap was selected. |
7068 | case $enable_bootstrap in | |
7069 | yes) | |
7070 | bootstrap_suffix=bootstrap | |
7071 | BUILD_CONFIG=bootstrap-debug | |
7072 | ;; | |
7073 | no) | |
7074 | bootstrap_suffix=no-bootstrap | |
7075 | BUILD_CONFIG= | |
7076 | ;; | |
7077 | esac | |
7078 | ||
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5 | |
7080 | $as_echo_n "checking for default BUILD_CONFIG... " >&6; } | |
7081 | ||
7082 | ||
7083 | # Check whether --with-build-config was given. | |
7084 | if test "${with_build_config+set}" = set; then : | |
7085 | withval=$with_build_config; case $with_build_config in | |
7086 | yes) with_build_config= ;; | |
7087 | no) with_build_config= BUILD_CONFIG= ;; | |
7088 | esac | |
7089 | fi | |
7090 | ||
7091 | ||
7092 | if test "x${with_build_config}" != x; then | |
7093 | BUILD_CONFIG=$with_build_config | |
7094 | else | |
7095 | case $BUILD_CONFIG in | |
7096 | bootstrap-debug) | |
7097 | if echo "int f (void) { return 0; }" > conftest.c && | |
7098 | ${CC} -c conftest.c && | |
7099 | mv conftest.o conftest.o.g0 && | |
7100 | ${CC} -c -g conftest.c && | |
7101 | mv conftest.o conftest.o.g && | |
7102 | ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then | |
7103 | : | |
7104 | else | |
7105 | BUILD_CONFIG= | |
7106 | fi | |
7107 | rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g | |
7108 | ;; | |
7109 | esac | |
7110 | fi | |
7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5 | |
7112 | $as_echo "$BUILD_CONFIG" >&6; } | |
7113 | ||
7114 | ||
7115 | # Use same top-level configure hooks in libgcc/libstdc++/libvtv. | |
7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5 | |
7117 | $as_echo_n "checking for --enable-vtable-verify... " >&6; } | |
7118 | # Check whether --enable-vtable-verify was given. | |
7119 | if test "${enable_vtable_verify+set}" = set; then : | |
7120 | enableval=$enable_vtable_verify; case "$enableval" in | |
7121 | yes) enable_vtable_verify=yes ;; | |
7122 | no) enable_vtable_verify=no ;; | |
7123 | *) enable_vtable_verify=no;; | |
7124 | esac | |
7125 | else | |
7126 | enable_vtable_verify=no | |
7127 | fi | |
7128 | ||
7129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5 | |
7130 | $as_echo "$enable_vtable_verify" >&6; } | |
7131 | ||
a0da8069 NN |
7132 | # Record target_configdirs and the configure arguments for target and |
7133 | # build configuration in Makefile. | |
7134 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
6a9cf61e | 7135 | build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'` |
201f096f | 7136 | bootstrap_fixincludes=no |
a0da8069 | 7137 | |
2aa2364a JR |
7138 | # If we are building libgomp, bootstrap it. |
7139 | if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then | |
7140 | bootstrap_target_libs=${bootstrap_target_libs}target-libgomp, | |
7141 | fi | |
7142 | ||
730af8ee | 7143 | # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan |
7144 | # or bootstrap-ubsan, bootstrap it. | |
7145 | if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then | |
7146 | case "$BUILD_CONFIG" in | |
7147 | *bootstrap-asan* | *bootstrap-ubsan* ) | |
7148 | bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer, | |
201f096f | 7149 | bootstrap_fixincludes=yes |
730af8ee | 7150 | ;; |
7151 | esac | |
5eb08693 L |
7152 | fi |
7153 | ||
730af8ee | 7154 | # If we are building libvtv and --enable-vtable-verify, bootstrap it. |
7155 | if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 && | |
7156 | test "$enable_vtable_verify" != no; then | |
95e43135 JBG |
7157 | bootstrap_target_libs=${bootstrap_target_libs}target-libvtv, |
7158 | fi | |
7159 | ||
1b6c0831 L |
7160 | # If we are building libmpx, bootstrap it. |
7161 | if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then | |
7162 | bootstrap_target_libs=${bootstrap_target_libs}target-libmpx, | |
7163 | fi | |
7164 | ||
a0da8069 NN |
7165 | # Determine whether gdb needs tk/tcl or not. |
7166 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
7167 | # and in that case we want gdb to be built without tk. Ugh! | |
7168 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
7169 | # so we should be able to put the 'maybe's in unconditionally and | |
7170 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
7171 | # 100% sure that that's safe though. | |
c180f501 | 7172 | |
675c6968 | 7173 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui" |
a0da8069 NN |
7174 | case "$enable_gdbtk" in |
7175 | no) | |
7176 | GDB_TK="" ;; | |
c180f501 AC |
7177 | yes) |
7178 | GDB_TK="${gdb_tk}" ;; | |
a0da8069 | 7179 | *) |
c180f501 AC |
7180 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
7181 | # distro. Eventually someone will fix this and move Insight, nee | |
7182 | # gdbtk to a separate directory. | |
7183 | if test -d ${srcdir}/gdb/gdbtk ; then | |
7184 | GDB_TK="${gdb_tk}" | |
7185 | else | |
7186 | GDB_TK="" | |
7187 | fi | |
7188 | ;; | |
a0da8069 | 7189 | esac |
907be67c DJ |
7190 | CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g` |
7191 | INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g` | |
a0da8069 | 7192 | |
6bd3dfaa | 7193 | # Strip out unwanted targets. |
dd12c3a8 NN |
7194 | |
7195 | # While at that, we remove Makefiles if we were started for recursive | |
7196 | # configuration, so that the top-level Makefile reconfigures them, | |
7197 | # like we used to do when configure itself was recursive. | |
dd12c3a8 | 7198 | |
06a51eac RW |
7199 | # Loop over modules. We used to use the "$extrasub" feature from Autoconf |
7200 | # but now we're fixing up the Makefile ourselves with the additional | |
7201 | # commands passed to AC_CONFIG_FILES. Use separate variables | |
7202 | # extrasub-{build,host,target} not because there is any reason to split | |
7203 | # the substitutions up that way, but only to remain below the limit of | |
7204 | # 99 commands in a script, for HP-UX sed. | |
7205 | # Do not nest @if/@endif pairs, because configure will not warn you at all. | |
dd12c3a8 | 7206 | |
16b1ad29 RW |
7207 | case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in |
7208 | yes:yes:*\ gold\ *:*,c++,*) ;; | |
7209 | yes:yes:*\ gold\ *:*) | |
7210 | as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5 | |
7211 | ;; | |
7212 | esac | |
7213 | ||
06a51eac | 7214 | extrasub_build= |
6a9cf61e | 7215 | for module in ${build_configdirs} ; do |
498d4a71 CF |
7216 | if test -z "${no_recursion}" \ |
7217 | && test -f ${build_subdir}/${module}/Makefile; then | |
7218 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
7219 | rm -f ${build_subdir}/${module}/Makefile | |
7220 | fi | |
06a51eac | 7221 | extrasub_build="$extrasub_build |
498d4a71 CF |
7222 | /^@if build-$module\$/d |
7223 | /^@endif build-$module\$/d | |
7224 | /^@if build-$module-$bootstrap_suffix\$/d | |
7225 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
7226 | done | |
06a51eac | 7227 | extrasub_host= |
498d4a71 | 7228 | for module in ${configdirs} ; do |
80911fe1 | 7229 | if test -z "${no_recursion}"; then |
8cf39b1b | 7230 | for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do |
80911fe1 PB |
7231 | if test -f ${file}; then |
7232 | echo 1>&2 "*** removing ${file} to force reconfigure" | |
7233 | rm -f ${file} | |
7234 | fi | |
7235 | done | |
498d4a71 | 7236 | fi |
201f096f | 7237 | case ${module},${bootstrap_fixincludes} in |
7238 | fixincludes,no) host_bootstrap_suffix=no-bootstrap ;; | |
7239 | *) host_bootstrap_suffix=$bootstrap_suffix ;; | |
7240 | esac | |
06a51eac | 7241 | extrasub_host="$extrasub_host |
498d4a71 CF |
7242 | /^@if $module\$/d |
7243 | /^@endif $module\$/d | |
201f096f | 7244 | /^@if $module-$host_bootstrap_suffix\$/d |
7245 | /^@endif $module-$host_bootstrap_suffix\$/d" | |
498d4a71 | 7246 | done |
06a51eac | 7247 | extrasub_target= |
498d4a71 CF |
7248 | for module in ${target_configdirs} ; do |
7249 | if test -z "${no_recursion}" \ | |
7250 | && test -f ${target_subdir}/${module}/Makefile; then | |
7251 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
7252 | rm -f ${target_subdir}/${module}/Makefile | |
7253 | fi | |
e8a5fa9c RW |
7254 | |
7255 | # We only bootstrap target libraries listed in bootstrap_target_libs. | |
7256 | case $bootstrap_target_libs in | |
7257 | *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;; | |
7258 | *) target_bootstrap_suffix=no-bootstrap ;; | |
7259 | esac | |
7260 | ||
06a51eac | 7261 | extrasub_target="$extrasub_target |
498d4a71 CF |
7262 | /^@if target-$module\$/d |
7263 | /^@endif target-$module\$/d | |
e8a5fa9c RW |
7264 | /^@if target-$module-$target_bootstrap_suffix\$/d |
7265 | /^@endif target-$module-$target_bootstrap_suffix\$/d" | |
498d4a71 CF |
7266 | done |
7267 | ||
06a51eac RW |
7268 | # Do the final fixup along with target modules. |
7269 | extrasub_target="$extrasub_target | |
6bd3dfaa | 7270 | /^@if /,/^@endif /d" |
a0da8069 NN |
7271 | |
7272 | # Create the serialization dependencies. This uses a temporary file. | |
7273 | ||
81ecdfbb RW |
7274 | # Check whether --enable-serial-configure was given. |
7275 | if test "${enable_serial_configure+set}" = set; then : | |
7276 | enableval=$enable_serial_configure; | |
7277 | fi | |
e6bfb94a AO |
7278 | |
7279 | ||
1047cb91 DD |
7280 | case ${enable_serial_configure} in |
7281 | yes) | |
7282 | enable_serial_build_configure=yes | |
7283 | enable_serial_host_configure=yes | |
7284 | enable_serial_target_configure=yes | |
7285 | ;; | |
7286 | esac | |
7287 | ||
a0da8069 NN |
7288 | # These force 'configure's to be done one at a time, to avoid problems |
7289 | # with contention over a shared config.cache. | |
7290 | rm -f serdep.tmp | |
e6bfb94a | 7291 | echo '# serdep.tmp' > serdep.tmp |
a0da8069 | 7292 | olditem= |
1047cb91 | 7293 | test "x${enable_serial_build_configure}" = xyes && |
a0da8069 NN |
7294 | for item in ${build_configdirs} ; do |
7295 | case ${olditem} in | |
7296 | "") ;; | |
e6bfb94a | 7297 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7298 | esac |
7299 | olditem=${item} | |
7300 | done | |
7301 | olditem= | |
1047cb91 | 7302 | test "x${enable_serial_host_configure}" = xyes && |
a0da8069 NN |
7303 | for item in ${configdirs} ; do |
7304 | case ${olditem} in | |
7305 | "") ;; | |
e6bfb94a | 7306 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7307 | esac |
7308 | olditem=${item} | |
7309 | done | |
7310 | olditem= | |
1047cb91 | 7311 | test "x${enable_serial_target_configure}" = xyes && |
a0da8069 NN |
7312 | for item in ${target_configdirs} ; do |
7313 | case ${olditem} in | |
7314 | "") ;; | |
e6bfb94a | 7315 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
a0da8069 NN |
7316 | esac |
7317 | olditem=${item} | |
7318 | done | |
7319 | serialization_dependencies=serdep.tmp | |
7320 | ||
7321 | ||
e6bfb94a | 7322 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
c6b750e1 | 7323 | # target, nonopt, and variable assignments. These are the ones we |
30167e0a NC |
7324 | # might not want to pass down to subconfigures. The exception being |
7325 | # --cache-file=/dev/null, which is used to turn off the use of cache | |
7326 | # files altogether, and which should be passed on to subconfigures. | |
7327 | # Also strip program-prefix, program-suffix, and program-transform-name, | |
7328 | # so that we can pass down a consistent program-transform-name. | |
c6b750e1 | 7329 | baseargs= |
65b4571a | 7330 | tbaseargs= |
c6b750e1 DJ |
7331 | keep_next=no |
7332 | skip_next=no | |
7333 | eval "set -- $ac_configure_args" | |
18f6b6ee PB |
7334 | for ac_arg |
7335 | do | |
c6b750e1 DJ |
7336 | if test X"$skip_next" = X"yes"; then |
7337 | skip_next=no | |
7338 | continue | |
7339 | fi | |
7340 | if test X"$keep_next" = X"yes"; then | |
7341 | case $ac_arg in | |
7342 | *\'*) | |
7343 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7344 | esac | |
7345 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7346 | tbaseargs="$tbaseargs '$ac_arg'" |
c6b750e1 DJ |
7347 | keep_next=no |
7348 | continue | |
7349 | fi | |
7350 | ||
7351 | # Handle separated arguments. Based on the logic generated by | |
7352 | # autoconf 2.59. | |
7353 | case $ac_arg in | |
7354 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
7355 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
7356 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
7357 | | -with-* | --with-* | -without-* | --without-* | --x) | |
7358 | separate_arg=no | |
7359 | ;; | |
7360 | -*) | |
7361 | separate_arg=yes | |
7362 | ;; | |
7363 | *) | |
7364 | separate_arg=no | |
7365 | ;; | |
7366 | esac | |
7367 | ||
65b4571a AO |
7368 | skip_targ=no |
7369 | case $ac_arg in | |
7370 | ||
7371 | --with-* | --without-*) | |
7372 | libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'` | |
7373 | ||
7374 | case $libopt in | |
7375 | *[-_]include) | |
7376 | lib=`echo "$libopt" | sed 's,[-_]include$,,'` | |
7377 | ;; | |
7378 | *[-_]lib) | |
7379 | lib=`echo "$libopt" | sed 's,[-_]lib$,,'` | |
7380 | ;; | |
7381 | *) | |
7382 | lib=$libopt | |
7383 | ;; | |
7384 | esac | |
7385 | ||
7386 | ||
7387 | case $lib in | |
1b6c0831 | 7388 | mpc | mpfr | gmp | isl) |
65b4571a AO |
7389 | # If we're processing --with-$lib, --with-$lib-include or |
7390 | # --with-$lib-lib, for one of the libs above, and target is | |
7391 | # different from host, don't pass the current argument to any | |
7392 | # target library's configure. | |
7393 | if test x$is_cross_compiler = xyes; then | |
7394 | skip_targ=yes | |
7395 | fi | |
7396 | ;; | |
7397 | esac | |
7398 | ;; | |
7399 | esac | |
7400 | ||
c6b750e1 | 7401 | case "$ac_arg" in |
30167e0a NC |
7402 | --cache-file=/dev/null | \ |
7403 | -cache-file=/dev/null ) | |
7404 | # Handled here to avoid the test to skip args below. | |
7405 | baseargs="$baseargs '$ac_arg'" | |
65b4571a | 7406 | tbaseargs="$tbaseargs '$ac_arg'" |
30167e0a NC |
7407 | # Assert: $separate_arg should always be no. |
7408 | keep_next=$separate_arg | |
7409 | ;; | |
c6b750e1 DJ |
7410 | --no*) |
7411 | continue | |
7412 | ;; | |
7413 | --c* | \ | |
7414 | --sr* | \ | |
7415 | --ho* | \ | |
7416 | --bu* | \ | |
7417 | --t* | \ | |
7418 | --program-* | \ | |
7419 | -cache_file* | \ | |
7420 | -srcdir* | \ | |
7421 | -host* | \ | |
7422 | -build* | \ | |
7423 | -target* | \ | |
7424 | -program-prefix* | \ | |
7425 | -program-suffix* | \ | |
7426 | -program-transform-name* ) | |
7427 | skip_next=$separate_arg | |
7428 | continue | |
7429 | ;; | |
7430 | -*) | |
7431 | # An option. Add it. | |
7432 | case $ac_arg in | |
7433 | *\'*) | |
7434 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7435 | esac | |
7436 | baseargs="$baseargs '$ac_arg'" | |
65b4571a AO |
7437 | if test X"$skip_targ" = Xno; then |
7438 | tbaseargs="$tbaseargs '$ac_arg'" | |
7439 | fi | |
c6b750e1 DJ |
7440 | keep_next=$separate_arg |
7441 | ;; | |
7442 | *) | |
7443 | # Either a variable assignment, or a nonopt (triplet). Don't | |
7444 | # pass it down; let the Makefile handle this. | |
7445 | continue | |
7446 | ;; | |
7447 | esac | |
7448 | done | |
7449 | # Remove the initial space we just introduced and, as these will be | |
7450 | # expanded by make, quote '$'. | |
7451 | baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'` | |
a0da8069 | 7452 | |
f27d4f92 DJ |
7453 | # Add in --program-transform-name, after --program-prefix and |
7454 | # --program-suffix have been applied to it. Autoconf has already | |
7455 | # doubled dollar signs and backslashes in program_transform_name; we want | |
7456 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
c6b750e1 | 7457 | # quotes, because this will be expanded first by make and then by the shell. |
f27d4f92 DJ |
7458 | # Also, because we want to override the logic in subdir configure scripts to |
7459 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
7460 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
7461 | ${program_transform_name} | |
7462 | EOF_SED | |
7463 | gcc_transform_name=`cat conftestsed.out` | |
7464 | rm -f conftestsed.out | |
7465 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
65b4571a | 7466 | tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'" |
2444379b BE |
7467 | if test "$silent" = yes; then |
7468 | baseargs="$baseargs --silent" | |
65b4571a | 7469 | tbaseargs="$tbaseargs --silent" |
2444379b | 7470 | fi |
34a0f3cf | 7471 | baseargs="$baseargs --disable-option-checking" |
65b4571a | 7472 | tbaseargs="$tbaseargs --disable-option-checking" |
f27d4f92 | 7473 | |
4074d5f2 RW |
7474 | # Record and document user additions to sub configure arguments. |
7475 | ||
7476 | ||
7477 | ||
7478 | ||
a0da8069 NN |
7479 | # For the build-side libraries, we just need to pretend we're native, |
7480 | # and not use the same cache file. Multilibs are neither needed nor | |
1b6c0831 L |
7481 | # desired. We can't even use the same cache file for all build-side |
7482 | # libraries, as they're compiled differently; some with C, some with | |
7483 | # C++ or with different feature-enabling options. | |
7484 | build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}" | |
a0da8069 NN |
7485 | |
7486 | # For host modules, accept cache file option, or specification as blank. | |
7487 | case "${cache_file}" in | |
7488 | "") # empty | |
7489 | cache_file_option="" ;; | |
7490 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
7491 | cache_file_option="--cache-file=${cache_file}" ;; | |
7492 | *) # relative path | |
7493 | cache_file_option="--cache-file=../${cache_file}" ;; | |
7494 | esac | |
7495 | ||
82252c06 NN |
7496 | # Host dirs don't like to share a cache file either, horribly enough. |
7497 | # This seems to be due to autoconf 2.5x stupidity. | |
4074d5f2 | 7498 | host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}" |
a0da8069 | 7499 | |
65b4571a | 7500 | target_configargs="$target_configargs ${tbaseargs}" |
a0da8069 NN |
7501 | |
7502 | # Passing a --with-cross-host argument lets the target libraries know | |
7503 | # whether they are being built with a cross-compiler or being built | |
7504 | # native. However, it would be better to use other mechanisms to make the | |
7505 | # sorts of decisions they want to make on this basis. Please consider | |
7506 | # this option to be deprecated. FIXME. | |
7507 | if test x${is_cross_compiler} = xyes ; then | |
c6b750e1 | 7508 | target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" |
a0da8069 NN |
7509 | fi |
7510 | ||
afc0578d | 7511 | # Special user-friendly check for native x86_64-linux build, if |
7512 | # multilib is not explicitly enabled. | |
7513 | case "$target:$have_compiler:$host:$target:$enable_multilib" in | |
7514 | x86_64-*linux*:yes:$build:$build:) | |
ce6c656d | 7515 | # Make sure we have a development environment that handles 32-bit |
afc0578d | 7516 | dev64=no |
7517 | echo "int main () { return 0; }" > conftest.c | |
7518 | ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
7519 | if test $? = 0 ; then | |
7520 | if test -s conftest || test -s conftest.exe ; then | |
7521 | dev64=yes | |
7522 | fi | |
7523 | fi | |
7524 | rm -f conftest* | |
7525 | if test x${dev64} != xyes ; then | |
ce6c656d | 7526 | as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5 |
afc0578d | 7527 | fi |
7528 | ;; | |
7529 | esac | |
7530 | ||
938d2b74 RW |
7531 | # Default to --enable-multilib. |
7532 | if test x${enable_multilib} = x ; then | |
a0da8069 | 7533 | target_configargs="--enable-multilib ${target_configargs}" |
938d2b74 | 7534 | fi |
a0da8069 NN |
7535 | |
7536 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
7537 | # changed from the earlier setting of with_newlib. | |
7538 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
7539 | target_configargs="--with-newlib ${target_configargs}" | |
7540 | fi | |
7541 | ||
95036d20 NN |
7542 | # Different target subdirs use different values of certain variables |
7543 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
7544 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
7545 | # it doesn't automatically accept command-line overrides of them. | |
7546 | # This means it's not safe for target subdirs to share a cache file, | |
7547 | # which is disgusting, but there you have it. Hopefully this can be | |
7548 | # fixed in future. It's still worthwhile to use a cache file for each | |
7549 | # directory. I think. | |
7550 | ||
ae380b45 MS |
7551 | # Pass the appropriate --build, --host, --target and --cache-file arguments. |
7552 | # We need to pass --target, as newer autoconf's requires consistency | |
7553 | # for target_alias and gcc doesn't manage it consistently. | |
4b900473 | 7554 | target_configargs="--cache-file=./config.cache ${target_configargs}" |
a0da8069 | 7555 | |
a0da8069 NN |
7556 | FLAGS_FOR_TARGET= |
7557 | case " $target_configdirs " in | |
7558 | *" newlib "*) | |
7559 | case " $target_configargs " in | |
7560 | *" --with-newlib "*) | |
7561 | case "$target" in | |
1f53ca9a | 7562 | *-cygwin*) |
6d94c122 | 7563 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' |
1f53ca9a | 7564 | ;; |
a0da8069 NN |
7565 | esac |
7566 | ||
7567 | # If we're not building GCC, don't discard standard headers. | |
7568 | if test -d ${srcdir}/gcc; then | |
7569 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
7570 | ||
7571 | if test "${build}" != "${host}"; then | |
7572 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
7573 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
7574 | # to it. This is right: we don't want to search that directory | |
7575 | # for binaries, but we want the header files in there, so add | |
7576 | # them explicitly. | |
e552509b | 7577 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed' |
a0da8069 NN |
7578 | |
7579 | # Someone might think of using the pre-installed headers on | |
7580 | # Canadian crosses, in case the installed compiler is not fully | |
7581 | # compatible with the compiler being built. In this case, it | |
7582 | # would be better to flag an error than risking having | |
7583 | # incompatible object files being constructed. We can't | |
7584 | # guarantee that an error will be flagged, but let's hope the | |
7585 | # compiler will do it, when presented with incompatible header | |
7586 | # files. | |
7587 | fi | |
7588 | fi | |
7589 | ||
7590 | case "${target}-${is_cross_compiler}" in | |
ec11bdc6 | 7591 | i[3456789]86-*-linux*-no) |
a0da8069 NN |
7592 | # Here host == target, so we don't need to build gcc, |
7593 | # so we don't want to discard standard headers. | |
7594 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
7595 | ;; | |
7596 | *) | |
7597 | # If we're building newlib, use its generic headers last, but search | |
7598 | # for any libc-related directories first (so make it the last -B | |
7599 | # switch). | |
7600 | 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 |
7601 | |
7602 | # If we're building libgloss, find the startup file, simulator library | |
7603 | # and linker script. | |
7604 | case " $target_configdirs " in | |
7605 | *" libgloss "*) | |
7606 | # Look for startup file, simulator library and maybe linker script. | |
7607 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir" | |
7608 | # Look for libnosys.a in case the target needs it. | |
7609 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys' | |
7610 | # Most targets have the linker script in the source directory. | |
7611 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir" | |
7612 | ;; | |
7613 | esac | |
a0da8069 NN |
7614 | ;; |
7615 | esac | |
7616 | ;; | |
7617 | esac | |
7618 | ;; | |
7619 | esac | |
1f53ca9a | 7620 | |
45055374 | 7621 | case "$target" in |
1f53ca9a AO |
7622 | x86_64-*mingw* | *-w64-mingw*) |
7623 | # MinGW-w64 does not use newlib, nor does it use winsup. It may, | |
7624 | # however, use a symlink named 'mingw' in ${prefix} . | |
7625 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include' | |
7626 | ;; | |
7627 | *-mingw*) | |
7628 | # MinGW can't be handled as Cygwin above since it does not use newlib. | |
7629 | 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' | |
7630 | ;; | |
45055374 | 7631 | esac |
a0da8069 | 7632 | |
5fbad20a DD |
7633 | # Allow the user to override the flags for |
7634 | # our build compiler if desired. | |
c66487f8 NC |
7635 | if test x"${build}" = x"${host}" ; then |
7636 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
7637 | CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} | |
7638 | LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} | |
7639 | fi | |
5fbad20a | 7640 | |
a0da8069 NN |
7641 | # On Canadian crosses, we'll be searching the right directories for |
7642 | # the previously-installed cross compiler, so don't bother to add | |
7643 | # flags for directories within the install tree of the compiler | |
7644 | # being built; programs in there won't even run. | |
7645 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
7646 | # Search for pre-installed headers if nothing else fits. | |
bba45b8b | 7647 | 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 |
7648 | fi |
7649 | ||
7650 | if test "x${use_gnu_ld}" = x && | |
7651 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
7652 | # Arrange for us to find uninstalled linker scripts. | |
b00612cc | 7653 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld' |
a0da8069 NN |
7654 | fi |
7655 | ||
a481dbb7 DD |
7656 | # Search for other target-specific linker scripts and such. |
7657 | case "${target}" in | |
4e206d7e DB |
7658 | mep*) |
7659 | FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary" | |
7660 | ;; | |
7661 | esac | |
7662 | ||
a0da8069 | 7663 | # Makefile fragments. |
3e707e94 PB |
7664 | for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag; |
7665 | do | |
7666 | eval fragval=\$$frag | |
7667 | if test $fragval != /dev/null; then | |
7668 | eval $frag=${srcdir}/$fragval | |
7669 | fi | |
7670 | done | |
a0da8069 NN |
7671 | |
7672 | ||
7673 | ||
7674 | ||
7675 | ||
7676 | # Miscellanea: directories, flags, etc. | |
7677 | ||
7678 | ||
7679 | ||
7680 | ||
7681 | ||
7682 | ||
7683 | ||
3bbd2f8f | 7684 | |
6a9cf61e | 7685 | # Build module lists & subconfigure args. |
a0da8069 NN |
7686 | |
7687 | ||
7688 | ||
be01d343 PB |
7689 | # Host module lists & subconfigure args. |
7690 | ||
7691 | ||
7692 | ||
911e63d0 | 7693 | |
be01d343 PB |
7694 | # Target module lists & subconfigure args. |
7695 | ||
7696 | ||
7697 | ||
7698 | # Build tools. | |
7699 | ||
7700 | ||
7701 | ||
1576798e PB |
7702 | |
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
be01d343 PB |
7716 | # Generate default definitions for YACC, M4, LEX and other programs that run |
7717 | # on the build machine. These are used if the Makefile can't locate these | |
7718 | # programs in objdir. | |
7719 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
7720 | ||
7721 | for ac_prog in 'bison -y' byacc yacc | |
7722 | do | |
c6b750e1 | 7723 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7724 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7726 | $as_echo_n "checking for $ac_word... " >&6; } | |
7727 | if test "${ac_cv_prog_YACC+set}" = set; then : | |
7728 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7729 | else |
7730 | if test -n "$YACC"; then | |
7731 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7732 | else | |
c6b750e1 DJ |
7733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7734 | for as_dir in $PATH | |
7735 | do | |
7736 | IFS=$as_save_IFS | |
7737 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7738 | for ac_exec_ext in '' $ac_executable_extensions; do |
7739 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7740 | ac_cv_prog_YACC="$ac_prog" |
81ecdfbb | 7741 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7742 | break 2 |
7743 | fi | |
7744 | done | |
81ecdfbb RW |
7745 | done |
7746 | IFS=$as_save_IFS | |
c6b750e1 | 7747 | |
be01d343 PB |
7748 | fi |
7749 | fi | |
c6b750e1 | 7750 | YACC=$ac_cv_prog_YACC |
be01d343 | 7751 | if test -n "$YACC"; then |
81ecdfbb RW |
7752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 |
7753 | $as_echo "$YACC" >&6; } | |
be01d343 | 7754 | else |
81ecdfbb RW |
7755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7756 | $as_echo "no" >&6; } | |
be01d343 PB |
7757 | fi |
7758 | ||
81ecdfbb | 7759 | |
c6b750e1 | 7760 | test -n "$YACC" && break |
be01d343 PB |
7761 | done |
7762 | test -n "$YACC" || YACC="$MISSING bison -y" | |
7763 | ||
7764 | case " $build_configdirs " in | |
7765 | *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;; | |
be01d343 PB |
7766 | esac |
7767 | ||
7768 | for ac_prog in bison | |
7769 | do | |
c6b750e1 | 7770 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7771 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7773 | $as_echo_n "checking for $ac_word... " >&6; } | |
7774 | if test "${ac_cv_prog_BISON+set}" = set; then : | |
7775 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7776 | else |
7777 | if test -n "$BISON"; then | |
7778 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
7779 | else | |
c6b750e1 DJ |
7780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7781 | for as_dir in $PATH | |
7782 | do | |
7783 | IFS=$as_save_IFS | |
7784 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7785 | for ac_exec_ext in '' $ac_executable_extensions; do |
7786 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7787 | ac_cv_prog_BISON="$ac_prog" |
81ecdfbb | 7788 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7789 | break 2 |
7790 | fi | |
7791 | done | |
81ecdfbb RW |
7792 | done |
7793 | IFS=$as_save_IFS | |
c6b750e1 | 7794 | |
be01d343 PB |
7795 | fi |
7796 | fi | |
c6b750e1 | 7797 | BISON=$ac_cv_prog_BISON |
be01d343 | 7798 | if test -n "$BISON"; then |
81ecdfbb RW |
7799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 |
7800 | $as_echo "$BISON" >&6; } | |
be01d343 | 7801 | else |
81ecdfbb RW |
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7803 | $as_echo "no" >&6; } | |
be01d343 PB |
7804 | fi |
7805 | ||
81ecdfbb | 7806 | |
c6b750e1 | 7807 | test -n "$BISON" && break |
be01d343 PB |
7808 | done |
7809 | test -n "$BISON" || BISON="$MISSING bison" | |
7810 | ||
7811 | case " $build_configdirs " in | |
7812 | *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;; | |
7813 | esac | |
7814 | ||
7815 | for ac_prog in gm4 gnum4 m4 | |
7816 | do | |
c6b750e1 | 7817 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7818 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7820 | $as_echo_n "checking for $ac_word... " >&6; } | |
7821 | if test "${ac_cv_prog_M4+set}" = set; then : | |
7822 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7823 | else |
7824 | if test -n "$M4"; then | |
7825 | ac_cv_prog_M4="$M4" # Let the user override the test. | |
7826 | else | |
c6b750e1 DJ |
7827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7828 | for as_dir in $PATH | |
7829 | do | |
7830 | IFS=$as_save_IFS | |
7831 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7832 | for ac_exec_ext in '' $ac_executable_extensions; do |
7833 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7834 | ac_cv_prog_M4="$ac_prog" |
81ecdfbb | 7835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7836 | break 2 |
7837 | fi | |
7838 | done | |
81ecdfbb RW |
7839 | done |
7840 | IFS=$as_save_IFS | |
c6b750e1 | 7841 | |
be01d343 PB |
7842 | fi |
7843 | fi | |
c6b750e1 | 7844 | M4=$ac_cv_prog_M4 |
be01d343 | 7845 | if test -n "$M4"; then |
81ecdfbb RW |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5 |
7847 | $as_echo "$M4" >&6; } | |
be01d343 | 7848 | else |
81ecdfbb RW |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7850 | $as_echo "no" >&6; } | |
be01d343 PB |
7851 | fi |
7852 | ||
81ecdfbb | 7853 | |
c6b750e1 | 7854 | test -n "$M4" && break |
be01d343 PB |
7855 | done |
7856 | test -n "$M4" || M4="$MISSING m4" | |
7857 | ||
7858 | case " $build_configdirs " in | |
7859 | *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;; | |
7860 | esac | |
7861 | ||
7862 | for ac_prog in flex lex | |
7863 | do | |
c6b750e1 | 7864 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7865 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7867 | $as_echo_n "checking for $ac_word... " >&6; } | |
7868 | if test "${ac_cv_prog_LEX+set}" = set; then : | |
7869 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7870 | else |
7871 | if test -n "$LEX"; then | |
7872 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7873 | else | |
c6b750e1 DJ |
7874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7875 | for as_dir in $PATH | |
7876 | do | |
7877 | IFS=$as_save_IFS | |
7878 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7879 | for ac_exec_ext in '' $ac_executable_extensions; do |
7880 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7881 | ac_cv_prog_LEX="$ac_prog" |
81ecdfbb | 7882 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7883 | break 2 |
7884 | fi | |
7885 | done | |
81ecdfbb RW |
7886 | done |
7887 | IFS=$as_save_IFS | |
c6b750e1 | 7888 | |
be01d343 PB |
7889 | fi |
7890 | fi | |
c6b750e1 | 7891 | LEX=$ac_cv_prog_LEX |
be01d343 | 7892 | if test -n "$LEX"; then |
81ecdfbb RW |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 |
7894 | $as_echo "$LEX" >&6; } | |
be01d343 | 7895 | else |
81ecdfbb RW |
7896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7897 | $as_echo "no" >&6; } | |
be01d343 PB |
7898 | fi |
7899 | ||
81ecdfbb | 7900 | |
c6b750e1 | 7901 | test -n "$LEX" && break |
be01d343 PB |
7902 | done |
7903 | test -n "$LEX" || LEX="$MISSING flex" | |
7904 | ||
7905 | case " $build_configdirs " in | |
7906 | *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7907 | *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;; | |
7908 | esac | |
7909 | ||
7910 | for ac_prog in flex | |
7911 | do | |
c6b750e1 | 7912 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7913 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7915 | $as_echo_n "checking for $ac_word... " >&6; } | |
7916 | if test "${ac_cv_prog_FLEX+set}" = set; then : | |
7917 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7918 | else |
7919 | if test -n "$FLEX"; then | |
7920 | ac_cv_prog_FLEX="$FLEX" # Let the user override the test. | |
7921 | else | |
c6b750e1 DJ |
7922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7923 | for as_dir in $PATH | |
7924 | do | |
7925 | IFS=$as_save_IFS | |
7926 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7927 | for ac_exec_ext in '' $ac_executable_extensions; do |
7928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7929 | ac_cv_prog_FLEX="$ac_prog" |
81ecdfbb | 7930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7931 | break 2 |
7932 | fi | |
7933 | done | |
81ecdfbb RW |
7934 | done |
7935 | IFS=$as_save_IFS | |
c6b750e1 | 7936 | |
be01d343 PB |
7937 | fi |
7938 | fi | |
c6b750e1 | 7939 | FLEX=$ac_cv_prog_FLEX |
be01d343 | 7940 | if test -n "$FLEX"; then |
81ecdfbb RW |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 |
7942 | $as_echo "$FLEX" >&6; } | |
be01d343 | 7943 | else |
81ecdfbb RW |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7945 | $as_echo "no" >&6; } | |
be01d343 PB |
7946 | fi |
7947 | ||
81ecdfbb | 7948 | |
c6b750e1 | 7949 | test -n "$FLEX" && break |
be01d343 PB |
7950 | done |
7951 | test -n "$FLEX" || FLEX="$MISSING flex" | |
7952 | ||
7953 | case " $build_configdirs " in | |
7954 | *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;; | |
7955 | esac | |
7956 | ||
7957 | for ac_prog in makeinfo | |
7958 | do | |
c6b750e1 | 7959 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 7960 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7962 | $as_echo_n "checking for $ac_word... " >&6; } | |
7963 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : | |
7964 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
7965 | else |
7966 | if test -n "$MAKEINFO"; then | |
7967 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. | |
7968 | else | |
c6b750e1 DJ |
7969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7970 | for as_dir in $PATH | |
7971 | do | |
7972 | IFS=$as_save_IFS | |
7973 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
7974 | for ac_exec_ext in '' $ac_executable_extensions; do |
7975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 7976 | ac_cv_prog_MAKEINFO="$ac_prog" |
81ecdfbb | 7977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
7978 | break 2 |
7979 | fi | |
7980 | done | |
81ecdfbb RW |
7981 | done |
7982 | IFS=$as_save_IFS | |
c6b750e1 | 7983 | |
be01d343 PB |
7984 | fi |
7985 | fi | |
c6b750e1 | 7986 | MAKEINFO=$ac_cv_prog_MAKEINFO |
be01d343 | 7987 | if test -n "$MAKEINFO"; then |
81ecdfbb RW |
7988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
7989 | $as_echo "$MAKEINFO" >&6; } | |
be01d343 | 7990 | else |
81ecdfbb RW |
7991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7992 | $as_echo "no" >&6; } | |
be01d343 PB |
7993 | fi |
7994 | ||
81ecdfbb | 7995 | |
c6b750e1 | 7996 | test -n "$MAKEINFO" && break |
be01d343 PB |
7997 | done |
7998 | test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" | |
7999 | ||
8000 | case " $build_configdirs " in | |
8001 | *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; | |
8002 | *) | |
8003 | ||
10ad8ef3 | 8004 | # For an installed makeinfo, we require it to be from texinfo 4.7 or |
be01d343 PB |
8005 | # higher, else we use the "missing" dummy. |
8006 | if ${MAKEINFO} --version \ | |
10ad8ef3 | 8007 | | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then |
be01d343 PB |
8008 | : |
8009 | else | |
8010 | MAKEINFO="$MISSING makeinfo" | |
8011 | fi | |
8012 | ;; | |
8013 | ||
8014 | esac | |
a0da8069 | 8015 | |
be01d343 | 8016 | # FIXME: expect and dejagnu may become build tools? |
a0da8069 | 8017 | |
be01d343 PB |
8018 | for ac_prog in expect |
8019 | do | |
c6b750e1 | 8020 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8021 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8023 | $as_echo_n "checking for $ac_word... " >&6; } | |
8024 | if test "${ac_cv_prog_EXPECT+set}" = set; then : | |
8025 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8026 | else |
8027 | if test -n "$EXPECT"; then | |
8028 | ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test. | |
8029 | else | |
c6b750e1 DJ |
8030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8031 | for as_dir in $PATH | |
8032 | do | |
8033 | IFS=$as_save_IFS | |
8034 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8035 | for ac_exec_ext in '' $ac_executable_extensions; do |
8036 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8037 | ac_cv_prog_EXPECT="$ac_prog" |
81ecdfbb | 8038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8039 | break 2 |
8040 | fi | |
8041 | done | |
81ecdfbb RW |
8042 | done |
8043 | IFS=$as_save_IFS | |
c6b750e1 | 8044 | |
be01d343 PB |
8045 | fi |
8046 | fi | |
c6b750e1 | 8047 | EXPECT=$ac_cv_prog_EXPECT |
be01d343 | 8048 | if test -n "$EXPECT"; then |
81ecdfbb RW |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 |
8050 | $as_echo "$EXPECT" >&6; } | |
be01d343 | 8051 | else |
81ecdfbb RW |
8052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8053 | $as_echo "no" >&6; } | |
be01d343 | 8054 | fi |
a0da8069 | 8055 | |
81ecdfbb | 8056 | |
c6b750e1 | 8057 | test -n "$EXPECT" && break |
be01d343 PB |
8058 | done |
8059 | test -n "$EXPECT" || EXPECT="expect" | |
a0da8069 | 8060 | |
be01d343 PB |
8061 | case " $configdirs " in |
8062 | *" expect "*) | |
8063 | test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect' | |
8064 | ;; | |
8065 | esac | |
a0da8069 | 8066 | |
be01d343 PB |
8067 | for ac_prog in runtest |
8068 | do | |
c6b750e1 | 8069 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
be01d343 | 8070 | set dummy $ac_prog; ac_word=$2 |
81ecdfbb RW |
8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8072 | $as_echo_n "checking for $ac_word... " >&6; } | |
8073 | if test "${ac_cv_prog_RUNTEST+set}" = set; then : | |
8074 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8075 | else |
8076 | if test -n "$RUNTEST"; then | |
8077 | ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test. | |
8078 | else | |
c6b750e1 DJ |
8079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8080 | for as_dir in $PATH | |
8081 | do | |
8082 | IFS=$as_save_IFS | |
8083 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8084 | for ac_exec_ext in '' $ac_executable_extensions; do |
8085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8086 | ac_cv_prog_RUNTEST="$ac_prog" |
81ecdfbb | 8087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8088 | break 2 |
8089 | fi | |
8090 | done | |
81ecdfbb RW |
8091 | done |
8092 | IFS=$as_save_IFS | |
c6b750e1 | 8093 | |
be01d343 PB |
8094 | fi |
8095 | fi | |
c6b750e1 | 8096 | RUNTEST=$ac_cv_prog_RUNTEST |
be01d343 | 8097 | if test -n "$RUNTEST"; then |
81ecdfbb RW |
8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5 |
8099 | $as_echo "$RUNTEST" >&6; } | |
be01d343 | 8100 | else |
81ecdfbb RW |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8102 | $as_echo "no" >&6; } | |
be01d343 | 8103 | fi |
a0da8069 | 8104 | |
81ecdfbb | 8105 | |
c6b750e1 | 8106 | test -n "$RUNTEST" && break |
be01d343 PB |
8107 | done |
8108 | test -n "$RUNTEST" || RUNTEST="runtest" | |
a0da8069 | 8109 | |
be01d343 PB |
8110 | case " $configdirs " in |
8111 | *" dejagnu "*) | |
6b89cc21 | 8112 | test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest' |
be01d343 PB |
8113 | ;; |
8114 | esac | |
a0da8069 NN |
8115 | |
8116 | ||
a0da8069 | 8117 | # Host tools. |
859789af AC |
8118 | ncn_tool_prefix= |
8119 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
8120 | ncn_target_tool_prefix= | |
8121 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
8122 | ||
9a819804 AO |
8123 | |
8124 | ||
8125 | if test -n "$AR"; then | |
8126 | ac_cv_prog_AR=$AR | |
8127 | elif test -n "$ac_cv_prog_AR"; then | |
8128 | AR=$ac_cv_prog_AR | |
8129 | fi | |
8130 | ||
8131 | if test -n "$ac_cv_prog_AR"; then | |
8132 | for ncn_progname in ar; do | |
8133 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8134 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8136 | $as_echo_n "checking for $ac_word... " >&6; } | |
8137 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8138 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8139 | else |
8140 | if test -n "$AR"; then | |
8141 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8142 | else | |
8143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8144 | for as_dir in $PATH | |
8145 | do | |
8146 | IFS=$as_save_IFS | |
8147 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8148 | for ac_exec_ext in '' $ac_executable_extensions; do |
8149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8150 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8152 | break 2 |
8153 | fi | |
8154 | done | |
81ecdfbb RW |
8155 | done |
8156 | IFS=$as_save_IFS | |
9a819804 AO |
8157 | |
8158 | fi | |
8159 | fi | |
8160 | AR=$ac_cv_prog_AR | |
8161 | if test -n "$AR"; then | |
81ecdfbb RW |
8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8163 | $as_echo "$AR" >&6; } | |
9a819804 | 8164 | else |
81ecdfbb RW |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8166 | $as_echo "no" >&6; } | |
9a819804 AO |
8167 | fi |
8168 | ||
81ecdfbb | 8169 | |
9a819804 AO |
8170 | done |
8171 | fi | |
8172 | ||
8173 | for ncn_progname in ar; do | |
05cbd757 PB |
8174 | if test -n "$ncn_tool_prefix"; then |
8175 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8176 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8178 | $as_echo_n "checking for $ac_word... " >&6; } | |
8179 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8180 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8181 | else |
8182 | if test -n "$AR"; then | |
8183 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8184 | else | |
c6b750e1 DJ |
8185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8186 | for as_dir in $PATH | |
8187 | do | |
8188 | IFS=$as_save_IFS | |
8189 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8190 | for ac_exec_ext in '' $ac_executable_extensions; do |
8191 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8192 | ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8194 | break 2 |
8195 | fi | |
8196 | done | |
81ecdfbb RW |
8197 | done |
8198 | IFS=$as_save_IFS | |
c6b750e1 | 8199 | |
859789af AC |
8200 | fi |
8201 | fi | |
c6b750e1 | 8202 | AR=$ac_cv_prog_AR |
859789af | 8203 | if test -n "$AR"; then |
81ecdfbb RW |
8204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8205 | $as_echo "$AR" >&6; } | |
859789af | 8206 | else |
81ecdfbb RW |
8207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8208 | $as_echo "no" >&6; } | |
859789af AC |
8209 | fi |
8210 | ||
81ecdfbb | 8211 | |
05cbd757 PB |
8212 | fi |
8213 | if test -z "$ac_cv_prog_AR" && test $build = $host ; then | |
8214 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8215 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8217 | $as_echo_n "checking for $ac_word... " >&6; } | |
8218 | if test "${ac_cv_prog_AR+set}" = set; then : | |
8219 | $as_echo_n "(cached) " >&6 | |
859789af | 8220 | else |
05cbd757 PB |
8221 | if test -n "$AR"; then |
8222 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
859789af | 8223 | else |
c6b750e1 DJ |
8224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8225 | for as_dir in $PATH | |
8226 | do | |
8227 | IFS=$as_save_IFS | |
8228 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8229 | for ac_exec_ext in '' $ac_executable_extensions; do |
8230 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8231 | ac_cv_prog_AR="${ncn_progname}" |
81ecdfbb | 8232 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8233 | break 2 |
8234 | fi | |
8235 | done | |
81ecdfbb RW |
8236 | done |
8237 | IFS=$as_save_IFS | |
c6b750e1 | 8238 | |
859789af AC |
8239 | fi |
8240 | fi | |
c6b750e1 | 8241 | AR=$ac_cv_prog_AR |
05cbd757 | 8242 | if test -n "$AR"; then |
81ecdfbb RW |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
8244 | $as_echo "$AR" >&6; } | |
859789af | 8245 | else |
81ecdfbb RW |
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8247 | $as_echo "no" >&6; } | |
859789af | 8248 | fi |
c6b750e1 | 8249 | |
81ecdfbb | 8250 | |
05cbd757 PB |
8251 | fi |
8252 | test -n "$ac_cv_prog_AR" && break | |
8253 | done | |
8254 | ||
8255 | if test -z "$ac_cv_prog_AR" ; then | |
8256 | set dummy ar | |
8257 | if test $build = $host ; then | |
8258 | AR="$2" | |
859789af | 8259 | else |
05cbd757 | 8260 | AR="${ncn_tool_prefix}$2" |
859789af | 8261 | fi |
859789af AC |
8262 | fi |
8263 | ||
9a819804 AO |
8264 | |
8265 | ||
8266 | if test -n "$AS"; then | |
8267 | ac_cv_prog_AS=$AS | |
8268 | elif test -n "$ac_cv_prog_AS"; then | |
8269 | AS=$ac_cv_prog_AS | |
8270 | fi | |
8271 | ||
8272 | if test -n "$ac_cv_prog_AS"; then | |
8273 | for ncn_progname in as; do | |
8274 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8275 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8277 | $as_echo_n "checking for $ac_word... " >&6; } | |
8278 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8279 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8280 | else |
8281 | if test -n "$AS"; then | |
8282 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
8283 | else | |
8284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8285 | for as_dir in $PATH | |
8286 | do | |
8287 | IFS=$as_save_IFS | |
8288 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8289 | for ac_exec_ext in '' $ac_executable_extensions; do |
8290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8291 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8293 | break 2 |
8294 | fi | |
8295 | done | |
81ecdfbb RW |
8296 | done |
8297 | IFS=$as_save_IFS | |
9a819804 AO |
8298 | |
8299 | fi | |
8300 | fi | |
8301 | AS=$ac_cv_prog_AS | |
8302 | if test -n "$AS"; then | |
81ecdfbb RW |
8303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8304 | $as_echo "$AS" >&6; } | |
9a819804 | 8305 | else |
81ecdfbb RW |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8307 | $as_echo "no" >&6; } | |
9a819804 AO |
8308 | fi |
8309 | ||
81ecdfbb | 8310 | |
9a819804 AO |
8311 | done |
8312 | fi | |
8313 | ||
8314 | for ncn_progname in as; do | |
05cbd757 PB |
8315 | if test -n "$ncn_tool_prefix"; then |
8316 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8317 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8319 | $as_echo_n "checking for $ac_word... " >&6; } | |
8320 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8321 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8322 | else |
8323 | if test -n "$AS"; then | |
8324 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
c6b750e1 DJ |
8325 | else |
8326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8327 | for as_dir in $PATH | |
8328 | do | |
8329 | IFS=$as_save_IFS | |
8330 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8331 | for ac_exec_ext in '' $ac_executable_extensions; do |
8332 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8333 | ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8334 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8335 | break 2 |
8336 | fi | |
8337 | done | |
81ecdfbb RW |
8338 | done |
8339 | IFS=$as_save_IFS | |
c6b750e1 | 8340 | |
859789af AC |
8341 | fi |
8342 | fi | |
c6b750e1 | 8343 | AS=$ac_cv_prog_AS |
859789af | 8344 | if test -n "$AS"; then |
81ecdfbb RW |
8345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8346 | $as_echo "$AS" >&6; } | |
859789af | 8347 | else |
81ecdfbb RW |
8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8349 | $as_echo "no" >&6; } | |
859789af AC |
8350 | fi |
8351 | ||
81ecdfbb | 8352 | |
05cbd757 PB |
8353 | fi |
8354 | if test -z "$ac_cv_prog_AS" && test $build = $host ; then | |
8355 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8356 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8358 | $as_echo_n "checking for $ac_word... " >&6; } | |
8359 | if test "${ac_cv_prog_AS+set}" = set; then : | |
8360 | $as_echo_n "(cached) " >&6 | |
859789af | 8361 | else |
05cbd757 PB |
8362 | if test -n "$AS"; then |
8363 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
859789af | 8364 | else |
c6b750e1 DJ |
8365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8366 | for as_dir in $PATH | |
8367 | do | |
8368 | IFS=$as_save_IFS | |
8369 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8370 | for ac_exec_ext in '' $ac_executable_extensions; do |
8371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8372 | ac_cv_prog_AS="${ncn_progname}" |
81ecdfbb | 8373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8374 | break 2 |
8375 | fi | |
8376 | done | |
81ecdfbb RW |
8377 | done |
8378 | IFS=$as_save_IFS | |
c6b750e1 | 8379 | |
859789af AC |
8380 | fi |
8381 | fi | |
c6b750e1 | 8382 | AS=$ac_cv_prog_AS |
05cbd757 | 8383 | if test -n "$AS"; then |
81ecdfbb RW |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
8385 | $as_echo "$AS" >&6; } | |
859789af | 8386 | else |
81ecdfbb RW |
8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8388 | $as_echo "no" >&6; } | |
859789af | 8389 | fi |
c6b750e1 | 8390 | |
81ecdfbb | 8391 | |
05cbd757 PB |
8392 | fi |
8393 | test -n "$ac_cv_prog_AS" && break | |
8394 | done | |
8395 | ||
8396 | if test -z "$ac_cv_prog_AS" ; then | |
8397 | set dummy as | |
8398 | if test $build = $host ; then | |
8399 | AS="$2" | |
859789af | 8400 | else |
05cbd757 | 8401 | AS="${ncn_tool_prefix}$2" |
859789af | 8402 | fi |
859789af AC |
8403 | fi |
8404 | ||
9a819804 AO |
8405 | |
8406 | ||
8407 | if test -n "$DLLTOOL"; then | |
8408 | ac_cv_prog_DLLTOOL=$DLLTOOL | |
8409 | elif test -n "$ac_cv_prog_DLLTOOL"; then | |
8410 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8411 | fi | |
8412 | ||
8413 | if test -n "$ac_cv_prog_DLLTOOL"; then | |
8414 | for ncn_progname in dlltool; do | |
8415 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8416 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8418 | $as_echo_n "checking for $ac_word... " >&6; } | |
8419 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8420 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8421 | else |
8422 | if test -n "$DLLTOOL"; then | |
8423 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8424 | else | |
8425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8426 | for as_dir in $PATH | |
8427 | do | |
8428 | IFS=$as_save_IFS | |
8429 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8430 | for ac_exec_ext in '' $ac_executable_extensions; do |
8431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8432 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8434 | break 2 |
8435 | fi | |
8436 | done | |
81ecdfbb RW |
8437 | done |
8438 | IFS=$as_save_IFS | |
9a819804 AO |
8439 | |
8440 | fi | |
8441 | fi | |
8442 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
8443 | if test -n "$DLLTOOL"; then | |
81ecdfbb RW |
8444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8445 | $as_echo "$DLLTOOL" >&6; } | |
9a819804 | 8446 | else |
81ecdfbb RW |
8447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8448 | $as_echo "no" >&6; } | |
9a819804 AO |
8449 | fi |
8450 | ||
81ecdfbb | 8451 | |
9a819804 AO |
8452 | done |
8453 | fi | |
8454 | ||
8455 | for ncn_progname in dlltool; do | |
05cbd757 PB |
8456 | if test -n "$ncn_tool_prefix"; then |
8457 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8458 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8460 | $as_echo_n "checking for $ac_word... " >&6; } | |
8461 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8462 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8463 | else |
8464 | if test -n "$DLLTOOL"; then | |
8465 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8466 | else | |
c6b750e1 DJ |
8467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8468 | for as_dir in $PATH | |
8469 | do | |
8470 | IFS=$as_save_IFS | |
8471 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8472 | for ac_exec_ext in '' $ac_executable_extensions; do |
8473 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8474 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8475 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8476 | break 2 |
8477 | fi | |
8478 | done | |
81ecdfbb RW |
8479 | done |
8480 | IFS=$as_save_IFS | |
c6b750e1 | 8481 | |
859789af AC |
8482 | fi |
8483 | fi | |
c6b750e1 | 8484 | DLLTOOL=$ac_cv_prog_DLLTOOL |
859789af | 8485 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8487 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8488 | else |
81ecdfbb RW |
8489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8490 | $as_echo "no" >&6; } | |
859789af AC |
8491 | fi |
8492 | ||
81ecdfbb | 8493 | |
05cbd757 PB |
8494 | fi |
8495 | if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then | |
8496 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8497 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8499 | $as_echo_n "checking for $ac_word... " >&6; } | |
8500 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then : | |
8501 | $as_echo_n "(cached) " >&6 | |
859789af | 8502 | else |
05cbd757 PB |
8503 | if test -n "$DLLTOOL"; then |
8504 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
859789af | 8505 | else |
c6b750e1 DJ |
8506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8507 | for as_dir in $PATH | |
8508 | do | |
8509 | IFS=$as_save_IFS | |
8510 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8511 | for ac_exec_ext in '' $ac_executable_extensions; do |
8512 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8513 | ac_cv_prog_DLLTOOL="${ncn_progname}" |
81ecdfbb | 8514 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8515 | break 2 |
8516 | fi | |
8517 | done | |
81ecdfbb RW |
8518 | done |
8519 | IFS=$as_save_IFS | |
c6b750e1 | 8520 | |
859789af AC |
8521 | fi |
8522 | fi | |
c6b750e1 | 8523 | DLLTOOL=$ac_cv_prog_DLLTOOL |
05cbd757 | 8524 | if test -n "$DLLTOOL"; then |
81ecdfbb RW |
8525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
8526 | $as_echo "$DLLTOOL" >&6; } | |
859789af | 8527 | else |
81ecdfbb RW |
8528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8529 | $as_echo "no" >&6; } | |
859789af | 8530 | fi |
c6b750e1 | 8531 | |
81ecdfbb | 8532 | |
05cbd757 PB |
8533 | fi |
8534 | test -n "$ac_cv_prog_DLLTOOL" && break | |
8535 | done | |
8536 | ||
8537 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
8538 | set dummy dlltool | |
8539 | if test $build = $host ; then | |
8540 | DLLTOOL="$2" | |
859789af | 8541 | else |
05cbd757 | 8542 | DLLTOOL="${ncn_tool_prefix}$2" |
859789af | 8543 | fi |
859789af AC |
8544 | fi |
8545 | ||
9a819804 AO |
8546 | |
8547 | ||
8548 | if test -n "$LD"; then | |
8549 | ac_cv_prog_LD=$LD | |
8550 | elif test -n "$ac_cv_prog_LD"; then | |
8551 | LD=$ac_cv_prog_LD | |
8552 | fi | |
8553 | ||
8554 | if test -n "$ac_cv_prog_LD"; then | |
8555 | for ncn_progname in ld; do | |
8556 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8557 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8559 | $as_echo_n "checking for $ac_word... " >&6; } | |
8560 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8561 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8562 | else |
8563 | if test -n "$LD"; then | |
8564 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8565 | else | |
8566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8567 | for as_dir in $PATH | |
8568 | do | |
8569 | IFS=$as_save_IFS | |
8570 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8571 | for ac_exec_ext in '' $ac_executable_extensions; do |
8572 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8573 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8574 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8575 | break 2 |
8576 | fi | |
8577 | done | |
81ecdfbb RW |
8578 | done |
8579 | IFS=$as_save_IFS | |
9a819804 AO |
8580 | |
8581 | fi | |
8582 | fi | |
8583 | LD=$ac_cv_prog_LD | |
8584 | if test -n "$LD"; then | |
81ecdfbb RW |
8585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8586 | $as_echo "$LD" >&6; } | |
9a819804 | 8587 | else |
81ecdfbb RW |
8588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8589 | $as_echo "no" >&6; } | |
9a819804 AO |
8590 | fi |
8591 | ||
81ecdfbb | 8592 | |
9a819804 AO |
8593 | done |
8594 | fi | |
8595 | ||
8596 | for ncn_progname in ld; do | |
05cbd757 PB |
8597 | if test -n "$ncn_tool_prefix"; then |
8598 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8599 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8601 | $as_echo_n "checking for $ac_word... " >&6; } | |
8602 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8603 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8604 | else |
8605 | if test -n "$LD"; then | |
8606 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
8607 | else | |
c6b750e1 DJ |
8608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8609 | for as_dir in $PATH | |
8610 | do | |
8611 | IFS=$as_save_IFS | |
8612 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8613 | for ac_exec_ext in '' $ac_executable_extensions; do |
8614 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8615 | ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8616 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8617 | break 2 |
8618 | fi | |
8619 | done | |
81ecdfbb RW |
8620 | done |
8621 | IFS=$as_save_IFS | |
c6b750e1 | 8622 | |
859789af AC |
8623 | fi |
8624 | fi | |
c6b750e1 | 8625 | LD=$ac_cv_prog_LD |
859789af | 8626 | if test -n "$LD"; then |
81ecdfbb RW |
8627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8628 | $as_echo "$LD" >&6; } | |
859789af | 8629 | else |
81ecdfbb RW |
8630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8631 | $as_echo "no" >&6; } | |
859789af AC |
8632 | fi |
8633 | ||
81ecdfbb | 8634 | |
05cbd757 PB |
8635 | fi |
8636 | if test -z "$ac_cv_prog_LD" && test $build = $host ; then | |
8637 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8638 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8640 | $as_echo_n "checking for $ac_word... " >&6; } | |
8641 | if test "${ac_cv_prog_LD+set}" = set; then : | |
8642 | $as_echo_n "(cached) " >&6 | |
859789af | 8643 | else |
05cbd757 PB |
8644 | if test -n "$LD"; then |
8645 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
376a0e54 | 8646 | else |
c6b750e1 DJ |
8647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8648 | for as_dir in $PATH | |
8649 | do | |
8650 | IFS=$as_save_IFS | |
8651 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8652 | for ac_exec_ext in '' $ac_executable_extensions; do |
8653 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8654 | ac_cv_prog_LD="${ncn_progname}" |
81ecdfbb | 8655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8656 | break 2 |
8657 | fi | |
8658 | done | |
81ecdfbb RW |
8659 | done |
8660 | IFS=$as_save_IFS | |
c6b750e1 | 8661 | |
859789af AC |
8662 | fi |
8663 | fi | |
c6b750e1 | 8664 | LD=$ac_cv_prog_LD |
05cbd757 | 8665 | if test -n "$LD"; then |
81ecdfbb RW |
8666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8667 | $as_echo "$LD" >&6; } | |
859789af | 8668 | else |
81ecdfbb RW |
8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8670 | $as_echo "no" >&6; } | |
859789af | 8671 | fi |
c6b750e1 | 8672 | |
81ecdfbb | 8673 | |
05cbd757 PB |
8674 | fi |
8675 | test -n "$ac_cv_prog_LD" && break | |
8676 | done | |
8677 | ||
8678 | if test -z "$ac_cv_prog_LD" ; then | |
8679 | set dummy ld | |
8680 | if test $build = $host ; then | |
8681 | LD="$2" | |
859789af | 8682 | else |
05cbd757 | 8683 | LD="${ncn_tool_prefix}$2" |
859789af | 8684 | fi |
859789af AC |
8685 | fi |
8686 | ||
9a819804 AO |
8687 | |
8688 | ||
8689 | if test -n "$LIPO"; then | |
8690 | ac_cv_prog_LIPO=$LIPO | |
8691 | elif test -n "$ac_cv_prog_LIPO"; then | |
8692 | LIPO=$ac_cv_prog_LIPO | |
8693 | fi | |
8694 | ||
8695 | if test -n "$ac_cv_prog_LIPO"; then | |
8696 | for ncn_progname in lipo; do | |
8697 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8698 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8700 | $as_echo_n "checking for $ac_word... " >&6; } | |
8701 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8702 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8703 | else |
8704 | if test -n "$LIPO"; then | |
8705 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8706 | else | |
8707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8708 | for as_dir in $PATH | |
8709 | do | |
8710 | IFS=$as_save_IFS | |
8711 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8712 | for ac_exec_ext in '' $ac_executable_extensions; do |
8713 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8714 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8715 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8716 | break 2 |
8717 | fi | |
8718 | done | |
81ecdfbb RW |
8719 | done |
8720 | IFS=$as_save_IFS | |
9a819804 AO |
8721 | |
8722 | fi | |
8723 | fi | |
8724 | LIPO=$ac_cv_prog_LIPO | |
8725 | if test -n "$LIPO"; then | |
81ecdfbb RW |
8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8727 | $as_echo "$LIPO" >&6; } | |
9a819804 | 8728 | else |
81ecdfbb RW |
8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8730 | $as_echo "no" >&6; } | |
9a819804 AO |
8731 | fi |
8732 | ||
81ecdfbb | 8733 | |
9a819804 AO |
8734 | done |
8735 | fi | |
8736 | ||
8737 | for ncn_progname in lipo; do | |
be01d343 PB |
8738 | if test -n "$ncn_tool_prefix"; then |
8739 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8740 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8742 | $as_echo_n "checking for $ac_word... " >&6; } | |
8743 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8744 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8745 | else |
8746 | if test -n "$LIPO"; then | |
8747 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8748 | else | |
c6b750e1 DJ |
8749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8750 | for as_dir in $PATH | |
8751 | do | |
8752 | IFS=$as_save_IFS | |
8753 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8754 | for ac_exec_ext in '' $ac_executable_extensions; do |
8755 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8756 | ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8757 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8758 | break 2 |
8759 | fi | |
8760 | done | |
81ecdfbb RW |
8761 | done |
8762 | IFS=$as_save_IFS | |
c6b750e1 | 8763 | |
be01d343 PB |
8764 | fi |
8765 | fi | |
c6b750e1 | 8766 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8767 | if test -n "$LIPO"; then |
81ecdfbb RW |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8769 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8770 | else |
81ecdfbb RW |
8771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8772 | $as_echo "no" >&6; } | |
be01d343 PB |
8773 | fi |
8774 | ||
81ecdfbb | 8775 | |
be01d343 PB |
8776 | fi |
8777 | if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then | |
8778 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8779 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8781 | $as_echo_n "checking for $ac_word... " >&6; } | |
8782 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
8783 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
8784 | else |
8785 | if test -n "$LIPO"; then | |
8786 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
8787 | else | |
c6b750e1 DJ |
8788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8789 | for as_dir in $PATH | |
8790 | do | |
8791 | IFS=$as_save_IFS | |
8792 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8793 | for ac_exec_ext in '' $ac_executable_extensions; do |
8794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 8795 | ac_cv_prog_LIPO="${ncn_progname}" |
81ecdfbb | 8796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8797 | break 2 |
8798 | fi | |
8799 | done | |
81ecdfbb RW |
8800 | done |
8801 | IFS=$as_save_IFS | |
c6b750e1 | 8802 | |
be01d343 PB |
8803 | fi |
8804 | fi | |
c6b750e1 | 8805 | LIPO=$ac_cv_prog_LIPO |
be01d343 | 8806 | if test -n "$LIPO"; then |
81ecdfbb RW |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8808 | $as_echo "$LIPO" >&6; } | |
be01d343 | 8809 | else |
81ecdfbb RW |
8810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8811 | $as_echo "no" >&6; } | |
be01d343 | 8812 | fi |
c6b750e1 | 8813 | |
81ecdfbb | 8814 | |
be01d343 PB |
8815 | fi |
8816 | test -n "$ac_cv_prog_LIPO" && break | |
8817 | done | |
8818 | ||
8819 | if test -z "$ac_cv_prog_LIPO" ; then | |
8820 | set dummy lipo | |
8821 | if test $build = $host ; then | |
8822 | LIPO="$2" | |
8823 | else | |
8824 | LIPO="${ncn_tool_prefix}$2" | |
8825 | fi | |
8826 | fi | |
8827 | ||
9a819804 AO |
8828 | |
8829 | ||
8830 | if test -n "$NM"; then | |
8831 | ac_cv_prog_NM=$NM | |
8832 | elif test -n "$ac_cv_prog_NM"; then | |
8833 | NM=$ac_cv_prog_NM | |
8834 | fi | |
8835 | ||
8836 | if test -n "$ac_cv_prog_NM"; then | |
8837 | for ncn_progname in nm; do | |
8838 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8839 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8841 | $as_echo_n "checking for $ac_word... " >&6; } | |
8842 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8843 | $as_echo_n "(cached) " >&6 | |
859789af AC |
8844 | else |
8845 | if test -n "$NM"; then | |
8846 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8847 | else | |
c6b750e1 DJ |
8848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8849 | for as_dir in $PATH | |
8850 | do | |
8851 | IFS=$as_save_IFS | |
8852 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8853 | for ac_exec_ext in '' $ac_executable_extensions; do |
8854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8855 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8857 | break 2 |
8858 | fi | |
8859 | done | |
81ecdfbb RW |
8860 | done |
8861 | IFS=$as_save_IFS | |
c6b750e1 | 8862 | |
859789af AC |
8863 | fi |
8864 | fi | |
c6b750e1 | 8865 | NM=$ac_cv_prog_NM |
859789af | 8866 | if test -n "$NM"; then |
81ecdfbb RW |
8867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8868 | $as_echo "$NM" >&6; } | |
859789af | 8869 | else |
81ecdfbb RW |
8870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8871 | $as_echo "no" >&6; } | |
859789af AC |
8872 | fi |
8873 | ||
81ecdfbb | 8874 | |
9a819804 AO |
8875 | done |
8876 | fi | |
8877 | ||
8878 | for ncn_progname in nm; do | |
8879 | if test -n "$ncn_tool_prefix"; then | |
8880 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
8881 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8883 | $as_echo_n "checking for $ac_word... " >&6; } | |
8884 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8885 | $as_echo_n "(cached) " >&6 | |
859789af | 8886 | else |
05cbd757 PB |
8887 | if test -n "$NM"; then |
8888 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
859789af | 8889 | else |
c6b750e1 DJ |
8890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8891 | for as_dir in $PATH | |
8892 | do | |
8893 | IFS=$as_save_IFS | |
8894 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8895 | for ac_exec_ext in '' $ac_executable_extensions; do |
8896 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8897 | ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 8898 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
8899 | break 2 |
8900 | fi | |
8901 | done | |
81ecdfbb RW |
8902 | done |
8903 | IFS=$as_save_IFS | |
c6b750e1 | 8904 | |
859789af AC |
8905 | fi |
8906 | fi | |
c6b750e1 | 8907 | NM=$ac_cv_prog_NM |
05cbd757 | 8908 | if test -n "$NM"; then |
81ecdfbb RW |
8909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8910 | $as_echo "$NM" >&6; } | |
859789af | 8911 | else |
81ecdfbb RW |
8912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8913 | $as_echo "no" >&6; } | |
859789af | 8914 | fi |
c6b750e1 | 8915 | |
81ecdfbb | 8916 | |
05cbd757 | 8917 | fi |
9a819804 AO |
8918 | if test -z "$ac_cv_prog_NM" && test $build = $host ; then |
8919 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8920 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8922 | $as_echo_n "checking for $ac_word... " >&6; } | |
8923 | if test "${ac_cv_prog_NM+set}" = set; then : | |
8924 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8925 | else |
8926 | if test -n "$NM"; then | |
8927 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
8928 | else | |
8929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8930 | for as_dir in $PATH | |
8931 | do | |
8932 | IFS=$as_save_IFS | |
8933 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8934 | for ac_exec_ext in '' $ac_executable_extensions; do |
8935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8936 | ac_cv_prog_NM="${ncn_progname}" |
81ecdfbb | 8937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8938 | break 2 |
8939 | fi | |
8940 | done | |
81ecdfbb RW |
8941 | done |
8942 | IFS=$as_save_IFS | |
9a819804 AO |
8943 | |
8944 | fi | |
8945 | fi | |
8946 | NM=$ac_cv_prog_NM | |
8947 | if test -n "$NM"; then | |
81ecdfbb RW |
8948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
8949 | $as_echo "$NM" >&6; } | |
9a819804 | 8950 | else |
81ecdfbb RW |
8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8952 | $as_echo "no" >&6; } | |
9a819804 AO |
8953 | fi |
8954 | ||
81ecdfbb | 8955 | |
9a819804 AO |
8956 | fi |
8957 | test -n "$ac_cv_prog_NM" && break | |
8958 | done | |
8959 | ||
8960 | if test -z "$ac_cv_prog_NM" ; then | |
8961 | set dummy nm | |
8962 | if test $build = $host ; then | |
8963 | NM="$2" | |
8964 | else | |
8965 | NM="${ncn_tool_prefix}$2" | |
8966 | fi | |
8967 | fi | |
8968 | ||
8969 | ||
8970 | ||
8971 | if test -n "$RANLIB"; then | |
8972 | ac_cv_prog_RANLIB=$RANLIB | |
8973 | elif test -n "$ac_cv_prog_RANLIB"; then | |
8974 | RANLIB=$ac_cv_prog_RANLIB | |
8975 | fi | |
8976 | ||
8977 | if test -n "$ac_cv_prog_RANLIB"; then | |
8978 | for ncn_progname in ranlib; do | |
8979 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
8980 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
8981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8982 | $as_echo_n "checking for $ac_word... " >&6; } | |
8983 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
8984 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
8985 | else |
8986 | if test -n "$RANLIB"; then | |
8987 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8988 | else | |
8989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8990 | for as_dir in $PATH | |
8991 | do | |
8992 | IFS=$as_save_IFS | |
8993 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
8994 | for ac_exec_ext in '' $ac_executable_extensions; do |
8995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 8996 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 8997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
8998 | break 2 |
8999 | fi | |
9000 | done | |
81ecdfbb RW |
9001 | done |
9002 | IFS=$as_save_IFS | |
9a819804 AO |
9003 | |
9004 | fi | |
9005 | fi | |
9006 | RANLIB=$ac_cv_prog_RANLIB | |
9007 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
9008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9009 | $as_echo "$RANLIB" >&6; } | |
9a819804 | 9010 | else |
81ecdfbb RW |
9011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9012 | $as_echo "no" >&6; } | |
9a819804 AO |
9013 | fi |
9014 | ||
81ecdfbb | 9015 | |
9a819804 AO |
9016 | done |
9017 | fi | |
859789af | 9018 | |
9a819804 | 9019 | for ncn_progname in ranlib; do |
05cbd757 PB |
9020 | if test -n "$ncn_tool_prefix"; then |
9021 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9022 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9024 | $as_echo_n "checking for $ac_word... " >&6; } | |
9025 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
9026 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9027 | else |
9028 | if test -n "$RANLIB"; then | |
9029 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9030 | else | |
c6b750e1 DJ |
9031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9032 | for as_dir in $PATH | |
9033 | do | |
9034 | IFS=$as_save_IFS | |
9035 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9036 | for ac_exec_ext in '' $ac_executable_extensions; do |
9037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9038 | ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9040 | break 2 |
9041 | fi | |
9042 | done | |
81ecdfbb RW |
9043 | done |
9044 | IFS=$as_save_IFS | |
c6b750e1 | 9045 | |
859789af AC |
9046 | fi |
9047 | fi | |
c6b750e1 | 9048 | RANLIB=$ac_cv_prog_RANLIB |
859789af | 9049 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9051 | $as_echo "$RANLIB" >&6; } | |
859789af | 9052 | else |
81ecdfbb RW |
9053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9054 | $as_echo "no" >&6; } | |
859789af AC |
9055 | fi |
9056 | ||
81ecdfbb | 9057 | |
05cbd757 PB |
9058 | fi |
9059 | if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then | |
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_RANLIB+set}" = set; then : | |
9065 | $as_echo_n "(cached) " >&6 | |
859789af | 9066 | else |
05cbd757 PB |
9067 | if test -n "$RANLIB"; then |
9068 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
859789af | 9069 | else |
c6b750e1 DJ |
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 | |
c6b750e1 | 9077 | ac_cv_prog_RANLIB="${ncn_progname}" |
81ecdfbb | 9078 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9079 | break 2 |
9080 | fi | |
9081 | done | |
81ecdfbb RW |
9082 | done |
9083 | IFS=$as_save_IFS | |
c6b750e1 | 9084 | |
859789af AC |
9085 | fi |
9086 | fi | |
c6b750e1 | 9087 | RANLIB=$ac_cv_prog_RANLIB |
05cbd757 | 9088 | if test -n "$RANLIB"; then |
81ecdfbb RW |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
9090 | $as_echo "$RANLIB" >&6; } | |
859789af | 9091 | else |
81ecdfbb RW |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9093 | $as_echo "no" >&6; } | |
859789af | 9094 | fi |
c6b750e1 | 9095 | |
81ecdfbb | 9096 | |
859789af | 9097 | fi |
05cbd757 PB |
9098 | test -n "$ac_cv_prog_RANLIB" && break |
9099 | done | |
9100 | ||
9101 | if test -z "$ac_cv_prog_RANLIB" ; then | |
ba98da75 | 9102 | RANLIB="true" |
859789af AC |
9103 | fi |
9104 | ||
9a819804 AO |
9105 | |
9106 | ||
9107 | if test -n "$STRIP"; then | |
9108 | ac_cv_prog_STRIP=$STRIP | |
9109 | elif test -n "$ac_cv_prog_STRIP"; then | |
9110 | STRIP=$ac_cv_prog_STRIP | |
9111 | fi | |
9112 | ||
9113 | if test -n "$ac_cv_prog_STRIP"; then | |
9114 | for ncn_progname in strip; do | |
9115 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9116 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9118 | $as_echo_n "checking for $ac_word... " >&6; } | |
9119 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9120 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9121 | else |
9122 | if test -n "$STRIP"; then | |
9123 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9124 | else | |
9125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9126 | for as_dir in $PATH | |
9127 | do | |
9128 | IFS=$as_save_IFS | |
9129 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9130 | for ac_exec_ext in '' $ac_executable_extensions; do |
9131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9132 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9134 | break 2 |
9135 | fi | |
9136 | done | |
81ecdfbb RW |
9137 | done |
9138 | IFS=$as_save_IFS | |
9a819804 AO |
9139 | |
9140 | fi | |
9141 | fi | |
9142 | STRIP=$ac_cv_prog_STRIP | |
9143 | if test -n "$STRIP"; then | |
81ecdfbb RW |
9144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9145 | $as_echo "$STRIP" >&6; } | |
9a819804 | 9146 | else |
81ecdfbb RW |
9147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9148 | $as_echo "no" >&6; } | |
9a819804 AO |
9149 | fi |
9150 | ||
81ecdfbb | 9151 | |
9a819804 AO |
9152 | done |
9153 | fi | |
9154 | ||
9155 | for ncn_progname in strip; do | |
be01d343 PB |
9156 | if test -n "$ncn_tool_prefix"; then |
9157 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9158 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9160 | $as_echo_n "checking for $ac_word... " >&6; } | |
9161 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
9162 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9163 | else |
9164 | if test -n "$STRIP"; then | |
9165 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9166 | else | |
c6b750e1 DJ |
9167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9168 | for as_dir in $PATH | |
9169 | do | |
9170 | IFS=$as_save_IFS | |
9171 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9172 | for ac_exec_ext in '' $ac_executable_extensions; do |
9173 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9174 | ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9175 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9176 | break 2 |
9177 | fi | |
9178 | done | |
81ecdfbb RW |
9179 | done |
9180 | IFS=$as_save_IFS | |
c6b750e1 | 9181 | |
be01d343 PB |
9182 | fi |
9183 | fi | |
c6b750e1 | 9184 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9185 | if test -n "$STRIP"; then |
81ecdfbb RW |
9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9187 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9188 | else |
81ecdfbb RW |
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9190 | $as_echo "no" >&6; } | |
be01d343 PB |
9191 | fi |
9192 | ||
81ecdfbb | 9193 | |
be01d343 PB |
9194 | fi |
9195 | if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then | |
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_STRIP+set}" = set; then : | |
9201 | $as_echo_n "(cached) " >&6 | |
be01d343 PB |
9202 | else |
9203 | if test -n "$STRIP"; then | |
9204 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9205 | else | |
c6b750e1 DJ |
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 | |
c6b750e1 | 9213 | ac_cv_prog_STRIP="${ncn_progname}" |
81ecdfbb | 9214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9215 | break 2 |
9216 | fi | |
9217 | done | |
81ecdfbb RW |
9218 | done |
9219 | IFS=$as_save_IFS | |
c6b750e1 | 9220 | |
be01d343 PB |
9221 | fi |
9222 | fi | |
c6b750e1 | 9223 | STRIP=$ac_cv_prog_STRIP |
be01d343 | 9224 | if test -n "$STRIP"; then |
81ecdfbb RW |
9225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
9226 | $as_echo "$STRIP" >&6; } | |
be01d343 | 9227 | else |
81ecdfbb RW |
9228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9229 | $as_echo "no" >&6; } | |
be01d343 | 9230 | fi |
c6b750e1 | 9231 | |
81ecdfbb | 9232 | |
be01d343 PB |
9233 | fi |
9234 | test -n "$ac_cv_prog_STRIP" && break | |
9235 | done | |
9236 | ||
9237 | if test -z "$ac_cv_prog_STRIP" ; then | |
ba98da75 | 9238 | STRIP="true" |
be01d343 PB |
9239 | fi |
9240 | ||
9a819804 AO |
9241 | |
9242 | ||
9243 | if test -n "$WINDRES"; then | |
9244 | ac_cv_prog_WINDRES=$WINDRES | |
9245 | elif test -n "$ac_cv_prog_WINDRES"; then | |
9246 | WINDRES=$ac_cv_prog_WINDRES | |
9247 | fi | |
9248 | ||
9249 | if test -n "$ac_cv_prog_WINDRES"; then | |
9250 | for ncn_progname in windres; do | |
9251 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9252 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9254 | $as_echo_n "checking for $ac_word... " >&6; } | |
9255 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9256 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9257 | else |
9258 | if test -n "$WINDRES"; then | |
9259 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9260 | else | |
9261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9262 | for as_dir in $PATH | |
9263 | do | |
9264 | IFS=$as_save_IFS | |
9265 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9266 | for ac_exec_ext in '' $ac_executable_extensions; do |
9267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9268 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9270 | break 2 |
9271 | fi | |
9272 | done | |
81ecdfbb RW |
9273 | done |
9274 | IFS=$as_save_IFS | |
9a819804 AO |
9275 | |
9276 | fi | |
9277 | fi | |
9278 | WINDRES=$ac_cv_prog_WINDRES | |
9279 | if test -n "$WINDRES"; then | |
81ecdfbb RW |
9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9281 | $as_echo "$WINDRES" >&6; } | |
9a819804 | 9282 | else |
81ecdfbb RW |
9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9284 | $as_echo "no" >&6; } | |
9a819804 AO |
9285 | fi |
9286 | ||
81ecdfbb | 9287 | |
9a819804 AO |
9288 | done |
9289 | fi | |
9290 | ||
9291 | for ncn_progname in windres; do | |
05cbd757 PB |
9292 | if test -n "$ncn_tool_prefix"; then |
9293 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9294 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9295 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9296 | $as_echo_n "checking for $ac_word... " >&6; } | |
9297 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9298 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9299 | else |
9300 | if test -n "$WINDRES"; then | |
9301 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
9302 | else | |
c6b750e1 DJ |
9303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9304 | for as_dir in $PATH | |
9305 | do | |
9306 | IFS=$as_save_IFS | |
9307 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9308 | for ac_exec_ext in '' $ac_executable_extensions; do |
9309 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9310 | ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9311 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9312 | break 2 |
9313 | fi | |
9314 | done | |
81ecdfbb RW |
9315 | done |
9316 | IFS=$as_save_IFS | |
c6b750e1 | 9317 | |
859789af AC |
9318 | fi |
9319 | fi | |
c6b750e1 | 9320 | WINDRES=$ac_cv_prog_WINDRES |
859789af | 9321 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9323 | $as_echo "$WINDRES" >&6; } | |
859789af | 9324 | else |
81ecdfbb RW |
9325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9326 | $as_echo "no" >&6; } | |
859789af AC |
9327 | fi |
9328 | ||
81ecdfbb | 9329 | |
05cbd757 PB |
9330 | fi |
9331 | if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then | |
9332 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9333 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9335 | $as_echo_n "checking for $ac_word... " >&6; } | |
9336 | if test "${ac_cv_prog_WINDRES+set}" = set; then : | |
9337 | $as_echo_n "(cached) " >&6 | |
859789af | 9338 | else |
05cbd757 PB |
9339 | if test -n "$WINDRES"; then |
9340 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
859789af | 9341 | else |
c6b750e1 DJ |
9342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9343 | for as_dir in $PATH | |
9344 | do | |
9345 | IFS=$as_save_IFS | |
9346 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9347 | for ac_exec_ext in '' $ac_executable_extensions; do |
9348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9349 | ac_cv_prog_WINDRES="${ncn_progname}" |
81ecdfbb | 9350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9351 | break 2 |
9352 | fi | |
9353 | done | |
81ecdfbb RW |
9354 | done |
9355 | IFS=$as_save_IFS | |
c6b750e1 | 9356 | |
859789af AC |
9357 | fi |
9358 | fi | |
c6b750e1 | 9359 | WINDRES=$ac_cv_prog_WINDRES |
05cbd757 | 9360 | if test -n "$WINDRES"; then |
81ecdfbb RW |
9361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
9362 | $as_echo "$WINDRES" >&6; } | |
859789af | 9363 | else |
81ecdfbb RW |
9364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9365 | $as_echo "no" >&6; } | |
859789af | 9366 | fi |
c6b750e1 | 9367 | |
81ecdfbb | 9368 | |
05cbd757 PB |
9369 | fi |
9370 | test -n "$ac_cv_prog_WINDRES" && break | |
9371 | done | |
9372 | ||
9373 | if test -z "$ac_cv_prog_WINDRES" ; then | |
9374 | set dummy windres | |
9375 | if test $build = $host ; then | |
9376 | WINDRES="$2" | |
859789af | 9377 | else |
05cbd757 | 9378 | WINDRES="${ncn_tool_prefix}$2" |
859789af | 9379 | fi |
859789af AC |
9380 | fi |
9381 | ||
9a819804 AO |
9382 | |
9383 | ||
0c24b341 NC |
9384 | if test -n "$WINDMC"; then |
9385 | ac_cv_prog_WINDMC=$WINDMC | |
9386 | elif test -n "$ac_cv_prog_WINDMC"; then | |
9387 | WINDMC=$ac_cv_prog_WINDMC | |
9388 | fi | |
9389 | ||
9390 | if test -n "$ac_cv_prog_WINDMC"; then | |
9391 | for ncn_progname in windmc; do | |
9392 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9393 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9395 | $as_echo_n "checking for $ac_word... " >&6; } | |
9396 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9397 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9398 | else |
9399 | if test -n "$WINDMC"; then | |
9400 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9401 | else | |
9402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9403 | for as_dir in $PATH | |
9404 | do | |
9405 | IFS=$as_save_IFS | |
9406 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9407 | for ac_exec_ext in '' $ac_executable_extensions; do |
9408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9409 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9411 | break 2 |
9412 | fi | |
9413 | done | |
81ecdfbb RW |
9414 | done |
9415 | IFS=$as_save_IFS | |
0c24b341 NC |
9416 | |
9417 | fi | |
9418 | fi | |
9419 | WINDMC=$ac_cv_prog_WINDMC | |
9420 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9422 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9423 | else |
81ecdfbb RW |
9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9425 | $as_echo "no" >&6; } | |
0c24b341 NC |
9426 | fi |
9427 | ||
81ecdfbb | 9428 | |
0c24b341 NC |
9429 | done |
9430 | fi | |
9431 | ||
9432 | for ncn_progname in windmc; do | |
9433 | if test -n "$ncn_tool_prefix"; then | |
9434 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9435 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9437 | $as_echo_n "checking for $ac_word... " >&6; } | |
9438 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9439 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9440 | else |
9441 | if test -n "$WINDMC"; then | |
9442 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9443 | else | |
9444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9445 | for as_dir in $PATH | |
9446 | do | |
9447 | IFS=$as_save_IFS | |
9448 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9449 | for ac_exec_ext in '' $ac_executable_extensions; do |
9450 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9451 | ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9452 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9453 | break 2 |
9454 | fi | |
9455 | done | |
81ecdfbb RW |
9456 | done |
9457 | IFS=$as_save_IFS | |
0c24b341 NC |
9458 | |
9459 | fi | |
9460 | fi | |
9461 | WINDMC=$ac_cv_prog_WINDMC | |
9462 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9464 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9465 | else |
81ecdfbb RW |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9467 | $as_echo "no" >&6; } | |
0c24b341 NC |
9468 | fi |
9469 | ||
81ecdfbb | 9470 | |
0c24b341 NC |
9471 | fi |
9472 | if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then | |
9473 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9474 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9476 | $as_echo_n "checking for $ac_word... " >&6; } | |
9477 | if test "${ac_cv_prog_WINDMC+set}" = set; then : | |
9478 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
9479 | else |
9480 | if test -n "$WINDMC"; then | |
9481 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
9482 | else | |
9483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9484 | for as_dir in $PATH | |
9485 | do | |
9486 | IFS=$as_save_IFS | |
9487 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9488 | for ac_exec_ext in '' $ac_executable_extensions; do |
9489 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 9490 | ac_cv_prog_WINDMC="${ncn_progname}" |
81ecdfbb | 9491 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
9492 | break 2 |
9493 | fi | |
9494 | done | |
81ecdfbb RW |
9495 | done |
9496 | IFS=$as_save_IFS | |
0c24b341 NC |
9497 | |
9498 | fi | |
9499 | fi | |
9500 | WINDMC=$ac_cv_prog_WINDMC | |
9501 | if test -n "$WINDMC"; then | |
81ecdfbb RW |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 |
9503 | $as_echo "$WINDMC" >&6; } | |
0c24b341 | 9504 | else |
81ecdfbb RW |
9505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9506 | $as_echo "no" >&6; } | |
0c24b341 NC |
9507 | fi |
9508 | ||
81ecdfbb | 9509 | |
0c24b341 NC |
9510 | fi |
9511 | test -n "$ac_cv_prog_WINDMC" && break | |
9512 | done | |
9513 | ||
9514 | if test -z "$ac_cv_prog_WINDMC" ; then | |
9515 | set dummy windmc | |
9516 | if test $build = $host ; then | |
9517 | WINDMC="$2" | |
9518 | else | |
9519 | WINDMC="${ncn_tool_prefix}$2" | |
9520 | fi | |
9521 | fi | |
9522 | ||
9523 | ||
9524 | ||
9a819804 AO |
9525 | if test -n "$OBJCOPY"; then |
9526 | ac_cv_prog_OBJCOPY=$OBJCOPY | |
9527 | elif test -n "$ac_cv_prog_OBJCOPY"; then | |
9528 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9529 | fi | |
9530 | ||
9531 | if test -n "$ac_cv_prog_OBJCOPY"; then | |
9532 | for ncn_progname in objcopy; do | |
9533 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9534 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9536 | $as_echo_n "checking for $ac_word... " >&6; } | |
9537 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9538 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9539 | else |
9540 | if test -n "$OBJCOPY"; then | |
9541 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9542 | else | |
9543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9544 | for as_dir in $PATH | |
9545 | do | |
9546 | IFS=$as_save_IFS | |
9547 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9548 | for ac_exec_ext in '' $ac_executable_extensions; do |
9549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9550 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9552 | break 2 |
9553 | fi | |
9554 | done | |
81ecdfbb RW |
9555 | done |
9556 | IFS=$as_save_IFS | |
9a819804 AO |
9557 | |
9558 | fi | |
9559 | fi | |
9560 | OBJCOPY=$ac_cv_prog_OBJCOPY | |
9561 | if test -n "$OBJCOPY"; then | |
81ecdfbb RW |
9562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9563 | $as_echo "$OBJCOPY" >&6; } | |
9a819804 | 9564 | else |
81ecdfbb RW |
9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9566 | $as_echo "no" >&6; } | |
9a819804 AO |
9567 | fi |
9568 | ||
81ecdfbb | 9569 | |
9a819804 AO |
9570 | done |
9571 | fi | |
9572 | ||
9573 | for ncn_progname in objcopy; do | |
05cbd757 PB |
9574 | if test -n "$ncn_tool_prefix"; then |
9575 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9576 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9578 | $as_echo_n "checking for $ac_word... " >&6; } | |
9579 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9580 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9581 | else |
9582 | if test -n "$OBJCOPY"; then | |
9583 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
9584 | else | |
c6b750e1 DJ |
9585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9586 | for as_dir in $PATH | |
9587 | do | |
9588 | IFS=$as_save_IFS | |
9589 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9590 | for ac_exec_ext in '' $ac_executable_extensions; do |
9591 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9592 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9593 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9594 | break 2 |
9595 | fi | |
9596 | done | |
81ecdfbb RW |
9597 | done |
9598 | IFS=$as_save_IFS | |
c6b750e1 | 9599 | |
859789af AC |
9600 | fi |
9601 | fi | |
c6b750e1 | 9602 | OBJCOPY=$ac_cv_prog_OBJCOPY |
859789af | 9603 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9605 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9606 | else |
81ecdfbb RW |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9608 | $as_echo "no" >&6; } | |
859789af AC |
9609 | fi |
9610 | ||
81ecdfbb | 9611 | |
05cbd757 PB |
9612 | fi |
9613 | if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then | |
9614 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9615 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9617 | $as_echo_n "checking for $ac_word... " >&6; } | |
9618 | if test "${ac_cv_prog_OBJCOPY+set}" = set; then : | |
9619 | $as_echo_n "(cached) " >&6 | |
859789af | 9620 | else |
05cbd757 PB |
9621 | if test -n "$OBJCOPY"; then |
9622 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
859789af | 9623 | else |
c6b750e1 DJ |
9624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9625 | for as_dir in $PATH | |
9626 | do | |
9627 | IFS=$as_save_IFS | |
9628 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9629 | for ac_exec_ext in '' $ac_executable_extensions; do |
9630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9631 | ac_cv_prog_OBJCOPY="${ncn_progname}" |
81ecdfbb | 9632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9633 | break 2 |
9634 | fi | |
9635 | done | |
81ecdfbb RW |
9636 | done |
9637 | IFS=$as_save_IFS | |
c6b750e1 | 9638 | |
859789af AC |
9639 | fi |
9640 | fi | |
c6b750e1 | 9641 | OBJCOPY=$ac_cv_prog_OBJCOPY |
05cbd757 | 9642 | if test -n "$OBJCOPY"; then |
81ecdfbb RW |
9643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
9644 | $as_echo "$OBJCOPY" >&6; } | |
859789af | 9645 | else |
81ecdfbb RW |
9646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9647 | $as_echo "no" >&6; } | |
859789af | 9648 | fi |
c6b750e1 | 9649 | |
81ecdfbb | 9650 | |
05cbd757 PB |
9651 | fi |
9652 | test -n "$ac_cv_prog_OBJCOPY" && break | |
9653 | done | |
9654 | ||
9655 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
9656 | set dummy objcopy | |
9657 | if test $build = $host ; then | |
9658 | OBJCOPY="$2" | |
859789af | 9659 | else |
05cbd757 | 9660 | OBJCOPY="${ncn_tool_prefix}$2" |
859789af | 9661 | fi |
859789af AC |
9662 | fi |
9663 | ||
9a819804 AO |
9664 | |
9665 | ||
9666 | if test -n "$OBJDUMP"; then | |
9667 | ac_cv_prog_OBJDUMP=$OBJDUMP | |
9668 | elif test -n "$ac_cv_prog_OBJDUMP"; then | |
9669 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9670 | fi | |
9671 | ||
9672 | if test -n "$ac_cv_prog_OBJDUMP"; then | |
9673 | for ncn_progname in objdump; do | |
9674 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9675 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9677 | $as_echo_n "checking for $ac_word... " >&6; } | |
9678 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9679 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9680 | else |
9681 | if test -n "$OBJDUMP"; then | |
9682 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9683 | else | |
9684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9685 | for as_dir in $PATH | |
9686 | do | |
9687 | IFS=$as_save_IFS | |
9688 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9689 | for ac_exec_ext in '' $ac_executable_extensions; do |
9690 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9691 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9693 | break 2 |
9694 | fi | |
9695 | done | |
81ecdfbb RW |
9696 | done |
9697 | IFS=$as_save_IFS | |
9a819804 AO |
9698 | |
9699 | fi | |
9700 | fi | |
9701 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
9702 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9704 | $as_echo "$OBJDUMP" >&6; } | |
9a819804 | 9705 | else |
81ecdfbb RW |
9706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9707 | $as_echo "no" >&6; } | |
9a819804 AO |
9708 | fi |
9709 | ||
81ecdfbb | 9710 | |
9a819804 AO |
9711 | done |
9712 | fi | |
9713 | ||
9714 | for ncn_progname in objdump; do | |
05cbd757 PB |
9715 | if test -n "$ncn_tool_prefix"; then |
9716 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9717 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9719 | $as_echo_n "checking for $ac_word... " >&6; } | |
9720 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9721 | $as_echo_n "(cached) " >&6 | |
859789af AC |
9722 | else |
9723 | if test -n "$OBJDUMP"; then | |
9724 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
9725 | else | |
c6b750e1 DJ |
9726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9727 | for as_dir in $PATH | |
9728 | do | |
9729 | IFS=$as_save_IFS | |
9730 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9731 | for ac_exec_ext in '' $ac_executable_extensions; do |
9732 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9733 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}" |
81ecdfbb | 9734 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9735 | break 2 |
9736 | fi | |
9737 | done | |
81ecdfbb RW |
9738 | done |
9739 | IFS=$as_save_IFS | |
c6b750e1 | 9740 | |
859789af AC |
9741 | fi |
9742 | fi | |
c6b750e1 | 9743 | OBJDUMP=$ac_cv_prog_OBJDUMP |
859789af | 9744 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9746 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9747 | else |
81ecdfbb RW |
9748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9749 | $as_echo "no" >&6; } | |
859789af AC |
9750 | fi |
9751 | ||
81ecdfbb | 9752 | |
05cbd757 PB |
9753 | fi |
9754 | if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then | |
9755 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9756 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9758 | $as_echo_n "checking for $ac_word... " >&6; } | |
9759 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
9760 | $as_echo_n "(cached) " >&6 | |
859789af | 9761 | else |
05cbd757 PB |
9762 | if test -n "$OBJDUMP"; then |
9763 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
859789af | 9764 | else |
c6b750e1 DJ |
9765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9766 | for as_dir in $PATH | |
9767 | do | |
9768 | IFS=$as_save_IFS | |
9769 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9770 | for ac_exec_ext in '' $ac_executable_extensions; do |
9771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 9772 | ac_cv_prog_OBJDUMP="${ncn_progname}" |
81ecdfbb | 9773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
9774 | break 2 |
9775 | fi | |
9776 | done | |
81ecdfbb RW |
9777 | done |
9778 | IFS=$as_save_IFS | |
c6b750e1 | 9779 | |
859789af AC |
9780 | fi |
9781 | fi | |
c6b750e1 | 9782 | OBJDUMP=$ac_cv_prog_OBJDUMP |
05cbd757 | 9783 | if test -n "$OBJDUMP"; then |
81ecdfbb RW |
9784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
9785 | $as_echo "$OBJDUMP" >&6; } | |
859789af | 9786 | else |
81ecdfbb RW |
9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9788 | $as_echo "no" >&6; } | |
859789af | 9789 | fi |
c6b750e1 | 9790 | |
81ecdfbb | 9791 | |
05cbd757 PB |
9792 | fi |
9793 | test -n "$ac_cv_prog_OBJDUMP" && break | |
9794 | done | |
9795 | ||
9796 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
9797 | set dummy objdump | |
9798 | if test $build = $host ; then | |
9799 | OBJDUMP="$2" | |
859789af | 9800 | else |
05cbd757 | 9801 | OBJDUMP="${ncn_tool_prefix}$2" |
859789af | 9802 | fi |
859789af AC |
9803 | fi |
9804 | ||
a0da8069 NN |
9805 | |
9806 | ||
b121d7d4 DD |
9807 | if test -n "$READELF"; then |
9808 | ac_cv_prog_READELF=$READELF | |
9809 | elif test -n "$ac_cv_prog_READELF"; then | |
9810 | READELF=$ac_cv_prog_READELF | |
9811 | fi | |
9812 | ||
9813 | if test -n "$ac_cv_prog_READELF"; then | |
9814 | for ncn_progname in readelf; do | |
9815 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9816 | set dummy ${ncn_progname}; ac_word=$2 | |
9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9818 | $as_echo_n "checking for $ac_word... " >&6; } | |
9819 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9820 | $as_echo_n "(cached) " >&6 | |
9821 | else | |
9822 | if test -n "$READELF"; then | |
9823 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9824 | else | |
9825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9826 | for as_dir in $PATH | |
9827 | do | |
9828 | IFS=$as_save_IFS | |
9829 | test -z "$as_dir" && as_dir=. | |
9830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9831 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9832 | ac_cv_prog_READELF="${ncn_progname}" | |
9833 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9834 | break 2 | |
9835 | fi | |
9836 | done | |
9837 | done | |
9838 | IFS=$as_save_IFS | |
9839 | ||
9840 | fi | |
9841 | fi | |
9842 | READELF=$ac_cv_prog_READELF | |
9843 | if test -n "$READELF"; then | |
9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9845 | $as_echo "$READELF" >&6; } | |
9846 | else | |
9847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9848 | $as_echo "no" >&6; } | |
9849 | fi | |
9850 | ||
9851 | ||
9852 | done | |
9853 | fi | |
9854 | ||
9855 | for ncn_progname in readelf; do | |
9856 | if test -n "$ncn_tool_prefix"; then | |
9857 | # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
9858 | set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2 | |
9859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9860 | $as_echo_n "checking for $ac_word... " >&6; } | |
9861 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9862 | $as_echo_n "(cached) " >&6 | |
9863 | else | |
9864 | if test -n "$READELF"; then | |
9865 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9866 | else | |
9867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9868 | for as_dir in $PATH | |
9869 | do | |
9870 | IFS=$as_save_IFS | |
9871 | test -z "$as_dir" && as_dir=. | |
9872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9874 | ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}" | |
9875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9876 | break 2 | |
9877 | fi | |
9878 | done | |
9879 | done | |
9880 | IFS=$as_save_IFS | |
9881 | ||
9882 | fi | |
9883 | fi | |
9884 | READELF=$ac_cv_prog_READELF | |
9885 | if test -n "$READELF"; then | |
9886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9887 | $as_echo "$READELF" >&6; } | |
9888 | else | |
9889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9890 | $as_echo "no" >&6; } | |
9891 | fi | |
9892 | ||
9893 | ||
9894 | fi | |
9895 | if test -z "$ac_cv_prog_READELF" && test $build = $host ; then | |
9896 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9897 | set dummy ${ncn_progname}; ac_word=$2 | |
9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9899 | $as_echo_n "checking for $ac_word... " >&6; } | |
9900 | if test "${ac_cv_prog_READELF+set}" = set; then : | |
9901 | $as_echo_n "(cached) " >&6 | |
9902 | else | |
9903 | if test -n "$READELF"; then | |
9904 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
9905 | else | |
9906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9907 | for as_dir in $PATH | |
9908 | do | |
9909 | IFS=$as_save_IFS | |
9910 | test -z "$as_dir" && as_dir=. | |
9911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9913 | ac_cv_prog_READELF="${ncn_progname}" | |
9914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9915 | break 2 | |
9916 | fi | |
9917 | done | |
9918 | done | |
9919 | IFS=$as_save_IFS | |
9920 | ||
9921 | fi | |
9922 | fi | |
9923 | READELF=$ac_cv_prog_READELF | |
9924 | if test -n "$READELF"; then | |
9925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
9926 | $as_echo "$READELF" >&6; } | |
9927 | else | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9929 | $as_echo "no" >&6; } | |
9930 | fi | |
9931 | ||
9932 | ||
9933 | fi | |
9934 | test -n "$ac_cv_prog_READELF" && break | |
9935 | done | |
9936 | ||
9937 | if test -z "$ac_cv_prog_READELF" ; then | |
9938 | set dummy readelf | |
9939 | if test $build = $host ; then | |
9940 | READELF="$2" | |
9941 | else | |
9942 | READELF="${ncn_tool_prefix}$2" | |
9943 | fi | |
9944 | fi | |
9945 | ||
9946 | ||
9947 | ||
a0da8069 NN |
9948 | |
9949 | ||
9950 | ||
be01d343 | 9951 | # Target tools. |
c6b750e1 | 9952 | |
81ecdfbb RW |
9953 | # Check whether --with-build-time-tools was given. |
9954 | if test "${with_build_time_tools+set}" = set; then : | |
9955 | withval=$with_build_time_tools; case x"$withval" in | |
2429c060 PB |
9956 | x/*) ;; |
9957 | *) | |
9958 | with_build_time_tools= | |
81ecdfbb RW |
9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5 |
9960 | $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;} | |
2429c060 PB |
9961 | ;; |
9962 | esac | |
859789af | 9963 | else |
2429c060 | 9964 | with_build_time_tools= |
81ecdfbb RW |
9965 | fi |
9966 | ||
859789af | 9967 | |
9a819804 AO |
9968 | |
9969 | ||
9970 | if test -n "$CC_FOR_TARGET"; then | |
9971 | ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET | |
9972 | elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9973 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
9974 | fi | |
9975 | ||
9976 | if test -n "$ac_cv_prog_CC_FOR_TARGET"; then | |
9977 | for ncn_progname in cc gcc; do | |
9978 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
9979 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
9981 | $as_echo_n "checking for $ac_word... " >&6; } | |
9982 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
9983 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
9984 | else |
9985 | if test -n "$CC_FOR_TARGET"; then | |
9986 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
9987 | else | |
9988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9989 | for as_dir in $PATH | |
9990 | do | |
9991 | IFS=$as_save_IFS | |
9992 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
9993 | for ac_exec_ext in '' $ac_executable_extensions; do |
9994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 9995 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 9996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
9997 | break 2 |
9998 | fi | |
9999 | done | |
81ecdfbb RW |
10000 | done |
10001 | IFS=$as_save_IFS | |
9a819804 AO |
10002 | |
10003 | fi | |
10004 | fi | |
10005 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET | |
10006 | if test -n "$CC_FOR_TARGET"; then | |
81ecdfbb RW |
10007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10008 | $as_echo "$CC_FOR_TARGET" >&6; } | |
9a819804 | 10009 | else |
81ecdfbb RW |
10010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10011 | $as_echo "no" >&6; } | |
9a819804 AO |
10012 | fi |
10013 | ||
81ecdfbb | 10014 | |
9a819804 AO |
10015 | done |
10016 | fi | |
10017 | ||
10018 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10019 | for ncn_progname in cc gcc; do |
81ecdfbb RW |
10020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10021 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10022 | if test -x $with_build_time_tools/${ncn_progname}; then |
10023 | ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10025 | $as_echo "yes" >&6; } | |
cac3d6c4 | 10026 | break |
2429c060 | 10027 | else |
81ecdfbb RW |
10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10029 | $as_echo "no" >&6; } | |
cac3d6c4 CM |
10030 | fi |
10031 | done | |
55db4b87 PB |
10032 | fi |
10033 | ||
2429c060 PB |
10034 | if test -z "$ac_cv_prog_CC_FOR_TARGET"; then |
10035 | for ncn_progname in cc gcc; do | |
10036 | if test -n "$ncn_target_tool_prefix"; then | |
10037 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10038 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10040 | $as_echo_n "checking for $ac_word... " >&6; } | |
10041 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10042 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10043 | else |
10044 | if test -n "$CC_FOR_TARGET"; then | |
10045 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
10046 | else | |
c6b750e1 DJ |
10047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10048 | for as_dir in $PATH | |
10049 | do | |
10050 | IFS=$as_save_IFS | |
10051 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10052 | for ac_exec_ext in '' $ac_executable_extensions; do |
10053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10054 | ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10056 | break 2 |
10057 | fi | |
10058 | done | |
81ecdfbb RW |
10059 | done |
10060 | IFS=$as_save_IFS | |
c6b750e1 | 10061 | |
55db4b87 PB |
10062 | fi |
10063 | fi | |
c6b750e1 | 10064 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
55db4b87 | 10065 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10067 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10068 | else |
81ecdfbb RW |
10069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10070 | $as_echo "no" >&6; } | |
55db4b87 PB |
10071 | fi |
10072 | ||
81ecdfbb | 10073 | |
2429c060 PB |
10074 | fi |
10075 | if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then | |
10076 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10077 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10079 | $as_echo_n "checking for $ac_word... " >&6; } | |
10080 | if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then : | |
10081 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10082 | else |
05cbd757 PB |
10083 | if test -n "$CC_FOR_TARGET"; then |
10084 | ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10085 | else |
c6b750e1 DJ |
10086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10087 | for as_dir in $PATH | |
10088 | do | |
10089 | IFS=$as_save_IFS | |
10090 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10091 | for ac_exec_ext in '' $ac_executable_extensions; do |
10092 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10093 | ac_cv_prog_CC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10095 | break 2 |
10096 | fi | |
10097 | done | |
81ecdfbb RW |
10098 | done |
10099 | IFS=$as_save_IFS | |
c6b750e1 | 10100 | |
55db4b87 PB |
10101 | fi |
10102 | fi | |
c6b750e1 | 10103 | CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET |
05cbd757 | 10104 | if test -n "$CC_FOR_TARGET"; then |
81ecdfbb RW |
10105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5 |
10106 | $as_echo "$CC_FOR_TARGET" >&6; } | |
55db4b87 | 10107 | else |
81ecdfbb RW |
10108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10109 | $as_echo "no" >&6; } | |
55db4b87 | 10110 | fi |
c6b750e1 | 10111 | |
81ecdfbb | 10112 | |
2429c060 PB |
10113 | fi |
10114 | test -n "$ac_cv_prog_CC_FOR_TARGET" && break | |
10115 | done | |
10116 | fi | |
c6b750e1 | 10117 | |
05cbd757 PB |
10118 | if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then |
10119 | set dummy cc gcc | |
10120 | if test $build = $target ; then | |
10121 | CC_FOR_TARGET="$2" | |
55db4b87 | 10122 | else |
05cbd757 | 10123 | CC_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10124 | fi |
d3f5afc4 MS |
10125 | else |
10126 | CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET" | |
55db4b87 PB |
10127 | fi |
10128 | ||
9a819804 AO |
10129 | |
10130 | ||
10131 | if test -n "$CXX_FOR_TARGET"; then | |
10132 | ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET | |
10133 | elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10134 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10135 | fi | |
10136 | ||
10137 | if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10138 | for ncn_progname in c++ g++ cxx gxx; do | |
10139 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10140 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10142 | $as_echo_n "checking for $ac_word... " >&6; } | |
10143 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10144 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10145 | else |
10146 | if test -n "$CXX_FOR_TARGET"; then | |
10147 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10148 | else | |
10149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10150 | for as_dir in $PATH | |
10151 | do | |
10152 | IFS=$as_save_IFS | |
10153 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10154 | for ac_exec_ext in '' $ac_executable_extensions; do |
10155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10156 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10158 | break 2 |
10159 | fi | |
10160 | done | |
81ecdfbb RW |
10161 | done |
10162 | IFS=$as_save_IFS | |
9a819804 AO |
10163 | |
10164 | fi | |
10165 | fi | |
10166 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET | |
10167 | if test -n "$CXX_FOR_TARGET"; then | |
81ecdfbb RW |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10169 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
9a819804 | 10170 | else |
81ecdfbb RW |
10171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10172 | $as_echo "no" >&6; } | |
9a819804 AO |
10173 | fi |
10174 | ||
81ecdfbb | 10175 | |
9a819804 AO |
10176 | done |
10177 | fi | |
10178 | ||
10179 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10180 | for ncn_progname in c++ g++ cxx gxx; do |
81ecdfbb RW |
10181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10182 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10183 | if test -x $with_build_time_tools/${ncn_progname}; then |
10184 | ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10186 | $as_echo "yes" >&6; } | |
2429c060 PB |
10187 | break |
10188 | else | |
81ecdfbb RW |
10189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10190 | $as_echo "no" >&6; } | |
2429c060 PB |
10191 | fi |
10192 | done | |
10193 | fi | |
10194 | ||
10195 | if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then | |
10196 | for ncn_progname in c++ g++ cxx gxx; do | |
10197 | if test -n "$ncn_target_tool_prefix"; then | |
10198 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10199 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10201 | $as_echo_n "checking for $ac_word... " >&6; } | |
10202 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10203 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10204 | else |
10205 | if test -n "$CXX_FOR_TARGET"; then | |
10206 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
10207 | else | |
c6b750e1 DJ |
10208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10209 | for as_dir in $PATH | |
10210 | do | |
10211 | IFS=$as_save_IFS | |
10212 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10213 | for ac_exec_ext in '' $ac_executable_extensions; do |
10214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10215 | ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10217 | break 2 |
10218 | fi | |
10219 | done | |
81ecdfbb RW |
10220 | done |
10221 | IFS=$as_save_IFS | |
c6b750e1 | 10222 | |
55db4b87 PB |
10223 | fi |
10224 | fi | |
c6b750e1 | 10225 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
55db4b87 | 10226 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10228 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10229 | else |
81ecdfbb RW |
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10231 | $as_echo "no" >&6; } | |
55db4b87 PB |
10232 | fi |
10233 | ||
81ecdfbb | 10234 | |
2429c060 PB |
10235 | fi |
10236 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then | |
10237 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10238 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10240 | $as_echo_n "checking for $ac_word... " >&6; } | |
10241 | if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then : | |
10242 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10243 | else |
05cbd757 PB |
10244 | if test -n "$CXX_FOR_TARGET"; then |
10245 | ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10246 | else |
c6b750e1 DJ |
10247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10248 | for as_dir in $PATH | |
10249 | do | |
10250 | IFS=$as_save_IFS | |
10251 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10252 | for ac_exec_ext in '' $ac_executable_extensions; do |
10253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10254 | ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10256 | break 2 |
10257 | fi | |
10258 | done | |
81ecdfbb RW |
10259 | done |
10260 | IFS=$as_save_IFS | |
c6b750e1 | 10261 | |
55db4b87 PB |
10262 | fi |
10263 | fi | |
c6b750e1 | 10264 | CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET |
05cbd757 | 10265 | if test -n "$CXX_FOR_TARGET"; then |
81ecdfbb RW |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5 |
10267 | $as_echo "$CXX_FOR_TARGET" >&6; } | |
55db4b87 | 10268 | else |
81ecdfbb RW |
10269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10270 | $as_echo "no" >&6; } | |
55db4b87 | 10271 | fi |
c6b750e1 | 10272 | |
81ecdfbb | 10273 | |
2429c060 PB |
10274 | fi |
10275 | test -n "$ac_cv_prog_CXX_FOR_TARGET" && break | |
10276 | done | |
10277 | fi | |
c6b750e1 | 10278 | |
05cbd757 PB |
10279 | if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then |
10280 | set dummy c++ g++ cxx gxx | |
10281 | if test $build = $target ; then | |
10282 | CXX_FOR_TARGET="$2" | |
55db4b87 | 10283 | else |
05cbd757 | 10284 | CXX_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10285 | fi |
d3f5afc4 MS |
10286 | else |
10287 | CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET" | |
859789af AC |
10288 | fi |
10289 | ||
9a819804 AO |
10290 | |
10291 | ||
10292 | if test -n "$GCC_FOR_TARGET"; then | |
10293 | ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET | |
10294 | elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10295 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10296 | fi | |
10297 | ||
10298 | if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10299 | for ncn_progname in gcc; do | |
10300 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10301 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10303 | $as_echo_n "checking for $ac_word... " >&6; } | |
10304 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10305 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10306 | else |
10307 | if test -n "$GCC_FOR_TARGET"; then | |
10308 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
10309 | else | |
10310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10311 | for as_dir in $PATH | |
10312 | do | |
10313 | IFS=$as_save_IFS | |
10314 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10315 | for ac_exec_ext in '' $ac_executable_extensions; do |
10316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10317 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10319 | break 2 |
10320 | fi | |
10321 | done | |
81ecdfbb RW |
10322 | done |
10323 | IFS=$as_save_IFS | |
9a819804 AO |
10324 | |
10325 | fi | |
10326 | fi | |
10327 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET | |
10328 | if test -n "$GCC_FOR_TARGET"; then | |
81ecdfbb RW |
10329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10330 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
9a819804 | 10331 | else |
81ecdfbb RW |
10332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10333 | $as_echo "no" >&6; } | |
9a819804 AO |
10334 | fi |
10335 | ||
81ecdfbb | 10336 | |
9a819804 AO |
10337 | done |
10338 | fi | |
10339 | ||
10340 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10341 | for ncn_progname in gcc; do |
81ecdfbb RW |
10342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10343 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10344 | if test -x $with_build_time_tools/${ncn_progname}; then |
10345 | ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10347 | $as_echo "yes" >&6; } | |
2429c060 PB |
10348 | break |
10349 | else | |
81ecdfbb RW |
10350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10351 | $as_echo "no" >&6; } | |
2429c060 PB |
10352 | fi |
10353 | done | |
10354 | fi | |
10355 | ||
10356 | if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then | |
10357 | for ncn_progname in gcc; do | |
10358 | if test -n "$ncn_target_tool_prefix"; then | |
10359 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10360 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10362 | $as_echo_n "checking for $ac_word... " >&6; } | |
10363 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10364 | $as_echo_n "(cached) " >&6 | |
859789af | 10365 | else |
2429c060 PB |
10366 | if test -n "$GCC_FOR_TARGET"; then |
10367 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10368 | else |
c6b750e1 DJ |
10369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10370 | for as_dir in $PATH | |
10371 | do | |
10372 | IFS=$as_save_IFS | |
10373 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10374 | for ac_exec_ext in '' $ac_executable_extensions; do |
10375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10376 | ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10378 | break 2 |
10379 | fi | |
10380 | done | |
81ecdfbb RW |
10381 | done |
10382 | IFS=$as_save_IFS | |
c6b750e1 | 10383 | |
55db4b87 PB |
10384 | fi |
10385 | fi | |
c6b750e1 | 10386 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
55db4b87 | 10387 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10389 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10390 | else |
81ecdfbb RW |
10391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10392 | $as_echo "no" >&6; } | |
55db4b87 PB |
10393 | fi |
10394 | ||
81ecdfbb | 10395 | |
2429c060 PB |
10396 | fi |
10397 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then | |
10398 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10399 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10401 | $as_echo_n "checking for $ac_word... " >&6; } | |
10402 | if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then : | |
10403 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10404 | else |
05cbd757 PB |
10405 | if test -n "$GCC_FOR_TARGET"; then |
10406 | ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10407 | else |
c6b750e1 DJ |
10408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10409 | for as_dir in $PATH | |
10410 | do | |
10411 | IFS=$as_save_IFS | |
10412 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10413 | for ac_exec_ext in '' $ac_executable_extensions; do |
10414 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10415 | ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10417 | break 2 |
10418 | fi | |
10419 | done | |
81ecdfbb RW |
10420 | done |
10421 | IFS=$as_save_IFS | |
c6b750e1 | 10422 | |
55db4b87 PB |
10423 | fi |
10424 | fi | |
c6b750e1 | 10425 | GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET |
05cbd757 | 10426 | if test -n "$GCC_FOR_TARGET"; then |
81ecdfbb RW |
10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5 |
10428 | $as_echo "$GCC_FOR_TARGET" >&6; } | |
55db4b87 | 10429 | else |
81ecdfbb RW |
10430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10431 | $as_echo "no" >&6; } | |
55db4b87 | 10432 | fi |
c6b750e1 | 10433 | |
81ecdfbb | 10434 | |
2429c060 PB |
10435 | fi |
10436 | test -n "$ac_cv_prog_GCC_FOR_TARGET" && break | |
10437 | done | |
10438 | fi | |
c6b750e1 | 10439 | |
05cbd757 PB |
10440 | if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then |
10441 | GCC_FOR_TARGET="${CC_FOR_TARGET}" | |
d3f5afc4 MS |
10442 | else |
10443 | GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET" | |
55db4b87 PB |
10444 | fi |
10445 | ||
9a819804 AO |
10446 | |
10447 | ||
10448 | if test -n "$GCJ_FOR_TARGET"; then | |
10449 | ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET | |
10450 | elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10451 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10452 | fi | |
10453 | ||
10454 | if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10455 | for ncn_progname in gcj; do | |
10456 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10457 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10459 | $as_echo_n "checking for $ac_word... " >&6; } | |
10460 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10461 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10462 | else |
10463 | if test -n "$GCJ_FOR_TARGET"; then | |
10464 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10465 | else | |
10466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10467 | for as_dir in $PATH | |
10468 | do | |
10469 | IFS=$as_save_IFS | |
10470 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10471 | for ac_exec_ext in '' $ac_executable_extensions; do |
10472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10473 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10474 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10475 | break 2 |
10476 | fi | |
10477 | done | |
81ecdfbb RW |
10478 | done |
10479 | IFS=$as_save_IFS | |
9a819804 AO |
10480 | |
10481 | fi | |
10482 | fi | |
10483 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10484 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10486 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10487 | else |
81ecdfbb RW |
10488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10489 | $as_echo "no" >&6; } | |
9a819804 AO |
10490 | fi |
10491 | ||
81ecdfbb | 10492 | |
9a819804 AO |
10493 | done |
10494 | fi | |
10495 | ||
10496 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 10497 | for ncn_progname in gcj; do |
81ecdfbb RW |
10498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10499 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10500 | if test -x $with_build_time_tools/${ncn_progname}; then |
10501 | ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10503 | $as_echo "yes" >&6; } | |
2429c060 PB |
10504 | break |
10505 | else | |
81ecdfbb RW |
10506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10507 | $as_echo "no" >&6; } | |
2429c060 PB |
10508 | fi |
10509 | done | |
10510 | fi | |
10511 | ||
10512 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then | |
10513 | for ncn_progname in gcj; do | |
10514 | if test -n "$ncn_target_tool_prefix"; then | |
10515 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10516 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10518 | $as_echo_n "checking for $ac_word... " >&6; } | |
10519 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10520 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10521 | else |
10522 | if test -n "$GCJ_FOR_TARGET"; then | |
10523 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10524 | else | |
c6b750e1 DJ |
10525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10526 | for as_dir in $PATH | |
10527 | do | |
10528 | IFS=$as_save_IFS | |
10529 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10530 | for ac_exec_ext in '' $ac_executable_extensions; do |
10531 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10532 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10533 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10534 | break 2 |
10535 | fi | |
10536 | done | |
81ecdfbb RW |
10537 | done |
10538 | IFS=$as_save_IFS | |
c6b750e1 | 10539 | |
55db4b87 PB |
10540 | fi |
10541 | fi | |
9a819804 AO |
10542 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET |
10543 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10545 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10546 | else |
81ecdfbb RW |
10547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10548 | $as_echo "no" >&6; } | |
9a819804 AO |
10549 | fi |
10550 | ||
81ecdfbb | 10551 | |
9a819804 AO |
10552 | fi |
10553 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then | |
10554 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10555 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10557 | $as_echo_n "checking for $ac_word... " >&6; } | |
10558 | if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then : | |
10559 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
10560 | else |
10561 | if test -n "$GCJ_FOR_TARGET"; then | |
10562 | ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test. | |
10563 | else | |
10564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10565 | for as_dir in $PATH | |
10566 | do | |
10567 | IFS=$as_save_IFS | |
10568 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10569 | for ac_exec_ext in '' $ac_executable_extensions; do |
10570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10571 | ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10572 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
10573 | break 2 |
10574 | fi | |
10575 | done | |
81ecdfbb RW |
10576 | done |
10577 | IFS=$as_save_IFS | |
9a819804 AO |
10578 | |
10579 | fi | |
10580 | fi | |
10581 | GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET | |
10582 | if test -n "$GCJ_FOR_TARGET"; then | |
81ecdfbb RW |
10583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5 |
10584 | $as_echo "$GCJ_FOR_TARGET" >&6; } | |
9a819804 | 10585 | else |
81ecdfbb RW |
10586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10587 | $as_echo "no" >&6; } | |
9a819804 AO |
10588 | fi |
10589 | ||
81ecdfbb | 10590 | |
9a819804 AO |
10591 | fi |
10592 | test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break | |
10593 | done | |
10594 | fi | |
10595 | ||
10596 | if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then | |
10597 | set dummy gcj | |
10598 | if test $build = $target ; then | |
10599 | GCJ_FOR_TARGET="$2" | |
10600 | else | |
10601 | GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10602 | fi | |
d3f5afc4 MS |
10603 | else |
10604 | GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET" | |
9a819804 AO |
10605 | fi |
10606 | ||
10607 | ||
10608 | ||
10609 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10610 | ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET | |
10611 | elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10612 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET | |
55db4b87 PB |
10613 | fi |
10614 | ||
9a819804 AO |
10615 | if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then |
10616 | for ncn_progname in gfortran; do | |
10617 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10618 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10620 | $as_echo_n "checking for $ac_word... " >&6; } | |
10621 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10622 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10623 | else |
9a819804 AO |
10624 | if test -n "$GFORTRAN_FOR_TARGET"; then |
10625 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
55db4b87 | 10626 | else |
c6b750e1 DJ |
10627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10628 | for as_dir in $PATH | |
10629 | do | |
10630 | IFS=$as_save_IFS | |
10631 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10632 | for ac_exec_ext in '' $ac_executable_extensions; do |
10633 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 10634 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10635 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10636 | break 2 |
10637 | fi | |
10638 | done | |
81ecdfbb RW |
10639 | done |
10640 | IFS=$as_save_IFS | |
c6b750e1 | 10641 | |
55db4b87 PB |
10642 | fi |
10643 | fi | |
9a819804 AO |
10644 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
10645 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
81ecdfbb RW |
10646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10647 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10648 | else |
81ecdfbb RW |
10649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10650 | $as_echo "no" >&6; } | |
55db4b87 | 10651 | fi |
c6b750e1 | 10652 | |
81ecdfbb | 10653 | |
2429c060 PB |
10654 | done |
10655 | fi | |
c6b750e1 | 10656 | |
9a819804 | 10657 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then |
2429c060 | 10658 | for ncn_progname in gfortran; do |
81ecdfbb RW |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
10660 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10661 | if test -x $with_build_time_tools/${ncn_progname}; then |
10662 | ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
10663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
10664 | $as_echo "yes" >&6; } | |
2429c060 PB |
10665 | break |
10666 | else | |
81ecdfbb RW |
10667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10668 | $as_echo "no" >&6; } | |
2429c060 PB |
10669 | fi |
10670 | done | |
10671 | fi | |
10672 | ||
10673 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then | |
10674 | for ncn_progname in gfortran; do | |
10675 | if test -n "$ncn_target_tool_prefix"; then | |
10676 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10677 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10679 | $as_echo_n "checking for $ac_word... " >&6; } | |
10680 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10681 | $as_echo_n "(cached) " >&6 | |
55db4b87 PB |
10682 | else |
10683 | if test -n "$GFORTRAN_FOR_TARGET"; then | |
10684 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. | |
10685 | else | |
c6b750e1 DJ |
10686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10687 | for as_dir in $PATH | |
10688 | do | |
10689 | IFS=$as_save_IFS | |
10690 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10691 | for ac_exec_ext in '' $ac_executable_extensions; do |
10692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10693 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 10694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10695 | break 2 |
10696 | fi | |
10697 | done | |
81ecdfbb RW |
10698 | done |
10699 | IFS=$as_save_IFS | |
c6b750e1 | 10700 | |
55db4b87 PB |
10701 | fi |
10702 | fi | |
c6b750e1 | 10703 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
55db4b87 | 10704 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10706 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10707 | else |
81ecdfbb RW |
10708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10709 | $as_echo "no" >&6; } | |
55db4b87 PB |
10710 | fi |
10711 | ||
81ecdfbb | 10712 | |
2429c060 PB |
10713 | fi |
10714 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then | |
10715 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 10716 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
10717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10718 | $as_echo_n "checking for $ac_word... " >&6; } | |
10719 | if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then : | |
10720 | $as_echo_n "(cached) " >&6 | |
55db4b87 | 10721 | else |
05cbd757 | 10722 | if test -n "$GFORTRAN_FOR_TARGET"; then |
c6b750e1 DJ |
10723 | ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test. |
10724 | else | |
10725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10726 | for as_dir in $PATH | |
10727 | do | |
10728 | IFS=$as_save_IFS | |
10729 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10730 | for ac_exec_ext in '' $ac_executable_extensions; do |
10731 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10732 | ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 10733 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10734 | break 2 |
10735 | fi | |
10736 | done | |
81ecdfbb RW |
10737 | done |
10738 | IFS=$as_save_IFS | |
c6b750e1 | 10739 | |
55db4b87 PB |
10740 | fi |
10741 | fi | |
c6b750e1 | 10742 | GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET |
05cbd757 | 10743 | if test -n "$GFORTRAN_FOR_TARGET"; then |
81ecdfbb RW |
10744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5 |
10745 | $as_echo "$GFORTRAN_FOR_TARGET" >&6; } | |
55db4b87 | 10746 | else |
81ecdfbb RW |
10747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10748 | $as_echo "no" >&6; } | |
55db4b87 | 10749 | fi |
c6b750e1 | 10750 | |
81ecdfbb | 10751 | |
2429c060 PB |
10752 | fi |
10753 | test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break | |
10754 | done | |
10755 | fi | |
c6b750e1 | 10756 | |
05cbd757 PB |
10757 | if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then |
10758 | set dummy gfortran | |
10759 | if test $build = $target ; then | |
10760 | GFORTRAN_FOR_TARGET="$2" | |
55db4b87 | 10761 | else |
05cbd757 | 10762 | GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2" |
55db4b87 | 10763 | fi |
d3f5afc4 MS |
10764 | else |
10765 | GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET" | |
859789af AC |
10766 | fi |
10767 | ||
2429c060 PB |
10768 | |
10769 | ||
e552509b ILT |
10770 | if test -n "$GOC_FOR_TARGET"; then |
10771 | ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET | |
10772 | elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10773 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10774 | fi | |
10775 | ||
10776 | if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10777 | for ncn_progname in gccgo; do | |
10778 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10779 | set dummy ${ncn_progname}; ac_word=$2 | |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10781 | $as_echo_n "checking for $ac_word... " >&6; } | |
10782 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10783 | $as_echo_n "(cached) " >&6 | |
10784 | else | |
10785 | if test -n "$GOC_FOR_TARGET"; then | |
10786 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10787 | else | |
10788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10789 | for as_dir in $PATH | |
10790 | do | |
10791 | IFS=$as_save_IFS | |
10792 | test -z "$as_dir" && as_dir=. | |
10793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10795 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10797 | break 2 | |
10798 | fi | |
10799 | done | |
10800 | done | |
10801 | IFS=$as_save_IFS | |
10802 | ||
10803 | fi | |
10804 | fi | |
10805 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10806 | if test -n "$GOC_FOR_TARGET"; then | |
10807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10808 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10809 | else | |
10810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10811 | $as_echo "no" >&6; } | |
10812 | fi | |
10813 | ||
10814 | ||
10815 | done | |
10816 | fi | |
10817 | ||
10818 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
10819 | for ncn_progname in gccgo; do | |
10820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
10821 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
10822 | if test -x $with_build_time_tools/${ncn_progname}; then | |
10823 | ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
10825 | $as_echo "yes" >&6; } | |
10826 | break | |
10827 | else | |
10828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10829 | $as_echo "no" >&6; } | |
10830 | fi | |
10831 | done | |
10832 | fi | |
10833 | ||
10834 | if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then | |
10835 | for ncn_progname in gccgo; do | |
10836 | if test -n "$ncn_target_tool_prefix"; then | |
10837 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
10838 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10840 | $as_echo_n "checking for $ac_word... " >&6; } | |
10841 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10842 | $as_echo_n "(cached) " >&6 | |
10843 | else | |
10844 | if test -n "$GOC_FOR_TARGET"; then | |
10845 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10846 | else | |
10847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10848 | for as_dir in $PATH | |
10849 | do | |
10850 | IFS=$as_save_IFS | |
10851 | test -z "$as_dir" && as_dir=. | |
10852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10854 | ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
10855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10856 | break 2 | |
10857 | fi | |
10858 | done | |
10859 | done | |
10860 | IFS=$as_save_IFS | |
10861 | ||
10862 | fi | |
10863 | fi | |
10864 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10865 | if test -n "$GOC_FOR_TARGET"; then | |
10866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10867 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10868 | else | |
10869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10870 | $as_echo "no" >&6; } | |
10871 | fi | |
10872 | ||
10873 | ||
10874 | fi | |
10875 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then | |
10876 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
10877 | set dummy ${ncn_progname}; ac_word=$2 | |
10878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10879 | $as_echo_n "checking for $ac_word... " >&6; } | |
10880 | if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then : | |
10881 | $as_echo_n "(cached) " >&6 | |
10882 | else | |
10883 | if test -n "$GOC_FOR_TARGET"; then | |
10884 | ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test. | |
10885 | else | |
10886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10887 | for as_dir in $PATH | |
10888 | do | |
10889 | IFS=$as_save_IFS | |
10890 | test -z "$as_dir" && as_dir=. | |
10891 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10892 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10893 | ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}" | |
10894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10895 | break 2 | |
10896 | fi | |
10897 | done | |
10898 | done | |
10899 | IFS=$as_save_IFS | |
10900 | ||
10901 | fi | |
10902 | fi | |
10903 | GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET | |
10904 | if test -n "$GOC_FOR_TARGET"; then | |
10905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5 | |
10906 | $as_echo "$GOC_FOR_TARGET" >&6; } | |
10907 | else | |
10908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10909 | $as_echo "no" >&6; } | |
10910 | fi | |
10911 | ||
10912 | ||
10913 | fi | |
10914 | test -n "$ac_cv_prog_GOC_FOR_TARGET" && break | |
10915 | done | |
10916 | fi | |
10917 | ||
10918 | if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then | |
10919 | set dummy gccgo | |
10920 | if test $build = $target ; then | |
10921 | GOC_FOR_TARGET="$2" | |
10922 | else | |
10923 | GOC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
10924 | fi | |
10925 | else | |
10926 | GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET" | |
10927 | fi | |
10928 | ||
10929 | ||
10930 | ||
2429c060 PB |
10931 | cat > conftest.c << \EOF |
10932 | #ifdef __GNUC__ | |
10933 | gcc_yay; | |
10934 | #endif | |
10935 | EOF | |
10936 | if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then | |
10937 | have_gcc_for_target=yes | |
859789af | 10938 | else |
2429c060 PB |
10939 | GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc |
10940 | have_gcc_for_target=no | |
859789af | 10941 | fi |
2429c060 PB |
10942 | rm conftest.c |
10943 | ||
10944 | ||
10945 | ||
859789af | 10946 | |
2429c060 PB |
10947 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then |
10948 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5 |
10950 | $as_echo_n "checking for ar in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
10951 | if test -x $with_build_time_tools/ar; then |
10952 | AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar | |
10953 | ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
81ecdfbb RW |
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5 |
10955 | $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; } | |
3a35eeb3 | 10956 | else |
81ecdfbb RW |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
10958 | $as_echo "no" >&6; } | |
3a35eeb3 | 10959 | fi |
2429c060 PB |
10960 | elif test $build != $host && test $have_gcc_for_target = yes; then |
10961 | AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar` | |
d3f5afc4 MS |
10962 | test $AR_FOR_TARGET = ar && AR_FOR_TARGET= |
10963 | test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET | |
05cbd757 | 10964 | fi |
2429c060 | 10965 | fi |
c6b750e1 | 10966 | if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
10967 | # Extract the first word of "ar", so it can be a program name with args. |
10968 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
10969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10970 | $as_echo_n "checking for $ac_word... " >&6; } | |
10971 | if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then : | |
10972 | $as_echo_n "(cached) " >&6 | |
859789af | 10973 | else |
c6b750e1 DJ |
10974 | case $AR_FOR_TARGET in |
10975 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
10976 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
10977 | ;; | |
2429c060 | 10978 | *) |
c6b750e1 DJ |
10979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10980 | for as_dir in $gcc_cv_tool_dirs | |
10981 | do | |
10982 | IFS=$as_save_IFS | |
10983 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
10984 | for ac_exec_ext in '' $ac_executable_extensions; do |
10985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 10986 | ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 10987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
10988 | break 2 |
10989 | fi | |
10990 | done | |
81ecdfbb RW |
10991 | done |
10992 | IFS=$as_save_IFS | |
c6b750e1 | 10993 | |
2429c060 PB |
10994 | ;; |
10995 | esac | |
859789af | 10996 | fi |
c6b750e1 | 10997 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
2429c060 | 10998 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11000 | $as_echo "$AR_FOR_TARGET" >&6; } | |
859789af | 11001 | else |
81ecdfbb RW |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11003 | $as_echo "no" >&6; } | |
859789af | 11004 | fi |
05cbd757 | 11005 | |
81ecdfbb | 11006 | |
2429c060 PB |
11007 | fi |
11008 | if test -z "$ac_cv_path_AR_FOR_TARGET" ; then | |
9a819804 AO |
11009 | |
11010 | ||
11011 | if test -n "$AR_FOR_TARGET"; then | |
11012 | ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET | |
11013 | elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11014 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11015 | fi | |
11016 | ||
11017 | if test -n "$ac_cv_prog_AR_FOR_TARGET"; then | |
11018 | for ncn_progname in ar; do | |
11019 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11020 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11022 | $as_echo_n "checking for $ac_word... " >&6; } | |
11023 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11024 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11025 | else |
11026 | if test -n "$AR_FOR_TARGET"; then | |
11027 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
11028 | else | |
11029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11030 | for as_dir in $PATH | |
11031 | do | |
11032 | IFS=$as_save_IFS | |
11033 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11034 | for ac_exec_ext in '' $ac_executable_extensions; do |
11035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11036 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11038 | break 2 |
11039 | fi | |
11040 | done | |
81ecdfbb RW |
11041 | done |
11042 | IFS=$as_save_IFS | |
9a819804 AO |
11043 | |
11044 | fi | |
11045 | fi | |
11046 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET | |
11047 | if test -n "$AR_FOR_TARGET"; then | |
81ecdfbb RW |
11048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11049 | $as_echo "$AR_FOR_TARGET" >&6; } | |
9a819804 | 11050 | else |
81ecdfbb RW |
11051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11052 | $as_echo "no" >&6; } | |
9a819804 AO |
11053 | fi |
11054 | ||
81ecdfbb | 11055 | |
9a819804 AO |
11056 | done |
11057 | fi | |
11058 | ||
11059 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11060 | for ncn_progname in ar; do |
81ecdfbb RW |
11061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11062 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11063 | if test -x $with_build_time_tools/${ncn_progname}; then |
11064 | ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11066 | $as_echo "yes" >&6; } | |
2429c060 PB |
11067 | break |
11068 | else | |
81ecdfbb RW |
11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11070 | $as_echo "no" >&6; } | |
2429c060 PB |
11071 | fi |
11072 | done | |
859789af AC |
11073 | fi |
11074 | ||
2429c060 PB |
11075 | if test -z "$ac_cv_prog_AR_FOR_TARGET"; then |
11076 | for ncn_progname in ar; do | |
11077 | if test -n "$ncn_target_tool_prefix"; then | |
11078 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 11079 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11081 | $as_echo_n "checking for $ac_word... " >&6; } | |
11082 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11083 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11084 | else |
2429c060 PB |
11085 | if test -n "$AR_FOR_TARGET"; then |
11086 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
7e0f7140 | 11087 | else |
c6b750e1 DJ |
11088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11089 | for as_dir in $PATH | |
11090 | do | |
11091 | IFS=$as_save_IFS | |
11092 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11093 | for ac_exec_ext in '' $ac_executable_extensions; do |
11094 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11095 | ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11097 | break 2 |
11098 | fi | |
11099 | done | |
81ecdfbb RW |
11100 | done |
11101 | IFS=$as_save_IFS | |
c6b750e1 | 11102 | |
7e0f7140 GK |
11103 | fi |
11104 | fi | |
c6b750e1 | 11105 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11106 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11108 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11109 | else |
81ecdfbb RW |
11110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11111 | $as_echo "no" >&6; } | |
7e0f7140 GK |
11112 | fi |
11113 | ||
81ecdfbb | 11114 | |
2429c060 PB |
11115 | fi |
11116 | if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then | |
11117 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 11118 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
11119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11120 | $as_echo_n "checking for $ac_word... " >&6; } | |
11121 | if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then : | |
11122 | $as_echo_n "(cached) " >&6 | |
7e0f7140 | 11123 | else |
2429c060 PB |
11124 | if test -n "$AR_FOR_TARGET"; then |
11125 | ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test. | |
cac3d6c4 | 11126 | else |
c6b750e1 DJ |
11127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11128 | for as_dir in $PATH | |
11129 | do | |
11130 | IFS=$as_save_IFS | |
11131 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11132 | for ac_exec_ext in '' $ac_executable_extensions; do |
11133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11134 | ac_cv_prog_AR_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11136 | break 2 |
11137 | fi | |
11138 | done | |
81ecdfbb RW |
11139 | done |
11140 | IFS=$as_save_IFS | |
c6b750e1 | 11141 | |
7e0f7140 GK |
11142 | fi |
11143 | fi | |
c6b750e1 | 11144 | AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET |
2429c060 | 11145 | if test -n "$AR_FOR_TARGET"; then |
81ecdfbb RW |
11146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5 |
11147 | $as_echo "$AR_FOR_TARGET" >&6; } | |
7e0f7140 | 11148 | else |
81ecdfbb RW |
11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11150 | $as_echo "no" >&6; } | |
7e0f7140 | 11151 | fi |
c6b750e1 | 11152 | |
81ecdfbb | 11153 | |
2429c060 PB |
11154 | fi |
11155 | test -n "$ac_cv_prog_AR_FOR_TARGET" && break | |
11156 | done | |
11157 | fi | |
c6b750e1 | 11158 | |
2429c060 PB |
11159 | if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then |
11160 | set dummy ar | |
7e0f7140 | 11161 | if test $build = $target ; then |
2429c060 | 11162 | AR_FOR_TARGET="$2" |
7e0f7140 | 11163 | else |
2429c060 | 11164 | AR_FOR_TARGET="${ncn_target_tool_prefix}$2" |
7e0f7140 | 11165 | fi |
d3f5afc4 MS |
11166 | else |
11167 | AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET" | |
7e0f7140 GK |
11168 | fi |
11169 | ||
3a35eeb3 PB |
11170 | else |
11171 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET | |
2429c060 PB |
11172 | fi |
11173 | ||
11174 | ||
11175 | ||
11176 | ||
11177 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
11178 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5 |
11180 | $as_echo_n "checking for as in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11181 | if test -x $with_build_time_tools/as; then |
11182 | AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as | |
11183 | ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
81ecdfbb RW |
11184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5 |
11185 | $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; } | |
3a35eeb3 | 11186 | else |
81ecdfbb RW |
11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11188 | $as_echo "no" >&6; } | |
3a35eeb3 | 11189 | fi |
2429c060 PB |
11190 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11191 | AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as` | |
d3f5afc4 MS |
11192 | test $AS_FOR_TARGET = as && AS_FOR_TARGET= |
11193 | test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET | |
2429c060 PB |
11194 | fi |
11195 | fi | |
c6b750e1 | 11196 | if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11197 | # Extract the first word of "as", so it can be a program name with args. |
11198 | set dummy as; ac_word=$2 | |
81ecdfbb RW |
11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11200 | $as_echo_n "checking for $ac_word... " >&6; } | |
11201 | if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then : | |
11202 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11203 | else |
c6b750e1 DJ |
11204 | case $AS_FOR_TARGET in |
11205 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11206 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
11207 | ;; | |
2429c060 | 11208 | *) |
c6b750e1 DJ |
11209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11210 | for as_dir in $gcc_cv_tool_dirs | |
11211 | do | |
11212 | IFS=$as_save_IFS | |
11213 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11214 | for ac_exec_ext in '' $ac_executable_extensions; do |
11215 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11216 | ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11217 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11218 | break 2 |
11219 | fi | |
11220 | done | |
81ecdfbb RW |
11221 | done |
11222 | IFS=$as_save_IFS | |
c6b750e1 | 11223 | |
2429c060 PB |
11224 | ;; |
11225 | esac | |
11226 | fi | |
c6b750e1 | 11227 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
2429c060 | 11228 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11230 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11231 | else |
81ecdfbb RW |
11232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11233 | $as_echo "no" >&6; } | |
2429c060 PB |
11234 | fi |
11235 | ||
81ecdfbb | 11236 | |
2429c060 PB |
11237 | fi |
11238 | if test -z "$ac_cv_path_AS_FOR_TARGET" ; then | |
9a819804 AO |
11239 | |
11240 | ||
11241 | if test -n "$AS_FOR_TARGET"; then | |
11242 | ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET | |
11243 | elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11244 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11245 | fi | |
11246 | ||
11247 | if test -n "$ac_cv_prog_AS_FOR_TARGET"; then | |
11248 | for ncn_progname in as; do | |
11249 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11250 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11252 | $as_echo_n "checking for $ac_word... " >&6; } | |
11253 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11254 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11255 | else |
11256 | if test -n "$AS_FOR_TARGET"; then | |
11257 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11258 | else | |
11259 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11260 | for as_dir in $PATH | |
11261 | do | |
11262 | IFS=$as_save_IFS | |
11263 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11264 | for ac_exec_ext in '' $ac_executable_extensions; do |
11265 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11266 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11267 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11268 | break 2 |
11269 | fi | |
11270 | done | |
81ecdfbb RW |
11271 | done |
11272 | IFS=$as_save_IFS | |
9a819804 AO |
11273 | |
11274 | fi | |
11275 | fi | |
11276 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET | |
11277 | if test -n "$AS_FOR_TARGET"; then | |
81ecdfbb RW |
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11279 | $as_echo "$AS_FOR_TARGET" >&6; } | |
9a819804 | 11280 | else |
81ecdfbb RW |
11281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11282 | $as_echo "no" >&6; } | |
9a819804 AO |
11283 | fi |
11284 | ||
81ecdfbb | 11285 | |
9a819804 AO |
11286 | done |
11287 | fi | |
11288 | ||
11289 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11290 | for ncn_progname in as; do |
81ecdfbb RW |
11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11292 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11293 | if test -x $with_build_time_tools/${ncn_progname}; then |
11294 | ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11296 | $as_echo "yes" >&6; } | |
2429c060 PB |
11297 | break |
11298 | else | |
81ecdfbb RW |
11299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11300 | $as_echo "no" >&6; } | |
2429c060 PB |
11301 | fi |
11302 | done | |
11303 | fi | |
11304 | ||
11305 | if test -z "$ac_cv_prog_AS_FOR_TARGET"; then | |
11306 | for ncn_progname in as; do | |
11307 | if test -n "$ncn_target_tool_prefix"; then | |
11308 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11309 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11311 | $as_echo_n "checking for $ac_word... " >&6; } | |
11312 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11313 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11314 | else |
11315 | if test -n "$AS_FOR_TARGET"; then | |
11316 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11317 | else | |
c6b750e1 DJ |
11318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11319 | for as_dir in $PATH | |
11320 | do | |
11321 | IFS=$as_save_IFS | |
11322 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11323 | for ac_exec_ext in '' $ac_executable_extensions; do |
11324 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11325 | ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11326 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11327 | break 2 |
11328 | fi | |
11329 | done | |
81ecdfbb RW |
11330 | done |
11331 | IFS=$as_save_IFS | |
c6b750e1 | 11332 | |
2429c060 PB |
11333 | fi |
11334 | fi | |
c6b750e1 | 11335 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11336 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11338 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11339 | else |
81ecdfbb RW |
11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11341 | $as_echo "no" >&6; } | |
2429c060 PB |
11342 | fi |
11343 | ||
81ecdfbb | 11344 | |
2429c060 PB |
11345 | fi |
11346 | if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then | |
11347 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11348 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11350 | $as_echo_n "checking for $ac_word... " >&6; } | |
11351 | if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then : | |
11352 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11353 | else |
11354 | if test -n "$AS_FOR_TARGET"; then | |
11355 | ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test. | |
11356 | else | |
c6b750e1 DJ |
11357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11358 | for as_dir in $PATH | |
11359 | do | |
11360 | IFS=$as_save_IFS | |
11361 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11362 | for ac_exec_ext in '' $ac_executable_extensions; do |
11363 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11364 | ac_cv_prog_AS_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11365 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11366 | break 2 |
11367 | fi | |
11368 | done | |
81ecdfbb RW |
11369 | done |
11370 | IFS=$as_save_IFS | |
c6b750e1 | 11371 | |
2429c060 PB |
11372 | fi |
11373 | fi | |
c6b750e1 | 11374 | AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET |
2429c060 | 11375 | if test -n "$AS_FOR_TARGET"; then |
81ecdfbb RW |
11376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5 |
11377 | $as_echo "$AS_FOR_TARGET" >&6; } | |
2429c060 | 11378 | else |
81ecdfbb RW |
11379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11380 | $as_echo "no" >&6; } | |
2429c060 | 11381 | fi |
c6b750e1 | 11382 | |
81ecdfbb | 11383 | |
2429c060 PB |
11384 | fi |
11385 | test -n "$ac_cv_prog_AS_FOR_TARGET" && break | |
11386 | done | |
11387 | fi | |
c6b750e1 | 11388 | |
2429c060 PB |
11389 | if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then |
11390 | set dummy as | |
11391 | if test $build = $target ; then | |
11392 | AS_FOR_TARGET="$2" | |
11393 | else | |
11394 | AS_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11395 | fi | |
d3f5afc4 MS |
11396 | else |
11397 | AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET" | |
2429c060 PB |
11398 | fi |
11399 | ||
3a35eeb3 PB |
11400 | else |
11401 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET | |
2429c060 PB |
11402 | fi |
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
11408 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5 |
11410 | $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11411 | if test -x $with_build_time_tools/dlltool; then |
11412 | DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool | |
11413 | ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
81ecdfbb RW |
11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5 |
11415 | $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; } | |
3a35eeb3 | 11416 | else |
81ecdfbb RW |
11417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11418 | $as_echo "no" >&6; } | |
3a35eeb3 | 11419 | fi |
2429c060 PB |
11420 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11421 | DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool` | |
d3f5afc4 MS |
11422 | test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET= |
11423 | test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
2429c060 PB |
11424 | fi |
11425 | fi | |
c6b750e1 | 11426 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11427 | # Extract the first word of "dlltool", so it can be a program name with args. |
11428 | set dummy dlltool; ac_word=$2 | |
81ecdfbb RW |
11429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11430 | $as_echo_n "checking for $ac_word... " >&6; } | |
11431 | if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11432 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11433 | else |
c6b750e1 DJ |
11434 | case $DLLTOOL_FOR_TARGET in |
11435 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11436 | ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path. |
11437 | ;; | |
2429c060 | 11438 | *) |
c6b750e1 DJ |
11439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11440 | for as_dir in $gcc_cv_tool_dirs | |
11441 | do | |
11442 | IFS=$as_save_IFS | |
11443 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11444 | for ac_exec_ext in '' $ac_executable_extensions; do |
11445 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11446 | ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11448 | break 2 |
11449 | fi | |
11450 | done | |
81ecdfbb RW |
11451 | done |
11452 | IFS=$as_save_IFS | |
c6b750e1 | 11453 | |
2429c060 PB |
11454 | ;; |
11455 | esac | |
11456 | fi | |
c6b750e1 | 11457 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET |
2429c060 | 11458 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11460 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11461 | else |
81ecdfbb RW |
11462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11463 | $as_echo "no" >&6; } | |
2429c060 PB |
11464 | fi |
11465 | ||
81ecdfbb | 11466 | |
2429c060 PB |
11467 | fi |
11468 | if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then | |
9a819804 AO |
11469 | |
11470 | ||
11471 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11472 | ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET | |
11473 | elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11474 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11475 | fi | |
11476 | ||
11477 | if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11478 | for ncn_progname in dlltool; do | |
11479 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11480 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11482 | $as_echo_n "checking for $ac_word... " >&6; } | |
11483 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11484 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11485 | else |
11486 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11487 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11488 | else | |
11489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11490 | for as_dir in $PATH | |
11491 | do | |
11492 | IFS=$as_save_IFS | |
11493 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11494 | for ac_exec_ext in '' $ac_executable_extensions; do |
11495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11496 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11498 | break 2 |
11499 | fi | |
11500 | done | |
81ecdfbb RW |
11501 | done |
11502 | IFS=$as_save_IFS | |
9a819804 AO |
11503 | |
11504 | fi | |
11505 | fi | |
11506 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET | |
11507 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
81ecdfbb RW |
11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11509 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
9a819804 | 11510 | else |
81ecdfbb RW |
11511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11512 | $as_echo "no" >&6; } | |
9a819804 AO |
11513 | fi |
11514 | ||
81ecdfbb | 11515 | |
9a819804 AO |
11516 | done |
11517 | fi | |
11518 | ||
11519 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11520 | for ncn_progname in dlltool; do |
81ecdfbb RW |
11521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11522 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11523 | if test -x $with_build_time_tools/${ncn_progname}; then |
11524 | ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11526 | $as_echo "yes" >&6; } | |
2429c060 PB |
11527 | break |
11528 | else | |
81ecdfbb RW |
11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11530 | $as_echo "no" >&6; } | |
2429c060 PB |
11531 | fi |
11532 | done | |
11533 | fi | |
11534 | ||
11535 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then | |
11536 | for ncn_progname in dlltool; do | |
11537 | if test -n "$ncn_target_tool_prefix"; then | |
11538 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11539 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11541 | $as_echo_n "checking for $ac_word... " >&6; } | |
11542 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11543 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11544 | else |
11545 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11546 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11547 | else | |
c6b750e1 DJ |
11548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11549 | for as_dir in $PATH | |
11550 | do | |
11551 | IFS=$as_save_IFS | |
11552 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11553 | for ac_exec_ext in '' $ac_executable_extensions; do |
11554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11555 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11557 | break 2 |
11558 | fi | |
11559 | done | |
81ecdfbb RW |
11560 | done |
11561 | IFS=$as_save_IFS | |
c6b750e1 | 11562 | |
2429c060 PB |
11563 | fi |
11564 | fi | |
c6b750e1 | 11565 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11566 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11568 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11569 | else |
81ecdfbb RW |
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11571 | $as_echo "no" >&6; } | |
2429c060 PB |
11572 | fi |
11573 | ||
81ecdfbb | 11574 | |
2429c060 PB |
11575 | fi |
11576 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then | |
11577 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11578 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11580 | $as_echo_n "checking for $ac_word... " >&6; } | |
11581 | if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then : | |
11582 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11583 | else |
11584 | if test -n "$DLLTOOL_FOR_TARGET"; then | |
11585 | ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test. | |
11586 | else | |
c6b750e1 DJ |
11587 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11588 | for as_dir in $PATH | |
11589 | do | |
11590 | IFS=$as_save_IFS | |
11591 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11592 | for ac_exec_ext in '' $ac_executable_extensions; do |
11593 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11594 | ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11595 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11596 | break 2 |
11597 | fi | |
11598 | done | |
81ecdfbb RW |
11599 | done |
11600 | IFS=$as_save_IFS | |
c6b750e1 | 11601 | |
2429c060 PB |
11602 | fi |
11603 | fi | |
c6b750e1 | 11604 | DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET |
2429c060 | 11605 | if test -n "$DLLTOOL_FOR_TARGET"; then |
81ecdfbb RW |
11606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5 |
11607 | $as_echo "$DLLTOOL_FOR_TARGET" >&6; } | |
2429c060 | 11608 | else |
81ecdfbb RW |
11609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11610 | $as_echo "no" >&6; } | |
2429c060 | 11611 | fi |
c6b750e1 | 11612 | |
81ecdfbb | 11613 | |
2429c060 PB |
11614 | fi |
11615 | test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break | |
11616 | done | |
11617 | fi | |
c6b750e1 | 11618 | |
2429c060 PB |
11619 | if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then |
11620 | set dummy dlltool | |
11621 | if test $build = $target ; then | |
11622 | DLLTOOL_FOR_TARGET="$2" | |
11623 | else | |
11624 | DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11625 | fi | |
d3f5afc4 MS |
11626 | else |
11627 | DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET" | |
2429c060 PB |
11628 | fi |
11629 | ||
3a35eeb3 PB |
11630 | else |
11631 | DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET | |
2429c060 PB |
11632 | fi |
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
11638 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5 |
11640 | $as_echo_n "checking for ld in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11641 | if test -x $with_build_time_tools/ld; then |
11642 | LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld | |
11643 | ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
81ecdfbb RW |
11644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5 |
11645 | $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; } | |
3a35eeb3 | 11646 | else |
81ecdfbb RW |
11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11648 | $as_echo "no" >&6; } | |
3a35eeb3 | 11649 | fi |
2429c060 PB |
11650 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11651 | LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld` | |
d3f5afc4 MS |
11652 | test $LD_FOR_TARGET = ld && LD_FOR_TARGET= |
11653 | test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET | |
2429c060 PB |
11654 | fi |
11655 | fi | |
c6b750e1 | 11656 | if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
11657 | # Extract the first word of "ld", so it can be a program name with args. |
11658 | set dummy ld; ac_word=$2 | |
81ecdfbb RW |
11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11660 | $as_echo_n "checking for $ac_word... " >&6; } | |
11661 | if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then : | |
11662 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11663 | else |
c6b750e1 DJ |
11664 | case $LD_FOR_TARGET in |
11665 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
11666 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
11667 | ;; | |
2429c060 | 11668 | *) |
c6b750e1 DJ |
11669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11670 | for as_dir in $gcc_cv_tool_dirs | |
11671 | do | |
11672 | IFS=$as_save_IFS | |
11673 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11674 | for ac_exec_ext in '' $ac_executable_extensions; do |
11675 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11676 | ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11677 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11678 | break 2 |
11679 | fi | |
11680 | done | |
81ecdfbb RW |
11681 | done |
11682 | IFS=$as_save_IFS | |
c6b750e1 | 11683 | |
2429c060 PB |
11684 | ;; |
11685 | esac | |
11686 | fi | |
c6b750e1 | 11687 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
2429c060 | 11688 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11690 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11691 | else |
81ecdfbb RW |
11692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11693 | $as_echo "no" >&6; } | |
2429c060 PB |
11694 | fi |
11695 | ||
81ecdfbb | 11696 | |
2429c060 PB |
11697 | fi |
11698 | if test -z "$ac_cv_path_LD_FOR_TARGET" ; then | |
9a819804 AO |
11699 | |
11700 | ||
11701 | if test -n "$LD_FOR_TARGET"; then | |
11702 | ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET | |
11703 | elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11704 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11705 | fi | |
11706 | ||
11707 | if test -n "$ac_cv_prog_LD_FOR_TARGET"; then | |
11708 | for ncn_progname in ld; do | |
11709 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11710 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11712 | $as_echo_n "checking for $ac_word... " >&6; } | |
11713 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11714 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11715 | else |
11716 | if test -n "$LD_FOR_TARGET"; then | |
11717 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11718 | else | |
11719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11720 | for as_dir in $PATH | |
11721 | do | |
11722 | IFS=$as_save_IFS | |
11723 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11724 | for ac_exec_ext in '' $ac_executable_extensions; do |
11725 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11726 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11727 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11728 | break 2 |
11729 | fi | |
11730 | done | |
81ecdfbb RW |
11731 | done |
11732 | IFS=$as_save_IFS | |
9a819804 AO |
11733 | |
11734 | fi | |
11735 | fi | |
11736 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET | |
11737 | if test -n "$LD_FOR_TARGET"; then | |
81ecdfbb RW |
11738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11739 | $as_echo "$LD_FOR_TARGET" >&6; } | |
9a819804 | 11740 | else |
81ecdfbb RW |
11741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11742 | $as_echo "no" >&6; } | |
9a819804 AO |
11743 | fi |
11744 | ||
81ecdfbb | 11745 | |
9a819804 AO |
11746 | done |
11747 | fi | |
11748 | ||
11749 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11750 | for ncn_progname in ld; do |
81ecdfbb RW |
11751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11752 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11753 | if test -x $with_build_time_tools/${ncn_progname}; then |
11754 | ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11756 | $as_echo "yes" >&6; } | |
2429c060 PB |
11757 | break |
11758 | else | |
81ecdfbb RW |
11759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11760 | $as_echo "no" >&6; } | |
2429c060 PB |
11761 | fi |
11762 | done | |
11763 | fi | |
11764 | ||
11765 | if test -z "$ac_cv_prog_LD_FOR_TARGET"; then | |
11766 | for ncn_progname in ld; do | |
11767 | if test -n "$ncn_target_tool_prefix"; then | |
11768 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11769 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11771 | $as_echo_n "checking for $ac_word... " >&6; } | |
11772 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11773 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11774 | else |
11775 | if test -n "$LD_FOR_TARGET"; then | |
11776 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11777 | else | |
c6b750e1 DJ |
11778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11779 | for as_dir in $PATH | |
11780 | do | |
11781 | IFS=$as_save_IFS | |
11782 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11783 | for ac_exec_ext in '' $ac_executable_extensions; do |
11784 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11785 | ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 11786 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11787 | break 2 |
11788 | fi | |
11789 | done | |
81ecdfbb RW |
11790 | done |
11791 | IFS=$as_save_IFS | |
c6b750e1 | 11792 | |
2429c060 PB |
11793 | fi |
11794 | fi | |
c6b750e1 | 11795 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11796 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11798 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11799 | else |
81ecdfbb RW |
11800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11801 | $as_echo "no" >&6; } | |
2429c060 PB |
11802 | fi |
11803 | ||
81ecdfbb | 11804 | |
2429c060 PB |
11805 | fi |
11806 | if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then | |
11807 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11808 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11810 | $as_echo_n "checking for $ac_word... " >&6; } | |
11811 | if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then : | |
11812 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
11813 | else |
11814 | if test -n "$LD_FOR_TARGET"; then | |
11815 | ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test. | |
11816 | else | |
c6b750e1 DJ |
11817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11818 | for as_dir in $PATH | |
11819 | do | |
11820 | IFS=$as_save_IFS | |
11821 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11822 | for ac_exec_ext in '' $ac_executable_extensions; do |
11823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 11824 | ac_cv_prog_LD_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11825 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11826 | break 2 |
11827 | fi | |
11828 | done | |
81ecdfbb RW |
11829 | done |
11830 | IFS=$as_save_IFS | |
c6b750e1 | 11831 | |
2429c060 PB |
11832 | fi |
11833 | fi | |
c6b750e1 | 11834 | LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET |
2429c060 | 11835 | if test -n "$LD_FOR_TARGET"; then |
81ecdfbb RW |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5 |
11837 | $as_echo "$LD_FOR_TARGET" >&6; } | |
2429c060 | 11838 | else |
81ecdfbb RW |
11839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11840 | $as_echo "no" >&6; } | |
2429c060 | 11841 | fi |
c6b750e1 | 11842 | |
81ecdfbb | 11843 | |
2429c060 PB |
11844 | fi |
11845 | test -n "$ac_cv_prog_LD_FOR_TARGET" && break | |
11846 | done | |
11847 | fi | |
c6b750e1 | 11848 | |
2429c060 PB |
11849 | if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then |
11850 | set dummy ld | |
11851 | if test $build = $target ; then | |
11852 | LD_FOR_TARGET="$2" | |
11853 | else | |
11854 | LD_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
11855 | fi | |
d3f5afc4 MS |
11856 | else |
11857 | LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET" | |
2429c060 PB |
11858 | fi |
11859 | ||
3a35eeb3 PB |
11860 | else |
11861 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET | |
2429c060 PB |
11862 | fi |
11863 | ||
11864 | ||
11865 | ||
11866 | ||
11867 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11868 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5 |
11870 | $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11871 | if test -x $with_build_time_tools/lipo; then |
11872 | LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo | |
11873 | ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
81ecdfbb RW |
11874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5 |
11875 | $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; } | |
3a35eeb3 | 11876 | else |
81ecdfbb RW |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11878 | $as_echo "no" >&6; } | |
3a35eeb3 | 11879 | fi |
2429c060 PB |
11880 | elif test $build != $host && test $have_gcc_for_target = yes; then |
11881 | LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo` | |
d3f5afc4 MS |
11882 | test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET= |
11883 | test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
2429c060 PB |
11884 | fi |
11885 | fi | |
9a819804 AO |
11886 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
11887 | # Extract the first word of "lipo", so it can be a program name with args. | |
11888 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
11889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11890 | $as_echo_n "checking for $ac_word... " >&6; } | |
11891 | if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then : | |
11892 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
11893 | else |
11894 | case $LIPO_FOR_TARGET in | |
11895 | [\\/]* | ?:[\\/]*) | |
11896 | ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path. | |
11897 | ;; | |
11898 | *) | |
11899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11900 | for as_dir in $gcc_cv_tool_dirs | |
11901 | do | |
11902 | IFS=$as_save_IFS | |
11903 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11904 | for ac_exec_ext in '' $ac_executable_extensions; do |
11905 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11906 | ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 11907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
11908 | break 2 |
11909 | fi | |
11910 | done | |
81ecdfbb RW |
11911 | done |
11912 | IFS=$as_save_IFS | |
9a819804 AO |
11913 | |
11914 | ;; | |
11915 | esac | |
11916 | fi | |
11917 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
9a819804 | 11918 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11920 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
9a819804 | 11921 | else |
81ecdfbb RW |
11922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11923 | $as_echo "no" >&6; } | |
9a819804 AO |
11924 | fi |
11925 | ||
81ecdfbb | 11926 | |
9a819804 AO |
11927 | fi |
11928 | if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then | |
11929 | ||
11930 | ||
11931 | if test -n "$LIPO_FOR_TARGET"; then | |
11932 | ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET | |
11933 | elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11934 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
11935 | fi | |
11936 | ||
11937 | if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11938 | for ncn_progname in lipo; do | |
11939 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
11940 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11942 | $as_echo_n "checking for $ac_word... " >&6; } | |
11943 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
11944 | $as_echo_n "(cached) " >&6 | |
2429c060 | 11945 | else |
9a819804 AO |
11946 | if test -n "$LIPO_FOR_TARGET"; then |
11947 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
11948 | else | |
11949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11950 | for as_dir in $PATH | |
c6b750e1 DJ |
11951 | do |
11952 | IFS=$as_save_IFS | |
11953 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
11954 | for ac_exec_ext in '' $ac_executable_extensions; do |
11955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 11956 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 11957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
11958 | break 2 |
11959 | fi | |
11960 | done | |
81ecdfbb RW |
11961 | done |
11962 | IFS=$as_save_IFS | |
c6b750e1 | 11963 | |
2429c060 | 11964 | fi |
9a819804 AO |
11965 | fi |
11966 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET | |
2429c060 | 11967 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
11969 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 11970 | else |
81ecdfbb RW |
11971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11972 | $as_echo "no" >&6; } | |
2429c060 PB |
11973 | fi |
11974 | ||
81ecdfbb | 11975 | |
9a819804 | 11976 | done |
2429c060 | 11977 | fi |
9a819804 AO |
11978 | |
11979 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 11980 | for ncn_progname in lipo; do |
81ecdfbb RW |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
11982 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
11983 | if test -x $with_build_time_tools/${ncn_progname}; then |
11984 | ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
11985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11986 | $as_echo "yes" >&6; } | |
2429c060 PB |
11987 | break |
11988 | else | |
81ecdfbb RW |
11989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11990 | $as_echo "no" >&6; } | |
2429c060 PB |
11991 | fi |
11992 | done | |
11993 | fi | |
11994 | ||
11995 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then | |
11996 | for ncn_progname in lipo; do | |
11997 | if test -n "$ncn_target_tool_prefix"; then | |
11998 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
11999 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12001 | $as_echo_n "checking for $ac_word... " >&6; } | |
12002 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12003 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
12004 | else |
12005 | if test -n "$LIPO_FOR_TARGET"; then | |
12006 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12007 | else | |
c6b750e1 DJ |
12008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12009 | for as_dir in $PATH | |
12010 | do | |
12011 | IFS=$as_save_IFS | |
12012 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12013 | for ac_exec_ext in '' $ac_executable_extensions; do |
12014 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12015 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12017 | break 2 |
12018 | fi | |
12019 | done | |
81ecdfbb RW |
12020 | done |
12021 | IFS=$as_save_IFS | |
c6b750e1 | 12022 | |
2429c060 PB |
12023 | fi |
12024 | fi | |
c6b750e1 | 12025 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12026 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12028 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12029 | else |
81ecdfbb RW |
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12031 | $as_echo "no" >&6; } | |
2429c060 PB |
12032 | fi |
12033 | ||
81ecdfbb | 12034 | |
2429c060 PB |
12035 | fi |
12036 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then | |
12037 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12038 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12040 | $as_echo_n "checking for $ac_word... " >&6; } | |
12041 | if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then : | |
12042 | $as_echo_n "(cached) " >&6 | |
2429c060 PB |
12043 | else |
12044 | if test -n "$LIPO_FOR_TARGET"; then | |
12045 | ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test. | |
12046 | else | |
c6b750e1 DJ |
12047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12048 | for as_dir in $PATH | |
12049 | do | |
12050 | IFS=$as_save_IFS | |
12051 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12052 | for ac_exec_ext in '' $ac_executable_extensions; do |
12053 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12054 | ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12055 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12056 | break 2 |
12057 | fi | |
12058 | done | |
81ecdfbb RW |
12059 | done |
12060 | IFS=$as_save_IFS | |
c6b750e1 | 12061 | |
2429c060 PB |
12062 | fi |
12063 | fi | |
c6b750e1 | 12064 | LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET |
2429c060 | 12065 | if test -n "$LIPO_FOR_TARGET"; then |
81ecdfbb RW |
12066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5 |
12067 | $as_echo "$LIPO_FOR_TARGET" >&6; } | |
2429c060 | 12068 | else |
81ecdfbb RW |
12069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12070 | $as_echo "no" >&6; } | |
2429c060 | 12071 | fi |
c6b750e1 | 12072 | |
81ecdfbb | 12073 | |
2429c060 PB |
12074 | fi |
12075 | test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break | |
12076 | done | |
12077 | fi | |
c6b750e1 | 12078 | |
2429c060 PB |
12079 | if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then |
12080 | set dummy lipo | |
12081 | if test $build = $target ; then | |
12082 | LIPO_FOR_TARGET="$2" | |
12083 | else | |
12084 | LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12085 | fi | |
d3f5afc4 MS |
12086 | else |
12087 | LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET" | |
2429c060 PB |
12088 | fi |
12089 | ||
3a35eeb3 PB |
12090 | else |
12091 | LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET | |
2429c060 PB |
12092 | fi |
12093 | ||
12094 | ||
12095 | ||
12096 | ||
12097 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
12098 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5 |
12100 | $as_echo_n "checking for nm in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12101 | if test -x $with_build_time_tools/nm; then |
12102 | NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm | |
12103 | ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
81ecdfbb RW |
12104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5 |
12105 | $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; } | |
3a35eeb3 | 12106 | else |
81ecdfbb RW |
12107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12108 | $as_echo "no" >&6; } | |
3a35eeb3 | 12109 | fi |
2429c060 PB |
12110 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12111 | NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm` | |
d3f5afc4 MS |
12112 | test $NM_FOR_TARGET = nm && NM_FOR_TARGET= |
12113 | test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET | |
2429c060 PB |
12114 | fi |
12115 | fi | |
c6b750e1 | 12116 | if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12117 | # Extract the first word of "nm", so it can be a program name with args. |
12118 | set dummy nm; ac_word=$2 | |
81ecdfbb RW |
12119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12120 | $as_echo_n "checking for $ac_word... " >&6; } | |
12121 | if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then : | |
12122 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12123 | else |
c6b750e1 DJ |
12124 | case $NM_FOR_TARGET in |
12125 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12126 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
12127 | ;; | |
2429c060 | 12128 | *) |
c6b750e1 DJ |
12129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12130 | for as_dir in $gcc_cv_tool_dirs | |
12131 | do | |
12132 | IFS=$as_save_IFS | |
12133 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12134 | for ac_exec_ext in '' $ac_executable_extensions; do |
12135 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12136 | ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12137 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12138 | break 2 |
12139 | fi | |
12140 | done | |
81ecdfbb RW |
12141 | done |
12142 | IFS=$as_save_IFS | |
c6b750e1 | 12143 | |
2429c060 PB |
12144 | ;; |
12145 | esac | |
12146 | fi | |
c6b750e1 | 12147 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
2429c060 | 12148 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12150 | $as_echo "$NM_FOR_TARGET" >&6; } | |
2429c060 | 12151 | else |
81ecdfbb RW |
12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12153 | $as_echo "no" >&6; } | |
2429c060 PB |
12154 | fi |
12155 | ||
81ecdfbb | 12156 | |
2429c060 PB |
12157 | fi |
12158 | if test -z "$ac_cv_path_NM_FOR_TARGET" ; then | |
9a819804 AO |
12159 | |
12160 | ||
12161 | if test -n "$NM_FOR_TARGET"; then | |
12162 | ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET | |
12163 | elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12164 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12165 | fi | |
12166 | ||
12167 | if test -n "$ac_cv_prog_NM_FOR_TARGET"; then | |
12168 | for ncn_progname in nm; do | |
12169 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12170 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12172 | $as_echo_n "checking for $ac_word... " >&6; } | |
12173 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12174 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12175 | else |
12176 | if test -n "$NM_FOR_TARGET"; then | |
12177 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
12178 | else | |
12179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12180 | for as_dir in $PATH | |
12181 | do | |
12182 | IFS=$as_save_IFS | |
12183 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12184 | for ac_exec_ext in '' $ac_executable_extensions; do |
12185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12186 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12188 | break 2 |
12189 | fi | |
12190 | done | |
81ecdfbb RW |
12191 | done |
12192 | IFS=$as_save_IFS | |
9a819804 AO |
12193 | |
12194 | fi | |
12195 | fi | |
12196 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET | |
12197 | if test -n "$NM_FOR_TARGET"; then | |
81ecdfbb RW |
12198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12199 | $as_echo "$NM_FOR_TARGET" >&6; } | |
9a819804 | 12200 | else |
81ecdfbb RW |
12201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12202 | $as_echo "no" >&6; } | |
9a819804 AO |
12203 | fi |
12204 | ||
81ecdfbb | 12205 | |
9a819804 AO |
12206 | done |
12207 | fi | |
12208 | ||
12209 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12210 | for ncn_progname in nm; do |
81ecdfbb RW |
12211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12212 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12213 | if test -x $with_build_time_tools/${ncn_progname}; then |
12214 | ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12216 | $as_echo "yes" >&6; } | |
2429c060 PB |
12217 | break |
12218 | else | |
81ecdfbb RW |
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12220 | $as_echo "no" >&6; } | |
2429c060 PB |
12221 | fi |
12222 | done | |
12223 | fi | |
12224 | ||
12225 | if test -z "$ac_cv_prog_NM_FOR_TARGET"; then | |
12226 | for ncn_progname in nm; do | |
12227 | if test -n "$ncn_target_tool_prefix"; then | |
12228 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 12229 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12231 | $as_echo_n "checking for $ac_word... " >&6; } | |
12232 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12233 | $as_echo_n "(cached) " >&6 | |
859789af | 12234 | else |
55db4b87 PB |
12235 | if test -n "$NM_FOR_TARGET"; then |
12236 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12237 | else |
c6b750e1 DJ |
12238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12239 | for as_dir in $PATH | |
12240 | do | |
12241 | IFS=$as_save_IFS | |
12242 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12243 | for ac_exec_ext in '' $ac_executable_extensions; do |
12244 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12245 | ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12246 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12247 | break 2 |
12248 | fi | |
12249 | done | |
81ecdfbb RW |
12250 | done |
12251 | IFS=$as_save_IFS | |
c6b750e1 | 12252 | |
859789af AC |
12253 | fi |
12254 | fi | |
c6b750e1 | 12255 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
55db4b87 | 12256 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12258 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12259 | else |
81ecdfbb RW |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12261 | $as_echo "no" >&6; } | |
859789af AC |
12262 | fi |
12263 | ||
81ecdfbb | 12264 | |
2429c060 PB |
12265 | fi |
12266 | if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then | |
12267 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12268 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12270 | $as_echo_n "checking for $ac_word... " >&6; } | |
12271 | if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then : | |
12272 | $as_echo_n "(cached) " >&6 | |
859789af | 12273 | else |
05cbd757 PB |
12274 | if test -n "$NM_FOR_TARGET"; then |
12275 | ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test. | |
859789af | 12276 | else |
c6b750e1 DJ |
12277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12278 | for as_dir in $PATH | |
12279 | do | |
12280 | IFS=$as_save_IFS | |
12281 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12282 | for ac_exec_ext in '' $ac_executable_extensions; do |
12283 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12284 | ac_cv_prog_NM_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12286 | break 2 |
12287 | fi | |
12288 | done | |
81ecdfbb RW |
12289 | done |
12290 | IFS=$as_save_IFS | |
c6b750e1 | 12291 | |
859789af AC |
12292 | fi |
12293 | fi | |
c6b750e1 | 12294 | NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET |
05cbd757 | 12295 | if test -n "$NM_FOR_TARGET"; then |
81ecdfbb RW |
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5 |
12297 | $as_echo "$NM_FOR_TARGET" >&6; } | |
859789af | 12298 | else |
81ecdfbb RW |
12299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12300 | $as_echo "no" >&6; } | |
859789af | 12301 | fi |
c6b750e1 | 12302 | |
81ecdfbb | 12303 | |
2429c060 PB |
12304 | fi |
12305 | test -n "$ac_cv_prog_NM_FOR_TARGET" && break | |
12306 | done | |
12307 | fi | |
c6b750e1 | 12308 | |
05cbd757 PB |
12309 | if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then |
12310 | set dummy nm | |
12311 | if test $build = $target ; then | |
12312 | NM_FOR_TARGET="$2" | |
859789af | 12313 | else |
05cbd757 | 12314 | NM_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 12315 | fi |
d3f5afc4 MS |
12316 | else |
12317 | NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET" | |
859789af AC |
12318 | fi |
12319 | ||
3a35eeb3 PB |
12320 | else |
12321 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET | |
2429c060 PB |
12322 | fi |
12323 | ||
12324 | ||
12325 | ||
12326 | ||
6b91c541 AP |
12327 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then |
12328 | if test -n "$with_build_time_tools"; then | |
12329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5 | |
12330 | $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; } | |
12331 | if test -x $with_build_time_tools/objcopy; then | |
12332 | OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy | |
12333 | ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5 | |
12335 | $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; } | |
12336 | else | |
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12338 | $as_echo "no" >&6; } | |
12339 | fi | |
12340 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
12341 | OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy` | |
12342 | test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET= | |
12343 | test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12344 | fi | |
12345 | fi | |
12346 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
12347 | # Extract the first word of "objcopy", so it can be a program name with args. | |
12348 | set dummy objcopy; ac_word=$2 | |
12349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12350 | $as_echo_n "checking for $ac_word... " >&6; } | |
12351 | if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12352 | $as_echo_n "(cached) " >&6 | |
12353 | else | |
12354 | case $OBJCOPY_FOR_TARGET in | |
12355 | [\\/]* | ?:[\\/]*) | |
12356 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. | |
12357 | ;; | |
12358 | *) | |
12359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12360 | for as_dir in $gcc_cv_tool_dirs | |
12361 | do | |
12362 | IFS=$as_save_IFS | |
12363 | test -z "$as_dir" && as_dir=. | |
12364 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12365 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12366 | ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
12367 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12368 | break 2 | |
12369 | fi | |
12370 | done | |
12371 | done | |
12372 | IFS=$as_save_IFS | |
12373 | ||
12374 | ;; | |
12375 | esac | |
12376 | fi | |
12377 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12378 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12380 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12381 | else | |
12382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12383 | $as_echo "no" >&6; } | |
12384 | fi | |
12385 | ||
12386 | ||
12387 | fi | |
12388 | if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then | |
12389 | ||
12390 | ||
12391 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12392 | ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET | |
12393 | elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12394 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12395 | fi | |
12396 | ||
12397 | if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12398 | for ncn_progname in objcopy; do | |
12399 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12400 | set dummy ${ncn_progname}; ac_word=$2 | |
12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12402 | $as_echo_n "checking for $ac_word... " >&6; } | |
12403 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12404 | $as_echo_n "(cached) " >&6 | |
12405 | else | |
12406 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12407 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12408 | else | |
12409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12410 | for as_dir in $PATH | |
12411 | do | |
12412 | IFS=$as_save_IFS | |
12413 | test -z "$as_dir" && as_dir=. | |
12414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12415 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12416 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12417 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12418 | break 2 | |
12419 | fi | |
12420 | done | |
12421 | done | |
12422 | IFS=$as_save_IFS | |
12423 | ||
12424 | fi | |
12425 | fi | |
12426 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12427 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12429 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12430 | else | |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12432 | $as_echo "no" >&6; } | |
12433 | fi | |
12434 | ||
12435 | ||
12436 | done | |
12437 | fi | |
12438 | ||
12439 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
12440 | for ncn_progname in objcopy; do | |
12441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
12442 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
12443 | if test -x $with_build_time_tools/${ncn_progname}; then | |
12444 | ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12446 | $as_echo "yes" >&6; } | |
12447 | break | |
12448 | else | |
12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12450 | $as_echo "no" >&6; } | |
12451 | fi | |
12452 | done | |
12453 | fi | |
12454 | ||
12455 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then | |
12456 | for ncn_progname in objcopy; do | |
12457 | if test -n "$ncn_target_tool_prefix"; then | |
12458 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
12459 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
12460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12461 | $as_echo_n "checking for $ac_word... " >&6; } | |
12462 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12463 | $as_echo_n "(cached) " >&6 | |
12464 | else | |
12465 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12466 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12467 | else | |
12468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12469 | for as_dir in $PATH | |
12470 | do | |
12471 | IFS=$as_save_IFS | |
12472 | test -z "$as_dir" && as_dir=. | |
12473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12474 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12475 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
12476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12477 | break 2 | |
12478 | fi | |
12479 | done | |
12480 | done | |
12481 | IFS=$as_save_IFS | |
12482 | ||
12483 | fi | |
12484 | fi | |
12485 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12486 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12488 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12489 | else | |
12490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12491 | $as_echo "no" >&6; } | |
12492 | fi | |
12493 | ||
12494 | ||
12495 | fi | |
12496 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then | |
12497 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12498 | set dummy ${ncn_progname}; ac_word=$2 | |
12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12500 | $as_echo_n "checking for $ac_word... " >&6; } | |
12501 | if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then : | |
12502 | $as_echo_n "(cached) " >&6 | |
12503 | else | |
12504 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12505 | ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test. | |
12506 | else | |
12507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12508 | for as_dir in $PATH | |
12509 | do | |
12510 | IFS=$as_save_IFS | |
12511 | test -z "$as_dir" && as_dir=. | |
12512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12513 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12514 | ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}" | |
12515 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12516 | break 2 | |
12517 | fi | |
12518 | done | |
12519 | done | |
12520 | IFS=$as_save_IFS | |
12521 | ||
12522 | fi | |
12523 | fi | |
12524 | OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET | |
12525 | if test -n "$OBJCOPY_FOR_TARGET"; then | |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5 | |
12527 | $as_echo "$OBJCOPY_FOR_TARGET" >&6; } | |
12528 | else | |
12529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12530 | $as_echo "no" >&6; } | |
12531 | fi | |
12532 | ||
12533 | ||
12534 | fi | |
12535 | test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break | |
12536 | done | |
12537 | fi | |
12538 | ||
12539 | if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then | |
12540 | set dummy objcopy | |
12541 | if test $build = $target ; then | |
12542 | OBJCOPY_FOR_TARGET="$2" | |
12543 | else | |
12544 | OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12545 | fi | |
12546 | else | |
12547 | OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET" | |
12548 | fi | |
12549 | ||
12550 | else | |
12551 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET | |
12552 | fi | |
12553 | ||
12554 | ||
12555 | ||
12556 | ||
2429c060 PB |
12557 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then |
12558 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5 |
12560 | $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12561 | if test -x $with_build_time_tools/objdump; then |
12562 | OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump | |
12563 | ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
81ecdfbb RW |
12564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5 |
12565 | $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; } | |
3a35eeb3 | 12566 | else |
81ecdfbb RW |
12567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12568 | $as_echo "no" >&6; } | |
3a35eeb3 | 12569 | fi |
2429c060 PB |
12570 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12571 | OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump` | |
d3f5afc4 MS |
12572 | test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET= |
12573 | test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
2429c060 PB |
12574 | fi |
12575 | fi | |
c6b750e1 | 12576 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12577 | # Extract the first word of "objdump", so it can be a program name with args. |
12578 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12580 | $as_echo_n "checking for $ac_word... " >&6; } | |
12581 | if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12582 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12583 | else |
c6b750e1 DJ |
12584 | case $OBJDUMP_FOR_TARGET in |
12585 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12586 | ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path. |
12587 | ;; | |
2429c060 | 12588 | *) |
c6b750e1 DJ |
12589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12590 | for as_dir in $gcc_cv_tool_dirs | |
12591 | do | |
12592 | IFS=$as_save_IFS | |
12593 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12594 | for ac_exec_ext in '' $ac_executable_extensions; do |
12595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12596 | ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12598 | break 2 |
12599 | fi | |
12600 | done | |
81ecdfbb RW |
12601 | done |
12602 | IFS=$as_save_IFS | |
c6b750e1 | 12603 | |
2429c060 PB |
12604 | ;; |
12605 | esac | |
12606 | fi | |
c6b750e1 | 12607 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET |
2429c060 | 12608 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12610 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
2429c060 | 12611 | else |
81ecdfbb RW |
12612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12613 | $as_echo "no" >&6; } | |
2429c060 PB |
12614 | fi |
12615 | ||
81ecdfbb | 12616 | |
2429c060 PB |
12617 | fi |
12618 | if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then | |
9a819804 AO |
12619 | |
12620 | ||
12621 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12622 | ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET | |
12623 | elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12624 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12625 | fi | |
12626 | ||
12627 | if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12628 | for ncn_progname in objdump; do | |
12629 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12630 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12632 | $as_echo_n "checking for $ac_word... " >&6; } | |
12633 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12634 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12635 | else |
12636 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12637 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12638 | else | |
12639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12640 | for as_dir in $PATH | |
12641 | do | |
12642 | IFS=$as_save_IFS | |
12643 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12644 | for ac_exec_ext in '' $ac_executable_extensions; do |
12645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12646 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12648 | break 2 |
12649 | fi | |
12650 | done | |
81ecdfbb RW |
12651 | done |
12652 | IFS=$as_save_IFS | |
9a819804 AO |
12653 | |
12654 | fi | |
12655 | fi | |
12656 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET | |
12657 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
81ecdfbb RW |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12659 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
9a819804 | 12660 | else |
81ecdfbb RW |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12662 | $as_echo "no" >&6; } | |
9a819804 AO |
12663 | fi |
12664 | ||
81ecdfbb | 12665 | |
9a819804 AO |
12666 | done |
12667 | fi | |
12668 | ||
12669 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12670 | for ncn_progname in objdump; do |
81ecdfbb RW |
12671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12672 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12673 | if test -x $with_build_time_tools/${ncn_progname}; then |
12674 | ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12676 | $as_echo "yes" >&6; } | |
2429c060 PB |
12677 | break |
12678 | else | |
81ecdfbb RW |
12679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12680 | $as_echo "no" >&6; } | |
2429c060 PB |
12681 | fi |
12682 | done | |
12683 | fi | |
12684 | ||
12685 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then | |
12686 | for ncn_progname in objdump; do | |
12687 | if test -n "$ncn_target_tool_prefix"; then | |
12688 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12689 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12691 | $as_echo_n "checking for $ac_word... " >&6; } | |
12692 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12693 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12694 | else |
12695 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12696 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12697 | else | |
c6b750e1 DJ |
12698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12699 | for as_dir in $PATH | |
12700 | do | |
12701 | IFS=$as_save_IFS | |
12702 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12703 | for ac_exec_ext in '' $ac_executable_extensions; do |
12704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12705 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12707 | break 2 |
12708 | fi | |
12709 | done | |
81ecdfbb RW |
12710 | done |
12711 | IFS=$as_save_IFS | |
c6b750e1 | 12712 | |
5ae72758 DJ |
12713 | fi |
12714 | fi | |
c6b750e1 | 12715 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12716 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12718 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12719 | else |
81ecdfbb RW |
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12721 | $as_echo "no" >&6; } | |
5ae72758 DJ |
12722 | fi |
12723 | ||
81ecdfbb | 12724 | |
2429c060 PB |
12725 | fi |
12726 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then | |
12727 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12728 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12730 | $as_echo_n "checking for $ac_word... " >&6; } | |
12731 | if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then : | |
12732 | $as_echo_n "(cached) " >&6 | |
5ae72758 DJ |
12733 | else |
12734 | if test -n "$OBJDUMP_FOR_TARGET"; then | |
12735 | ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test. | |
12736 | else | |
c6b750e1 DJ |
12737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12738 | for as_dir in $PATH | |
12739 | do | |
12740 | IFS=$as_save_IFS | |
12741 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12742 | for ac_exec_ext in '' $ac_executable_extensions; do |
12743 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12744 | ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12745 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12746 | break 2 |
12747 | fi | |
12748 | done | |
81ecdfbb RW |
12749 | done |
12750 | IFS=$as_save_IFS | |
c6b750e1 | 12751 | |
5ae72758 DJ |
12752 | fi |
12753 | fi | |
c6b750e1 | 12754 | OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET |
5ae72758 | 12755 | if test -n "$OBJDUMP_FOR_TARGET"; then |
81ecdfbb RW |
12756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5 |
12757 | $as_echo "$OBJDUMP_FOR_TARGET" >&6; } | |
5ae72758 | 12758 | else |
81ecdfbb RW |
12759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12760 | $as_echo "no" >&6; } | |
5ae72758 | 12761 | fi |
c6b750e1 | 12762 | |
81ecdfbb | 12763 | |
2429c060 PB |
12764 | fi |
12765 | test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break | |
12766 | done | |
12767 | fi | |
c6b750e1 | 12768 | |
5ae72758 DJ |
12769 | if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then |
12770 | set dummy objdump | |
12771 | if test $build = $target ; then | |
12772 | OBJDUMP_FOR_TARGET="$2" | |
12773 | else | |
12774 | OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
12775 | fi | |
d3f5afc4 MS |
12776 | else |
12777 | OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET" | |
5ae72758 DJ |
12778 | fi |
12779 | ||
3a35eeb3 PB |
12780 | else |
12781 | OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET | |
2429c060 PB |
12782 | fi |
12783 | ||
12784 | ||
12785 | ||
12786 | ||
12787 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
12788 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5 |
12790 | $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12791 | if test -x $with_build_time_tools/ranlib; then |
12792 | RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib | |
12793 | ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
81ecdfbb RW |
12794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5 |
12795 | $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; } | |
3a35eeb3 | 12796 | else |
81ecdfbb RW |
12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12798 | $as_echo "no" >&6; } | |
3a35eeb3 | 12799 | fi |
2429c060 PB |
12800 | elif test $build != $host && test $have_gcc_for_target = yes; then |
12801 | RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib` | |
d3f5afc4 MS |
12802 | test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET= |
12803 | test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
2429c060 PB |
12804 | fi |
12805 | fi | |
c6b750e1 | 12806 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
12807 | # Extract the first word of "ranlib", so it can be a program name with args. |
12808 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12810 | $as_echo_n "checking for $ac_word... " >&6; } | |
12811 | if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then : | |
12812 | $as_echo_n "(cached) " >&6 | |
2429c060 | 12813 | else |
c6b750e1 DJ |
12814 | case $RANLIB_FOR_TARGET in |
12815 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
12816 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
12817 | ;; | |
2429c060 | 12818 | *) |
c6b750e1 DJ |
12819 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12820 | for as_dir in $gcc_cv_tool_dirs | |
12821 | do | |
12822 | IFS=$as_save_IFS | |
12823 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12824 | for ac_exec_ext in '' $ac_executable_extensions; do |
12825 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12826 | ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12827 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12828 | break 2 |
12829 | fi | |
12830 | done | |
81ecdfbb RW |
12831 | done |
12832 | IFS=$as_save_IFS | |
c6b750e1 | 12833 | |
2429c060 PB |
12834 | ;; |
12835 | esac | |
12836 | fi | |
c6b750e1 | 12837 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
2429c060 | 12838 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12840 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
2429c060 | 12841 | else |
81ecdfbb RW |
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12843 | $as_echo "no" >&6; } | |
2429c060 PB |
12844 | fi |
12845 | ||
81ecdfbb | 12846 | |
2429c060 PB |
12847 | fi |
12848 | if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then | |
9a819804 AO |
12849 | |
12850 | ||
12851 | if test -n "$RANLIB_FOR_TARGET"; then | |
12852 | ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET | |
12853 | elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12854 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12855 | fi | |
12856 | ||
12857 | if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12858 | for ncn_progname in ranlib; do | |
12859 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
12860 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
12861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12862 | $as_echo_n "checking for $ac_word... " >&6; } | |
12863 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12864 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
12865 | else |
12866 | if test -n "$RANLIB_FOR_TARGET"; then | |
12867 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
12868 | else | |
12869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12870 | for as_dir in $PATH | |
12871 | do | |
12872 | IFS=$as_save_IFS | |
12873 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12874 | for ac_exec_ext in '' $ac_executable_extensions; do |
12875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 12876 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
12878 | break 2 |
12879 | fi | |
12880 | done | |
81ecdfbb RW |
12881 | done |
12882 | IFS=$as_save_IFS | |
9a819804 AO |
12883 | |
12884 | fi | |
12885 | fi | |
12886 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET | |
12887 | if test -n "$RANLIB_FOR_TARGET"; then | |
81ecdfbb RW |
12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12889 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
9a819804 | 12890 | else |
81ecdfbb RW |
12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12892 | $as_echo "no" >&6; } | |
9a819804 AO |
12893 | fi |
12894 | ||
81ecdfbb | 12895 | |
9a819804 AO |
12896 | done |
12897 | fi | |
12898 | ||
12899 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 12900 | for ncn_progname in ranlib; do |
81ecdfbb RW |
12901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
12902 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
12903 | if test -x $with_build_time_tools/${ncn_progname}; then |
12904 | ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
12905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12906 | $as_echo "yes" >&6; } | |
2429c060 PB |
12907 | break |
12908 | else | |
81ecdfbb RW |
12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12910 | $as_echo "no" >&6; } | |
2429c060 PB |
12911 | fi |
12912 | done | |
12913 | fi | |
12914 | ||
12915 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then | |
12916 | for ncn_progname in ranlib; do | |
12917 | if test -n "$ncn_target_tool_prefix"; then | |
12918 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
5ae72758 | 12919 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12921 | $as_echo_n "checking for $ac_word... " >&6; } | |
12922 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12923 | $as_echo_n "(cached) " >&6 | |
859789af | 12924 | else |
55db4b87 PB |
12925 | if test -n "$RANLIB_FOR_TARGET"; then |
12926 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12927 | else |
c6b750e1 DJ |
12928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12929 | for as_dir in $PATH | |
12930 | do | |
12931 | IFS=$as_save_IFS | |
12932 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12933 | for ac_exec_ext in '' $ac_executable_extensions; do |
12934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12935 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 12936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12937 | break 2 |
12938 | fi | |
12939 | done | |
81ecdfbb RW |
12940 | done |
12941 | IFS=$as_save_IFS | |
c6b750e1 | 12942 | |
859789af AC |
12943 | fi |
12944 | fi | |
c6b750e1 | 12945 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
55db4b87 | 12946 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12948 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12949 | else |
81ecdfbb RW |
12950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12951 | $as_echo "no" >&6; } | |
859789af AC |
12952 | fi |
12953 | ||
81ecdfbb | 12954 | |
2429c060 PB |
12955 | fi |
12956 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then | |
12957 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 12958 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
12959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12960 | $as_echo_n "checking for $ac_word... " >&6; } | |
12961 | if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then : | |
12962 | $as_echo_n "(cached) " >&6 | |
859789af | 12963 | else |
05cbd757 PB |
12964 | if test -n "$RANLIB_FOR_TARGET"; then |
12965 | ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test. | |
859789af | 12966 | else |
c6b750e1 DJ |
12967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
12968 | for as_dir in $PATH | |
12969 | do | |
12970 | IFS=$as_save_IFS | |
12971 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
12972 | for ac_exec_ext in '' $ac_executable_extensions; do |
12973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 12974 | ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 12975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
12976 | break 2 |
12977 | fi | |
12978 | done | |
81ecdfbb RW |
12979 | done |
12980 | IFS=$as_save_IFS | |
c6b750e1 | 12981 | |
859789af AC |
12982 | fi |
12983 | fi | |
c6b750e1 | 12984 | RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET |
05cbd757 | 12985 | if test -n "$RANLIB_FOR_TARGET"; then |
81ecdfbb RW |
12986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5 |
12987 | $as_echo "$RANLIB_FOR_TARGET" >&6; } | |
859789af | 12988 | else |
81ecdfbb RW |
12989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12990 | $as_echo "no" >&6; } | |
859789af | 12991 | fi |
c6b750e1 | 12992 | |
81ecdfbb | 12993 | |
2429c060 PB |
12994 | fi |
12995 | test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break | |
12996 | done | |
12997 | fi | |
c6b750e1 | 12998 | |
2429c060 PB |
12999 | if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then |
13000 | set dummy ranlib | |
13001 | if test $build = $target ; then | |
13002 | RANLIB_FOR_TARGET="$2" | |
13003 | else | |
13004 | RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
859789af | 13005 | fi |
d3f5afc4 MS |
13006 | else |
13007 | RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET" | |
2429c060 | 13008 | fi |
05cbd757 | 13009 | |
3a35eeb3 PB |
13010 | else |
13011 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET | |
859789af AC |
13012 | fi |
13013 | ||
2429c060 PB |
13014 | |
13015 | ||
13016 | ||
b121d7d4 DD |
13017 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then |
13018 | if test -n "$with_build_time_tools"; then | |
13019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5 | |
13020 | $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; } | |
13021 | if test -x $with_build_time_tools/readelf; then | |
13022 | READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf | |
13023 | ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5 | |
13025 | $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; } | |
13026 | else | |
13027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13028 | $as_echo "no" >&6; } | |
13029 | fi | |
13030 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13031 | READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf` | |
13032 | test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET= | |
13033 | test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13034 | fi | |
13035 | fi | |
13036 | if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13037 | # Extract the first word of "readelf", so it can be a program name with args. | |
13038 | set dummy readelf; ac_word=$2 | |
13039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13040 | $as_echo_n "checking for $ac_word... " >&6; } | |
13041 | if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then : | |
13042 | $as_echo_n "(cached) " >&6 | |
13043 | else | |
13044 | case $READELF_FOR_TARGET in | |
13045 | [\\/]* | ?:[\\/]*) | |
13046 | ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path. | |
13047 | ;; | |
13048 | *) | |
13049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13050 | for as_dir in $gcc_cv_tool_dirs | |
13051 | do | |
13052 | IFS=$as_save_IFS | |
13053 | test -z "$as_dir" && as_dir=. | |
13054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13056 | ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" | |
13057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13058 | break 2 | |
13059 | fi | |
13060 | done | |
13061 | done | |
13062 | IFS=$as_save_IFS | |
13063 | ||
13064 | ;; | |
13065 | esac | |
13066 | fi | |
13067 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13068 | if test -n "$READELF_FOR_TARGET"; then | |
13069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13070 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13071 | else | |
13072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13073 | $as_echo "no" >&6; } | |
13074 | fi | |
13075 | ||
13076 | ||
13077 | fi | |
13078 | if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then | |
13079 | ||
13080 | ||
13081 | if test -n "$READELF_FOR_TARGET"; then | |
13082 | ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET | |
13083 | elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13084 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13085 | fi | |
13086 | ||
13087 | if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13088 | for ncn_progname in readelf; do | |
13089 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13090 | set dummy ${ncn_progname}; ac_word=$2 | |
13091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13092 | $as_echo_n "checking for $ac_word... " >&6; } | |
13093 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13094 | $as_echo_n "(cached) " >&6 | |
13095 | else | |
13096 | if test -n "$READELF_FOR_TARGET"; then | |
13097 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13098 | else | |
13099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13100 | for as_dir in $PATH | |
13101 | do | |
13102 | IFS=$as_save_IFS | |
13103 | test -z "$as_dir" && as_dir=. | |
13104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13105 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13106 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13107 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13108 | break 2 | |
13109 | fi | |
13110 | done | |
13111 | done | |
13112 | IFS=$as_save_IFS | |
13113 | ||
13114 | fi | |
13115 | fi | |
13116 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13117 | if test -n "$READELF_FOR_TARGET"; then | |
13118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13119 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13120 | else | |
13121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13122 | $as_echo "no" >&6; } | |
13123 | fi | |
13124 | ||
13125 | ||
13126 | done | |
13127 | fi | |
13128 | ||
13129 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13130 | for ncn_progname in readelf; do | |
13131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 | |
13132 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
13133 | if test -x $with_build_time_tools/${ncn_progname}; then | |
13134 | ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
13135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13136 | $as_echo "yes" >&6; } | |
13137 | break | |
13138 | else | |
13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13140 | $as_echo "no" >&6; } | |
13141 | fi | |
13142 | done | |
13143 | fi | |
13144 | ||
13145 | if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then | |
13146 | for ncn_progname in readelf; do | |
13147 | if test -n "$ncn_target_tool_prefix"; then | |
13148 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13149 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
13150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13151 | $as_echo_n "checking for $ac_word... " >&6; } | |
13152 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13153 | $as_echo_n "(cached) " >&6 | |
13154 | else | |
13155 | if test -n "$READELF_FOR_TARGET"; then | |
13156 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13157 | else | |
13158 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13159 | for as_dir in $PATH | |
13160 | do | |
13161 | IFS=$as_save_IFS | |
13162 | test -z "$as_dir" && as_dir=. | |
13163 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13164 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13165 | ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" | |
13166 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13167 | break 2 | |
13168 | fi | |
13169 | done | |
13170 | done | |
13171 | IFS=$as_save_IFS | |
13172 | ||
13173 | fi | |
13174 | fi | |
13175 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13176 | if test -n "$READELF_FOR_TARGET"; then | |
13177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13178 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13179 | else | |
13180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13181 | $as_echo "no" >&6; } | |
13182 | fi | |
13183 | ||
13184 | ||
13185 | fi | |
13186 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then | |
13187 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13188 | set dummy ${ncn_progname}; ac_word=$2 | |
13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13190 | $as_echo_n "checking for $ac_word... " >&6; } | |
13191 | if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then : | |
13192 | $as_echo_n "(cached) " >&6 | |
13193 | else | |
13194 | if test -n "$READELF_FOR_TARGET"; then | |
13195 | ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test. | |
13196 | else | |
13197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13198 | for as_dir in $PATH | |
13199 | do | |
13200 | IFS=$as_save_IFS | |
13201 | test -z "$as_dir" && as_dir=. | |
13202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13204 | ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}" | |
13205 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13206 | break 2 | |
13207 | fi | |
13208 | done | |
13209 | done | |
13210 | IFS=$as_save_IFS | |
13211 | ||
13212 | fi | |
13213 | fi | |
13214 | READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET | |
13215 | if test -n "$READELF_FOR_TARGET"; then | |
13216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5 | |
13217 | $as_echo "$READELF_FOR_TARGET" >&6; } | |
13218 | else | |
13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13220 | $as_echo "no" >&6; } | |
13221 | fi | |
13222 | ||
13223 | ||
13224 | fi | |
13225 | test -n "$ac_cv_prog_READELF_FOR_TARGET" && break | |
13226 | done | |
13227 | fi | |
13228 | ||
13229 | if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then | |
13230 | set dummy readelf | |
13231 | if test $build = $target ; then | |
13232 | READELF_FOR_TARGET="$2" | |
13233 | else | |
13234 | READELF_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13235 | fi | |
13236 | else | |
13237 | READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET" | |
13238 | fi | |
13239 | ||
13240 | else | |
13241 | READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET | |
13242 | fi | |
13243 | ||
13244 | ||
13245 | ||
13246 | ||
2429c060 PB |
13247 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then |
13248 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5 |
13250 | $as_echo_n "checking for strip in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13251 | if test -x $with_build_time_tools/strip; then |
13252 | STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip | |
13253 | ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
81ecdfbb RW |
13254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5 |
13255 | $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; } | |
3a35eeb3 | 13256 | else |
81ecdfbb RW |
13257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13258 | $as_echo "no" >&6; } | |
3a35eeb3 | 13259 | fi |
2429c060 PB |
13260 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13261 | STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip` | |
d3f5afc4 MS |
13262 | test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET= |
13263 | test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
2429c060 PB |
13264 | fi |
13265 | fi | |
c6b750e1 | 13266 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13267 | # Extract the first word of "strip", so it can be a program name with args. |
13268 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
13269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13270 | $as_echo_n "checking for $ac_word... " >&6; } | |
13271 | if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then : | |
13272 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13273 | else |
c6b750e1 DJ |
13274 | case $STRIP_FOR_TARGET in |
13275 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13276 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
13277 | ;; | |
2429c060 | 13278 | *) |
c6b750e1 DJ |
13279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13280 | for as_dir in $gcc_cv_tool_dirs | |
13281 | do | |
13282 | IFS=$as_save_IFS | |
13283 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13284 | for ac_exec_ext in '' $ac_executable_extensions; do |
13285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13286 | ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13288 | break 2 |
13289 | fi | |
13290 | done | |
81ecdfbb RW |
13291 | done |
13292 | IFS=$as_save_IFS | |
c6b750e1 | 13293 | |
2429c060 PB |
13294 | ;; |
13295 | esac | |
13296 | fi | |
c6b750e1 | 13297 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
2429c060 | 13298 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13300 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
2429c060 | 13301 | else |
81ecdfbb RW |
13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13303 | $as_echo "no" >&6; } | |
2429c060 PB |
13304 | fi |
13305 | ||
81ecdfbb | 13306 | |
2429c060 PB |
13307 | fi |
13308 | if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then | |
9a819804 AO |
13309 | |
13310 | ||
13311 | if test -n "$STRIP_FOR_TARGET"; then | |
13312 | ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET | |
13313 | elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13314 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13315 | fi | |
13316 | ||
13317 | if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13318 | for ncn_progname in strip; do | |
13319 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13320 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13322 | $as_echo_n "checking for $ac_word... " >&6; } | |
13323 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13324 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13325 | else |
13326 | if test -n "$STRIP_FOR_TARGET"; then | |
13327 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13328 | else | |
13329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13330 | for as_dir in $PATH | |
13331 | do | |
13332 | IFS=$as_save_IFS | |
13333 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13334 | for ac_exec_ext in '' $ac_executable_extensions; do |
13335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13336 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13338 | break 2 |
13339 | fi | |
13340 | done | |
81ecdfbb RW |
13341 | done |
13342 | IFS=$as_save_IFS | |
9a819804 AO |
13343 | |
13344 | fi | |
13345 | fi | |
13346 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET | |
13347 | if test -n "$STRIP_FOR_TARGET"; then | |
81ecdfbb RW |
13348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13349 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
9a819804 | 13350 | else |
81ecdfbb RW |
13351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13352 | $as_echo "no" >&6; } | |
9a819804 AO |
13353 | fi |
13354 | ||
81ecdfbb | 13355 | |
9a819804 AO |
13356 | done |
13357 | fi | |
13358 | ||
13359 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13360 | for ncn_progname in strip; do |
81ecdfbb RW |
13361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13362 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13363 | if test -x $with_build_time_tools/${ncn_progname}; then |
13364 | ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13366 | $as_echo "yes" >&6; } | |
2429c060 PB |
13367 | break |
13368 | else | |
81ecdfbb RW |
13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13370 | $as_echo "no" >&6; } | |
2429c060 PB |
13371 | fi |
13372 | done | |
13373 | fi | |
13374 | ||
13375 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then | |
13376 | for ncn_progname in strip; do | |
13377 | if test -n "$ncn_target_tool_prefix"; then | |
13378 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13379 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13381 | $as_echo_n "checking for $ac_word... " >&6; } | |
13382 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13383 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13384 | else |
13385 | if test -n "$STRIP_FOR_TARGET"; then | |
13386 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
c6b750e1 DJ |
13387 | else |
13388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13389 | for as_dir in $PATH | |
13390 | do | |
13391 | IFS=$as_save_IFS | |
13392 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13393 | for ac_exec_ext in '' $ac_executable_extensions; do |
13394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13395 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13397 | break 2 |
13398 | fi | |
13399 | done | |
81ecdfbb RW |
13400 | done |
13401 | IFS=$as_save_IFS | |
c6b750e1 | 13402 | |
7e0f7140 GK |
13403 | fi |
13404 | fi | |
c6b750e1 | 13405 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13406 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13408 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13409 | else |
81ecdfbb RW |
13410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13411 | $as_echo "no" >&6; } | |
7e0f7140 GK |
13412 | fi |
13413 | ||
81ecdfbb | 13414 | |
2429c060 PB |
13415 | fi |
13416 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then | |
13417 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
7e0f7140 | 13418 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13420 | $as_echo_n "checking for $ac_word... " >&6; } | |
13421 | if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then : | |
13422 | $as_echo_n "(cached) " >&6 | |
7e0f7140 GK |
13423 | else |
13424 | if test -n "$STRIP_FOR_TARGET"; then | |
13425 | ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test. | |
13426 | else | |
c6b750e1 DJ |
13427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13428 | for as_dir in $PATH | |
13429 | do | |
13430 | IFS=$as_save_IFS | |
13431 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13432 | for ac_exec_ext in '' $ac_executable_extensions; do |
13433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13434 | ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13436 | break 2 |
13437 | fi | |
13438 | done | |
81ecdfbb RW |
13439 | done |
13440 | IFS=$as_save_IFS | |
c6b750e1 | 13441 | |
7e0f7140 GK |
13442 | fi |
13443 | fi | |
c6b750e1 | 13444 | STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET |
7e0f7140 | 13445 | if test -n "$STRIP_FOR_TARGET"; then |
81ecdfbb RW |
13446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5 |
13447 | $as_echo "$STRIP_FOR_TARGET" >&6; } | |
7e0f7140 | 13448 | else |
81ecdfbb RW |
13449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13450 | $as_echo "no" >&6; } | |
7e0f7140 | 13451 | fi |
c6b750e1 | 13452 | |
81ecdfbb | 13453 | |
2429c060 PB |
13454 | fi |
13455 | test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break | |
13456 | done | |
13457 | fi | |
c6b750e1 | 13458 | |
7e0f7140 GK |
13459 | if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then |
13460 | set dummy strip | |
13461 | if test $build = $target ; then | |
13462 | STRIP_FOR_TARGET="$2" | |
13463 | else | |
13464 | STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13465 | fi | |
d3f5afc4 MS |
13466 | else |
13467 | STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET" | |
7e0f7140 GK |
13468 | fi |
13469 | ||
3a35eeb3 PB |
13470 | else |
13471 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET | |
2429c060 PB |
13472 | fi |
13473 | ||
13474 | ||
13475 | ||
13476 | ||
13477 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
13478 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5 |
13480 | $as_echo_n "checking for windres in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13481 | if test -x $with_build_time_tools/windres; then |
13482 | WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres | |
13483 | ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
81ecdfbb RW |
13484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5 |
13485 | $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; } | |
3a35eeb3 | 13486 | else |
81ecdfbb RW |
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13488 | $as_echo "no" >&6; } | |
3a35eeb3 | 13489 | fi |
2429c060 PB |
13490 | elif test $build != $host && test $have_gcc_for_target = yes; then |
13491 | WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres` | |
d3f5afc4 MS |
13492 | test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET= |
13493 | test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
2429c060 PB |
13494 | fi |
13495 | fi | |
c6b750e1 | 13496 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then |
2429c060 PB |
13497 | # Extract the first word of "windres", so it can be a program name with args. |
13498 | set dummy windres; ac_word=$2 | |
81ecdfbb RW |
13499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13500 | $as_echo_n "checking for $ac_word... " >&6; } | |
13501 | if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then : | |
13502 | $as_echo_n "(cached) " >&6 | |
2429c060 | 13503 | else |
c6b750e1 DJ |
13504 | case $WINDRES_FOR_TARGET in |
13505 | [\\/]* | ?:[\\/]*) | |
2429c060 PB |
13506 | ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path. |
13507 | ;; | |
2429c060 | 13508 | *) |
c6b750e1 DJ |
13509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13510 | for as_dir in $gcc_cv_tool_dirs | |
13511 | do | |
13512 | IFS=$as_save_IFS | |
13513 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13514 | for ac_exec_ext in '' $ac_executable_extensions; do |
13515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13516 | ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13517 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13518 | break 2 |
13519 | fi | |
13520 | done | |
81ecdfbb RW |
13521 | done |
13522 | IFS=$as_save_IFS | |
c6b750e1 | 13523 | |
2429c060 PB |
13524 | ;; |
13525 | esac | |
13526 | fi | |
c6b750e1 | 13527 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET |
2429c060 | 13528 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13530 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
2429c060 | 13531 | else |
81ecdfbb RW |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13533 | $as_echo "no" >&6; } | |
2429c060 PB |
13534 | fi |
13535 | ||
81ecdfbb | 13536 | |
2429c060 PB |
13537 | fi |
13538 | if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then | |
9a819804 AO |
13539 | |
13540 | ||
13541 | if test -n "$WINDRES_FOR_TARGET"; then | |
13542 | ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET | |
13543 | elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13544 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13545 | fi | |
13546 | ||
13547 | if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13548 | for ncn_progname in windres; do | |
13549 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13550 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13552 | $as_echo_n "checking for $ac_word... " >&6; } | |
13553 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13554 | $as_echo_n "(cached) " >&6 | |
9a819804 AO |
13555 | else |
13556 | if test -n "$WINDRES_FOR_TARGET"; then | |
13557 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
13558 | else | |
13559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13560 | for as_dir in $PATH | |
13561 | do | |
13562 | IFS=$as_save_IFS | |
13563 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13564 | for ac_exec_ext in '' $ac_executable_extensions; do |
13565 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9a819804 | 13566 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13567 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9a819804 AO |
13568 | break 2 |
13569 | fi | |
13570 | done | |
81ecdfbb RW |
13571 | done |
13572 | IFS=$as_save_IFS | |
9a819804 AO |
13573 | |
13574 | fi | |
13575 | fi | |
13576 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET | |
13577 | if test -n "$WINDRES_FOR_TARGET"; then | |
81ecdfbb RW |
13578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13579 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
9a819804 | 13580 | else |
81ecdfbb RW |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13582 | $as_echo "no" >&6; } | |
9a819804 AO |
13583 | fi |
13584 | ||
81ecdfbb | 13585 | |
9a819804 AO |
13586 | done |
13587 | fi | |
13588 | ||
13589 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
2429c060 | 13590 | for ncn_progname in windres; do |
81ecdfbb RW |
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13592 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
3a35eeb3 PB |
13593 | if test -x $with_build_time_tools/${ncn_progname}; then |
13594 | ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13596 | $as_echo "yes" >&6; } | |
2429c060 PB |
13597 | break |
13598 | else | |
81ecdfbb RW |
13599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13600 | $as_echo "no" >&6; } | |
2429c060 PB |
13601 | fi |
13602 | done | |
13603 | fi | |
13604 | ||
13605 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then | |
13606 | for ncn_progname in windres; do | |
13607 | if test -n "$ncn_target_tool_prefix"; then | |
13608 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13609 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13611 | $as_echo_n "checking for $ac_word... " >&6; } | |
13612 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13613 | $as_echo_n "(cached) " >&6 | |
859789af | 13614 | else |
55db4b87 PB |
13615 | if test -n "$WINDRES_FOR_TARGET"; then |
13616 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13617 | else |
c6b750e1 DJ |
13618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13619 | for as_dir in $PATH | |
13620 | do | |
13621 | IFS=$as_save_IFS | |
13622 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13623 | for ac_exec_ext in '' $ac_executable_extensions; do |
13624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13625 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13627 | break 2 |
13628 | fi | |
13629 | done | |
81ecdfbb RW |
13630 | done |
13631 | IFS=$as_save_IFS | |
c6b750e1 | 13632 | |
859789af AC |
13633 | fi |
13634 | fi | |
c6b750e1 | 13635 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
55db4b87 | 13636 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13638 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13639 | else |
81ecdfbb RW |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13641 | $as_echo "no" >&6; } | |
859789af AC |
13642 | fi |
13643 | ||
81ecdfbb | 13644 | |
2429c060 PB |
13645 | fi |
13646 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then | |
13647 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
05cbd757 | 13648 | set dummy ${ncn_progname}; ac_word=$2 |
81ecdfbb RW |
13649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13650 | $as_echo_n "checking for $ac_word... " >&6; } | |
13651 | if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then : | |
13652 | $as_echo_n "(cached) " >&6 | |
859789af | 13653 | else |
05cbd757 PB |
13654 | if test -n "$WINDRES_FOR_TARGET"; then |
13655 | ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test. | |
859789af | 13656 | else |
c6b750e1 DJ |
13657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13658 | for as_dir in $PATH | |
13659 | do | |
13660 | IFS=$as_save_IFS | |
13661 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13662 | for ac_exec_ext in '' $ac_executable_extensions; do |
13663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
c6b750e1 | 13664 | ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
c6b750e1 DJ |
13666 | break 2 |
13667 | fi | |
13668 | done | |
81ecdfbb RW |
13669 | done |
13670 | IFS=$as_save_IFS | |
c6b750e1 | 13671 | |
859789af AC |
13672 | fi |
13673 | fi | |
c6b750e1 | 13674 | WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET |
05cbd757 | 13675 | if test -n "$WINDRES_FOR_TARGET"; then |
81ecdfbb RW |
13676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5 |
13677 | $as_echo "$WINDRES_FOR_TARGET" >&6; } | |
859789af | 13678 | else |
81ecdfbb RW |
13679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13680 | $as_echo "no" >&6; } | |
859789af | 13681 | fi |
c6b750e1 | 13682 | |
81ecdfbb | 13683 | |
2429c060 PB |
13684 | fi |
13685 | test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break | |
13686 | done | |
13687 | fi | |
c6b750e1 | 13688 | |
05cbd757 PB |
13689 | if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then |
13690 | set dummy windres | |
13691 | if test $build = $target ; then | |
13692 | WINDRES_FOR_TARGET="$2" | |
859789af | 13693 | else |
05cbd757 | 13694 | WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2" |
859789af | 13695 | fi |
d3f5afc4 MS |
13696 | else |
13697 | WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET" | |
859789af AC |
13698 | fi |
13699 | ||
3a35eeb3 PB |
13700 | else |
13701 | WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET | |
2429c060 PB |
13702 | fi |
13703 | ||
852e5f18 | 13704 | |
0c24b341 NC |
13705 | |
13706 | ||
13707 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13708 | if test -n "$with_build_time_tools"; then | |
81ecdfbb RW |
13709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5 |
13710 | $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13711 | if test -x $with_build_time_tools/windmc; then |
13712 | WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc | |
13713 | ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
81ecdfbb RW |
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5 |
13715 | $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13716 | else |
81ecdfbb RW |
13717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13718 | $as_echo "no" >&6; } | |
0c24b341 NC |
13719 | fi |
13720 | elif test $build != $host && test $have_gcc_for_target = yes; then | |
13721 | WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc` | |
13722 | test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET= | |
13723 | test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13724 | fi | |
13725 | fi | |
13726 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then | |
13727 | # Extract the first word of "windmc", so it can be a program name with args. | |
13728 | set dummy windmc; ac_word=$2 | |
81ecdfbb RW |
13729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13730 | $as_echo_n "checking for $ac_word... " >&6; } | |
13731 | if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then : | |
13732 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13733 | else |
13734 | case $WINDMC_FOR_TARGET in | |
13735 | [\\/]* | ?:[\\/]*) | |
13736 | ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path. | |
13737 | ;; | |
13738 | *) | |
13739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13740 | for as_dir in $gcc_cv_tool_dirs | |
13741 | do | |
13742 | IFS=$as_save_IFS | |
13743 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13744 | for ac_exec_ext in '' $ac_executable_extensions; do |
13745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13746 | ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 13747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13748 | break 2 |
13749 | fi | |
13750 | done | |
81ecdfbb RW |
13751 | done |
13752 | IFS=$as_save_IFS | |
0c24b341 NC |
13753 | |
13754 | ;; | |
13755 | esac | |
13756 | fi | |
13757 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
0c24b341 | 13758 | if test -n "$WINDMC_FOR_TARGET"; then |
81ecdfbb RW |
13759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13760 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13761 | else |
81ecdfbb RW |
13762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13763 | $as_echo "no" >&6; } | |
0c24b341 NC |
13764 | fi |
13765 | ||
81ecdfbb | 13766 | |
0c24b341 NC |
13767 | fi |
13768 | if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then | |
13769 | ||
13770 | ||
13771 | if test -n "$WINDMC_FOR_TARGET"; then | |
13772 | ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET | |
13773 | elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13774 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13775 | fi | |
13776 | ||
13777 | if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13778 | for ncn_progname in windmc; do | |
13779 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13780 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13782 | $as_echo_n "checking for $ac_word... " >&6; } | |
13783 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13784 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13785 | else |
13786 | if test -n "$WINDMC_FOR_TARGET"; then | |
13787 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13788 | else | |
13789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13790 | for as_dir in $PATH | |
13791 | do | |
13792 | IFS=$as_save_IFS | |
13793 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13794 | for ac_exec_ext in '' $ac_executable_extensions; do |
13795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13796 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13798 | break 2 |
13799 | fi | |
13800 | done | |
81ecdfbb RW |
13801 | done |
13802 | IFS=$as_save_IFS | |
0c24b341 NC |
13803 | |
13804 | fi | |
13805 | fi | |
13806 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13807 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13809 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13810 | else |
81ecdfbb RW |
13811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13812 | $as_echo "no" >&6; } | |
0c24b341 NC |
13813 | fi |
13814 | ||
81ecdfbb | 13815 | |
0c24b341 NC |
13816 | done |
13817 | fi | |
13818 | ||
13819 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then | |
13820 | for ncn_progname in windmc; do | |
81ecdfbb RW |
13821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5 |
13822 | $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; } | |
0c24b341 NC |
13823 | if test -x $with_build_time_tools/${ncn_progname}; then |
13824 | ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname} | |
81ecdfbb RW |
13825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
13826 | $as_echo "yes" >&6; } | |
0c24b341 NC |
13827 | break |
13828 | else | |
81ecdfbb RW |
13829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13830 | $as_echo "no" >&6; } | |
0c24b341 NC |
13831 | fi |
13832 | done | |
13833 | fi | |
13834 | ||
13835 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then | |
13836 | for ncn_progname in windmc; do | |
13837 | if test -n "$ncn_target_tool_prefix"; then | |
13838 | # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args. | |
13839 | set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13841 | $as_echo_n "checking for $ac_word... " >&6; } | |
13842 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13843 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13844 | else |
13845 | if test -n "$WINDMC_FOR_TARGET"; then | |
13846 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13847 | else | |
13848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13849 | for as_dir in $PATH | |
13850 | do | |
13851 | IFS=$as_save_IFS | |
13852 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13853 | for ac_exec_ext in '' $ac_executable_extensions; do |
13854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13855 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}" |
81ecdfbb | 13856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13857 | break 2 |
13858 | fi | |
13859 | done | |
81ecdfbb RW |
13860 | done |
13861 | IFS=$as_save_IFS | |
0c24b341 NC |
13862 | |
13863 | fi | |
13864 | fi | |
13865 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13866 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13868 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13869 | else |
81ecdfbb RW |
13870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13871 | $as_echo "no" >&6; } | |
0c24b341 NC |
13872 | fi |
13873 | ||
81ecdfbb | 13874 | |
0c24b341 NC |
13875 | fi |
13876 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then | |
13877 | # Extract the first word of "${ncn_progname}", so it can be a program name with args. | |
13878 | set dummy ${ncn_progname}; ac_word=$2 | |
81ecdfbb RW |
13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
13880 | $as_echo_n "checking for $ac_word... " >&6; } | |
13881 | if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then : | |
13882 | $as_echo_n "(cached) " >&6 | |
0c24b341 NC |
13883 | else |
13884 | if test -n "$WINDMC_FOR_TARGET"; then | |
13885 | ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test. | |
13886 | else | |
13887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13888 | for as_dir in $PATH | |
13889 | do | |
13890 | IFS=$as_save_IFS | |
13891 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
13892 | for ac_exec_ext in '' $ac_executable_extensions; do |
13893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
0c24b341 | 13894 | ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}" |
81ecdfbb | 13895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
0c24b341 NC |
13896 | break 2 |
13897 | fi | |
13898 | done | |
81ecdfbb RW |
13899 | done |
13900 | IFS=$as_save_IFS | |
0c24b341 NC |
13901 | |
13902 | fi | |
13903 | fi | |
13904 | WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET | |
13905 | if test -n "$WINDMC_FOR_TARGET"; then | |
81ecdfbb RW |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5 |
13907 | $as_echo "$WINDMC_FOR_TARGET" >&6; } | |
0c24b341 | 13908 | else |
81ecdfbb RW |
13909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13910 | $as_echo "no" >&6; } | |
0c24b341 NC |
13911 | fi |
13912 | ||
81ecdfbb | 13913 | |
0c24b341 NC |
13914 | fi |
13915 | test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break | |
13916 | done | |
13917 | fi | |
13918 | ||
13919 | if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then | |
13920 | set dummy windmc | |
13921 | if test $build = $target ; then | |
13922 | WINDMC_FOR_TARGET="$2" | |
13923 | else | |
13924 | WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2" | |
13925 | fi | |
13926 | else | |
13927 | WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET" | |
13928 | fi | |
13929 | ||
13930 | else | |
13931 | WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET | |
13932 | fi | |
13933 | ||
13934 | ||
be01d343 PB |
13935 | RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET" |
13936 | ||
81ecdfbb RW |
13937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5 |
13938 | $as_echo_n "checking where to find the target ar... " >&6; } | |
be01d343 | 13939 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13940 | if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13941 | # We already found the complete path | |
b8025f34 | 13942 | ac_dir=`dirname $AR_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; } | |
2429c060 PB |
13945 | else |
13946 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13948 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13949 | fi |
be01d343 PB |
13950 | else |
13951 | ok=yes | |
13952 | case " ${configdirs} " in | |
13953 | *" binutils "*) ;; | |
13954 | *) ok=no ;; | |
13955 | esac | |
c6b750e1 | 13956 | |
be01d343 PB |
13957 | if test $ok = yes; then |
13958 | # An in-tree tool is available and we can use it | |
13959 | AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar' | |
81ecdfbb RW |
13960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
13961 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
13962 | elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then |
13963 | # We already found the complete path | |
b8025f34 | 13964 | ac_dir=`dirname $AR_FOR_TARGET` |
81ecdfbb RW |
13965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
13966 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
13967 | elif test "x$target" = "x$host"; then |
13968 | # We can use an host tool | |
13969 | AR_FOR_TARGET='$(AR)' | |
81ecdfbb RW |
13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
13971 | $as_echo "host tool" >&6; } | |
be01d343 PB |
13972 | else |
13973 | # We need a cross tool | |
81ecdfbb RW |
13974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13975 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
13976 | fi |
13977 | fi | |
4b900473 | 13978 | |
81ecdfbb RW |
13979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5 |
13980 | $as_echo_n "checking where to find the target as... " >&6; } | |
be01d343 | 13981 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
13982 | if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
13983 | # We already found the complete path | |
b8025f34 | 13984 | ac_dir=`dirname $AS_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; } | |
2429c060 PB |
13987 | else |
13988 | # Canadian cross, just use what we found | |
81ecdfbb RW |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
13990 | $as_echo "pre-installed" >&6; } | |
2429c060 | 13991 | fi |
be01d343 PB |
13992 | else |
13993 | ok=yes | |
13994 | case " ${configdirs} " in | |
13995 | *" gas "*) ;; | |
13996 | *) ok=no ;; | |
13997 | esac | |
c6b750e1 | 13998 | |
be01d343 PB |
13999 | if test $ok = yes; then |
14000 | # An in-tree tool is available and we can use it | |
14001 | AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new' | |
81ecdfbb RW |
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14003 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14004 | elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then |
14005 | # We already found the complete path | |
b8025f34 | 14006 | ac_dir=`dirname $AS_FOR_TARGET` |
81ecdfbb RW |
14007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14008 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14009 | elif test "x$target" = "x$host"; then |
14010 | # We can use an host tool | |
14011 | AS_FOR_TARGET='$(AS)' | |
81ecdfbb RW |
14012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14013 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14014 | else |
14015 | # We need a cross tool | |
81ecdfbb RW |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14017 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14018 | fi |
14019 | fi | |
4b900473 | 14020 | |
81ecdfbb RW |
14021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5 |
14022 | $as_echo_n "checking where to find the target cc... " >&6; } | |
be01d343 | 14023 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14024 | if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14025 | # We already found the complete path | |
b8025f34 | 14026 | ac_dir=`dirname $CC_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; } | |
2429c060 PB |
14029 | else |
14030 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14032 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14033 | fi |
be01d343 PB |
14034 | else |
14035 | ok=yes | |
14036 | case " ${configdirs} " in | |
14037 | *" gcc "*) ;; | |
14038 | *) ok=no ;; | |
14039 | esac | |
c6b750e1 | 14040 | |
be01d343 PB |
14041 | if test $ok = yes; then |
14042 | # An in-tree tool is available and we can use it | |
14043 | CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14045 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14046 | elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then |
14047 | # We already found the complete path | |
b8025f34 | 14048 | ac_dir=`dirname $CC_FOR_TARGET` |
81ecdfbb RW |
14049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14050 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14051 | elif test "x$target" = "x$host"; then |
14052 | # We can use an host tool | |
14053 | CC_FOR_TARGET='$(CC)' | |
81ecdfbb RW |
14054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14055 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14056 | else |
14057 | # We need a cross tool | |
81ecdfbb RW |
14058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14059 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14060 | fi |
14061 | fi | |
4b900473 | 14062 | |
81ecdfbb RW |
14063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5 |
14064 | $as_echo_n "checking where to find the target c++... " >&6; } | |
be01d343 | 14065 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14066 | if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14067 | # We already found the complete path | |
b8025f34 | 14068 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14070 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14071 | else |
14072 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14074 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14075 | fi |
be01d343 PB |
14076 | else |
14077 | ok=yes | |
14078 | case " ${configdirs} " in | |
14079 | *" gcc "*) ;; | |
14080 | *) ok=no ;; | |
14081 | esac | |
14082 | case ,${enable_languages}, in | |
14083 | *,c++,*) ;; | |
14084 | *) ok=no ;; | |
14085 | esac | |
14086 | if test $ok = yes; then | |
14087 | # An in-tree tool is available and we can use it | |
95e43135 | 14088 | CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
14089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14090 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14091 | elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then |
14092 | # We already found the complete path | |
b8025f34 | 14093 | ac_dir=`dirname $CXX_FOR_TARGET` |
81ecdfbb RW |
14094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14095 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14096 | elif test "x$target" = "x$host"; then |
14097 | # We can use an host tool | |
14098 | CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14100 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14101 | else |
14102 | # We need a cross tool | |
81ecdfbb RW |
14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14104 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14105 | fi |
14106 | fi | |
4b900473 | 14107 | |
81ecdfbb RW |
14108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5 |
14109 | $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; } | |
be01d343 | 14110 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14111 | if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14112 | # We already found the complete path | |
b8025f34 | 14113 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14115 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14116 | else |
14117 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14119 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14120 | fi |
be01d343 PB |
14121 | else |
14122 | ok=yes | |
14123 | case " ${configdirs} " in | |
14124 | *" gcc "*) ;; | |
14125 | *) ok=no ;; | |
14126 | esac | |
14127 | case ,${enable_languages}, in | |
14128 | *,c++,*) ;; | |
14129 | *) ok=no ;; | |
14130 | esac | |
14131 | if test $ok = yes; then | |
14132 | # An in-tree tool is available and we can use it | |
95e43135 | 14133 | RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs' |
81ecdfbb RW |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14135 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14136 | elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then |
14137 | # We already found the complete path | |
b8025f34 | 14138 | ac_dir=`dirname $RAW_CXX_FOR_TARGET` |
81ecdfbb RW |
14139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14140 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14141 | elif test "x$target" = "x$host"; then |
14142 | # We can use an host tool | |
14143 | RAW_CXX_FOR_TARGET='$(CXX)' | |
81ecdfbb RW |
14144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14145 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14146 | else |
14147 | # We need a cross tool | |
81ecdfbb RW |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14149 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14150 | fi |
14151 | fi | |
4b900473 | 14152 | |
81ecdfbb RW |
14153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5 |
14154 | $as_echo_n "checking where to find the target dlltool... " >&6; } | |
be01d343 | 14155 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14156 | if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14157 | # We already found the complete path | |
b8025f34 | 14158 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14160 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14161 | else |
14162 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14164 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14165 | fi |
be01d343 PB |
14166 | else |
14167 | ok=yes | |
14168 | case " ${configdirs} " in | |
14169 | *" binutils "*) ;; | |
14170 | *) ok=no ;; | |
14171 | esac | |
c6b750e1 | 14172 | |
be01d343 PB |
14173 | if test $ok = yes; then |
14174 | # An in-tree tool is available and we can use it | |
14175 | DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool' | |
81ecdfbb RW |
14176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14177 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14178 | elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then |
14179 | # We already found the complete path | |
b8025f34 | 14180 | ac_dir=`dirname $DLLTOOL_FOR_TARGET` |
81ecdfbb RW |
14181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14182 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14183 | elif test "x$target" = "x$host"; then |
14184 | # We can use an host tool | |
14185 | DLLTOOL_FOR_TARGET='$(DLLTOOL)' | |
81ecdfbb RW |
14186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14187 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14188 | else |
14189 | # We need a cross tool | |
81ecdfbb RW |
14190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14191 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14192 | fi |
14193 | fi | |
4b900473 | 14194 | |
81ecdfbb RW |
14195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5 |
14196 | $as_echo_n "checking where to find the target gcc... " >&6; } | |
be01d343 | 14197 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14198 | if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14199 | # We already found the complete path | |
b8025f34 | 14200 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14202 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14203 | else |
14204 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14206 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14207 | fi |
be01d343 PB |
14208 | else |
14209 | ok=yes | |
14210 | case " ${configdirs} " in | |
14211 | *" gcc "*) ;; | |
14212 | *) ok=no ;; | |
14213 | esac | |
c6b750e1 | 14214 | |
be01d343 PB |
14215 | if test $ok = yes; then |
14216 | # An in-tree tool is available and we can use it | |
14217 | GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14219 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14220 | elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then |
14221 | # We already found the complete path | |
b8025f34 | 14222 | ac_dir=`dirname $GCC_FOR_TARGET` |
81ecdfbb RW |
14223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14224 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14225 | elif test "x$target" = "x$host"; then |
14226 | # We can use an host tool | |
14227 | GCC_FOR_TARGET='$()' | |
81ecdfbb RW |
14228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14229 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14230 | else |
14231 | # We need a cross tool | |
81ecdfbb RW |
14232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14233 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14234 | fi |
14235 | fi | |
4b900473 | 14236 | |
81ecdfbb RW |
14237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5 |
14238 | $as_echo_n "checking where to find the target gcj... " >&6; } | |
be01d343 | 14239 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14240 | if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14241 | # We already found the complete path | |
b8025f34 | 14242 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14244 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14245 | else |
14246 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14248 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14249 | fi |
be01d343 PB |
14250 | else |
14251 | ok=yes | |
14252 | case " ${configdirs} " in | |
14253 | *" gcc "*) ;; | |
14254 | *) ok=no ;; | |
14255 | esac | |
14256 | case ,${enable_languages}, in | |
14257 | *,java,*) ;; | |
14258 | *) ok=no ;; | |
14259 | esac | |
14260 | if test $ok = yes; then | |
14261 | # An in-tree tool is available and we can use it | |
14262 | GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14264 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14265 | elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then |
14266 | # We already found the complete path | |
b8025f34 | 14267 | ac_dir=`dirname $GCJ_FOR_TARGET` |
81ecdfbb RW |
14268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14269 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14270 | elif test "x$target" = "x$host"; then |
14271 | # We can use an host tool | |
14272 | GCJ_FOR_TARGET='$(GCJ)' | |
81ecdfbb RW |
14273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14274 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14275 | else |
14276 | # We need a cross tool | |
81ecdfbb RW |
14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14278 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14279 | fi |
14280 | fi | |
4b900473 | 14281 | |
81ecdfbb RW |
14282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5 |
14283 | $as_echo_n "checking where to find the target gfortran... " >&6; } | |
be01d343 | 14284 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14285 | if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14286 | # We already found the complete path | |
b8025f34 | 14287 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14289 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14290 | else |
14291 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14293 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14294 | fi |
be01d343 PB |
14295 | else |
14296 | ok=yes | |
14297 | case " ${configdirs} " in | |
14298 | *" gcc "*) ;; | |
14299 | *) ok=no ;; | |
14300 | esac | |
14301 | case ,${enable_languages}, in | |
14302 | *,fortran,*) ;; | |
14303 | *) ok=no ;; | |
14304 | esac | |
14305 | if test $ok = yes; then | |
14306 | # An in-tree tool is available and we can use it | |
14307 | GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/' | |
81ecdfbb RW |
14308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14309 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14310 | elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then |
14311 | # We already found the complete path | |
b8025f34 | 14312 | ac_dir=`dirname $GFORTRAN_FOR_TARGET` |
81ecdfbb RW |
14313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14314 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14315 | elif test "x$target" = "x$host"; then |
14316 | # We can use an host tool | |
14317 | GFORTRAN_FOR_TARGET='$(GFORTRAN)' | |
81ecdfbb RW |
14318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14319 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14320 | else |
14321 | # We need a cross tool | |
81ecdfbb RW |
14322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14323 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14324 | fi |
14325 | fi | |
4b900473 | 14326 | |
e552509b ILT |
14327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5 |
14328 | $as_echo_n "checking where to find the target gccgo... " >&6; } | |
14329 | if test "x${build}" != "x${host}" ; then | |
14330 | if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14331 | # We already found the complete path | |
14332 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14334 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14335 | else | |
14336 | # Canadian cross, just use what we found | |
14337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14338 | $as_echo "pre-installed" >&6; } | |
14339 | fi | |
14340 | else | |
14341 | ok=yes | |
14342 | case " ${configdirs} " in | |
14343 | *" gcc "*) ;; | |
14344 | *) ok=no ;; | |
14345 | esac | |
14346 | case ,${enable_languages}, in | |
14347 | *,go,*) ;; | |
14348 | *) ok=no ;; | |
14349 | esac | |
14350 | if test $ok = yes; then | |
14351 | # An in-tree tool is available and we can use it | |
14352 | GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/' | |
14353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14354 | $as_echo "just compiled" >&6; } | |
14355 | elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then | |
14356 | # We already found the complete path | |
14357 | ac_dir=`dirname $GOC_FOR_TARGET` | |
14358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14359 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14360 | elif test "x$target" = "x$host"; then | |
14361 | # We can use an host tool | |
14362 | GOC_FOR_TARGET='$(GOC)' | |
14363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14364 | $as_echo "host tool" >&6; } | |
14365 | else | |
14366 | # We need a cross tool | |
14367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14368 | $as_echo "pre-installed" >&6; } | |
14369 | fi | |
14370 | fi | |
14371 | ||
81ecdfbb RW |
14372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5 |
14373 | $as_echo_n "checking where to find the target ld... " >&6; } | |
be01d343 | 14374 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14375 | if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14376 | # We already found the complete path | |
b8025f34 | 14377 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14379 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14380 | else |
14381 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14383 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14384 | fi |
be01d343 PB |
14385 | else |
14386 | ok=yes | |
14387 | case " ${configdirs} " in | |
14388 | *" ld "*) ;; | |
14389 | *) ok=no ;; | |
14390 | esac | |
c6b750e1 | 14391 | |
be01d343 PB |
14392 | if test $ok = yes; then |
14393 | # An in-tree tool is available and we can use it | |
14394 | LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new' | |
81ecdfbb RW |
14395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14396 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14397 | elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then |
14398 | # We already found the complete path | |
b8025f34 | 14399 | ac_dir=`dirname $LD_FOR_TARGET` |
81ecdfbb RW |
14400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14401 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14402 | elif test "x$target" = "x$host"; then |
14403 | # We can use an host tool | |
14404 | LD_FOR_TARGET='$(LD)' | |
81ecdfbb RW |
14405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14406 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14407 | else |
14408 | # We need a cross tool | |
81ecdfbb RW |
14409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14410 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14411 | fi |
14412 | fi | |
4b900473 | 14413 | |
81ecdfbb RW |
14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5 |
14415 | $as_echo_n "checking where to find the target lipo... " >&6; } | |
be01d343 | 14416 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14417 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14418 | # We already found the complete path | |
b8025f34 | 14419 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14421 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14422 | else |
14423 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14425 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14426 | fi |
be01d343 | 14427 | else |
2429c060 PB |
14428 | if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then |
14429 | # We already found the complete path | |
b8025f34 | 14430 | ac_dir=`dirname $LIPO_FOR_TARGET` |
81ecdfbb RW |
14431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14432 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 | 14433 | elif test "x$target" = "x$host"; then |
be01d343 PB |
14434 | # We can use an host tool |
14435 | LIPO_FOR_TARGET='$(LIPO)' | |
81ecdfbb RW |
14436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14437 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14438 | else |
14439 | # We need a cross tool | |
81ecdfbb RW |
14440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14441 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14442 | fi |
14443 | fi | |
4b900473 | 14444 | |
81ecdfbb RW |
14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5 |
14446 | $as_echo_n "checking where to find the target nm... " >&6; } | |
be01d343 | 14447 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14448 | if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14449 | # We already found the complete path | |
b8025f34 | 14450 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14452 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14453 | else |
14454 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14456 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14457 | fi |
be01d343 PB |
14458 | else |
14459 | ok=yes | |
14460 | case " ${configdirs} " in | |
14461 | *" binutils "*) ;; | |
14462 | *) ok=no ;; | |
14463 | esac | |
c6b750e1 | 14464 | |
be01d343 PB |
14465 | if test $ok = yes; then |
14466 | # An in-tree tool is available and we can use it | |
14467 | NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new' | |
81ecdfbb RW |
14468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14469 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14470 | elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then |
14471 | # We already found the complete path | |
b8025f34 | 14472 | ac_dir=`dirname $NM_FOR_TARGET` |
81ecdfbb RW |
14473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14474 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14475 | elif test "x$target" = "x$host"; then |
14476 | # We can use an host tool | |
14477 | NM_FOR_TARGET='$(NM)' | |
81ecdfbb RW |
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14479 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14480 | else |
14481 | # We need a cross tool | |
81ecdfbb RW |
14482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14483 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14484 | fi |
14485 | fi | |
4b900473 | 14486 | |
6b91c541 AP |
14487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5 |
14488 | $as_echo_n "checking where to find the target objcopy... " >&6; } | |
14489 | if test "x${build}" != "x${host}" ; then | |
14490 | if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14491 | # We already found the complete path | |
14492 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14494 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14495 | else | |
14496 | # Canadian cross, just use what we found | |
14497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14498 | $as_echo "pre-installed" >&6; } | |
14499 | fi | |
14500 | else | |
14501 | ok=yes | |
14502 | case " ${configdirs} " in | |
14503 | *" binutils "*) ;; | |
14504 | *) ok=no ;; | |
14505 | esac | |
14506 | ||
14507 | if test $ok = yes; then | |
14508 | # An in-tree tool is available and we can use it | |
14509 | OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy' | |
14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14511 | $as_echo "just compiled" >&6; } | |
14512 | elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then | |
14513 | # We already found the complete path | |
14514 | ac_dir=`dirname $OBJCOPY_FOR_TARGET` | |
14515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14516 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14517 | elif test "x$target" = "x$host"; then | |
14518 | # We can use an host tool | |
1b6c0831 | 14519 | OBJCOPY_FOR_TARGET='$(OBJCOPY)' |
6b91c541 AP |
14520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14521 | $as_echo "host tool" >&6; } | |
14522 | else | |
14523 | # We need a cross tool | |
14524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14525 | $as_echo "pre-installed" >&6; } | |
14526 | fi | |
14527 | fi | |
14528 | ||
81ecdfbb RW |
14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5 |
14530 | $as_echo_n "checking where to find the target objdump... " >&6; } | |
be01d343 | 14531 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14532 | if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14533 | # We already found the complete path | |
b8025f34 | 14534 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14536 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14537 | else |
14538 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14540 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14541 | fi |
be01d343 PB |
14542 | else |
14543 | ok=yes | |
14544 | case " ${configdirs} " in | |
14545 | *" binutils "*) ;; | |
14546 | *) ok=no ;; | |
14547 | esac | |
c6b750e1 | 14548 | |
be01d343 PB |
14549 | if test $ok = yes; then |
14550 | # An in-tree tool is available and we can use it | |
14551 | OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump' | |
81ecdfbb RW |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14553 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14554 | elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then |
14555 | # We already found the complete path | |
b8025f34 | 14556 | ac_dir=`dirname $OBJDUMP_FOR_TARGET` |
81ecdfbb RW |
14557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14558 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14559 | elif test "x$target" = "x$host"; then |
14560 | # We can use an host tool | |
14561 | OBJDUMP_FOR_TARGET='$(OBJDUMP)' | |
81ecdfbb RW |
14562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14563 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14564 | else |
14565 | # We need a cross tool | |
81ecdfbb RW |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14567 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14568 | fi |
14569 | fi | |
4b900473 | 14570 | |
81ecdfbb RW |
14571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5 |
14572 | $as_echo_n "checking where to find the target ranlib... " >&6; } | |
be01d343 | 14573 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14574 | if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14575 | # We already found the complete path | |
b8025f34 | 14576 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14578 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14579 | else |
14580 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14582 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14583 | fi |
be01d343 PB |
14584 | else |
14585 | ok=yes | |
14586 | case " ${configdirs} " in | |
14587 | *" binutils "*) ;; | |
14588 | *) ok=no ;; | |
14589 | esac | |
c6b750e1 | 14590 | |
be01d343 PB |
14591 | if test $ok = yes; then |
14592 | # An in-tree tool is available and we can use it | |
14593 | RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib' | |
81ecdfbb RW |
14594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14595 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14596 | elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then |
14597 | # We already found the complete path | |
b8025f34 | 14598 | ac_dir=`dirname $RANLIB_FOR_TARGET` |
81ecdfbb RW |
14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14600 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14601 | elif test "x$target" = "x$host"; then |
14602 | # We can use an host tool | |
14603 | RANLIB_FOR_TARGET='$(RANLIB)' | |
81ecdfbb RW |
14604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14605 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14606 | else |
14607 | # We need a cross tool | |
81ecdfbb RW |
14608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14609 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14610 | fi |
14611 | fi | |
4b900473 | 14612 | |
b121d7d4 DD |
14613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5 |
14614 | $as_echo_n "checking where to find the target readelf... " >&6; } | |
14615 | if test "x${build}" != "x${host}" ; then | |
14616 | if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14617 | # We already found the complete path | |
14618 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14620 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14621 | else | |
14622 | # Canadian cross, just use what we found | |
14623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14624 | $as_echo "pre-installed" >&6; } | |
14625 | fi | |
14626 | else | |
14627 | ok=yes | |
14628 | case " ${configdirs} " in | |
14629 | *" binutils "*) ;; | |
14630 | *) ok=no ;; | |
14631 | esac | |
14632 | ||
14633 | if test $ok = yes; then | |
14634 | # An in-tree tool is available and we can use it | |
14635 | READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf' | |
14636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 | |
14637 | $as_echo "just compiled" >&6; } | |
14638 | elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then | |
14639 | # We already found the complete path | |
14640 | ac_dir=`dirname $READELF_FOR_TARGET` | |
14641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 | |
14642 | $as_echo "pre-installed in $ac_dir" >&6; } | |
14643 | elif test "x$target" = "x$host"; then | |
14644 | # We can use an host tool | |
14645 | READELF_FOR_TARGET='$(READELF)' | |
14646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 | |
14647 | $as_echo "host tool" >&6; } | |
14648 | else | |
14649 | # We need a cross tool | |
14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 | |
14651 | $as_echo "pre-installed" >&6; } | |
14652 | fi | |
14653 | fi | |
14654 | ||
81ecdfbb RW |
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5 |
14656 | $as_echo_n "checking where to find the target strip... " >&6; } | |
be01d343 | 14657 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14658 | if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14659 | # We already found the complete path | |
b8025f34 | 14660 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14662 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14663 | else |
14664 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14666 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14667 | fi |
be01d343 PB |
14668 | else |
14669 | ok=yes | |
14670 | case " ${configdirs} " in | |
14671 | *" binutils "*) ;; | |
14672 | *) ok=no ;; | |
14673 | esac | |
c6b750e1 | 14674 | |
be01d343 PB |
14675 | if test $ok = yes; then |
14676 | # An in-tree tool is available and we can use it | |
9b980aa1 | 14677 | STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new' |
81ecdfbb RW |
14678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14679 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14680 | elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then |
14681 | # We already found the complete path | |
b8025f34 | 14682 | ac_dir=`dirname $STRIP_FOR_TARGET` |
81ecdfbb RW |
14683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14684 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14685 | elif test "x$target" = "x$host"; then |
14686 | # We can use an host tool | |
14687 | STRIP_FOR_TARGET='$(STRIP)' | |
81ecdfbb RW |
14688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14689 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14690 | else |
14691 | # We need a cross tool | |
81ecdfbb RW |
14692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14693 | $as_echo "pre-installed" >&6; } | |
be01d343 PB |
14694 | fi |
14695 | fi | |
4b900473 | 14696 | |
81ecdfbb RW |
14697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5 |
14698 | $as_echo_n "checking where to find the target windres... " >&6; } | |
be01d343 | 14699 | if test "x${build}" != "x${host}" ; then |
2429c060 PB |
14700 | if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14701 | # We already found the complete path | |
b8025f34 | 14702 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14704 | $as_echo "pre-installed in $ac_dir" >&6; } | |
2429c060 PB |
14705 | else |
14706 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14708 | $as_echo "pre-installed" >&6; } | |
2429c060 | 14709 | fi |
be01d343 PB |
14710 | else |
14711 | ok=yes | |
14712 | case " ${configdirs} " in | |
14713 | *" binutils "*) ;; | |
14714 | *) ok=no ;; | |
14715 | esac | |
c6b750e1 | 14716 | |
be01d343 PB |
14717 | if test $ok = yes; then |
14718 | # An in-tree tool is available and we can use it | |
14719 | WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres' | |
81ecdfbb RW |
14720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14721 | $as_echo "just compiled" >&6; } | |
2429c060 PB |
14722 | elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then |
14723 | # We already found the complete path | |
b8025f34 | 14724 | ac_dir=`dirname $WINDRES_FOR_TARGET` |
81ecdfbb RW |
14725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14726 | $as_echo "pre-installed in $ac_dir" >&6; } | |
be01d343 PB |
14727 | elif test "x$target" = "x$host"; then |
14728 | # We can use an host tool | |
14729 | WINDRES_FOR_TARGET='$(WINDRES)' | |
81ecdfbb RW |
14730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14731 | $as_echo "host tool" >&6; } | |
be01d343 PB |
14732 | else |
14733 | # We need a cross tool | |
81ecdfbb RW |
14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14735 | $as_echo "pre-installed" >&6; } | |
be01d343 | 14736 | fi |
a0da8069 | 14737 | fi |
54752a6b | 14738 | |
81ecdfbb RW |
14739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5 |
14740 | $as_echo_n "checking where to find the target windmc... " >&6; } | |
0c24b341 NC |
14741 | if test "x${build}" != "x${host}" ; then |
14742 | if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then | |
14743 | # We already found the complete path | |
14744 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14746 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14747 | else |
14748 | # Canadian cross, just use what we found | |
81ecdfbb RW |
14749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14750 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14751 | fi |
14752 | else | |
14753 | ok=yes | |
14754 | case " ${configdirs} " in | |
14755 | *" binutils "*) ;; | |
14756 | *) ok=no ;; | |
14757 | esac | |
14758 | ||
14759 | if test $ok = yes; then | |
14760 | # An in-tree tool is available and we can use it | |
14761 | WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc' | |
81ecdfbb RW |
14762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5 |
14763 | $as_echo "just compiled" >&6; } | |
0c24b341 NC |
14764 | elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then |
14765 | # We already found the complete path | |
14766 | ac_dir=`dirname $WINDMC_FOR_TARGET` | |
81ecdfbb RW |
14767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5 |
14768 | $as_echo "pre-installed in $ac_dir" >&6; } | |
0c24b341 NC |
14769 | elif test "x$target" = "x$host"; then |
14770 | # We can use an host tool | |
14771 | WINDMC_FOR_TARGET='$(WINDMC)' | |
81ecdfbb RW |
14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5 |
14773 | $as_echo "host tool" >&6; } | |
0c24b341 NC |
14774 | else |
14775 | # We need a cross tool | |
81ecdfbb RW |
14776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5 |
14777 | $as_echo "pre-installed" >&6; } | |
0c24b341 NC |
14778 | fi |
14779 | fi | |
14780 | ||
54752a6b NN |
14781 | |
14782 | ||
be01d343 | 14783 | |
4b900473 | 14784 | |
a0da8069 NN |
14785 | # Certain tools may need extra flags. |
14786 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
14787 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
14788 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
14789 | ||
be01d343 PB |
14790 | # When building target libraries, except in a Canadian cross, we use |
14791 | # the same toolchain as the compiler we just built. | |
14792 | COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)' | |
14793 | COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)' | |
14794 | COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)' | |
14795 | if test $host = $build; then | |
14796 | case " $configdirs " in | |
14797 | *" gcc "*) | |
14798 | COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as' | |
14799 | COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld' | |
14800 | COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target} | |
14801 | ;; | |
14802 | esac | |
14803 | fi | |
14804 | ||
14805 | ||
14806 | ||
14807 | ||
14808 | ||
81ecdfbb RW |
14809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
14810 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
14811 | # Check whether --enable-maintainer-mode was given. | |
14812 | if test "${enable_maintainer_mode+set}" = set; then : | |
14813 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3d5e36ae AO |
14814 | else |
14815 | USE_MAINTAINER_MODE=no | |
81ecdfbb RW |
14816 | fi |
14817 | ||
14818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
14819 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3d5e36ae AO |
14820 | |
14821 | ||
14822 | if test "$USE_MAINTAINER_MODE" = yes; then | |
14823 | MAINTAINER_MODE_TRUE= | |
14824 | MAINTAINER_MODE_FALSE='#' | |
14825 | else | |
14826 | MAINTAINER_MODE_TRUE='#' | |
14827 | MAINTAINER_MODE_FALSE= | |
c6b750e1 | 14828 | fi |
3d5e36ae AO |
14829 | MAINT=$MAINTAINER_MODE_TRUE |
14830 | ||
1d39f329 NN |
14831 | # --------------------- |
14832 | # GCC bootstrap support | |
14833 | # --------------------- | |
14834 | ||
14835 | # Stage specific cflags for build. | |
14836 | stage1_cflags="-g" | |
14837 | case $build in | |
14838 | vax-*-*) | |
14839 | case ${GCC} in | |
14840 | yes) stage1_cflags="-g -Wa,-J" ;; | |
14841 | *) stage1_cflags="-g -J" ;; | |
14842 | esac ;; | |
1d39f329 NN |
14843 | esac |
14844 | ||
1d89b610 | 14845 | |
1d39f329 | 14846 | |
8a0d8a5c | 14847 | # Enable --enable-checking in stage1 of the compiler. |
81ecdfbb RW |
14848 | # Check whether --enable-stage1-checking was given. |
14849 | if test "${enable_stage1_checking+set}" = set; then : | |
14850 | enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking} | |
8a0d8a5c | 14851 | else |
5566c1fa | 14852 | if test "x$enable_checking" = xno || test "x$enable_checking" = x; then |
ce6c656d L |
14853 | # For --disable-checking or implicit --enable-checking=release, avoid |
14854 | # setting --enable-checking=gc in the default stage1 checking for LTO | |
14855 | # bootstraps. See PR62077. | |
14856 | stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types | |
14857 | case $BUILD_CONFIG in | |
14858 | *lto*) | |
14859 | if test "x$enable_checking" = x && \ | |
14860 | test -d ${srcdir}/gcc && \ | |
14861 | test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then | |
14862 | stage1_checking=--enable-checking=yes,types | |
14863 | fi;; | |
14864 | *) stage1_checking=--enable-checking=yes,types;; | |
14865 | esac | |
8a0d8a5c | 14866 | else |
5566c1fa | 14867 | stage1_checking=--enable-checking=$enable_checking,types |
8a0d8a5c | 14868 | fi |
81ecdfbb | 14869 | fi |
8a0d8a5c PB |
14870 | |
14871 | ||
c6b750e1 | 14872 | |
81ecdfbb RW |
14873 | # Enable -Werror in bootstrap stage2 and later. |
14874 | # Check whether --enable-werror was given. | |
14875 | if test "${enable_werror+set}" = set; then : | |
14876 | enableval=$enable_werror; | |
1d39f329 | 14877 | else |
a0323144 | 14878 | if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then |
1d39f329 | 14879 | enable_werror=yes |
79fcd0ec PB |
14880 | else |
14881 | enable_werror=no | |
14882 | fi | |
81ecdfbb RW |
14883 | fi |
14884 | ||
1a6f2dc7 NN |
14885 | case ${enable_werror} in |
14886 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
14887 | *) stage2_werror_flag="" ;; | |
1d39f329 NN |
14888 | esac |
14889 | ||
14890 | ||
82033c9b JBG |
14891 | # Enable --enable-host-shared. |
14892 | # Check whether --enable-host-shared was given. | |
14893 | if test "${enable_host_shared+set}" = set; then : | |
14894 | enableval=$enable_host_shared; host_shared=$enableval | |
14895 | else | |
14896 | host_shared=no | |
14897 | fi | |
14898 | ||
14899 | ||
14900 | ||
1b6c0831 L |
14901 | # PR jit/64780: Require the user to explicitly specify |
14902 | # --enable-host-shared if the jit is enabled, hinting | |
14903 | # that they might want to do a separate configure/build of | |
14904 | # the jit, to avoid users from slowing down the rest of the | |
14905 | # compiler by enabling the jit. | |
14906 | if test ${host_shared} = "no" ; then | |
14907 | case "${enable_languages}" in | |
14908 | *jit*) | |
14909 | as_fn_error " | |
14910 | Enabling language \"jit\" requires --enable-host-shared. | |
14911 | ||
14912 | --enable-host-shared typically slows the rest of the compiler down by | |
14913 | a few %, so you must explicitly enable it. | |
14914 | ||
14915 | If you want to build both the jit and the regular compiler, it is often | |
14916 | best to do this via two separate configure/builds, in separate | |
14917 | directories, to avoid imposing the performance cost of | |
14918 | --enable-host-shared on the regular compiler." "$LINENO" 5 | |
14919 | ;; | |
14920 | *) | |
14921 | ;; | |
14922 | esac | |
14923 | fi | |
14924 | ||
e8a5fa9c RW |
14925 | # Specify what files to not compare during bootstrap. |
14926 | ||
14927 | compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*" | |
14928 | case "$target" in | |
14929 | hppa*64*-*-hpux*) ;; | |
14930 | hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;; | |
1488e230 | 14931 | powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;; |
e8a5fa9c RW |
14932 | esac |
14933 | ||
14934 | ||
81ecdfbb RW |
14935 | ac_config_files="$ac_config_files Makefile" |
14936 | ||
c6b750e1 | 14937 | cat >confcache <<\_ACEOF |
a0da8069 NN |
14938 | # This file is a shell script that caches the results of configure |
14939 | # tests run on this system so they can be shared between configure | |
c6b750e1 DJ |
14940 | # scripts and configure runs, see configure's option --config-cache. |
14941 | # It is not useful on other systems. If it contains results you don't | |
14942 | # want to keep, you may remove or edit it. | |
a0da8069 | 14943 | # |
c6b750e1 DJ |
14944 | # config.status only pays attention to the cache file if you give it |
14945 | # the --recheck option to rerun configure. | |
a0da8069 | 14946 | # |
c6b750e1 DJ |
14947 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
14948 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14949 | # following values. | |
14950 | ||
14951 | _ACEOF | |
14952 | ||
a0da8069 NN |
14953 | # The following way of writing the cache mishandles newlines in values, |
14954 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14955 | # So, we kill variables containing newlines. |
a0da8069 NN |
14956 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14957 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14958 | ( |
14959 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
14960 | eval ac_val=\$$ac_var | |
14961 | case $ac_val in #( | |
14962 | *${as_nl}*) | |
14963 | case $ac_var in #( | |
14964 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
14965 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
14966 | esac | |
14967 | case $ac_var in #( | |
14968 | _ | IFS | as_nl) ;; #( | |
14969 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
14970 | *) { eval $ac_var=; unset $ac_var;} ;; | |
14971 | esac ;; | |
14972 | esac | |
14973 | done | |
14974 | ||
c6b750e1 | 14975 | (set) 2>&1 | |
81ecdfbb RW |
14976 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
14977 | *${as_nl}ac_space=\ *) | |
14978 | # `set' does not quote correctly, so add quotes: double-quote | |
14979 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
c6b750e1 DJ |
14980 | sed -n \ |
14981 | "s/'/'\\\\''/g; | |
14982 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 14983 | ;; #( |
c6b750e1 DJ |
14984 | *) |
14985 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 14986 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
c6b750e1 | 14987 | ;; |
81ecdfbb RW |
14988 | esac | |
14989 | sort | |
14990 | ) | | |
c6b750e1 | 14991 | sed ' |
81ecdfbb | 14992 | /^ac_cv_env_/b end |
c6b750e1 | 14993 | t clear |
81ecdfbb | 14994 | :clear |
c6b750e1 DJ |
14995 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
14996 | t end | |
81ecdfbb RW |
14997 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
14998 | :end' >>confcache | |
14999 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15000 | if test -w "$cache_file"; then | |
15001 | test "x$cache_file" != "x/dev/null" && | |
15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
15003 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
c6b750e1 | 15004 | cat confcache >$cache_file |
a0da8069 | 15005 | else |
81ecdfbb RW |
15006 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15007 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a0da8069 | 15008 | fi |
852e5f18 | 15009 | fi |
a0da8069 | 15010 | rm -f confcache |
852e5f18 | 15011 | |
a0da8069 NN |
15012 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
15013 | # Let make expand exec_prefix. | |
15014 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
852e5f18 | 15015 | |
a0da8069 NN |
15016 | # Transform confdefs.h into DEFS. |
15017 | # Protect against shell expansion while executing Makefile rules. | |
15018 | # Protect against Makefile macro expansion. | |
c6b750e1 DJ |
15019 | # |
15020 | # If the first sed substitution is executed (which looks for macros that | |
81ecdfbb | 15021 | # take arguments), then branch to the quote section. Otherwise, |
c6b750e1 | 15022 | # look for a macro that doesn't take arguments. |
81ecdfbb RW |
15023 | ac_script=' |
15024 | :mline | |
15025 | /\\$/{ | |
15026 | N | |
15027 | s,\\\n,, | |
15028 | b mline | |
15029 | } | |
c6b750e1 | 15030 | t clear |
81ecdfbb RW |
15031 | :clear |
15032 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
c6b750e1 | 15033 | t quote |
81ecdfbb | 15034 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
c6b750e1 | 15035 | t quote |
81ecdfbb RW |
15036 | b any |
15037 | :quote | |
15038 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15039 | s/\[/\\&/g | |
15040 | s/\]/\\&/g | |
15041 | s/\$/$$/g | |
15042 | H | |
15043 | :any | |
15044 | ${ | |
15045 | g | |
15046 | s/^\n// | |
15047 | s/\n/ /g | |
15048 | p | |
15049 | } | |
15050 | ' | |
15051 | DEFS=`sed -n "$ac_script" confdefs.h` | |
c6b750e1 DJ |
15052 | |
15053 | ||
15054 | ac_libobjs= | |
15055 | ac_ltlibobjs= | |
15056 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15057 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
15058 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15059 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15060 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15061 | # will be set to the directory where LIBOBJS objects are built. | |
15062 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15063 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
c6b750e1 DJ |
15064 | done |
15065 | LIBOBJS=$ac_libobjs | |
852e5f18 | 15066 | |
c6b750e1 | 15067 | LTLIBOBJS=$ac_ltlibobjs |
376a0e54 | 15068 | |
cac3d6c4 | 15069 | |
c6b750e1 DJ |
15070 | |
15071 | : ${CONFIG_STATUS=./config.status} | |
81ecdfbb | 15072 | ac_write_fail=0 |
c6b750e1 DJ |
15073 | ac_clean_files_save=$ac_clean_files |
15074 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
15075 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15076 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15077 | as_write_fail=0 | |
15078 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
c6b750e1 DJ |
15079 | #! $SHELL |
15080 | # Generated by $as_me. | |
a0da8069 | 15081 | # Run this file to recreate the current configuration. |
a0da8069 | 15082 | # Compiler output produced by configure, useful for debugging |
c6b750e1 | 15083 | # configure, is in config.log if it exists. |
376a0e54 | 15084 | |
c6b750e1 DJ |
15085 | debug=false |
15086 | ac_cs_recheck=false | |
15087 | ac_cs_silent=false | |
c6b750e1 | 15088 | |
81ecdfbb RW |
15089 | SHELL=\${CONFIG_SHELL-$SHELL} |
15090 | export SHELL | |
15091 | _ASEOF | |
15092 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15093 | ## -------------------- ## | |
15094 | ## M4sh Initialization. ## | |
15095 | ## -------------------- ## | |
15096 | ||
15097 | # Be more Bourne compatible | |
15098 | DUALCASE=1; export DUALCASE # for MKS sh | |
15099 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
c6b750e1 DJ |
15100 | emulate sh |
15101 | NULLCMD=: | |
81ecdfbb | 15102 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
c6b750e1 DJ |
15103 | # is contrary to our usage. Disable this feature. |
15104 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15105 | setopt NO_GLOB_SUBST |
15106 | else | |
15107 | case `(set -o) 2>/dev/null` in #( | |
15108 | *posix*) : | |
15109 | set -o posix ;; #( | |
15110 | *) : | |
15111 | ;; | |
15112 | esac | |
c6b750e1 | 15113 | fi |
c6b750e1 | 15114 | |
81ecdfbb RW |
15115 | |
15116 | as_nl=' | |
15117 | ' | |
15118 | export as_nl | |
15119 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15120 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15121 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15122 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15123 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15124 | # but without wasting forks for bash or zsh. | |
15125 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15126 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15127 | as_echo='print -r --' | |
15128 | as_echo_n='print -rn --' | |
15129 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15130 | as_echo='printf %s\n' | |
15131 | as_echo_n='printf %s' | |
15132 | else | |
15133 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15134 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15135 | as_echo_n='/usr/ucb/echo -n' | |
15136 | else | |
15137 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15138 | as_echo_n_body='eval | |
15139 | arg=$1; | |
15140 | case $arg in #( | |
15141 | *"$as_nl"*) | |
15142 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15143 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15144 | esac; | |
15145 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15146 | ' | |
15147 | export as_echo_n_body | |
15148 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15149 | fi | |
15150 | export as_echo_body | |
15151 | as_echo='sh -c $as_echo_body as_echo' | |
c6b750e1 DJ |
15152 | fi |
15153 | ||
81ecdfbb RW |
15154 | # The user is always right. |
15155 | if test "${PATH_SEPARATOR+set}" != set; then | |
15156 | PATH_SEPARATOR=: | |
15157 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15158 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15159 | PATH_SEPARATOR=';' | |
15160 | } | |
15161 | fi | |
15162 | ||
15163 | ||
15164 | # IFS | |
15165 | # We need space, tab and new line, in precisely that order. Quoting is | |
15166 | # there to prevent editors from complaining about space-tab. | |
15167 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15168 | # splitting by setting IFS to empty value.) | |
15169 | IFS=" "" $as_nl" | |
15170 | ||
15171 | # Find who we are. Look in the path if we contain no directory separator. | |
15172 | case $0 in #(( | |
15173 | *[\\/]* ) as_myself=$0 ;; | |
15174 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15175 | for as_dir in $PATH | |
15176 | do | |
15177 | IFS=$as_save_IFS | |
15178 | test -z "$as_dir" && as_dir=. | |
15179 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15180 | done | |
15181 | IFS=$as_save_IFS | |
15182 | ||
15183 | ;; | |
15184 | esac | |
15185 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15186 | # in which case we are not to be found in the path. | |
15187 | if test "x$as_myself" = x; then | |
15188 | as_myself=$0 | |
15189 | fi | |
15190 | if test ! -f "$as_myself"; then | |
15191 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15192 | exit 1 | |
15193 | fi | |
c6b750e1 | 15194 | |
81ecdfbb RW |
15195 | # Unset variables that we do not need and which cause bugs (e.g. in |
15196 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15197 | # suppresses any "Segmentation fault" message there. '((' could | |
15198 | # trigger a bug in pdksh 5.2.14. | |
15199 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15200 | do eval test x\${$as_var+set} = xset \ | |
15201 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15202 | done | |
c6b750e1 DJ |
15203 | PS1='$ ' |
15204 | PS2='> ' | |
15205 | PS4='+ ' | |
15206 | ||
15207 | # NLS nuisances. | |
81ecdfbb RW |
15208 | LC_ALL=C |
15209 | export LC_ALL | |
15210 | LANGUAGE=C | |
15211 | export LANGUAGE | |
15212 | ||
15213 | # CDPATH. | |
15214 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15215 | ||
15216 | ||
15217 | # as_fn_error ERROR [LINENO LOG_FD] | |
15218 | # --------------------------------- | |
15219 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15220 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15221 | # script with status $?, using 1 if that was 0. | |
15222 | as_fn_error () | |
15223 | { | |
15224 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
15225 | if test "$3"; then | |
15226 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15227 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
c6b750e1 | 15228 | fi |
81ecdfbb RW |
15229 | $as_echo "$as_me: error: $1" >&2 |
15230 | as_fn_exit $as_status | |
15231 | } # as_fn_error | |
15232 | ||
15233 | ||
15234 | # as_fn_set_status STATUS | |
15235 | # ----------------------- | |
15236 | # Set $? to STATUS, without forking. | |
15237 | as_fn_set_status () | |
15238 | { | |
15239 | return $1 | |
15240 | } # as_fn_set_status | |
15241 | ||
15242 | # as_fn_exit STATUS | |
15243 | # ----------------- | |
15244 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15245 | as_fn_exit () | |
15246 | { | |
15247 | set +e | |
15248 | as_fn_set_status $1 | |
15249 | exit $1 | |
15250 | } # as_fn_exit | |
15251 | ||
15252 | # as_fn_unset VAR | |
15253 | # --------------- | |
15254 | # Portably unset VAR. | |
15255 | as_fn_unset () | |
15256 | { | |
15257 | { eval $1=; unset $1;} | |
15258 | } | |
15259 | as_unset=as_fn_unset | |
15260 | # as_fn_append VAR VALUE | |
15261 | # ---------------------- | |
15262 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15263 | # advantage of any shell optimizations that allow amortized linear growth over | |
15264 | # repeated appends, instead of the typical quadratic growth present in naive | |
15265 | # implementations. | |
15266 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15267 | eval 'as_fn_append () | |
15268 | { | |
15269 | eval $1+=\$2 | |
15270 | }' | |
15271 | else | |
15272 | as_fn_append () | |
15273 | { | |
15274 | eval $1=\$$1\$2 | |
15275 | } | |
15276 | fi # as_fn_append | |
15277 | ||
15278 | # as_fn_arith ARG... | |
15279 | # ------------------ | |
15280 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15281 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15282 | # must be portable across $(()) and expr. | |
15283 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15284 | eval 'as_fn_arith () | |
15285 | { | |
15286 | as_val=$(( $* )) | |
15287 | }' | |
15288 | else | |
15289 | as_fn_arith () | |
15290 | { | |
15291 | as_val=`expr "$@" || test $? -eq 1` | |
15292 | } | |
15293 | fi # as_fn_arith | |
15294 | ||
c6b750e1 | 15295 | |
81ecdfbb RW |
15296 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15297 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
c6b750e1 DJ |
15298 | as_expr=expr |
15299 | else | |
15300 | as_expr=false | |
15301 | fi | |
15302 | ||
81ecdfbb | 15303 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
c6b750e1 DJ |
15304 | as_basename=basename |
15305 | else | |
15306 | as_basename=false | |
15307 | fi | |
15308 | ||
81ecdfbb RW |
15309 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15310 | as_dirname=dirname | |
15311 | else | |
15312 | as_dirname=false | |
15313 | fi | |
c6b750e1 | 15314 | |
81ecdfbb | 15315 | as_me=`$as_basename -- "$0" || |
c6b750e1 DJ |
15316 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15317 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15318 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15319 | $as_echo X/"$0" | | |
15320 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15321 | s//\1/ | |
15322 | q | |
15323 | } | |
15324 | /^X\/\(\/\/\)$/{ | |
15325 | s//\1/ | |
15326 | q | |
15327 | } | |
15328 | /^X\/\(\/\).*/{ | |
15329 | s//\1/ | |
15330 | q | |
15331 | } | |
15332 | s/.*/./; q'` | |
c6b750e1 | 15333 | |
c6b750e1 DJ |
15334 | # Avoid depending upon Character Ranges. |
15335 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15336 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15337 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15338 | as_cr_digits='0123456789' | |
15339 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15340 | ||
81ecdfbb RW |
15341 | ECHO_C= ECHO_N= ECHO_T= |
15342 | case `echo -n x` in #((((( | |
15343 | -n*) | |
15344 | case `echo 'xy\c'` in | |
15345 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15346 | xy) ECHO_C='\c';; | |
15347 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15348 | ECHO_T=' ';; | |
15349 | esac;; | |
15350 | *) | |
15351 | ECHO_N='-n';; | |
c6b750e1 DJ |
15352 | esac |
15353 | ||
81ecdfbb RW |
15354 | rm -f conf$$ conf$$.exe conf$$.file |
15355 | if test -d conf$$.dir; then | |
15356 | rm -f conf$$.dir/conf$$.file | |
c6b750e1 | 15357 | else |
81ecdfbb RW |
15358 | rm -f conf$$.dir |
15359 | mkdir conf$$.dir 2>/dev/null | |
c6b750e1 | 15360 | fi |
81ecdfbb RW |
15361 | if (echo >conf$$.file) 2>/dev/null; then |
15362 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
c6b750e1 | 15363 | as_ln_s='ln -s' |
81ecdfbb RW |
15364 | # ... but there are two gotchas: |
15365 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15366 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15367 | # In both cases, we have to default to `cp -p'. | |
15368 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15369 | as_ln_s='cp -p' | |
15370 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
15371 | as_ln_s=ln | |
15372 | else | |
15373 | as_ln_s='cp -p' | |
c6b750e1 | 15374 | fi |
c6b750e1 DJ |
15375 | else |
15376 | as_ln_s='cp -p' | |
15377 | fi | |
81ecdfbb RW |
15378 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15379 | rmdir conf$$.dir 2>/dev/null | |
15380 | ||
15381 | ||
15382 | # as_fn_mkdir_p | |
15383 | # ------------- | |
15384 | # Create "$as_dir" as a directory, including parents if necessary. | |
15385 | as_fn_mkdir_p () | |
15386 | { | |
15387 | ||
15388 | case $as_dir in #( | |
15389 | -*) as_dir=./$as_dir;; | |
15390 | esac | |
15391 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15392 | as_dirs= | |
15393 | while :; do | |
15394 | case $as_dir in #( | |
15395 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15396 | *) as_qdir=$as_dir;; | |
15397 | esac | |
15398 | as_dirs="'$as_qdir' $as_dirs" | |
15399 | as_dir=`$as_dirname -- "$as_dir" || | |
15400 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15401 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15402 | X"$as_dir" : 'X\(//\)$' \| \ | |
15403 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15404 | $as_echo X"$as_dir" | | |
15405 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15406 | s//\1/ | |
15407 | q | |
15408 | } | |
15409 | /^X\(\/\/\)[^/].*/{ | |
15410 | s//\1/ | |
15411 | q | |
15412 | } | |
15413 | /^X\(\/\/\)$/{ | |
15414 | s//\1/ | |
15415 | q | |
15416 | } | |
15417 | /^X\(\/\).*/{ | |
15418 | s//\1/ | |
15419 | q | |
15420 | } | |
15421 | s/.*/./; q'` | |
15422 | test -d "$as_dir" && break | |
15423 | done | |
15424 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15425 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
15426 | ||
c6b750e1 | 15427 | |
81ecdfbb | 15428 | } # as_fn_mkdir_p |
c6b750e1 | 15429 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15430 | as_mkdir_p='mkdir -p "$as_dir"' |
c6b750e1 DJ |
15431 | else |
15432 | test -d ./-p && rmdir ./-p | |
15433 | as_mkdir_p=false | |
15434 | fi | |
15435 | ||
81ecdfbb RW |
15436 | if test -x / >/dev/null 2>&1; then |
15437 | as_test_x='test -x' | |
15438 | else | |
15439 | if ls -dL / >/dev/null 2>&1; then | |
15440 | as_ls_L_option=L | |
15441 | else | |
15442 | as_ls_L_option= | |
15443 | fi | |
15444 | as_test_x=' | |
15445 | eval sh -c '\'' | |
15446 | if test -d "$1"; then | |
15447 | test -d "$1/."; | |
15448 | else | |
15449 | case $1 in #( | |
15450 | -*)set "./$1";; | |
15451 | esac; | |
15452 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
15453 | ???[sx]*):;;*)false;;esac;fi | |
15454 | '\'' sh | |
15455 | ' | |
15456 | fi | |
15457 | as_executable_p=$as_test_x | |
c6b750e1 DJ |
15458 | |
15459 | # Sed expression to map a string onto a valid CPP name. | |
15460 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15461 | ||
15462 | # Sed expression to map a string onto a valid variable name. | |
15463 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15464 | ||
15465 | ||
c6b750e1 | 15466 | exec 6>&1 |
81ecdfbb RW |
15467 | ## ----------------------------------- ## |
15468 | ## Main body of $CONFIG_STATUS script. ## | |
15469 | ## ----------------------------------- ## | |
15470 | _ASEOF | |
15471 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15472 | ||
15473 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15474 | # Save the log message, to keep $0 and so on meaningful, and to | |
c6b750e1 | 15475 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15476 | # values after options handling. |
15477 | ac_log=" | |
c6b750e1 | 15478 | This file was extended by $as_me, which was |
81ecdfbb | 15479 | generated by GNU Autoconf 2.64. Invocation command line was |
c6b750e1 DJ |
15480 | |
15481 | CONFIG_FILES = $CONFIG_FILES | |
15482 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15483 | CONFIG_LINKS = $CONFIG_LINKS | |
15484 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15485 | $ $0 $@ | |
15486 | ||
81ecdfbb RW |
15487 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15488 | " | |
15489 | ||
c6b750e1 DJ |
15490 | _ACEOF |
15491 | ||
81ecdfbb RW |
15492 | case $ac_config_files in *" |
15493 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15494 | esac | |
c6b750e1 | 15495 | |
c6b750e1 | 15496 | |
c6b750e1 | 15497 | |
81ecdfbb RW |
15498 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15499 | # Files that config.status was made for. | |
15500 | config_files="$ac_config_files" | |
c6b750e1 | 15501 | |
81ecdfbb | 15502 | _ACEOF |
c6b750e1 | 15503 | |
81ecdfbb | 15504 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15505 | ac_cs_usage="\ |
81ecdfbb RW |
15506 | \`$as_me' instantiates files and other configuration actions |
15507 | from templates according to the current configuration. Unless the files | |
15508 | and actions are specified as TAGs, all are instantiated by default. | |
c6b750e1 | 15509 | |
81ecdfbb | 15510 | Usage: $0 [OPTION]... [TAG]... |
c6b750e1 DJ |
15511 | |
15512 | -h, --help print this help, then exit | |
81ecdfbb RW |
15513 | -V, --version print version number and configuration settings, then exit |
15514 | -q, --quiet, --silent | |
15515 | do not print progress messages | |
c6b750e1 DJ |
15516 | -d, --debug don't remove temporary files |
15517 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15518 | --file=FILE[:TEMPLATE] |
15519 | instantiate the configuration file FILE | |
c6b750e1 DJ |
15520 | |
15521 | Configuration files: | |
15522 | $config_files | |
15523 | ||
81ecdfbb | 15524 | Report bugs to the package provider." |
c6b750e1 | 15525 | |
81ecdfbb RW |
15526 | _ACEOF |
15527 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
c6b750e1 DJ |
15528 | ac_cs_version="\\ |
15529 | config.status | |
81ecdfbb RW |
15530 | configured by $0, generated by GNU Autoconf 2.64, |
15531 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
c6b750e1 | 15532 | |
81ecdfbb | 15533 | Copyright (C) 2009 Free Software Foundation, Inc. |
c6b750e1 DJ |
15534 | This config.status script is free software; the Free Software Foundation |
15535 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15536 | |
15537 | ac_pwd='$ac_pwd' | |
15538 | srcdir='$srcdir' | |
15539 | INSTALL='$INSTALL' | |
8e957354 | 15540 | AWK='$AWK' |
81ecdfbb | 15541 | test -n "\$AWK" || AWK=awk |
c6b750e1 DJ |
15542 | _ACEOF |
15543 | ||
81ecdfbb RW |
15544 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15545 | # The default lists apply if the user does not specify any file. | |
c6b750e1 DJ |
15546 | ac_need_defaults=: |
15547 | while test $# != 0 | |
a0da8069 | 15548 | do |
c6b750e1 DJ |
15549 | case $1 in |
15550 | --*=*) | |
81ecdfbb RW |
15551 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15552 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
c6b750e1 DJ |
15553 | ac_shift=: |
15554 | ;; | |
81ecdfbb | 15555 | *) |
c6b750e1 DJ |
15556 | ac_option=$1 |
15557 | ac_optarg=$2 | |
15558 | ac_shift=shift | |
15559 | ;; | |
c6b750e1 DJ |
15560 | esac |
15561 | ||
15562 | case $ac_option in | |
15563 | # Handling of the options. | |
a0da8069 | 15564 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
c6b750e1 | 15565 | ac_cs_recheck=: ;; |
81ecdfbb RW |
15566 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15567 | $as_echo "$ac_cs_version"; exit ;; | |
15568 | --debug | --debu | --deb | --de | --d | -d ) | |
c6b750e1 DJ |
15569 | debug=: ;; |
15570 | --file | --fil | --fi | --f ) | |
15571 | $ac_shift | |
81ecdfbb RW |
15572 | case $ac_optarg in |
15573 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15574 | esac | |
15575 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
c6b750e1 | 15576 | ac_need_defaults=false;; |
81ecdfbb RW |
15577 | --he | --h | --help | --hel | -h ) |
15578 | $as_echo "$ac_cs_usage"; exit ;; | |
c6b750e1 DJ |
15579 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15580 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15581 | ac_cs_silent=: ;; | |
15582 | ||
15583 | # This is an error. | |
81ecdfbb RW |
15584 | -*) as_fn_error "unrecognized option: \`$1' |
15585 | Try \`$0 --help' for more information." ;; | |
c6b750e1 | 15586 | |
81ecdfbb RW |
15587 | *) as_fn_append ac_config_targets " $1" |
15588 | ac_need_defaults=false ;; | |
c6b750e1 | 15589 | |
376a0e54 | 15590 | esac |
c6b750e1 | 15591 | shift |
376a0e54 CM |
15592 | done |
15593 | ||
c6b750e1 | 15594 | ac_configure_extra_args= |
376a0e54 | 15595 | |
c6b750e1 DJ |
15596 | if $ac_cs_silent; then |
15597 | exec 6>/dev/null | |
15598 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15599 | fi | |
376a0e54 | 15600 | |
c6b750e1 | 15601 | _ACEOF |
81ecdfbb | 15602 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c6b750e1 | 15603 | if \$ac_cs_recheck; then |
81ecdfbb RW |
15604 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
15605 | shift | |
15606 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15607 | CONFIG_SHELL='$SHELL' | |
15608 | export CONFIG_SHELL | |
15609 | exec "\$@" | |
c6b750e1 DJ |
15610 | fi |
15611 | ||
15612 | _ACEOF | |
81ecdfbb RW |
15613 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15614 | exec 5>>config.log | |
15615 | { | |
15616 | echo | |
15617 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15618 | ## Running $as_me. ## | |
15619 | _ASBOX | |
15620 | $as_echo "$ac_log" | |
15621 | } >&5 | |
c6b750e1 | 15622 | |
81ecdfbb RW |
15623 | _ACEOF |
15624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
06a51eac RW |
15625 | # |
15626 | # INIT-COMMANDS | |
15627 | # | |
15628 | extrasub_build="$extrasub_build" | |
15629 | extrasub_host="$extrasub_host" | |
15630 | extrasub_target="$extrasub_target" | |
15631 | ||
81ecdfbb | 15632 | _ACEOF |
c6b750e1 | 15633 | |
81ecdfbb | 15634 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 | 15635 | |
81ecdfbb | 15636 | # Handling of arguments. |
c6b750e1 DJ |
15637 | for ac_config_target in $ac_config_targets |
15638 | do | |
81ecdfbb RW |
15639 | case $ac_config_target in |
15640 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
15641 | ||
15642 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
c6b750e1 DJ |
15643 | esac |
15644 | done | |
15645 | ||
81ecdfbb | 15646 | |
c6b750e1 DJ |
15647 | # If the user did not use the arguments to specify the items to instantiate, |
15648 | # then the envvar interface is used. Set only those that are not. | |
15649 | # We use the long form for the default assignment because of an extremely | |
15650 | # bizarre bug on SunOS 4.1.3. | |
15651 | if $ac_need_defaults; then | |
15652 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
15653 | fi | |
15654 | ||
15655 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 15656 | # simply because there is no reason against having it here, and in addition, |
c6b750e1 | 15657 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
15658 | # Hook for its removal unless debugging. |
15659 | # Note that there is a small window in which the directory will not be cleaned: | |
15660 | # after its creation but before its name has been assigned to `$tmp'. | |
c6b750e1 DJ |
15661 | $debug || |
15662 | { | |
81ecdfbb RW |
15663 | tmp= |
15664 | trap 'exit_status=$? | |
15665 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
15666 | ' 0 | |
15667 | trap 'as_fn_exit 1' 1 2 13 15 | |
c6b750e1 | 15668 | } |
c6b750e1 DJ |
15669 | # Create a (secure) tmp directory for tmp files. |
15670 | ||
15671 | { | |
81ecdfbb | 15672 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
c6b750e1 DJ |
15673 | test -n "$tmp" && test -d "$tmp" |
15674 | } || | |
15675 | { | |
81ecdfbb RW |
15676 | tmp=./conf$$-$RANDOM |
15677 | (umask 077 && mkdir "$tmp") | |
15678 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
15679 | ||
15680 | # Set up the scripts for CONFIG_FILES section. | |
15681 | # No need to generate them if there are no CONFIG_FILES. | |
15682 | # This happens for instance with `./config.status config.h'. | |
15683 | if test -n "$CONFIG_FILES"; then | |
15684 | ||
15685 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then | |
15686 | ac_cs_awk_getline=: | |
15687 | ac_cs_awk_pipe_init= | |
15688 | ac_cs_awk_read_file=' | |
15689 | while ((getline aline < (F[key])) > 0) | |
15690 | print(aline) | |
15691 | close(F[key])' | |
15692 | ac_cs_awk_pipe_fini= | |
15693 | else | |
15694 | ac_cs_awk_getline=false | |
15695 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" | |
15696 | ac_cs_awk_read_file=' | |
15697 | print "|#_!!_#|" | |
15698 | print "cat " F[key] " &&" | |
15699 | '$ac_cs_awk_pipe_init | |
15700 | # The final `:' finishes the AND list. | |
15701 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' | |
15702 | fi | |
15703 | ac_cr=`echo X | tr X '\015'` | |
15704 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
15705 | # But we know of no other shell where ac_cr would be empty at this | |
15706 | # point, so we can use a bashism as a fallback. | |
15707 | if test "x$ac_cr" = x; then | |
15708 | eval ac_cr=\$\'\\r\' | |
15709 | fi | |
15710 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
15711 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
15712 | ac_cs_awk_cr='\r' | |
15713 | else | |
15714 | ac_cs_awk_cr=$ac_cr | |
15715 | fi | |
15716 | ||
15717 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
15718 | _ACEOF | |
15719 | ||
15720 | # Create commands to substitute file output variables. | |
c6b750e1 | 15721 | { |
81ecdfbb RW |
15722 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
15723 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && | |
15724 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && | |
15725 | echo "_ACAWK" && | |
15726 | echo "_ACEOF" | |
15727 | } >conf$$files.sh && | |
15728 | . ./conf$$files.sh || | |
15729 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15730 | rm -f conf$$files.sh | |
c6b750e1 | 15731 | |
81ecdfbb RW |
15732 | { |
15733 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
15734 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
15735 | echo "_ACEOF" | |
15736 | } >conf$$subs.sh || | |
15737 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15738 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
15739 | ac_delim='%!_!# ' | |
15740 | for ac_last_try in false false false false false :; do | |
15741 | . ./conf$$subs.sh || | |
15742 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15743 | ||
15744 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
15745 | if test $ac_delim_n = $ac_delim_num; then | |
15746 | break | |
15747 | elif $ac_last_try; then | |
15748 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
15749 | else | |
15750 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
15751 | fi | |
15752 | done | |
15753 | rm -f conf$$subs.sh | |
15754 | ||
15755 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15756 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
c6b750e1 | 15757 | _ACEOF |
81ecdfbb RW |
15758 | sed -n ' |
15759 | h | |
15760 | s/^/S["/; s/!.*/"]=/ | |
15761 | p | |
15762 | g | |
15763 | s/^[^!]*!// | |
15764 | :repl | |
15765 | t repl | |
15766 | s/'"$ac_delim"'$// | |
15767 | t delim | |
15768 | :nl | |
15769 | h | |
15770 | s/\(.\{148\}\).*/\1/ | |
15771 | t more1 | |
15772 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
15773 | p | |
15774 | n | |
15775 | b repl | |
15776 | :more1 | |
15777 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15778 | p | |
15779 | g | |
15780 | s/.\{148\}// | |
15781 | t nl | |
15782 | :delim | |
15783 | h | |
15784 | s/\(.\{148\}\).*/\1/ | |
15785 | t more2 | |
15786 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
15787 | p | |
15788 | b | |
15789 | :more2 | |
15790 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
15791 | p | |
15792 | g | |
15793 | s/.\{148\}// | |
15794 | t delim | |
15795 | ' <conf$$subs.awk | sed ' | |
15796 | /^[^""]/{ | |
15797 | N | |
15798 | s/\n// | |
15799 | } | |
15800 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
15801 | rm -f conf$$subs.awk | |
15802 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
15803 | _ACAWK | |
15804 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
15805 | for (key in S) S_is_set[key] = 1 | |
15806 | FS = "\a" | |
15807 | \$ac_cs_awk_pipe_init | |
15808 | } | |
15809 | { | |
15810 | line = $ 0 | |
15811 | nfields = split(line, field, "@") | |
15812 | substed = 0 | |
15813 | len = length(field[1]) | |
15814 | for (i = 2; i < nfields; i++) { | |
15815 | key = field[i] | |
15816 | keylen = length(key) | |
15817 | if (S_is_set[key]) { | |
15818 | value = S[key] | |
15819 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
15820 | len += length(value) + length(field[++i]) | |
15821 | substed = 1 | |
15822 | } else | |
15823 | len += 1 + keylen | |
15824 | } | |
15825 | if (nfields == 3 && !substed) { | |
15826 | key = field[2] | |
15827 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { | |
15828 | \$ac_cs_awk_read_file | |
15829 | next | |
15830 | } | |
15831 | } | |
15832 | print line | |
15833 | } | |
15834 | \$ac_cs_awk_pipe_fini | |
15835 | _ACAWK | |
15836 | _ACEOF | |
15837 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15838 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
15839 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
15840 | else | |
15841 | cat | |
15842 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
15843 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
15844 | _ACEOF | |
15845 | ||
15846 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
15847 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
15848 | # trailing colons and then remove the whole line if VPATH becomes empty | |
15849 | # (actually we leave an empty line to preserve line numbers). | |
15850 | if test "x$srcdir" = x.; then | |
15851 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
15852 | s/:*\$(srcdir):*/:/ | |
15853 | s/:*\${srcdir}:*/:/ | |
15854 | s/:*@srcdir@:*/:/ | |
15855 | s/^\([^=]*=[ ]*\):*/\1/ | |
15856 | s/:*$// | |
15857 | s/^[^=]*=[ ]*$// | |
15858 | }' | |
15859 | fi | |
c6b750e1 | 15860 | |
81ecdfbb RW |
15861 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15862 | fi # test -n "$CONFIG_FILES" | |
c6b750e1 | 15863 | |
c6b750e1 | 15864 | |
81ecdfbb RW |
15865 | eval set X " :F $CONFIG_FILES " |
15866 | shift | |
15867 | for ac_tag | |
15868 | do | |
15869 | case $ac_tag in | |
15870 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
15871 | esac | |
15872 | case $ac_mode$ac_tag in | |
15873 | :[FHL]*:*);; | |
15874 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
15875 | :[FH]-) ac_tag=-:-;; | |
15876 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
15877 | esac | |
15878 | ac_save_IFS=$IFS | |
15879 | IFS=: | |
15880 | set x $ac_tag | |
15881 | IFS=$ac_save_IFS | |
15882 | shift | |
15883 | ac_file=$1 | |
15884 | shift | |
252b5132 | 15885 | |
81ecdfbb RW |
15886 | case $ac_mode in |
15887 | :L) ac_source=$1;; | |
15888 | :[FH]) | |
15889 | ac_file_inputs= | |
15890 | for ac_f | |
15891 | do | |
15892 | case $ac_f in | |
15893 | -) ac_f="$tmp/stdin";; | |
15894 | *) # Look for the file first in the build tree, then in the source tree | |
15895 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
15896 | # because $ac_f cannot contain `:'. | |
15897 | test -f "$ac_f" || | |
15898 | case $ac_f in | |
15899 | [\\/$]*) false;; | |
15900 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
15901 | esac || | |
15902 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
15903 | esac | |
15904 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
15905 | as_fn_append ac_file_inputs " '$ac_f'" | |
15906 | done | |
c6b750e1 | 15907 | |
81ecdfbb RW |
15908 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15909 | # use $as_me), people would be surprised to read: | |
15910 | # /* config.h. Generated by config.status. */ | |
15911 | configure_input='Generated from '` | |
15912 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
15913 | `' by configure.' | |
15914 | if test x"$ac_file" != x-; then | |
15915 | configure_input="$ac_file. $configure_input" | |
15916 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
15917 | $as_echo "$as_me: creating $ac_file" >&6;} | |
a0da8069 | 15918 | fi |
81ecdfbb RW |
15919 | # Neutralize special characters interpreted by sed in replacement strings. |
15920 | case $configure_input in #( | |
15921 | *\&* | *\|* | *\\* ) | |
15922 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
15923 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
15924 | *) ac_sed_conf_input=$configure_input;; | |
15925 | esac | |
cac3d6c4 | 15926 | |
81ecdfbb RW |
15927 | case $ac_tag in |
15928 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15929 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
15930 | esac | |
15931 | ;; | |
a0da8069 | 15932 | esac |
252b5132 | 15933 | |
81ecdfbb | 15934 | ac_dir=`$as_dirname -- "$ac_file" || |
c6b750e1 DJ |
15935 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
15936 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15937 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15938 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
15939 | $as_echo X"$ac_file" | | |
15940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15941 | s//\1/ | |
15942 | q | |
15943 | } | |
15944 | /^X\(\/\/\)[^/].*/{ | |
15945 | s//\1/ | |
15946 | q | |
15947 | } | |
15948 | /^X\(\/\/\)$/{ | |
15949 | s//\1/ | |
15950 | q | |
15951 | } | |
15952 | /^X\(\/\).*/{ | |
15953 | s//\1/ | |
15954 | q | |
15955 | } | |
15956 | s/.*/./; q'` | |
15957 | as_dir="$ac_dir"; as_fn_mkdir_p | |
c6b750e1 | 15958 | ac_builddir=. |
252b5132 | 15959 | |
81ecdfbb RW |
15960 | case "$ac_dir" in |
15961 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15962 | *) | |
15963 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
15964 | # A ".." for each directory in $ac_dir_suffix. | |
15965 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
15966 | case $ac_top_builddir_sub in | |
15967 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
15968 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
15969 | esac ;; | |
15970 | esac | |
15971 | ac_abs_top_builddir=$ac_pwd | |
15972 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
15973 | # for backward compatibility: | |
15974 | ac_top_builddir=$ac_top_build_prefix | |
c6b750e1 DJ |
15975 | |
15976 | case $srcdir in | |
81ecdfbb | 15977 | .) # We are building in place. |
c6b750e1 | 15978 | ac_srcdir=. |
81ecdfbb RW |
15979 | ac_top_srcdir=$ac_top_builddir_sub |
15980 | ac_abs_top_srcdir=$ac_pwd ;; | |
15981 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c6b750e1 | 15982 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
15983 | ac_top_srcdir=$srcdir |
15984 | ac_abs_top_srcdir=$srcdir ;; | |
15985 | *) # Relative name. | |
15986 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
15987 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
15988 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c6b750e1 | 15989 | esac |
81ecdfbb | 15990 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 15991 | |
252b5132 | 15992 | |
81ecdfbb RW |
15993 | case $ac_mode in |
15994 | :F) | |
15995 | # | |
15996 | # CONFIG_FILE | |
15997 | # | |
c6b750e1 DJ |
15998 | |
15999 | case $INSTALL in | |
16000 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb | 16001 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a0da8069 | 16002 | esac |
81ecdfbb | 16003 | _ACEOF |
252b5132 | 16004 | |
81ecdfbb RW |
16005 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16006 | # If the template does not know about datarootdir, expand it. | |
16007 | # FIXME: This hack should be removed a few years after 2.60. | |
16008 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16009 | ac_sed_dataroot=' | |
16010 | /datarootdir/ { | |
16011 | p | |
16012 | q | |
16013 | } | |
16014 | /@datadir@/p | |
16015 | /@docdir@/p | |
16016 | /@infodir@/p | |
16017 | /@localedir@/p | |
16018 | /@mandir@/p' | |
16019 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16020 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16021 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16022 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16023 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
c6b750e1 | 16024 | _ACEOF |
81ecdfbb RW |
16025 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
16026 | ac_datarootdir_hack=' | |
16027 | s&@datadir@&$datadir&g | |
16028 | s&@docdir@&$docdir&g | |
16029 | s&@infodir@&$infodir&g | |
16030 | s&@localedir@&$localedir&g | |
16031 | s&@mandir@&$mandir&g | |
16032 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16033 | esac | |
16034 | _ACEOF | |
16035 | ||
16036 | # Neutralize VPATH when `$srcdir' = `.'. | |
16037 | # Shell code in configure.ac might set extrasub. | |
16038 | # FIXME: do we really want to maintain this feature? | |
16039 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16040 | ac_sed_extra="$ac_vpsub | |
c6b750e1 DJ |
16041 | $extrasub |
16042 | _ACEOF | |
81ecdfbb | 16043 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
c6b750e1 DJ |
16044 | :t |
16045 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16046 | s|@configure_input@|$ac_sed_conf_input|;t t |
16047 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16048 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16049 | s&@srcdir@&$ac_srcdir&;t t | |
16050 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16051 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16052 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16053 | s&@builddir@&$ac_builddir&;t t | |
16054 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16055 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16056 | s&@INSTALL@&$ac_INSTALL&;t t | |
16057 | $ac_datarootdir_hack | |
16058 | " | |
16059 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | | |
16060 | if $ac_cs_awk_getline; then | |
16061 | $AWK -f "$tmp/subs.awk" | |
16062 | else | |
16063 | $AWK -f "$tmp/subs.awk" | $SHELL | |
16064 | fi >$tmp/out \ | |
16065 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16066 | ||
16067 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16068 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
16069 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
16070 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16071 | which seems to be undefined. Please make sure it is defined." >&5 | |
16072 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16073 | which seems to be undefined. Please make sure it is defined." >&2;} | |
16074 | ||
16075 | rm -f "$tmp/stdin" | |
16076 | case $ac_file in | |
16077 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
16078 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
16079 | esac \ | |
16080 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
16081 | ;; | |
c148b4cb | 16082 | |
c148b4cb | 16083 | |
c148b4cb | 16084 | |
81ecdfbb RW |
16085 | esac |
16086 | ||
06a51eac RW |
16087 | |
16088 | case $ac_file$ac_mode in | |
16089 | "Makefile":F) sed "$extrasub_build" Makefile | | |
16090 | sed "$extrasub_host" | | |
16091 | sed "$extrasub_target" > mf$$ | |
16092 | mv -f mf$$ Makefile ;; | |
16093 | ||
16094 | esac | |
81ecdfbb RW |
16095 | done # for ac_tag |
16096 | ||
16097 | ||
16098 | as_fn_exit 0 | |
c6b750e1 | 16099 | _ACEOF |
c6b750e1 DJ |
16100 | ac_clean_files=$ac_clean_files_save |
16101 | ||
81ecdfbb RW |
16102 | test $ac_write_fail = 0 || |
16103 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
16104 | ||
c6b750e1 DJ |
16105 | |
16106 | # configure is writing to config.log, and then calls config.status. | |
16107 | # config.status does its own redirection, appending to config.log. | |
16108 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
16109 | # by configure, so config.status won't be able to write to it; its | |
16110 | # output is simply discarded. So we exec the FD to /dev/null, | |
16111 | # effectively closing config.log, so it can be properly (re)opened and | |
16112 | # appended to by config.status. When coming back to configure, we | |
16113 | # need to make the FD available again. | |
16114 | if test "$no_create" != yes; then | |
16115 | ac_cs_success=: | |
16116 | ac_config_status_args= | |
16117 | test "$silent" = yes && | |
16118 | ac_config_status_args="$ac_config_status_args --quiet" | |
16119 | exec 5>/dev/null | |
16120 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
16121 | exec 5>>config.log | |
16122 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
16123 | # would make configure fail if this is the last instruction. | |
81ecdfbb RW |
16124 | $ac_cs_success || as_fn_exit $? |
16125 | fi | |
16126 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
16128 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
c6b750e1 | 16129 | fi |
c148b4cb | 16130 |